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 |
|---|---|---|---|---|---|---|
Gets array of all "controlPersonsExt" elements
|
ch.crif_online.www.webservices.crifsoapservice.v1_00.ControlPerson[] getControlPersonsExtArray();
|
{
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
}
|
[
"ch.crif_online.www.webservices.crifsoapservice.v1_00.ControlPerson getControlPersonsExtArray(int i);",
"ch.crif_online.www.webservices.crifsoapservice.v1_00.AddressDescription[] getControlPersonsArray();",
"void setControlPersonsExtArray(int i, ch.crif_online.www.webservices.crifsoapservice.v1_00.ControlPerson controlPersonsExt);",
"void setControlPersonsExtArray(ch.crif_online.www.webservices.crifsoapservice.v1_00.ControlPerson[] controlPersonsExtArray);",
"ch.crif_online.www.webservices.crifsoapservice.v1_00.AddressDescription getControlPersonsArray(int i);",
"int sizeOfControlPersonsExtArray();",
"public Control[] getMemberControls() {\n/* 78 */ Control[] arrayOfControl = new Control[this.controls.length];\n/* */ \n/* 80 */ for (byte b = 0; b < this.controls.length; b++) {\n/* 81 */ arrayOfControl[b] = this.controls[b];\n/* */ }\n/* */ \n/* 84 */ return arrayOfControl;\n/* */ }",
"public final native MVCArray<Element> getControls() /*-{\n return this.controls;\n }-*/;",
"public String[] getPrimaryInputExtensions();",
"public String[] getAllInputExtensions();",
"public static GridPane getRegistrationPersonPane() {\n return list;\n }",
"public List<TLProperty> getElements();",
"public Collection<CustomHudElement> getCustomElements();",
"void setControlPersonsArray(int i, ch.crif_online.www.webservices.crifsoapservice.v1_00.AddressDescription controlPersons);",
"@XmlAnyElement ( lax = true )\n @JsonSerialize ( using = AnyElementSerializer.class )\n public List<Object> getExtensionElements() {\n return extensionElements;\n }",
"public List getInputExtensions();",
"int sizeOfControlPersonsArray();",
"void removeControlPersonsExt(int i);",
"ch.crif_online.www.webservices.crifsoapservice.v1_00.ControlPerson addNewControlPersonsExt();",
"protected abstract Object[] getComponents();",
"public <T extends Control> T[] getComponents(Class<T> clazz) {\r\n final List<Node> lst = new ArrayList<>(10);\r\n spatial.breadthFirstTraversal(new SceneGraphVisitorAdapter() {\r\n @Override\r\n public void visit(Node node) {\r\n if (node.getControl(clazz) != null) {\r\n lst.add(node);\r\n }\r\n }\r\n });\r\n return (T[]) lst.toArray();\r\n }",
"public XCN[] getAdministeringProvider() {\r\n \tXCN[] retVal = this.getTypedField(10, new XCN[0]);\r\n \treturn retVal;\r\n }",
"public Enumeration<String> getPersonList() {\r\n\t\treturn this.persons.keys();\r\n\t}",
"public List<Element> getCustomElements() {\r\n return customElements;\r\n }",
"public String[] getExtensionIds();",
"public Control[] getControls() {\n\t\treturn null;\r\n\t}",
"public static VkExtensionProperties[] listAvailableExtensions() throws VulkanException {\n VkExtensionProperties.Buffer extensions;\n\n int[] pPropertyCount = new int[1];\n int err = vkEnumerateInstanceExtensionProperties((CharSequence) null, pPropertyCount, null);\n VulkanResult.validate(err, \"Failed to enumerate instance extension properties!\");\n\n extensions = VkExtensionProperties.calloc(pPropertyCount[0]);\n err =\n vkEnumerateInstanceExtensionProperties(\n (CharSequence) null, pPropertyCount, extensions);\n VulkanResult.validate(err, \"Failed to enumerate instance extension properties!\");\n\n VkExtensionProperties[] out = new VkExtensionProperties[pPropertyCount[0]];\n for (int i = 0; i < pPropertyCount[0]; i++) {\n out[i] = extensions.get(i);\n }\n\n extensions.free();\n\n return out;\n }",
"public String[] getAllDependencyExtensions();",
"public List getInterfaceExtensions();",
"public Collection<Collection<T>> getExtensions();",
"private final native MVCArray<Element> getControls(int controlPosition) /*-{\n return this.controls[controlPosition];\n }-*/;",
"Extensions getExtensions() {\n return this.extensions;\n }",
"public List controls(){\n return controls;\n }",
"public java.lang.Object[] getSelectPresentationLabelList();",
"public String[] getExtensions() {\r\n return extensions;\r\n }",
"public XCN[] getRxa10_AdministeringProvider() {\r\n \tXCN[] retVal = this.getTypedField(10, new XCN[0]);\r\n \treturn retVal;\r\n }",
"ImmutableList<SchemaOrgType> getAccountablePersonList();",
"void setControlPersonsArray(ch.crif_online.www.webservices.crifsoapservice.v1_00.AddressDescription[] controlPersonsArray);",
"public com.walgreens.rxit.ch.cda.PN[] getNameArray()\n {\n synchronized (monitor())\n {\n check_orphaned();\n java.util.List targetList = new java.util.ArrayList();\n get_store().find_all_element_users(NAME$8, targetList);\n com.walgreens.rxit.ch.cda.PN[] result = new com.walgreens.rxit.ch.cda.PN[targetList.size()];\n targetList.toArray(result);\n return result;\n }\n }",
"protected ArrayList<Object> getAllFieldsAsArrayList() {\n\n\t\t// first we get all the global fields.\n\t\t// That is, ones that apply to both Sprites,Text and any other object types.\n\t\tArrayList<Object> fieldList = super.getAllFieldsAsArrayList();\n\n\t\t//then we get the dialogue specific fields\n\t\tLog.info(\"getting label specific fields for object \"+ObjectsName);\n\n\t\tif (ObjectsCurrentText==null){\n\t\t\tLog.severe(\"Text is null at this point..is there a previous error? It could be the text contains characters the paragraph object doesnt support.\");\n\t\t}\n\n\t\t// dialog data\n\t\t//\n\n\t\t//we escape all newlines\n\t\tString currentTextWithEscapedNewlines = ObjectsCurrentText.replaceAll(\"\\\\r\\\\n|\\\\r|\\\\n\",ESCAPED_NEWLINE);\t\t\n\t\tfieldList.add(currentTextWithEscapedNewlines );\t\t\n\t\t//\tfieldList.add(ObjectsCurrentText.replaceAll(\"\\n\",ESCAPED_NEWLINE) );\n\t\tfieldList.add(CSSname);\n\n\n\t\treturn fieldList;\n\n\t}",
"public java.util.List<io.envoyproxy.envoy.config.core.v3.Extension.Builder> \n getExtensionsBuilderList() {\n return getExtensionsFieldBuilder().getBuilderList();\n }",
"public String[] getExtensions()\n\t{\n\t\treturn extensions;\n\t}",
"org.apache.geronimo.corba.xbeans.csiv2.tss.TSSGeneralNameType[] getGeneralNameArray();",
"public java.lang.Object[] getSelectPresentationValueList();",
"public java.util.List<Extension> extension() {\n return getList(Extension.class, FhirPropertyNames.PROPERTY_EXTENSION);\n }",
"public java.util.List<Extension> extension() {\n return getList(Extension.class, FhirPropertyNames.PROPERTY_EXTENSION);\n }",
"public java.util.List<Extension> extension() {\n return getList(Extension.class, FhirPropertyNames.PROPERTY_EXTENSION);\n }",
"public java.util.List<Extension> extension() {\n return getList(Extension.class, FhirPropertyNames.PROPERTY_EXTENSION);\n }",
"public java.util.List<Extension> extension() {\n return getList(Extension.class, FhirPropertyNames.PROPERTY_EXTENSION);\n }",
"public java.util.List<Extension> extension() {\n return getList(Extension.class, FhirPropertyNames.PROPERTY_EXTENSION);\n }",
"public java.util.List<Extension> extension() {\n return getList(Extension.class, FhirPropertyNames.PROPERTY_EXTENSION);\n }",
"com.icare.eai.schema.om.evSORequest.ListOfServiceElementsComplexType getListOfServiceElements();",
"ObservableList<Person> getDisplayedPersonList();",
"public IDomain[] getDomainComponents();",
"public abstract Class<?>[] getFormRegions();",
"public java.util.List<io.envoyproxy.envoy.config.core.v3.Extension> getExtensionsList() {\n if (extensionsBuilder_ == null) {\n return java.util.Collections.unmodifiableList(extensions_);\n } else {\n return extensionsBuilder_.getMessageList();\n }\n }",
"public List<Personname> getPersonnames() {\r\n\r\n if (this.personnames == null) {\r\n\r\n this.personnames = new ArrayList<Personname>();\r\n\r\n }\r\n\r\n return this.personnames;\r\n\r\n }",
"public java.lang.Object[] getSelectPresentationBackingList();",
"public List<TextBox> getAllTextBox() {\n List<TextBox> tb = new LinkedList<>();\n tb.add(entityName);\n return tb;\n }",
"java.util.List<? extends com.ljzn.grpc.personinfo.PersoninfoMessageOrBuilder> \n getPersonInfoOrBuilderList();",
"public org.apache.xmlbeans.XmlString[] xgetMappingFieldsArray()\n {\n synchronized (monitor())\n {\n check_orphaned();\n java.util.List targetList = new java.util.ArrayList();\n get_store().find_all_element_users(MAPPINGFIELDS$28, targetList);\n org.apache.xmlbeans.XmlString[] result = new org.apache.xmlbeans.XmlString[targetList.size()];\n targetList.toArray(result);\n return result;\n }\n }",
"@Override\r\n\tpublic ArrayList<Person> getAllPersons() {\n\t\treturn null;\r\n\t}",
"public io.dstore.values.StringValueOrBuilder getPersonCharacteristicIdsOrBuilder() {\n return getPersonCharacteristicIds();\n }",
"public String[] getExtensions()\r\n {\r\n return new String[] {\"\"};\r\n }",
"@Override\r\n\tpublic List<Person> getPeople() {\n\t\tList<Person> personList = new ArrayList<Person>();\r\n\t\tpersonList.add(getPerson(234L));\r\n\t\tpersonList.add(getPerson(123L));\r\n\t\tpersonList.add(getPerson(345L));\r\n\t\tpersonList.add(getPerson(42L));\r\n\t\treturn personList ;\r\n\t}",
"ch.crif_online.www.webservices.crifsoapservice.v1_00.ControlPerson insertNewControlPersonsExt(int i);",
"private Object[] elements() {\n return elements.toArray();\n }",
"@Override\n\tpublic List<Control> findAll() throws Exception {\n\t\treturn controlMapper.findAll();\n\t}",
"java.util.List<com.ljzn.grpc.personinfo.PersoninfoMessage> \n getPersonInfoList();",
"public List<String> getExtensions() {\n if (this.extensions == null) {\n // alias?\n if (this.aliasOf != null) {\n return this.aliasOf.getExtensions();\n }\n }\n return this.extensions;\n }",
"Collection<EObject> getModelElements();",
"public Person[] getPerson() {\n\t\treturn person;\n\t}",
"ExtensionsType getExtensions();",
"public List<ITabDescriptor> getElements() {\n\t\treturn elements;\n\t}",
"public java.util.List<? extends io.envoyproxy.envoy.config.core.v3.ExtensionOrBuilder> \n getExtensionsOrBuilderList() {\n if (extensionsBuilder_ != null) {\n return extensionsBuilder_.getMessageOrBuilderList();\n } else {\n return java.util.Collections.unmodifiableList(extensions_);\n }\n }",
"public List<String> getExtensions() {\n if (extensions != null) {\n return Collections.unmodifiableList(extensions);\n } else {\n return Collections.emptyList();\n }\n }",
"Set<EObject> getAllModelElements();",
"public org.openxmlformats.schemas.presentationml.x2006.main.CTExtensionList getExtLst()\n {\n synchronized (monitor())\n {\n check_orphaned();\n org.openxmlformats.schemas.presentationml.x2006.main.CTExtensionList target = null;\n target = (org.openxmlformats.schemas.presentationml.x2006.main.CTExtensionList)get_store().find_element_user(EXTLST$14, 0);\n if (target == null)\n {\n return null;\n }\n return target;\n }\n }",
"ImmutableList<SchemaOrgType> getAccessibilityControlList();",
"public Object[] getElements() {\r\n\t\treturn elements.clone();\r\n\t}",
"java.util.List<kr.pik.message.Profile.ProfileMessage.ContactAddress> \n getContactAddressList();",
"io.dstore.values.StringValue getPersonCharacteristicIds();",
"@Override\n\tpublic AddAdditionalNameElement Elements() {\n\t\treturn new AddAdditionalNameElement(driver);\n\t}",
"public List<IContactLabel> getContactLabels();",
"@Override\n\tpublic List<Person> getAllPersons() {\n\t\treturn null;\n\t}",
"public List<Person> getPersonList(){\n return personList;\n }",
"public abstract Class<?>[] getAddins();",
"@Override\n public JLabel[] GetDataContainers() {\n JLabel[] res = new JLabel[3];\n res[0] = jLabel1;\n res[1] = jLabel2;\n res[2] = jLabel3;\n return res;\n }",
"public Person[] getDirectCollaboratorsOf(Person actor);",
"public String getExtensions() {\n return extensions;\n }",
"public String getExtensions()\n {\n return ext;\n }",
"public XMLFieldDescriptor[] getElementDescriptors() {\n XMLFieldDescriptor[] fields\n = new XMLFieldDescriptor[elementDescriptors.size()];\n elementDescriptors.toArray(fields);\n return fields;\n }",
"public ArrayList<Control> getControls() {\n\t\treturn controls;\n\t}",
"public java.lang.Object[] getPresentationAsArray();",
"io.dstore.values.StringValueOrBuilder getPersonCharacteristicIdsOrBuilder();",
"List<String> getAllowedExtensions();",
"Map<String, Field> extensionFieldsMap() {\n Map<String, Field> extensionsForType = new LinkedHashMap<>();\n for (Field field : extensionFields) {\n extensionsForType.put(field.qualifiedName(), field);\n }\n return extensionsForType;\n }",
"public ElementList[] getAnnotations() {\r\n return union.value();\r\n }",
"public IValidator[] getValidators();",
"public ArrayList<Personne> getListPersonne() {\n\t\treturn listPersonne;\n\t}"
] |
[
"0.8021073",
"0.70704526",
"0.69206417",
"0.6918196",
"0.67546237",
"0.6397894",
"0.5875089",
"0.5814838",
"0.5675874",
"0.558572",
"0.55150723",
"0.55035913",
"0.54513997",
"0.5447108",
"0.54433054",
"0.5417286",
"0.54161686",
"0.53828746",
"0.53498304",
"0.53444517",
"0.5314286",
"0.53117406",
"0.52902913",
"0.5281602",
"0.5271347",
"0.5265383",
"0.5263479",
"0.52568215",
"0.5242173",
"0.52415156",
"0.5231969",
"0.52250355",
"0.5223122",
"0.5187647",
"0.51819444",
"0.51813835",
"0.51810044",
"0.5180363",
"0.5167596",
"0.51575595",
"0.5154623",
"0.5141252",
"0.5133813",
"0.51311666",
"0.51302063",
"0.51302063",
"0.51302063",
"0.51302063",
"0.51302063",
"0.51302063",
"0.51302063",
"0.5121941",
"0.51214576",
"0.51144487",
"0.5103202",
"0.5100682",
"0.50912035",
"0.5085418",
"0.5079424",
"0.50737214",
"0.50701874",
"0.5067729",
"0.5066738",
"0.5061747",
"0.50537884",
"0.50514865",
"0.50393236",
"0.5038219",
"0.50242126",
"0.5005498",
"0.5003418",
"0.49913412",
"0.4989224",
"0.49891883",
"0.49660623",
"0.496212",
"0.4947058",
"0.49453828",
"0.492985",
"0.49267763",
"0.4924702",
"0.4924489",
"0.49237943",
"0.49221912",
"0.4921746",
"0.49214908",
"0.491508",
"0.490643",
"0.49060833",
"0.48963133",
"0.48885852",
"0.48868972",
"0.48830965",
"0.4871075",
"0.48709995",
"0.4867172",
"0.4865322",
"0.4859789",
"0.48567632",
"0.4852981"
] |
0.8540219
|
0
|
Gets ith "controlPersonsExt" element
|
ch.crif_online.www.webservices.crifsoapservice.v1_00.ControlPerson getControlPersonsExtArray(int i);
|
{
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
}
|
[
"ch.crif_online.www.webservices.crifsoapservice.v1_00.ControlPerson[] getControlPersonsExtArray();",
"void setControlPersonsExtArray(int i, ch.crif_online.www.webservices.crifsoapservice.v1_00.ControlPerson controlPersonsExt);",
"ch.crif_online.www.webservices.crifsoapservice.v1_00.ControlPerson addNewControlPersonsExt();",
"void setControlPersonsExtArray(ch.crif_online.www.webservices.crifsoapservice.v1_00.ControlPerson[] controlPersonsExtArray);",
"ch.crif_online.www.webservices.crifsoapservice.v1_00.AddressDescription getControlPersonsArray(int i);",
"int sizeOfControlPersonsExtArray();",
"public static By getContactNameInLLInfo(String partNum){\n\t\t return By.xpath(\"//p[contains(.,'Insight Part #: \"+partNum+\"')]/following::div[@class='row expanded is-collapse-child'][1]//input[@name='licenseInformation.CONTACT_NAME']\");\n\t }",
"ch.crif_online.www.webservices.crifsoapservice.v1_00.AddressDescription[] getControlPersonsArray();",
"ch.crif_online.www.webservices.crifsoapservice.v1_00.ControlPerson insertNewControlPersonsExt(int i);",
"public org.openxmlformats.schemas.presentationml.x2006.main.CTExtensionList getExtLst()\n {\n synchronized (monitor())\n {\n check_orphaned();\n org.openxmlformats.schemas.presentationml.x2006.main.CTExtensionList target = null;\n target = (org.openxmlformats.schemas.presentationml.x2006.main.CTExtensionList)get_store().find_element_user(EXTLST$14, 0);\n if (target == null)\n {\n return null;\n }\n return target;\n }\n }",
"public static GridPane getRegistrationPersonPane() {\n return list;\n }",
"public static By getContactEmailLLInfo(String partNum){\n\t\t return By.xpath(\"//p[contains(.,'Insight Part #: \"+partNum+\"')]/following::div[@class='row expanded is-collapse-child'][1]//input[@type='email']\");\n\t }",
"WebElement getOrganizationField();",
"public static By getContactPhoneInLLInfo(String partNum){\n\t\treturn By.xpath(\"//p[contains(.,'Insight Part #: \"+partNum+\"')]/following::div[@class='row expanded is-collapse-child'][1]//input[@name='licenseInformation.CONTACT_PHONE']\");\n\t}",
"void removeControlPersonsExt(int i);",
"private ExtensibilityElement getExtElementFromDefinition(Definition definition){\n\t\ttry{\n\t\t\tMap<?, ?> serviceMap = definition.getAllServices();\n\t\t Iterator<?> serviceItr = serviceMap.entrySet().iterator();\n\t\t ExtensibilityElement extensibilityElement = null;\n\t\t \n\t\t while(serviceItr.hasNext()){\n\t\t \tMap.Entry<?, ?> svcEntry = (Map.Entry<?, ?>)serviceItr.next();\n\t\t \tService svc = (Service)svcEntry.getValue();\n\t\t \tMap<?, ?> portMap = svc.getPorts();\n\t\t \tIterator<?> portItr = portMap.entrySet().iterator();\n\t\t \t\n\t\t \twhile(portItr.hasNext()){\n\t\t \t\tMap.Entry<?, ?> portEntry = (Map.Entry<?, ?>)portItr.next();\n\t\t \t\tPort port = (Port)portEntry.getValue();\n\t\t \t\textensibilityElement = (ExtensibilityElement)port.getExtensibilityElements().get(0);\n\t\t \t}\n\t\t }\n\t\t return extensibilityElement;\n\t\t}catch(Exception e){\n\t\t\tlogger.error(e.getMessage(), e);\n\t\t\treturn null;\n\t\t}\n\t}",
"WebElement getNameField();",
"public org.openxmlformats.schemas.drawingml.x2006.main.CTOfficeArtExtensionList getExtLst()\n {\n synchronized (monitor())\n {\n check_orphaned();\n org.openxmlformats.schemas.drawingml.x2006.main.CTOfficeArtExtensionList target = null;\n target = (org.openxmlformats.schemas.drawingml.x2006.main.CTOfficeArtExtensionList)get_store().find_element_user(EXTLST$28, 0);\n if (target == null)\n {\n return null;\n }\n return target;\n }\n }",
"public HTMLInputElement getElementNombreServicio() { return this.$element_NombreServicio; }",
"private XMLElement findExtension(XMLElement pluginDescriptor, String epName) {\n for (XMLElement child : pluginDescriptor.getChildren()) {\n if (child.getName().equals(\"extension\") &&\n epName.equals(child.getStringAttribute(\"point\"))) {\n return child;\n }\n }\n return null;\n }",
"public RTWElementRef getAsElement(int i);",
"Entitlements getEntitlements();",
"public WebElement textboxABNegGroupBPooledRh()\r\n\t{\r\n\t\telement = driver.findElement(By.id(\"d8302171783270p4294967382\"));\r\n\t\treturn element;\r\n\t}",
"public XCN getPsl30_ResponsiblePhysicianID() { \r\n\t\tXCN retVal = this.getTypedField(30, 0);\r\n\t\treturn retVal;\r\n }",
"ch.crif_online.www.webservices.crifsoapservice.v1_00.AddressDescription addNewControlPersons();",
"public final native MVCArray<Element> getControls() /*-{\n return this.controls;\n }-*/;",
"public List controls(){\n return controls;\n }",
"public int getUlIdPerson()\r\n {\r\n return this._ulIdPerson;\r\n }",
"public String getNameLocator()\r\n\t{\r\n driver.findElement(By.name(\"fname\"));\r\n fName=driver.findElement(By.xpath(\"//input[@placeholder='Firstname']\")).getAttribute(\"placeholder\");\r\n return fName;\r\n\t}",
"String getElem();",
"private static Node getFirstExtensionNodeFromWorkingSet(Node extensionsNode, String workingSetName) {\n\t\tfinal String extensionTag = EXT_NAME;\n\t\tfinal String commentTag = \"#comment\";\n\t\tNode child;\n\t\tNodeList nodes = extensionsNode.getChildNodes();\n\t\tfor (int i = 0; i < nodes.getLength(); i++) {\n\t\t\tchild = nodes.item(i);\n\t\t\tif (commentTag.equals(child.getNodeName()) && workingSetName.equals(child.getNodeValue()))\n\t\t\t\tfor (int j = i; j < nodes.getLength(); j++) {\n\t\t\t\t\tchild = nodes.item(j);\n\t\t\t\t\tif (extensionTag.equals(child.getNodeName()))\n\t\t\t\t\t\treturn child;\n\t\t\t\t}\n\t\t}\n\t\treturn null;\n\t}",
"public org.apache.xmlbeans.XmlNCName xgetPart()\n {\n synchronized (monitor())\n {\n check_orphaned();\n org.apache.xmlbeans.XmlNCName target = null;\n target = (org.apache.xmlbeans.XmlNCName)get_store().find_element_user(PART$2, 0);\n return target;\n }\n }",
"public Collection<CustomHudElement> getCustomElements();",
"@XmlAnyElement ( lax = true )\n @JsonSerialize ( using = AnyElementSerializer.class )\n public List<Object> getExtensionElements() {\n return extensionElements;\n }",
"private static Node getFirstExtensionNode(Node extensionsNode) {\n\t\tfinal String extensionTag = EXT_NAME;\n\t\tNodeList nodes = extensionsNode.getChildNodes();\n\t\tfor (int i = 0; i < nodes.getLength(); i++) {\n\t\t\tNode child = nodes.item(i);\n\t\t\tif (extensionTag.equals(child.getNodeName()))\n\t\t\t\treturn child;\n\t\t}\n\t\treturn null;\n\t}",
"String getNameElement();",
"public String getExtID(){\n\t\treturn extID;\n\t}",
"public native Element getEl() /*-{\r\n\t\tvar proxy = this.@com.ait.toolkit.core.client.JsObject::getJsObj()();\r\n\t\tvar el = proxy.getEl();\r\n\t\treturn @com.ait.toolkit.sencha.shared.client.dom.ExtElement::instance(Lcom/google/gwt/core/client/JavaScriptObject;)(el);\r\n\t}-*/;",
"public WebElement getMemberSourceNameBox() {\n return locateWebElement(\"MemberSourceNameBox\");\n }",
"public Object getExtension(){\n\t\treturn ext;\n\t}",
"public XCN[] getAdministeringProvider() {\r\n \tXCN[] retVal = this.getTypedField(10, new XCN[0]);\r\n \treturn retVal;\r\n }",
"public CustomTxtField getJtfPhone() {\r\n\t\treturn jPanelFormClient.jtfPhone;\r\n\t}",
"@Override\n\tpublic AddAdditionalNameElement Elements() {\n\t\treturn new AddAdditionalNameElement(driver);\n\t}",
"public java.lang.String getExtuid() {\n\t\treturn this.extuid;\n\t}",
"public String getExtendGroupName()\n {\n return this.extendGroup_name;\n }",
"public CustomerLastNameElements getCustomerLastNameAccess() {\n\t\treturn pCustomerLastName;\n\t}",
"Extensions getExtensions() {\n return this.extensions;\n }",
"public HTMLElement getElementNroRegistros() { return this.$element_NroRegistros; }",
"public XCN getResponsiblePhysicianID() { \r\n\t\tXCN retVal = this.getTypedField(30, 0);\r\n\t\treturn retVal;\r\n }",
"private final native MVCArray<Element> getControls(int controlPosition) /*-{\n return this.controls[controlPosition];\n }-*/;",
"public IComponent getExtObject(){\n\t\treturn extObj;\n\t}",
"public String getExtensions()\n {\n return ext;\n }",
"public PersonType_Tp getPersonType() { return personType; }",
"public List<TLProperty> getElements();",
"public String[] getPrimaryInputExtensions();",
"public String getExtInfo() {\n return this.ExtInfo;\n }",
"public VoodooControl getEditField(String fieldName) throws Exception {\n\t\treturn ((RecordsModule)parentModule).getField(fieldName).editControl;\n\t}",
"public Extension getPrimaryExtension(LDAPProviderIF lp) {\r\n HashMap matchRules = new HashMap();\r\n matchRules.put(\"ciscoatProfileOwner\", this.userId);\r\n String[] searchCtrls = {\r\n \"ciscoCCNatExtensions\"};\r\n Vector answer = lp.sendRequest(\"ou=profiles, ou=CCN\", matchRules, true,\r\n searchCtrls);\r\n if (answer != null) {\r\n Vector ext = (Vector) ( (HashMap) answer.get(0)).get(\r\n \"ciscoCCNatExtensions\");\r\n if (ext != null) {\r\n return Extension.getExtension((String)ext.get(0));\r\n }\r\n }\r\n return null;\r\n }",
"ch.crif_online.www.webservices.crifsoapservice.v1_00.AddressDescription insertNewControlPersons(int i);",
"public String editRequiredElements(){\r\n \tthis.getLog().info(\"+ nextView: editM_Tabpage\");\r\n \treturn \"editM_Tabpage\";\r\n }",
"private JPanel getControlPanel() {\n if (controlPanel == null) {\n GridBagConstraints gridBagConstraints8 = new GridBagConstraints();\n gridBagConstraints8.gridx = 0;\n gridBagConstraints8.gridy = 1;\n GridBagConstraints gridBagConstraints7 = new GridBagConstraints();\n gridBagConstraints7.insets = new java.awt.Insets(5, 5, 5, 5);\n gridBagConstraints7.gridy = 0;\n gridBagConstraints7.weightx = 1.0D;\n gridBagConstraints7.fill = java.awt.GridBagConstraints.HORIZONTAL;\n gridBagConstraints7.gridx = 0;\n controlPanel = new JPanel();\n controlPanel.setBorder(javax.swing.BorderFactory.createTitledBorder(null, \"Add/Remove User(s)\",\n javax.swing.border.TitledBorder.DEFAULT_JUSTIFICATION,\n javax.swing.border.TitledBorder.DEFAULT_POSITION, null, PortalLookAndFeel.getPanelLabelColor()));\n controlPanel.setLayout(new GridBagLayout());\n controlPanel.add(getUserAddEditPanel(), gridBagConstraints7);\n controlPanel.add(getUserManagerButtonPanel(), gridBagConstraints8);\n }\n return controlPanel;\n }",
"public CustomerFirstNameElements getCustomerFirstNameAccess() {\n\t\treturn pCustomerFirstName;\n\t}",
"public Control[] getMemberControls() {\n/* 78 */ Control[] arrayOfControl = new Control[this.controls.length];\n/* */ \n/* 80 */ for (byte b = 0; b < this.controls.length; b++) {\n/* 81 */ arrayOfControl[b] = this.controls[b];\n/* */ }\n/* */ \n/* 84 */ return arrayOfControl;\n/* */ }",
"public static WebElement individualreg(WebDriver driver)\n\t{\n\t\telement = driver.findElement(By.xpath(\"//h4[contains(text(),'Individual Account')]\"));\n\t\treturn element;\n\t}",
"public CustomerContactNumber1Elements getCustomerContactNumber1Access() {\n\t\treturn pCustomerContactNumber1;\n\t}",
"private Person getPerson() {\n String fore = this.forenameCombo.getSelectedItem().toString();\n String sur = this.surnameCombo.getSelectedItem().toString();\n String sect = this.sectionCombo.getSelectedItem().toString();\n Person myPers = pers.getPerson(fore, sur, sect);\n return myPers;\n }",
"public java.lang.String getExt1()\n {\n return this.ext1;\n }",
"public HTMLElement getElementUsuarioModificacionEd() { return this.$element_UsuarioModificacionEd; }",
"public String getOperateperson() {\r\n return operateperson;\r\n }",
"Properties getExtensionProperties(Object metadataID) throws Exception;",
"int sizeOfControlPersonsArray();",
"private PointsOfContactEditorPanel getServicePointsOfContactEditorPanel() {\r\n if (this.servicePointsOfContactEditorPanel == null) {\r\n this.servicePointsOfContactEditorPanel = new PointsOfContactEditorPanel();\r\n }\r\n return this.servicePointsOfContactEditorPanel;\r\n }",
"public WebElement prEmailPrefrencesTab() {\n\t\treturn getElementfluent(By.xpath(\"//menuitem[@ui-sref='practitioner-page.settings.notification']\"));\n\t}",
"public XCN[] getRxa10_AdministeringProvider() {\r\n \tXCN[] retVal = this.getTypedField(10, new XCN[0]);\r\n \treturn retVal;\r\n }",
"public Boolean getIsExtensible() { \n\t\treturn getIsExtensibleElement().getValue();\n\t}",
"public List<Element> getCustomElements() {\r\n return customElements;\r\n }",
"public ElementStub getPrincipleElement()\n {\n return principleElement;\n }",
"public String getOperatepersonid() {\r\n return operatepersonid;\r\n }",
"public WebElement get_selectContactsWithFacebookButton(){\n\t\treturn selectContactsWithFacebookButton;\n\t}",
"public CustomerNumberElements getCustomerNumberAccess() {\n\t\treturn pCustomerNumber;\n\t}",
"public io.dstore.values.StringValueOrBuilder getPersonCharacteristicIdsOrBuilder() {\n return getPersonCharacteristicIds();\n }",
"public HTMLInputElement getElementCodigoServicio() { return this.$element_CodigoServicio; }",
"public XCN getAdministeringProvider(int rep) { \r\n\t\tXCN retVal = this.getTypedField(10, rep);\r\n\t\treturn retVal;\r\n }",
"Elem getElem();",
"public String getSrcPhoneExt() {\r\n return (String) getAttributeInternal(SRCPHONEEXT);\r\n }",
"@Override\r\n\tpublic List<WebElement> findElements() {\n\t\thandleContext(bean.getIn());\r\n\t\treturn driver.getRealDriver().findElements(bean.getBys().get(0));\r\n\t}",
"public String getExtAttribute10() {\n return (String) getAttributeInternal(EXTATTRIBUTE10);\n }",
"private JTextField getTxtIdE() {\n\t\tif (txtIdE == null) {\n\t\t\ttxtIdE = new JTextField();\n\t\t\ttxtIdE.setBounds(new Rectangle(140, 50, 125, 16));\n\t\t}\n\t\treturn txtIdE;\n\t}",
"private JPanel getServicePOCPanel() {\r\n if (this.servicePOCPanel == null) {\r\n GridBagConstraints gridBagConstraints4 = new GridBagConstraints();\r\n gridBagConstraints4.insets = new java.awt.Insets(0, 0, 0, 0);\r\n gridBagConstraints4.gridy = 0;\r\n gridBagConstraints4.fill = java.awt.GridBagConstraints.BOTH;\r\n gridBagConstraints4.weightx = 1.0;\r\n gridBagConstraints4.weighty = 1.0;\r\n gridBagConstraints4.gridx = 0;\r\n this.servicePOCPanel = new JPanel();\r\n this.servicePOCPanel.setLayout(new GridBagLayout());\r\n this.servicePOCPanel.add(getServicePointsOfContactEditorPanel(), gridBagConstraints4);\r\n }\r\n return this.servicePOCPanel;\r\n }",
"public java.util.List<Extension> extension() {\n return getList(Extension.class, FhirPropertyNames.PROPERTY_EXTENSION);\n }",
"public java.util.List<Extension> extension() {\n return getList(Extension.class, FhirPropertyNames.PROPERTY_EXTENSION);\n }",
"public java.util.List<Extension> extension() {\n return getList(Extension.class, FhirPropertyNames.PROPERTY_EXTENSION);\n }",
"public java.util.List<Extension> extension() {\n return getList(Extension.class, FhirPropertyNames.PROPERTY_EXTENSION);\n }",
"public java.util.List<Extension> extension() {\n return getList(Extension.class, FhirPropertyNames.PROPERTY_EXTENSION);\n }",
"public java.util.List<Extension> extension() {\n return getList(Extension.class, FhirPropertyNames.PROPERTY_EXTENSION);\n }",
"public java.util.List<Extension> extension() {\n return getList(Extension.class, FhirPropertyNames.PROPERTY_EXTENSION);\n }",
"public List getInputExtensions();",
"public HTMLDivElement getElementIdCreacionRegistro() { return this.$element_IdCreacionRegistro; }",
"public HTMLInputElement getElementBtnPrincipal() { return this.$element_BtnPrincipal; }",
"String getElement();"
] |
[
"0.70054287",
"0.61070615",
"0.5824978",
"0.56422424",
"0.55680144",
"0.548638",
"0.5483572",
"0.5420225",
"0.5405741",
"0.5281178",
"0.52805734",
"0.52513784",
"0.5219048",
"0.5132136",
"0.50610113",
"0.50115633",
"0.49319008",
"0.48981044",
"0.4868705",
"0.48659673",
"0.48546928",
"0.48416033",
"0.48054007",
"0.47652182",
"0.47271213",
"0.4713724",
"0.47109228",
"0.470044",
"0.46880156",
"0.46777347",
"0.46528772",
"0.46425855",
"0.464064",
"0.4629547",
"0.46287578",
"0.46280935",
"0.46174237",
"0.46118635",
"0.46070218",
"0.46034506",
"0.45998117",
"0.45990896",
"0.4588482",
"0.45783523",
"0.4565968",
"0.4563677",
"0.45582768",
"0.45538598",
"0.45521876",
"0.45408398",
"0.45295817",
"0.45262006",
"0.4518975",
"0.45184663",
"0.4516104",
"0.45157745",
"0.45155552",
"0.45134714",
"0.45122328",
"0.450394",
"0.44959354",
"0.44864726",
"0.44763273",
"0.44737646",
"0.44529393",
"0.4450413",
"0.44479474",
"0.44423503",
"0.4436991",
"0.44363636",
"0.44329706",
"0.44287646",
"0.4422732",
"0.44225168",
"0.4418152",
"0.4409242",
"0.44058177",
"0.44026953",
"0.4400386",
"0.43923533",
"0.43921474",
"0.4391925",
"0.43876088",
"0.438628",
"0.4378967",
"0.4374468",
"0.4373722",
"0.43720654",
"0.4370609",
"0.43676567",
"0.43676567",
"0.43676567",
"0.43676567",
"0.43676567",
"0.43676567",
"0.43676567",
"0.43661162",
"0.43612885",
"0.4344416",
"0.4344201"
] |
0.71490157
|
0
|
Returns number of "controlPersonsExt" element
|
int sizeOfControlPersonsExtArray();
|
{
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
}
|
[
"int sizeOfControlPersonsArray();",
"int getPersonInfoCount();",
"ch.crif_online.www.webservices.crifsoapservice.v1_00.ControlPerson getControlPersonsExtArray(int i);",
"public int getNumPersons() {\r\n\t\treturn this.persons.size();\r\n\t}",
"static public int numberOfPersons() {\n return personMap.size();\n }",
"public int getNumberOfControls() {\n\t\treturn controls.size();\n\t}",
"ch.crif_online.www.webservices.crifsoapservice.v1_00.ControlPerson[] getControlPersonsExtArray();",
"public int getExtensionsCount() {\n if (extensionsBuilder_ == null) {\n return extensions_.size();\n } else {\n return extensionsBuilder_.getCount();\n }\n }",
"public int getNumberOfElements();",
"Long getNumberOfElement();",
"public int getControlPointCount() {\r\n\t\t\treturn this.mControlPointXs.length;\r\n\t\t}",
"int getContactAddressCount();",
"int getContactListCount();",
"int getContactListCount();",
"int getContactListCount();",
"int getContactListCount();",
"ch.crif_online.www.webservices.crifsoapservice.v1_00.ControlPerson insertNewControlPersonsExt(int i);",
"@Override\n\tpublic int getNumberOfControls()\n\t{\n\t\treturn 1;\n\t}",
"ch.crif_online.www.webservices.crifsoapservice.v1_00.ControlPerson addNewControlPersonsExt();",
"void setControlPersonsExtArray(int i, ch.crif_online.www.webservices.crifsoapservice.v1_00.ControlPerson controlPersonsExt);",
"private int getNumberOfAccounts()\n {\n ProtocolProviderFactory factory =\n DictAccRegWizzActivator.getDictProtocolProviderFactory();\n\n return factory.getRegisteredAccounts().size();\n }",
"public int getProviderCount() {\n return providersPanel.getComponentCount();\n }",
"public Long getElementCount();",
"public int getNumPeople(){\r\n int num = 0;\r\n return num;\r\n }",
"public abstract Integer getNumberOfElements();",
"public abstract int getComponentCount();",
"public int getAdditionalBindingsCount() {\n return instance.getAdditionalBindingsCount();\n }",
"public int getSubElementCount() { throw new RuntimeException(\"Stub!\"); }",
"public int numFields() { \n\t\treturn element.getContentSize(); \n\t}",
"@Override\n\t\tpublic int getCount() {\n\t\t\treturn App.getInstance().getSettlements().size();\n\t\t}",
"int getContactCount();",
"public int getNrOfElements() {\n return this.nrOfElements;\n }",
"public static int numberOfElement()\n\t{\n\t\treturn REF_INT_STRING.size();\n\t}",
"public int getElementCount(final String elementLocator);",
"public int numContacts();",
"private int numOnglet(){\n int selIndex = jTabPane_Accueil.getSelectedIndex();\n return selIndex;\n }",
"int getPhoneCount();",
"int getPhoneCount();",
"public Integer cantidadPersonasEnMicro(){\r\n return pasajeros.size();\r\n }",
"public int getAdditionalBindingsCount() {\n return additionalBindings_.size();\n }",
"@java.lang.Override\n public int getExtensionsCount() {\n return extensions_.size();\n }",
"@Override\r\n\tpublic Integer getBind_ex_account_cnt() {\n\t\treturn super.getBind_ex_account_cnt();\r\n\t}",
"public int countRadioButtons() {\n try {\n\n\n if (radio.isEnabled()){\n\n radioBtnCounts=radio.findElements(By.tagName(tagname));\n System.out.println(radioBtnCounts.size());\n\n }\n\n\n } catch (Exception e) {\n e.printStackTrace();\n\n }\n return radioBtnCounts.size();\n }",
"public int getCountPhoneNumbers() {\n return count;\n }",
"public int getNumOfElements() {\n return numOfElements;\n }",
"public int getCount() {\n\t\treturn lstPara.size();\n\t}",
"public static int countAvailableTemplateElements() {\n return availableTemplateElements.size();\n }",
"int getNumberOfNecessaryAttributes();",
"public int countPerson() {\n\t\treturn count(GraphQueries.COUNT_PERSON);\n\t}",
"public int getRecCnt () {\n return (getRecCnt(\"1=1\"));\n }",
"int getPartsCount();",
"int getPartsCount();",
"public int getBindingCount() { List bindings = getBindings(false); return bindings!=null? bindings.size() : 0; }",
"int getAttributesCount();",
"int getAttributesCount();",
"int getConstraintsCount();",
"int getFieldCount();",
"int getInfoCount();",
"int getInfoCount();",
"int getInfoCount();",
"int sizeOfGeneralNameArray();",
"public int getTypeWithElementsCount() {\n\t\t\treturn this.TypeWithElements.size();\n\t\t}",
"org.apache.xmlbeans.XmlInteger xgetNumberOfInstallments();",
"int getPropertiesCount();",
"public int getNumElements() {\n\t\treturn numElements;\n\t}",
"public int getNumberOfComponents();",
"public int getNumElements()\n {\n return numElements;\n }",
"int getTagCount();",
"void removeControlPersonsExt(int i);",
"public int getNumElements() {\n return theMap.size();\n }",
"int getAttributeFieldMappingsCount();",
"public int getNumber() {\r\n\t\treturn page.getNumberOfElements();\r\n\t}",
"int getEditsCount();",
"org.apache.xmlbeans.XmlInt xgetNumberOfResults();",
"int getDetailsCount();",
"int getDetailsCount();",
"int getParticipantsCount();",
"int getParticipantsCount();",
"public static int getNumberOfProperty(int i){\n\t\t int temp = 0;\r\n\t\t for(int x = 0; x < whoOwnsIt.length; x++){\r\n\t\t\t if(whoOwnsIt[x] == i){\r\n\t\t\t\t temp++;\r\n\t\t\t }\r\n\t\t }\r\n\t\t return temp;\r\n\t }",
"public native int getSectionCount() /*-{\n\t\tvar jso = this.@com.emitrom.ti4j.core.client.ProxyObject::getJsObj()();\n\t\treturn jso.sectionCount;\n }-*/;",
"@Override\n\tpublic int getFindAllCount() {\n\t\tint num = rfi.getFindAllCount();\n\t\tlogger.info(\"select all registration form count:\" + num);\n\t\treturn num;\n\t}",
"public int getNumElements() {\n return numElements;\n }",
"public int getNumElements() {\n return numElements;\n }",
"int getOptionsCount();",
"int getOptionsCount();",
"int getOptionsCount();",
"public int getBoundContainerElementCount() {\n return nestedElements.size();\n }",
"public int getEquipmentCount() {\r\n\t\tint ret = 0;\r\n\t\tPerson p = model.getData();\r\n\t\tif ( p!=null ) {\r\n\t\t\tret = p.getEquipmentCount();\r\n\t\t}\r\n\t\treturn ret;\r\n\t}",
"public int IORegCount() { return IO_REG_COUNT; }",
"public int qureyNumOfInspectors() {\r\n\t\tif (DBConnection.conn == null) {\r\n\t\t\tDBConnection.openConn();\r\n\t\t}\r\n\t\tint sum = 0;\r\n\t\ttry {\r\n\t\t\tString sql = \"select count(*) from InspectionPersonnel\";\r\n\t\t\tps = DBConnection.conn.prepareStatement(sql);\r\n\t\t\trs = ps.executeQuery();\r\n\t\t\twhile (rs.next()) {\r\n\t\t\t\tsum = rs.getInt(1);\r\n\t\t\t}\r\n\t\t\tDBConnection.closeResultSet(rs);\r\n\t\t\tDBConnection.closeStatement(ps);\r\n\t\t\tDBConnection.closeConn();\r\n\t\t\treturn sum;\r\n\t\t} catch (SQLException e) {\r\n\t\t\te.printStackTrace();\r\n\t\t\treturn 0;\r\n\t\t}\r\n\t}",
"int getInputsCount();",
"int getInputsCount();",
"int getInputsCount();",
"public int getNumGruppoPacchetti();",
"public static int numElements_entries_id() {\n return 11;\n }",
"public int count () {\n return member_id_list.length;\r\n }",
"int getDelegateesCount();",
"int getFieldsCount();",
"int getFieldsCount();",
"int getGroupCount();"
] |
[
"0.69262755",
"0.65279335",
"0.6339189",
"0.6127169",
"0.6089329",
"0.5972481",
"0.591932",
"0.5911664",
"0.5858981",
"0.58238006",
"0.5775095",
"0.57514524",
"0.5728135",
"0.5728135",
"0.5728135",
"0.5728135",
"0.5723703",
"0.5664328",
"0.5654301",
"0.5640226",
"0.5636717",
"0.5625528",
"0.5615298",
"0.56149673",
"0.560011",
"0.5596225",
"0.55957633",
"0.55898315",
"0.5587774",
"0.5584438",
"0.5574082",
"0.55729365",
"0.5523438",
"0.5503596",
"0.5490824",
"0.54852027",
"0.54722494",
"0.54722494",
"0.5469222",
"0.5465135",
"0.5456061",
"0.54520404",
"0.5438232",
"0.54256797",
"0.5424937",
"0.542309",
"0.5421328",
"0.54203045",
"0.54187435",
"0.54166895",
"0.5411901",
"0.5411901",
"0.5408362",
"0.5398462",
"0.5398462",
"0.539751",
"0.5397331",
"0.5396228",
"0.5396228",
"0.5396228",
"0.5395831",
"0.5390869",
"0.53713095",
"0.5368051",
"0.53646237",
"0.5363945",
"0.5355176",
"0.5343751",
"0.5336129",
"0.5333122",
"0.5326782",
"0.5316812",
"0.53075594",
"0.5307177",
"0.5298719",
"0.5298719",
"0.52906585",
"0.52906585",
"0.5285263",
"0.5283499",
"0.5283478",
"0.52820057",
"0.52820057",
"0.52726877",
"0.52726877",
"0.52726877",
"0.52724355",
"0.5265849",
"0.52647156",
"0.52566093",
"0.5256443",
"0.5256443",
"0.5256443",
"0.52434",
"0.5241024",
"0.5234026",
"0.52317095",
"0.52236533",
"0.52236533",
"0.5223333"
] |
0.7610635
|
0
|
Sets array of all "controlPersonsExt" element
|
void setControlPersonsExtArray(ch.crif_online.www.webservices.crifsoapservice.v1_00.ControlPerson[] controlPersonsExtArray);
|
{
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
}
|
[
"void setControlPersonsExtArray(int i, ch.crif_online.www.webservices.crifsoapservice.v1_00.ControlPerson controlPersonsExt);",
"void setControlPersonsArray(int i, ch.crif_online.www.webservices.crifsoapservice.v1_00.AddressDescription controlPersons);",
"ch.crif_online.www.webservices.crifsoapservice.v1_00.ControlPerson getControlPersonsExtArray(int i);",
"void setControlPersonsArray(ch.crif_online.www.webservices.crifsoapservice.v1_00.AddressDescription[] controlPersonsArray);",
"ch.crif_online.www.webservices.crifsoapservice.v1_00.ControlPerson[] getControlPersonsExtArray();",
"ch.crif_online.www.webservices.crifsoapservice.v1_00.ControlPerson addNewControlPersonsExt();",
"public final native void setControls(MVCArray<Element> controls) /*-{\n this.controls = controls;\n }-*/;",
"public void setPeople(Person[] persons) {\n setUser(persons[0]);\n\n for (int i = 0; i < persons.length; i++) {\n people.put(persons[i].getPersonID(), persons[i]);\n }\n\n setSpouse();\n setFamilyTree();\n }",
"void removeControlPersonsExt(int i);",
"int sizeOfControlPersonsExtArray();",
"public void setPerson(Person[] person) {\n\t\tthis.person = person;\n\t}",
"ch.crif_online.www.webservices.crifsoapservice.v1_00.AddressDescription getControlPersonsArray(int i);",
"ch.crif_online.www.webservices.crifsoapservice.v1_00.ControlPerson insertNewControlPersonsExt(int i);",
"public void setPreferences(Person... person) {\r\n int count = 0;\r\n for (Person p : person) {\r\n preferences[count] = p;\r\n count++;\r\n }\r\n }",
"ch.crif_online.www.webservices.crifsoapservice.v1_00.AddressDescription[] getControlPersonsArray();",
"public void setPersonnames(List<Personname> personnames) {\r\n\r\n this.personnames = personnames;\r\n\r\n }",
"public void fillPropertyArray()\n \t{\n \t\tsuper.fillPropertyArray();\n \t\tsuper.fillPropertyArray( gui );\n \t}",
"ch.crif_online.www.webservices.crifsoapservice.v1_00.AddressDescription addNewControlPersons();",
"private void setPersonsInPool(ArrayList<Person> personsInPool) {\n this.personsInPool = personsInPool;\n }",
"protected void setContacts(ArrayList<Contact> contacts){\n this.contacts = contacts;\n }",
"private void initView(List<PersonWrapper> listOfPersons) {\n adapter = new PersonAdapter(context, listOfPersons);\n mPersonsView.setAdapter(adapter);\n adapter.notifyDataSetChanged();\n }",
"void removeControlPersons(int i);",
"private void setPromptFields()\n\t{\n\t\tpromptFields = new JTextField[promptNum];\n\t\tfor(int i = 0; i < promptFields.length; i++)\n\t\t{\n\t\t\tpromptFields[i] = new JTextField(20);\n\t\t}\n\t}",
"public void DesativaCamposCliente(){\n JTextField[] campos = camposCliente();\n \n for(int i = 0; i<campos.length; i++){\n campos[i].setEnabled(false);\n }\n \n \n }",
"public void setControlVars(java.util.List<Object> controlValues);",
"ch.crif_online.www.webservices.crifsoapservice.v1_00.AddressDescription insertNewControlPersons(int i);",
"public JTextField[] camposCliente(){\n JTextField campos [] = new JTextField[]{txtCliCNPJ, txtCliDDD, \n txtCliDDDTel2, txtCliNFant, txtCliResp,\n txtCliRz, txtCliTel, txtCliTel2};\n \n return campos;\n }",
"public void initPeople() {\n this.people = new ArrayList<>();\n this.people.addAll(services.getPeopleList());\n }",
"public void setAll(Person person) {\n this.lastName = person.getLastName();\n this.firstName = person.getFirstName();\n this.address = person.getAddress();\n this.tid = person.getOid();\n this.phone = person.getPhone();\n this.mobile = person.getMobile();\n this.email = person.getEmail();\n }",
"void setSPExtAttributeValues(\n String realm, \n String fedId, \n Map spExtvalues,\n String location\n ) throws AMConsoleException;",
"public void setExtensions( String extensions[] )\n\t{\n\t\tthis.extensions = extensions;\n\t}",
"private void initControls() {\n txtFirstName.setDocument(new clsTextFieldLimit(255));\n txtMiddleName.setDocument(new clsTextFieldLimit(255));\n txtLastName.setDocument(new clsTextFieldLimit(255));\n txtStreet.setDocument(new clsTextFieldLimit(255));\n txtPostcode.setDocument(new clsTextFieldLimit(255));\n txtCity.setDocument(new clsTextFieldLimit(255));\n txtCountry.setDocument(new clsTextFieldLimit(255));\n \n //Only allow JTable the selection of one single row.\n tblContacts.setSelectionMode(ListSelectionModel.SINGLE_SELECTION);\n //Make next column head auto-resizable.\n tblContacts.setAutoResizeMode(JTable.AUTO_RESIZE_NEXT_COLUMN);\n //Define a contact listener for handling row changes.\n this.pContactSelectionModel = tblContacts.getSelectionModel();\n this.pContactSelectionModel.addListSelectionListener(new tblContactsListSelectionHandler());\n tblContacts.setSelectionModel(pContactSelectionModel);\n //Set the mouse scroll speed of the JScrollPane.\n scrRight.getVerticalScrollBar().setUnitIncrement(10);\n }",
"private void setupListeners() {\n\t\tfor (int i = 0; i < _controlPoints.length; i++) {\n\t\t\taddControlPointListener(_controlPoints[i][0], i);\n\t\t\taddControlPointListener(_controlPoints[i][1], i);\n\t\t}\n\t\t\n\t\tfor (int i = 0; i < _selectionButtons.length; i++) {\n\t\t\taddPointSelectionButtonListener(i);\n\t\t}\n\t}",
"private void setComponentArray(JComponent[] components, String[] values)\r\n {\r\n\t int len = Math.min(components.length, values.length);\r\n\t for (int i=0; i<len; i++)\r\n\t {\r\n\t\t setComponentValue(components[i], values[i]);\r\n\t }\r\n }",
"int sizeOfControlPersonsArray();",
"void setIDPExtAttributeValues(\n String realm, \n String fedId, \n Map idpExtValues,\n String location\n ) throws AMConsoleException;",
"public void setPresentationAsArray(Object[] presentation);",
"protected void setComboBoxes() { Something was changed in the row.\n //\n final Map<String, Integer> fields = new HashMap<>();\n\n // Add the currentMeta fields...\n fields.putAll(inputFields);\n\n Set<String> keySet = fields.keySet();\n List<String> entries = new ArrayList<>(keySet);\n\n String[] fieldNames = entries.toArray(new String[entries.size()]);\n Const.sortStrings(fieldNames);\n // Key fields\n ciKey[2].setComboValues(fieldNames);\n ciKey[3].setComboValues(fieldNames);\n }",
"private void setMemberInformationPanelEditableTrue() {\n \n fNameTF.setEditable(true);\n lNameTF.setEditable(true);\n cprTF.setEditable(true);\n cityTF.setEditable(true);\n adressTF.setEditable(true);\n emailTF.setEditable(true);\n memberIdTF.setEditable(true);\n fNameTF.setEditable(true);\n phoneTF.setEditable(true);\n postalCodeTF.setEditable(true);\n adressNrTF.setEditable(true);\n changePictureBTN.setEnabled(true);\n }",
"public void setar_campos() {\n int setar = tblEmpresas.getSelectedRow();\n txtEmpId.setText(tblEmpresas.getModel().getValueAt(setar, 0).toString());\n txtEmpNome.setText(tblEmpresas.getModel().getValueAt(setar, 1).toString());\n txtEmpCNPJ.setText(tblEmpresas.getModel().getValueAt(setar, 2).toString());\n txtEmpEnd.setText(tblEmpresas.getModel().getValueAt(setar, 3).toString());\n txtEmpTel.setText(tblEmpresas.getModel().getValueAt(setar, 4).toString());\n txtEmpEmail.setText(tblEmpresas.getModel().getValueAt(setar, 5).toString());\n\n // a linha abaixo desabilita o botao add\n btnAdicionar.setEnabled(false);\n }",
"public void addControls() {\n }",
"public ArrayRegister(int size) {\r\n persons = new Person[size];\r\n count = 0;\r\n }",
"public void setPerson(final Personne person) {\n\t\tthis.bindingGroup.unbind();\n\t\tthis.personne = person;\n\t\tthis.initComponentBindings();\n\t\tthis.benevolatsTable.setBenevolats(ObservableCollections.observableList(this.personne.getBenevolatList()));\n\t}",
"public void setEditableFields(EditableFields fields) {\n\n List<AbstractField> allFields = Arrays.asList(firstName, lastName, legalFirstName, legalLastName,\n nameIsLegalName, fanName, badgeNumber, phoneNumber, birthDate, email, zip, emergencyContactFullName,\n emergencyContactPhone, parentFormReceived, parentFullName, parentPhone, paidAmount,\n compedBadge, checkedIn);\n switch (fields) {\n case ALL:\n for (AbstractField field : allFields) {\n field.setEnabled(true);\n// field.setValidationVisible(true);\n }\n badgeNumber.setEnabled(false);\n badge.setEnabled(true);\n break;\n case NONE:\n for (AbstractField field : allFields) {\n field.setEnabled(false);\n }\n badgeNumber.setEnabled(false);\n badge.setEnabled(false);\n }\n }",
"@Override\n public void addAllElements() {\n addAllSoftwareSystems();\n addAllPeople();\n }",
"protected void setArray (JField jf, Vector nodes, Object obj, XmlDescriptor desc,\n\t\t\t\t\t\t\t UnmarshalContext context) throws Exception {\n\t\tif (nodes.size () == 0) return;\n\t\tClass thisClass = obj.getClass();\n\n\t\tObject theArray = Array.newInstance (getAClass (jf.getObjectType ()), nodes.size ());\n\t\tObject value = null;\n Method m = null;\n\n\t\tm = getASetMethod (thisClass, \"set\" + jf.getGetSet(), theArray.getClass ());\n\n\t\tfor (int i=0; i< nodes.size (); i++) {\n\t\t\t// W3CXmlNode ..\n\t\t\tXmlNode thisNode = ((XmlNode)nodes.elementAt (i));\n\t\t\tif (jf instanceof JCompositeField) {\n\t\t\t\tXmlDescriptor fieldDesc = (XmlDescriptor)this.classList.get (jf.getObjectType());\n\t\t\t\tvalue = unmarshal (thisNode, context, fieldDesc);\n\t\t\t}\n\t\t\telse {\n\t\t\t\tvalue = getPrimitive (thisNode, jf, context);\n\t\t\t\t\n\t\t\t}\n\n\t\t\tArray.set (theArray, i, value);\n\t\t}\n\t\tm.invoke(obj, new Object[]{theArray});\n\t}",
"public void setWorkPatterns(){\r\n\t\tComboItem[] comboItems;\r\n\t\t//array list is used as interim solution due to the fact that regular arrays size is immutable\r\n\t\tArrayList<ComboItem> itemList = new ArrayList<ComboItem>();\r\n\t\t\r\n\t\ttry {\r\n\t\t\t//Query database and populate array list with values. \r\n\t\t\tResultSet result = WORK_PATTERNS_OPTIONS.executeQuery();\r\n\t\t\twhile(result.next()){\r\n\t\t\t\titemList.add(new ComboItem(result.getInt(1), result.getString(2)));\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\t//Initialise new array with needed size\r\n\t\t\tcomboItems = new ComboItem[itemList.size()];\r\n\t\t\t//convert arraylist object into array\r\n\t\t\tcomboItems = itemList.toArray(comboItems);\r\n\t\t} catch (SQLException e) {\r\n\t\t\t//initialise empty array to be returned\r\n\t\t\tcomboItems = new ComboItem[0];\r\n\t\t\tlogger.log(Level.SEVERE, e.getMessage());\r\n\t\t} \r\n\t\t\r\n\t\tthis.work_patterns = comboItems;\r\n\t}",
"private void initControls()\r\n\t{\r\n\t\tif (deltager != null)\r\n\t\t{\r\n\t\t\ttxfInput[0].setText(deltager.getNavn());\r\n\t\t\ttxfInput[1].setText(\"\" + deltager.getTelefonNr());\r\n\t\t\ttxfInput[2].setText(deltager.getAdresse().getVej());\r\n\t\t\ttxfInput[3].setText(\"\" + deltager.getAdresse().getNr());\r\n\t\t\ttxfInput[4].setText(deltager.getAdresse().getEtage());\r\n\t\t\ttxfInput[5].setText(\"\" + deltager.getAdresse().getPostNr());\r\n\t\t\ttxfInput[6].setText(deltager.getAdresse().getBy());\r\n\t\t\ttxfInput[7].setText(deltager.getAdresse().getLand());\r\n\t\t} \r\n\t\telse\r\n\t\t{\r\n\t\t\ttxfInput[0].clear();\r\n\t\t\ttxfInput[1].clear();\r\n\t\t\ttxfInput[2].clear();\r\n\t\t\ttxfInput[3].clear();\r\n\t\t\ttxfInput[4].clear();\r\n\t\t\ttxfInput[5].clear();\r\n\t\t\ttxfInput[6].clear();\r\n\t\t\ttxfInput[7].clear();\r\n\t\t}\r\n\t}",
"@Override\n\tpublic void setArray(ArrayList<Button> list) {\n\t\tsuper.setArray(list);\n\t}",
"public void setLoadedBootstrapExtensions(BootstrapExtension...bootstrapExtensions) {\r\n \tthis.loadedBootstrapExtensions = bootstrapExtensions;\r\n }",
"private static void test2(Person p, int x, int[] arr) {\r\n\t\tString name = \"original\";\r\n\t\tp.setFirstName(name);\r\n\t}",
"void setGeneralNameArray(int i, org.apache.geronimo.corba.xbeans.csiv2.tss.TSSGeneralNameType generalName);",
"public void setPeople(People people,String id)\n {\n myCamp = people;\n this.id = id;\n }",
"@Override\npublic void setUIComponentSelected(ObjectAdapter[] child) {\n\t\n}",
"public Builder setPersonCharacteristicIds(io.dstore.values.StringValue value) {\n if (personCharacteristicIdsBuilder_ == null) {\n if (value == null) {\n throw new NullPointerException();\n }\n personCharacteristicIds_ = value;\n onChanged();\n } else {\n personCharacteristicIdsBuilder_.setMessage(value);\n }\n\n return this;\n }",
"public void setPersons(Hashtable<String, Person> persons) {\r\n\t\tthis.persons = persons;\r\n\t}",
"void setGeneralNameArray(org.apache.geronimo.corba.xbeans.csiv2.tss.TSSGeneralNameType[] generalNameArray);",
"protected void setArray(Object[] array){\r\n\t \tthis.array = array;\r\n\t }",
"private void setEnableComponents(){\r\n awardAddDocumentForm.cmbDocumentType.setEnabled(true);\r\n awardAddDocumentForm.txtDescription.setEditable(true);\r\n awardAddDocumentForm.txtFileName.setEditable(false);\r\n awardAddDocumentForm.btnUpload.setEnabled(true);\r\n awardAddDocumentForm.btnOk.setEnabled(true);\r\n awardAddDocumentForm.btnCancel.setEnabled(true);\r\n awardAddDocumentForm.btnView.setEnabled(false);\r\n }",
"public void setPersonData(List<Person> persons)\n\t{\n\t\t//Count number of people having their birthday in the same month.\n\t\tint[] monthCounter = new int[12];\n\t\tfor(Person p: persons)\n\t\t{\n\t\t\tint month = p.getBirthday().getMonthValue() - 1;\n\t\t\tmonthCounter[month]++;\n\t\t}\n\t\t\n\t\tXYChart.Series<String, Integer> series = new XYChart.Series<>();\n\t\t\n\t\t//Creates xy chart object for each month and adds to the series.\n\t\tfor(int i = 0; i< monthCounter.length; i++)\n\t\t\t{\n\t\t\tseries.getData().add(new XYChart.Data<>(monthNames.get(i), monthCounter[i]));\n\t\t\t}\n\t\tbarChart.getData().add(series);\n\t}",
"public void setAllNodesArray(ArrayList<Student> x) {\n students = x;\n }",
"public void setObservers(ArrayList<Observer> observers) { \n\t\tGame.ui = observers; \n\t}",
"private void init_FocusArray(int opc){\r\n Gui.setFieldsType(opc);\r\n //Se definen los NODOS del formulario que estaran activos segun la operacion\r\n //y se inicializa la posicion del foco\r\n Node[] nodos = null;\r\n switch(opc){\r\n case 0: //SOLO LECTURA\r\n nodos = new Node[]{\r\n tf_nroguia, dt_relacion, tf_nrorguia\r\n };\r\n break;\r\n case 1: //NUEVO\r\n nodos = new Node[]{\r\n tf_nroguia, dt_relacion, tf_nrorguia\r\n };\r\n break;\r\n case 2: //EDITAR\r\n nodos = new Node[]{\r\n tf_nroguia, dt_relacion, tf_nrorguia\r\n };\r\n break;\r\n } \r\n switch (opc){\r\n case 1: \r\n case 2: \r\n case 3:\r\n Gui.setFields(nodos); \r\n Gui.setFieldFocused(0);\r\n Gui.setFieldsSize(nodos.length);\r\n break;\r\n }\r\n\r\n //Inicializo los Listeners de cada uno de los NODOS del formulario\r\n for(int i=0;i < Gui.getFields().length; i++){\r\n FocusPropertyChangeListener fpcl = new FocusPropertyChangeListener(Gui.getFields()[i],i);\r\n Gui.getFields()[i].focusedProperty().addListener(fpcl); \r\n }\r\n }",
"private void initControlList() {\n this.controlComboBox.addItem(CONTROL_PANELS);\n //this.controlComboBox.addItem(PEER_TEST_CONTROL);\n //this.controlComboBox.addItem(DISAGGREGATION_CONTROL);\n this.controlComboBox.addItem(AXIS_CONTROL);\n this.controlComboBox.addItem(DISTANCE_CONTROL);\n this.controlComboBox.addItem(SITES_OF_INTEREST_CONTROL);\n this.controlComboBox.addItem(CVM_CONTROL);\n this.controlComboBox.addItem(X_VALUES_CONTROL);\n }",
"public void construirSetOperadores() {\n\n\t\tlabeltituloSeleccionOperador = new JLabel();\n\n\t\tcomboOperadores = new JComboBox(operadores);// creamos el Cuarto combo,y le pasamos un array de cadenas\n\t\tcomboOperadores.setSelectedIndex(0);// por defecto quiero visualizar el Cuarto item\n\t\t\n\n\t\tlabeltituloSeleccionOperador.setText(\"Seleccione el operador que relaciona ambas reglas\");\n\t\tpanelCentral.add(labeltituloSeleccionOperador);\n\t\tlabeltituloSeleccionOperador.setBounds(30, 30, 50, 20);\n\t\tpanelCentral.add(comboOperadores);\n\t\tcomboOperadores.setBounds(100, 30, 150, 24);\n\t\t\n\n\t\tpanelCentral.setBounds(10, 50, 370, 110);\n\n\t\t/* Creamos el objeto controlador, para manejar los eventos */\n\t\tControlDemoCombo controlDemoCombo = new ControlDemoCombo(this);\n\t\tcomboOperadores.addActionListener(controlDemoCombo);// agregamos escuchas\n\n\t}",
"public void setExtencionMulti(ArrayList<String> listExtencion) {\n if (listExtencion.size() > 0) {\n for (String i : listExtencion) {\n switch (i) {\n case \"MPEG\": {\n frameSearch.getPnAdvanced().getChAtReading().setSelected(true);\n break;\n }\n case \"WMV\": {\n frameSearch.getPnAdvanced().getChAtSistema().setSelected(true);\n break;\n }\n case \"MP3\": {\n frameSearch.getPnAdvanced().getChAtComprimido().setSelected(true);\n break;\n }\n case \"MP4\": {\n frameSearch.getPnAdvanced().getChAtVideo().setSelected(true);\n break;\n }\n case \"ASF\": {\n frameSearch.getPnAdvanced().getChAtModify().setSelected(true);\n break;\n }\n case \"AVI\": {\n frameSearch.getPnAdvanced().getChAtHidden().setSelected(true);\n break;\n }\n case \"DIVX\": {\n frameSearch.getPnAdvanced().getChAtFolder().setSelected(true);\n\n break;\n }\n case \"FLV\": {\n frameSearch.getPnAdvanced().getChAtEncriptado().setSelected(true);\n break;\n }\n default: {\n break;\n }\n }\n }\n }\n }",
"void setListOfServiceElements(com.icare.eai.schema.om.evSORequest.ListOfServiceElementsComplexType listOfServiceElements);",
"void setData(List<Person> data);",
"public ContributorTrackingSet(NavigatorContentService aContentService, Object[] elements) {\n for (int i = 0; i < elements.length; i++) super.add(elements[i]);\n contentService = aContentService;\n }",
"@SuppressWarnings(\"unchecked\")\n // <editor-fold defaultstate=\"collapsed\" desc=\"Generated Code\">//GEN-BEGIN:initComponents\n private void initComponents() {\n\n jLabel1 = new javax.swing.JLabel();\n tiposPersona = new javax.swing.JComboBox();\n agregarTipoPersona = new javax.swing.JButton();\n jLabel2 = new javax.swing.JLabel();\n campoNombres = new javax.swing.JTextField();\n jLabel3 = new javax.swing.JLabel();\n campoApellidos = new javax.swing.JTextField();\n jLabel4 = new javax.swing.JLabel();\n campoDireccion = new javax.swing.JTextField();\n jLabel5 = new javax.swing.JLabel();\n campoCUI = new javax.swing.JTextField();\n jLabel6 = new javax.swing.JLabel();\n campoNIT = new javax.swing.JTextField();\n jLabel7 = new javax.swing.JLabel();\n campoCorreo = new javax.swing.JTextField();\n jLabel8 = new javax.swing.JLabel();\n campoTelefono1 = new javax.swing.JTextField();\n jLabel9 = new javax.swing.JLabel();\n campoTelefono2 = new javax.swing.JTextField();\n botonCancelar = new javax.swing.JButton();\n botonAceptar = new javax.swing.JButton();\n botonLimpiar = new javax.swing.JButton();\n\n setTitle(\"Modificar persona\");\n\n jLabel1.setText(\"Tipo persona:\");\n\n tiposPersona.setModel(new javax.swing.DefaultComboBoxModel(new String[] { \"Item 1\", \"Item 2\", \"Item 3\", \"Item 4\" }));\n\n agregarTipoPersona.setText(\"Nuevo\");\n\n jLabel2.setText(\"Nombre(s):\");\n\n jLabel3.setText(\"Apellido(s):\");\n\n jLabel4.setText(\"Dirección:\");\n\n jLabel5.setText(\"CUI:\");\n\n jLabel6.setText(\"NIT:\");\n\n jLabel7.setText(\"Correo:\");\n\n jLabel8.setText(\"Telefono 1:\");\n\n jLabel9.setText(\"Telefono 2:\");\n\n botonCancelar.setText(\"Cancelar\");\n\n botonAceptar.setText(\"Aceptar\");\n\n botonLimpiar.setText(\"Limpiar campos\");\n\n javax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane());\n getContentPane().setLayout(layout);\n layout.setHorizontalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(layout.createSequentialGroup()\n .addContainerGap()\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)\n .addComponent(jLabel9)\n .addComponent(jLabel8)\n .addComponent(jLabel7)\n .addComponent(jLabel6)\n .addComponent(jLabel5)\n .addComponent(jLabel4)\n .addComponent(jLabel3)\n .addComponent(jLabel2)\n .addComponent(jLabel1))\n .addGap(18, 18, 18)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)\n .addComponent(tiposPersona, 0, 200, Short.MAX_VALUE)\n .addComponent(campoNombres)\n .addComponent(campoApellidos)\n .addComponent(campoDireccion)\n .addComponent(campoCUI)\n .addComponent(campoNIT)\n .addComponent(campoCorreo)\n .addComponent(campoTelefono1)\n .addComponent(campoTelefono2))\n .addGap(18, 18, 18)\n .addComponent(agregarTipoPersona)\n .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))\n .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, layout.createSequentialGroup()\n .addContainerGap(101, Short.MAX_VALUE)\n .addComponent(botonLimpiar)\n .addGap(18, 18, 18)\n .addComponent(botonAceptar)\n .addGap(18, 18, 18)\n .addComponent(botonCancelar)\n .addContainerGap())\n );\n layout.setVerticalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(layout.createSequentialGroup()\n .addContainerGap()\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(jLabel1)\n .addComponent(tiposPersona, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(agregarTipoPersona))\n .addGap(18, 18, 18)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(jLabel2)\n .addComponent(campoNombres, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGap(18, 18, 18)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(jLabel3)\n .addComponent(campoApellidos, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGap(18, 18, 18)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(jLabel4)\n .addComponent(campoDireccion, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGap(18, 18, 18)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(jLabel5)\n .addComponent(campoCUI, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGap(18, 18, 18)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(jLabel6)\n .addComponent(campoNIT, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGap(18, 18, 18)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(jLabel7)\n .addComponent(campoCorreo, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGap(18, 18, 18)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(jLabel8)\n .addComponent(campoTelefono1, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGap(18, 18, 18)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(jLabel9)\n .addComponent(campoTelefono2, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, 42, Short.MAX_VALUE)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(botonCancelar)\n .addComponent(botonAceptar)\n .addComponent(botonLimpiar))\n .addContainerGap())\n );\n\n pack();\n }",
"private void setPersonPagerData() {\n viewPageAdaptor = new ViewPagePersonAdaptor(getChildFragmentManager());\n viewPagerPerson.setAdapter(viewPageAdaptor);\n tbPerson.setupWithViewPager(viewPagerPerson);\n }",
"public void setSelectPresentationValueList(java.lang.Object[] selectPresentationValueList);",
"public void setPeopleAct(ArrayList<CastMember> peopleAct) \n\t{\n\t\tthis.peopleAct = peopleAct;\n\t}",
"@Override\n\tpublic void setResponsibles(ArrayList<Responsible> responsibles) {\n\n\t}",
"private void setData() {\n populateInterfaceElements();\n }",
"public void setPeople(com.hps.july.persistence.People aPeople) throws java.rmi.RemoteException {\n\tthis.getPeopleLink().set(aPeople);\n}",
"public abstract void setNamedComponents(Map<String,List<Component>> namedComponents);",
"private void addDefaultPerson() {\n personNames.add(\"you\");\n personIds.add(STConstants.PERSON_NULL_ID);\n personPhotos.add(null);\n personSelections.add(new HashSet<Integer>()); \n }",
"private void initExtensionNamesSet()\n {\n m_sysFuncs = getJexlFunctions(SYS_CONTEXT);\n Set<String> skeys = m_sysFuncs.keySet();\n for (String key : skeys)\n m_extNameSet.add(SYS + \".\" + key);\n m_userFuncs = getJexlFunctions(USER_CONTEXT);\n Set<String> ukeys = m_userFuncs.keySet();\n for (String key: ukeys)\n m_extNameSet.add(USER + \".\" + key); \n }",
"private static void setData() {\n attributeDisplaySeq = new ArrayList<String>();\n attributeDisplaySeq.add(\"email\");\n\n signUpFieldsC2O = new HashMap<String, String>();\n signUpFieldsC2O.put(\"Email\",\"email\");\n\n\n signUpFieldsO2C = new HashMap<String, String>();\n signUpFieldsO2C.put(\"email\", \"Email\");\n\n\n }",
"public void setFieldsByName(String[] fields)\n\t{\n\t\tList<String> localFields = Arrays.asList(fields);\n\t\tsetFieldsByName(localFields);\n\t}",
"public void setSelectPresentationLabelList(java.lang.Object[] selectPresentationLabelList);",
"public void setar_campos()\n {\n int setar = tblCliNome.getSelectedRow();\n txtCliId.setText(tblCliNome.getModel().getValueAt(setar, 0).toString());\n txtCliNome.setText(tblCliNome.getModel().getValueAt(setar, 1).toString());\n txtCliRua.setText(tblCliNome.getModel().getValueAt(setar, 2).toString());\n txtCliNumero.setText(tblCliNome.getModel().getValueAt(setar, 3).toString());\n txtCliComplemento.setText(tblCliNome.getModel().getValueAt(setar, 4).toString());\n txtCliBairro.setText(tblCliNome.getModel().getValueAt(setar, 5).toString());\n txtCliCidade.setText(tblCliNome.getModel().getValueAt(setar, 6).toString());\n txtCliUf.setText(tblCliNome.getModel().getValueAt(setar, 7).toString());\n txtCliFixo.setText(tblCliNome.getModel().getValueAt(setar, 8).toString());\n txtCliCel.setText(tblCliNome.getModel().getValueAt(setar, 9).toString());\n txtCliMail.setText(tblCliNome.getModel().getValueAt(setar, 10).toString());\n txtCliCep.setText(tblCliNome.getModel().getValueAt(setar, 11).toString());\n \n // A LINHA ABAIXO DESABILITA O BOTÃO ADICIONAR PARA QUE O CADASTRO NÃO SEJA DUPLICADO\n btnAdicionar.setEnabled(true);\n \n }",
"public Control[] getMemberControls() {\n/* 78 */ Control[] arrayOfControl = new Control[this.controls.length];\n/* */ \n/* 80 */ for (byte b = 0; b < this.controls.length; b++) {\n/* 81 */ arrayOfControl[b] = this.controls[b];\n/* */ }\n/* */ \n/* 84 */ return arrayOfControl;\n/* */ }",
"private void setMembershipPanelEditableTrue() {\n \n accountNrTF.setEditable(true);\n fromDateTF.setEditable(true);\n groupTrainingCB.setEnabled(true);\n monthPayTF.setEditable(true);\n pbsDateTF.setEditable(true);\n pbsNumberTF.setEditable(true);\n regNrTF.setEditable(true);\n balanceTF.setEditable(true);\n poolsCB.setEnabled(true);\n timeLimitCB.setEnabled(true);\n endDateTF.setEditable(true);\n membershipDropD.setEnabled(true);\n }",
"public void addCustExt() {\n String toAdd = customExt.getText();\n String[] extensions = toAdd.split(\",\");\n ExtensionsAdder.addExtensions(extensions);\n }",
"private void initBtnsArray()\r\n {\r\n for (int i = 0; i < this.buttons.length; i++)\r\n this.buttons[i] = new Button(\"Button #\" + i);\r\n }",
"public void setBoxes(String params) {\n\t\tfinal String[] paramsArray = params.split(\",\");\n\t\tint i=0;\n\t\tfor (Component c : this.westPanel.getComponents()) {\n\t\t if (c instanceof JTextField) {\n\t\t ((JTextField) c).setText(paramsArray[i]);\n\t\t \ti++;\n\t\t }\n\t\t}\n\t}",
"public void setInputs() {\n\t\tCIVLTable tbl_inputTable = (CIVLTable) getComponentByName(\"tbl_inputTable\");\n\t\tDefaultTableModel inputModel = (DefaultTableModel) tbl_inputTable\n\t\t\t\t.getModel();\n\t\tArrayList<CIVL_Input> inputList = currConfig.getInputs();\n\t\tinputList.clear();\n\t\tGMCSection gmcs = currConfig.getGmcConfig().getAnonymousSection();\n\t\tfor (int j = 0; j < inputModel.getRowCount(); j++) {\n\t\t\tString name = (String) inputModel.getValueAt(j, 0);\n\t\t\tString type = inputModel.getValueAt(j, 1).toString();\n\t\t\tObject value = inputModel.getValueAt(j, 2);\n\t\t\tString init = \"\";\n\n\t\t\tif (inputModel.getValueAt(j, 3) != null) {\n\t\t\t\tinit = inputModel.getValueAt(j, 3).toString();\n\t\t\t}\n\n\t\t\tCIVL_Input input = new CIVL_Input(name, type);\n\t\t\tinput.setValue(value);\n\t\t\tinput.setInitializer(init);\n\t\t\tinputList.add(input);\n\n\t\t\t// Add the inputs to the value map in GMCSection\n\t\t\tif (!value.toString().equals(\"\")) {\n\t\t\t\tgmcs.putMapEntry(CIVLConstants.inputO, input.getName(),\n\t\t\t\t\t\tinput.getValue());\n\t\t\t}\n\t\t}\n\n\t}",
"public void setListeners(){\n\t\t\n\t\tthis.addActionListener(new ActionListener() {\n\t\t\t\n\t\t\t@Override\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\t// chosen to add new patient\n\t\t\t\t\n\t\t\t\tArrayList<String> constructorInput = null;\n\t\t\t\tconstructorInput = NewPatientWindow.showInputdialog(true);\n\t\t\t\t\n\t\t\t\t// if cancel or close chosen on new patient window:\n\t\t\t\tif (constructorInput == null)\n\t\t\t\t\treturn; \n\t\t\t\t\n\t\t\t\t//else:\n\t\t\t\tBrainFreezeMain.patients.add(new Patient(\n\t\t\t\t\t\t(constructorInput.toArray( new String[constructorInput.size()]))));\n\t\t\t\tBrainFreezeMain.currentPatientIndex = BrainFreezeMain.patients.size()-1;\n\t\t\t\t\n\t\t\t\t\n\t\t\t\tLeftPanel.refreshPatientLabel(); // change to patient list, update label\n\t\t\t\tLeftPanel.refreshPatientData(); // change to patient, update data\n\t\t\t\t\t\n\t\t\t\t}\n\t\t\t});\n\t}",
"public static Person[] createList(Person... persons){\n Person[] people = persons;\n return people;\n }",
"private void setExtraMapElements() {\n \t\tif (mGoogleMap == null && mLocationsList == null) {\n \t\t\treturn;\n \t\t}\n \t\tfor (int i = 0; i < mLocationsList.size(); i++) {\n \t\t\tMarkerOptions marker = new MarkerOptions().position(mLocationsList\n \t\t\t\t\t.get(i).mPosition);\n \t\t\tif (mLocationsList.get(i).mIcono != 0) {\n \t\t\t\tmarker.icon(BitmapDescriptorFactory.fromResource(mLocationsList\n \t\t\t\t\t\t.get(i).mIcono));\n \t\t\t}\n \t\t\tif (mLocationsList.get(i).mContenido.mNombre != null) {\n \t\t\t\tmarker.title(mLocationsList.get(i).mContenido.mNombre);\n \t\t\t}\n \t\t\tif (mLocationsList.get(i).mContenido.mSnippet != null) {\n \t\t\t\tmarker.snippet(mLocationsList.get(i).mContenido.mSnippet);\n \t\t\t}\n \n \t\t\tmGoogleMap.addMarker(marker);\n \t\t}\n \t\tmGoogleMap.setInfoWindowAdapter(new MarkerAdapter());\n \t}",
"public final native MVCArray<Element> getControls() /*-{\n return this.controls;\n }-*/;",
"public void construirTercerSetDeDominiosReglaCompleja() {\n\n\t\tlabeltituloSeleccionDominios = new JLabel();\n\n\t\tcomboDominiosSet3ReglaCompleja = new JComboBox(dominio);// creamos el Tercer combo,y le pasamos un array de cadenas\n\t\tcomboDominiosSet3ReglaCompleja.setSelectedIndex(0);// por defecto quiero visualizar el Tercer item\n\t\titemscomboDominiosSet3ReglaCompleja = new JComboBox();// creamo el Tercer combo, vacio\n\t\titemscomboDominiosSet3ReglaCompleja.setEnabled(false);// //por defecto que aparezca deshabilitado\n\n\t\tlabeltituloSeleccionDominios.setText(\"Seleccione el Tercer Dominio de regla compleja\");\n\t\tpanelCentral.add(labeltituloSeleccionDominios);\n\t\tlabeltituloSeleccionDominios.setBounds(30, 30, 50, 20);\n\t\tpanelCentral.add(comboDominiosSet3ReglaCompleja);\n\t\tcomboDominiosSet1ReglaCompleja.setBounds(100, 30, 150, 24);\n\t\tpanelCentral.add(itemscomboDominiosSet3ReglaCompleja);\n\t\titemscomboDominiosSet3ReglaCompleja.setBounds(100, 70, 150, 24);\n\n\t\tpanelCentral.setBounds(10, 50, 370, 110);\n\n\t\t/* Creamos el objeto controlador, para manejar los eventos */\n\t\tControlDemoCombo controlDemoCombo = new ControlDemoCombo(this);\n\t\tcomboDominiosSet4ReglaCompleja.addActionListener(controlDemoCombo);// agregamos escuchas\n\n\t}",
"void setPlaces(Place[] places);",
"public void setNodes(ZVNode[] nodes) {\r\n if (this.nodes != null) {\r\n for (int i = 0; i < this.nodes.length; i++) {\r\n this.nodes[i].removePropertyChangeListener(\r\n ZVNode.PROPERTY_EXISTS, this.propertyListener);\r\n }\r\n }\r\n this.nodes = nodes;\r\n if (this.nodes != null) {\r\n for (int i = 0; i < this.nodes.length; i++) {\r\n this.nodes[i].addPropertyChangeListener(ZVNode.PROPERTY_EXISTS,\r\n this.propertyListener);\r\n }\r\n }\r\n this.updateView();\r\n }",
"@ReactMethod\n public void peopleSet(ReadableMap properties) {\n mixpanel.getPeople().set(this.readableMapToJson(properties));\n }",
"private void updatePeople() {\n \tArrayList<Device> keyfobs = alertMe.retrieveDevices(Device.KEYFOB);\n \tint personCount = 0;\n \tint total = keyfobs.size();\n \tfor(Device keyfob: keyfobs) {\n \t\tif (keyfob.attributes.containsKey(AlertMeConstants.STR_PRESENCE)) {\n \t\t\tString pres = (String) keyfob.attributes.get(AlertMeConstants.STR_PRESENCE);\n \t\t\tif (pres!=null) {\n \t\t\t\tpres = pres.trim().toLowerCase();\n \t\t\tpersonCount += (pres.equals(AlertMeConstants.STR_TRUE))? 1: 0;\n \t\t\t}\n \t\t}\n \t}\n \tupdateScreenPeople(personCount, total);\n }",
"public void set(Object[] objects) {\r\n this.objects = objects;\r\n }",
"public void setTxtrShowContactsHere(String contacts);"
] |
[
"0.8173493",
"0.7157065",
"0.71238166",
"0.70325047",
"0.69195265",
"0.6108046",
"0.5961515",
"0.59371954",
"0.5909876",
"0.58586216",
"0.5757228",
"0.575191",
"0.57411176",
"0.56812674",
"0.5678249",
"0.5532783",
"0.54940885",
"0.54211414",
"0.5344619",
"0.52547246",
"0.52210224",
"0.52155536",
"0.51792043",
"0.51737934",
"0.5113113",
"0.5105988",
"0.5101909",
"0.50466335",
"0.49990374",
"0.49965003",
"0.49942055",
"0.49901965",
"0.49893028",
"0.49746248",
"0.49529845",
"0.4940175",
"0.4878243",
"0.48557004",
"0.48549372",
"0.4849957",
"0.48052925",
"0.48044387",
"0.48031187",
"0.4786156",
"0.4778162",
"0.4760146",
"0.4755383",
"0.47544417",
"0.47370222",
"0.47350755",
"0.47332752",
"0.47316688",
"0.47229084",
"0.47087598",
"0.47023267",
"0.46946314",
"0.4691892",
"0.46819288",
"0.46808013",
"0.46793532",
"0.46786427",
"0.4669119",
"0.46553",
"0.46444866",
"0.46425763",
"0.46354333",
"0.46346352",
"0.4629875",
"0.4626619",
"0.46137887",
"0.46084914",
"0.46059105",
"0.46041405",
"0.4603183",
"0.46024427",
"0.4602312",
"0.46019572",
"0.4597272",
"0.4580479",
"0.45803946",
"0.45800987",
"0.45706728",
"0.4570563",
"0.45670685",
"0.4566107",
"0.4565876",
"0.45609915",
"0.45570394",
"0.45569253",
"0.45469955",
"0.45462745",
"0.45420092",
"0.45393163",
"0.45323887",
"0.45263475",
"0.45257497",
"0.4518059",
"0.45144284",
"0.45141548",
"0.45129037"
] |
0.8309985
|
0
|
Sets ith "controlPersonsExt" element
|
void setControlPersonsExtArray(int i, ch.crif_online.www.webservices.crifsoapservice.v1_00.ControlPerson controlPersonsExt);
|
{
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
}
|
[
"void setControlPersonsExtArray(ch.crif_online.www.webservices.crifsoapservice.v1_00.ControlPerson[] controlPersonsExtArray);",
"ch.crif_online.www.webservices.crifsoapservice.v1_00.ControlPerson addNewControlPersonsExt();",
"private void setMemberInformationPanelEditableTrue() {\n \n fNameTF.setEditable(true);\n lNameTF.setEditable(true);\n cprTF.setEditable(true);\n cityTF.setEditable(true);\n adressTF.setEditable(true);\n emailTF.setEditable(true);\n memberIdTF.setEditable(true);\n fNameTF.setEditable(true);\n phoneTF.setEditable(true);\n postalCodeTF.setEditable(true);\n adressNrTF.setEditable(true);\n changePictureBTN.setEnabled(true);\n }",
"ch.crif_online.www.webservices.crifsoapservice.v1_00.ControlPerson insertNewControlPersonsExt(int i);",
"ch.crif_online.www.webservices.crifsoapservice.v1_00.ControlPerson getControlPersonsExtArray(int i);",
"private void _setExtension(XSTCtrl_extensionType ext) {\n\n\t}",
"ch.crif_online.www.webservices.crifsoapservice.v1_00.AddressDescription addNewControlPersons();",
"void setControlPersonsArray(int i, ch.crif_online.www.webservices.crifsoapservice.v1_00.AddressDescription controlPersons);",
"void setControlPersonsArray(ch.crif_online.www.webservices.crifsoapservice.v1_00.AddressDescription[] controlPersonsArray);",
"private void setMembershipPanelEditableTrue() {\n \n accountNrTF.setEditable(true);\n fromDateTF.setEditable(true);\n groupTrainingCB.setEnabled(true);\n monthPayTF.setEditable(true);\n pbsDateTF.setEditable(true);\n pbsNumberTF.setEditable(true);\n regNrTF.setEditable(true);\n balanceTF.setEditable(true);\n poolsCB.setEnabled(true);\n timeLimitCB.setEnabled(true);\n endDateTF.setEditable(true);\n membershipDropD.setEnabled(true);\n }",
"private void setPerson(SmPerson tchPerId) {\n //m_person = tchPerId;\n jcbTeachers.setSelectedItem( tchPerId );\n }",
"public void setExtObject(IComponent ext){\n\t\textObj = ext;\n\t}",
"void removeControlPersonsExt(int i);",
"ch.crif_online.www.webservices.crifsoapservice.v1_00.ControlPerson[] getControlPersonsExtArray();",
"void setIDPExtAttributeValues(\n String realm, \n String fedId, \n Map idpExtValues,\n String location\n ) throws AMConsoleException;",
"void setSPExtAttributeValues(\n String realm, \n String fedId, \n Map spExtvalues,\n String location\n ) throws AMConsoleException;",
"public void setPerson(final Personne person) {\n\t\tthis.bindingGroup.unbind();\n\t\tthis.personne = person;\n\t\tthis.initComponentBindings();\n\t\tthis.benevolatsTable.setBenevolats(ObservableCollections.observableList(this.personne.getBenevolatList()));\n\t}",
"public void addCustExt() {\n String toAdd = customExt.getText();\n String[] extensions = toAdd.split(\",\");\n ExtensionsAdder.addExtensions(extensions);\n }",
"public void setExtLst(org.openxmlformats.schemas.presentationml.x2006.main.CTExtensionList extLst)\n {\n synchronized (monitor())\n {\n check_orphaned();\n org.openxmlformats.schemas.presentationml.x2006.main.CTExtensionList target = null;\n target = (org.openxmlformats.schemas.presentationml.x2006.main.CTExtensionList)get_store().find_element_user(EXTLST$14, 0);\n if (target == null)\n {\n target = (org.openxmlformats.schemas.presentationml.x2006.main.CTExtensionList)get_store().add_element_user(EXTLST$14);\n }\n target.set(extLst);\n }\n }",
"public void addControls() {\n }",
"@Override\n\tpublic void setGui(PersonGui g) {\n\t\t\n\t}",
"public void setControl(EmployeeController control) {\r\n\t\tthis.control = control;\r\n\t}",
"public void setPerson( Person person )\r\n\t{\r\n\t\tthis.person = person;\r\n\t}",
"private void setEnableComponents(){\r\n awardAddDocumentForm.cmbDocumentType.setEnabled(true);\r\n awardAddDocumentForm.txtDescription.setEditable(true);\r\n awardAddDocumentForm.txtFileName.setEditable(false);\r\n awardAddDocumentForm.btnUpload.setEnabled(true);\r\n awardAddDocumentForm.btnOk.setEnabled(true);\r\n awardAddDocumentForm.btnCancel.setEnabled(true);\r\n awardAddDocumentForm.btnView.setEnabled(false);\r\n }",
"public ModificarPersona() {\n initComponents();\n setIconifiable(Boolean.TRUE);\n setVisible(Boolean.TRUE);\n setClosable(Boolean.TRUE);\n //setResizable(Boolean.TRUE);\n }",
"private void setMemberInformationPanelEditableFalse() {\n \n fNameTF.setEditable(false);\n lNameTF.setEditable(false);\n cprTF.setEditable(false);\n cityTF.setEditable(false);\n adressTF.setEditable(false);\n emailTF.setEditable(false);\n memberIdTF.setEditable(false);\n fNameTF.setEditable(false);\n phoneTF.setEditable(false);\n postalCodeTF.setEditable(false);\n adressNrTF.setEditable(false);\n changePictureBTN.setEnabled(false);\n }",
"ch.crif_online.www.webservices.crifsoapservice.v1_00.AddressDescription insertNewControlPersons(int i);",
"public void setPeople(Person[] persons) {\n setUser(persons[0]);\n\n for (int i = 0; i < persons.length; i++) {\n people.put(persons[i].getPersonID(), persons[i]);\n }\n\n setSpouse();\n setFamilyTree();\n }",
"public void setSrcPhoneExt(String value) {\r\n setAttributeInternal(SRCPHONEEXT, value);\r\n }",
"public void setadd()\r\n\t{\r\n\t\tthis.jButtonadd.setEnabled(false);\r\n\r\n\t\tthis.jButtoncpsource.setEnabled(true);\r\n\t\tthis.jButtonctarget.setEnabled(false);\r\n\t\tthis.jButtonremend.setEnabled(false);\r\n\t\tthis.jButtonsave.setEnabled(true);\r\n\t\tthis.jButtonquery.setEnabled(true);\r\n\t\tthis.jButtoncopy.setEnabled(false);\r\n\t\tthis.jButtonfirst.setEnabled(true);\r\n\t\tthis.jButtonprev.setEnabled(true);\r\n\t\tthis.jButtonnext.setEnabled(true);\r\n\t\tthis.jButtonlast.setEnabled(true);\r\n\t\tthis.jButtonprint.setEnabled(true);\r\n\t\tthis.jButtonclose.setEnabled(false);\r\n\t\tthis.jButtoncancel.setEnabled(true);\t\r\n\t\tthis.jButtonaddrow.setEnabled(true);\t\t\r\n\t this.jButtondelrow.setEnabled(true);\r\n\t this.jButtondel.setEnabled(false);\r\n\t this.jButtonaddplus.setEnabled(false);\r\n\t this.jButtonapplied.setEnabled(true);\t \r\n\t this.jButtonSN.setEnabled(true);\t \r\n\t}",
"public void setPerson(Person[] person) {\n\t\tthis.person = person;\n\t}",
"Builder addEditor(Person value);",
"private void initControls() {\n txtFirstName.setDocument(new clsTextFieldLimit(255));\n txtMiddleName.setDocument(new clsTextFieldLimit(255));\n txtLastName.setDocument(new clsTextFieldLimit(255));\n txtStreet.setDocument(new clsTextFieldLimit(255));\n txtPostcode.setDocument(new clsTextFieldLimit(255));\n txtCity.setDocument(new clsTextFieldLimit(255));\n txtCountry.setDocument(new clsTextFieldLimit(255));\n \n //Only allow JTable the selection of one single row.\n tblContacts.setSelectionMode(ListSelectionModel.SINGLE_SELECTION);\n //Make next column head auto-resizable.\n tblContacts.setAutoResizeMode(JTable.AUTO_RESIZE_NEXT_COLUMN);\n //Define a contact listener for handling row changes.\n this.pContactSelectionModel = tblContacts.getSelectionModel();\n this.pContactSelectionModel.addListSelectionListener(new tblContactsListSelectionHandler());\n tblContacts.setSelectionModel(pContactSelectionModel);\n //Set the mouse scroll speed of the JScrollPane.\n scrRight.getVerticalScrollBar().setUnitIncrement(10);\n }",
"@SuppressWarnings(\"unchecked\")\n // <editor-fold defaultstate=\"collapsed\" desc=\"Generated Code\">//GEN-BEGIN:initComponents\n private void initComponents() {\n\n jLabel1 = new javax.swing.JLabel();\n tiposPersona = new javax.swing.JComboBox();\n agregarTipoPersona = new javax.swing.JButton();\n jLabel2 = new javax.swing.JLabel();\n campoNombres = new javax.swing.JTextField();\n jLabel3 = new javax.swing.JLabel();\n campoApellidos = new javax.swing.JTextField();\n jLabel4 = new javax.swing.JLabel();\n campoDireccion = new javax.swing.JTextField();\n jLabel5 = new javax.swing.JLabel();\n campoCUI = new javax.swing.JTextField();\n jLabel6 = new javax.swing.JLabel();\n campoNIT = new javax.swing.JTextField();\n jLabel7 = new javax.swing.JLabel();\n campoCorreo = new javax.swing.JTextField();\n jLabel8 = new javax.swing.JLabel();\n campoTelefono1 = new javax.swing.JTextField();\n jLabel9 = new javax.swing.JLabel();\n campoTelefono2 = new javax.swing.JTextField();\n botonCancelar = new javax.swing.JButton();\n botonAceptar = new javax.swing.JButton();\n botonLimpiar = new javax.swing.JButton();\n\n setTitle(\"Modificar persona\");\n\n jLabel1.setText(\"Tipo persona:\");\n\n tiposPersona.setModel(new javax.swing.DefaultComboBoxModel(new String[] { \"Item 1\", \"Item 2\", \"Item 3\", \"Item 4\" }));\n\n agregarTipoPersona.setText(\"Nuevo\");\n\n jLabel2.setText(\"Nombre(s):\");\n\n jLabel3.setText(\"Apellido(s):\");\n\n jLabel4.setText(\"Dirección:\");\n\n jLabel5.setText(\"CUI:\");\n\n jLabel6.setText(\"NIT:\");\n\n jLabel7.setText(\"Correo:\");\n\n jLabel8.setText(\"Telefono 1:\");\n\n jLabel9.setText(\"Telefono 2:\");\n\n botonCancelar.setText(\"Cancelar\");\n\n botonAceptar.setText(\"Aceptar\");\n\n botonLimpiar.setText(\"Limpiar campos\");\n\n javax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane());\n getContentPane().setLayout(layout);\n layout.setHorizontalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(layout.createSequentialGroup()\n .addContainerGap()\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)\n .addComponent(jLabel9)\n .addComponent(jLabel8)\n .addComponent(jLabel7)\n .addComponent(jLabel6)\n .addComponent(jLabel5)\n .addComponent(jLabel4)\n .addComponent(jLabel3)\n .addComponent(jLabel2)\n .addComponent(jLabel1))\n .addGap(18, 18, 18)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)\n .addComponent(tiposPersona, 0, 200, Short.MAX_VALUE)\n .addComponent(campoNombres)\n .addComponent(campoApellidos)\n .addComponent(campoDireccion)\n .addComponent(campoCUI)\n .addComponent(campoNIT)\n .addComponent(campoCorreo)\n .addComponent(campoTelefono1)\n .addComponent(campoTelefono2))\n .addGap(18, 18, 18)\n .addComponent(agregarTipoPersona)\n .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))\n .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, layout.createSequentialGroup()\n .addContainerGap(101, Short.MAX_VALUE)\n .addComponent(botonLimpiar)\n .addGap(18, 18, 18)\n .addComponent(botonAceptar)\n .addGap(18, 18, 18)\n .addComponent(botonCancelar)\n .addContainerGap())\n );\n layout.setVerticalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(layout.createSequentialGroup()\n .addContainerGap()\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(jLabel1)\n .addComponent(tiposPersona, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(agregarTipoPersona))\n .addGap(18, 18, 18)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(jLabel2)\n .addComponent(campoNombres, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGap(18, 18, 18)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(jLabel3)\n .addComponent(campoApellidos, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGap(18, 18, 18)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(jLabel4)\n .addComponent(campoDireccion, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGap(18, 18, 18)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(jLabel5)\n .addComponent(campoCUI, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGap(18, 18, 18)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(jLabel6)\n .addComponent(campoNIT, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGap(18, 18, 18)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(jLabel7)\n .addComponent(campoCorreo, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGap(18, 18, 18)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(jLabel8)\n .addComponent(campoTelefono1, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGap(18, 18, 18)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(jLabel9)\n .addComponent(campoTelefono2, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, 42, Short.MAX_VALUE)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(botonCancelar)\n .addComponent(botonAceptar)\n .addComponent(botonLimpiar))\n .addContainerGap())\n );\n\n pack();\n }",
"public final native void setControls(MVCArray<Element> controls) /*-{\n this.controls = controls;\n }-*/;",
"public void set(Object requestor, String field, JLabel comp);",
"public void setOwner(Person person) \n {\n owner = person;\n }",
"int sizeOfControlPersonsExtArray();",
"void enableAddContactButton();",
"void setPersonalInfoBooleanBinding() {\r\n\t\tBooleanBinding booleanBind;\r\n\t\tbooleanBind = (tfFirstName.textProperty().isEmpty()).or(tfLastName.textProperty().isEmpty()).or(tfEmail.textProperty().isEmpty()).or(tfphone.textProperty().isEmpty());\r\n\t\tbtnSave.disableProperty().bind(booleanBind);\r\n\t}",
"private void initImlProb_GuiBean(){\n imlProbGuiBean = new IMLorProbSelectorGuiBean();\n this.imtPanel.add(imlProbGuiBean, new GridBagConstraints( 0, 0, 1, 1, 1.0, 1.0,\n GridBagConstraints.CENTER,GridBagConstraints.BOTH, defaultInsets, 0, 0 ));\n }",
"private void updateControls() {\n updateBadge();\n etExtUsrId.setEnabled(isPushRegistrationAvailable() && !isUserPersonalizedWithExternalUserId());\n btnPersonalize.setEnabled(!isUserPersonalizedWithExternalUserId());\n btnDepersonalize.setEnabled(isUserPersonalizedWithExternalUserId());\n btnToInbox.setEnabled(isUserPersonalizedWithExternalUserId());\n }",
"public void setExtLst(org.openxmlformats.schemas.drawingml.x2006.main.CTOfficeArtExtensionList extLst)\n {\n synchronized (monitor())\n {\n check_orphaned();\n org.openxmlformats.schemas.drawingml.x2006.main.CTOfficeArtExtensionList target = null;\n target = (org.openxmlformats.schemas.drawingml.x2006.main.CTOfficeArtExtensionList)get_store().find_element_user(EXTLST$28, 0);\n if (target == null)\n {\n target = (org.openxmlformats.schemas.drawingml.x2006.main.CTOfficeArtExtensionList)get_store().add_element_user(EXTLST$28);\n }\n target.set(extLst);\n }\n }",
"void xsetCryptProviderTypeExt(org.apache.xmlbeans.XmlUnsignedInt cryptProviderTypeExt);",
"public void setPersonType(PersonType_Tp type) { this.personType = type; }",
"protected void addPersonPropertyDescriptor(Object object) {\n\t\titemPropertyDescriptors.add\n\t\t\t(createItemPropertyDescriptor\n\t\t\t\t(((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(),\n\t\t\t\t getResourceLocator(),\n\t\t\t\t getString(\"_UI_JuristType_person_feature\"),\n\t\t\t\t getString(\"_UI_JuristType_person_description\"),\n\t\t\t\t ContestPackage.Literals.JURIST_TYPE__PERSON,\n\t\t\t\t true,\n\t\t\t\t false,\n\t\t\t\t true,\n\t\t\t\t null,\n\t\t\t\t null,\n\t\t\t\t null));\n\t}",
"public void setContactPerson(String contactPerson) {\n this.contactPerson = contactPerson;\n }",
"public void setEmployeePersonId(Number value) {\n setAttributeInternal(EMPLOYEEPERSONID, value);\n }",
"private void loadRemoteOfficeComponents() {\r\n\t\tJTextArea objRemoteOfficeJTextArea;\r\n\t\tobjRemoteOfficeJTextArea = new JTextArea(getValue(strDescription));\r\n\t\tmakeWelcomeText(objRemoteOfficeJTextArea);\r\n\t\tobjRemoteOfficeJLabel = new JLabel(getValue(strPhoneNumber));\r\n\t\tobjRemoteOfficeJLabel.setBorder(new EmptyBorder(0, 7, 0, 5));\r\n\t\tobjRemoteOfficeJTextField = new JTextField(10);\r\n\r\n\t\tobjRemoteOfficeEnableJCheckBox = getSteelCheckBox();\r\n\t\tobjRemoteOfficeEnableJCheckBox.setText(getValue(strEnabled));\r\n\t\tobjRemoteOfficeEnableJCheckBox.setOpaque(false);\r\n\t\tobjRemoteOfficeEnableJCheckBox.setSelected(true);\r\n\t\ttry {\r\n\r\n\t\t\taddComponent(objRemoteOfficeJTextArea, 0, 0, 19, 2);\r\n\t\t\taddComponent(objRemoteOfficeEnableJCheckBox, 1, 2, 5, 1);\r\n\t\t\taddComponent(objRemoteOfficeJLabel, 2, 3, 5, 1);\r\n\t\t\taddComponent(objRemoteOfficeJTextField, 7, 3, 10, 1);\r\n\r\n\t\t} catch (InvalidGUIObjectException e) {\r\n\r\n\t\t}\r\n\r\n\t\tobjRemoteOfficeEnableJCheckBox.addActionListener(new ActionListener() {\r\n\r\n\t\t\tpublic void actionPerformed(ActionEvent arg0) {\r\n\t\t\t\tisChanged = true;\r\n\t\t\t\tif (objRemoteOfficeEnableJCheckBox.isSelected()) {\r\n\r\n\t\t\t\t\tobjRemoteOfficeJTextField.setEnabled(true);\r\n\t\t\t\t\tobjRemoteOfficeJLabel.setEnabled(true);\r\n\t\t\t\t\tfocusEnabled(objRemoteOfficeJTextField);\r\n\t\t\t\t} else {\r\n\r\n\t\t\t\t\tobjRemoteOfficeJTextField.setEnabled(false);\r\n\t\t\t\t\tobjRemoteOfficeJLabel.setEnabled(false);\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t});\r\n\r\n\t\tobjRemoteOfficeJTextField.addKeyListener(new KeyAdapter() {\r\n\t\t\t@Override\r\n\t\t\tpublic void keyTyped(KeyEvent arg0) {\r\n\t\t\t\tisChanged = true;\r\n\t\t\t}\r\n\t\t});\r\n\r\n\t}",
"private void setControlsEnabled(boolean value){\r\n txtRolodexId.setEditable(value);\r\n txtLastUpdate.setEditable(value);\r\n txtUpdateUser.setEditable(value);\r\n txtLastName.setEditable(value);\r\n txtFirstName.setEditable(value);\r\n txtMiddleName.setEditable(value);\r\n txtSuffix.setEditable(value);\r\n txtPrefix.setEditable(value);\r\n txtTitle.setEditable(value);\r\n txtSponsorCode.setEditable(value);\r\n txtOrganization.setEditable(value);\r\n txtAddress1.setEditable(value);\r\n txtAddress2.setEditable(value);\r\n txtAddress3.setEditable(value);\r\n txtCity.setEditable(value);\r\n txtCounty.setEditable(value);\r\n //Modified for case#3278 - State Combobox is made non editable\r\n cmbState.setEditable(false);\r\n cmbState.setEnabled(value);\r\n cmbState.setForeground(Color.black);\r\n cmbCountry.setEnabled(value);\r\n txtPostalCode.setEditable(value);\r\n txtPhone.setEditable(value);\r\n txtEMail.setEditable(value);\r\n txtFax.setEditable(value);\r\n txtComments.setEditable(value);\r\n }",
"public void setOwner(Person person) {\n _owner = person;\n }",
"public void setPersonId(Number value) {\n setAttributeInternal(PERSONID, value);\n }",
"public void setOperateperson(String operateperson) {\r\n this.operateperson = operateperson;\r\n }",
"public void setTxtrShowContactsHere(String contacts);",
"void setSettings(ControlsSettings settings);",
"public void setComponent(ElementView jc) {\n\t\tthis.jc = jc;\n\t}",
"public void setExtencion(String listExtencion) {\n String[] aux = listExtencion.split(\";\");\n if (aux.length > 0) {\n for (String i : aux) {\n switch (i) {\n case \"pdf\": {\n frameSearch.getPnSearch().getChComplete().setSelected(true);\n break;\n }\n case \"doc\": {\n frameSearch.getPnSearch().getChMYmi().setSelected(true);\n break;\n }\n case \"ppt\": {\n frameSearch.getPnSearch().getChRegex().setSelected(true);\n break;\n }\n case \"exe\": {\n frameSearch.getPnSearch().getChUTF().setSelected(true);\n break;\n }\n case \"gif\": {\n frameSearch.getPnSearch().getChASCII().setSelected(true);\n break;\n }\n case \"log\": {\n frameSearch.getPnSearch().getChNoExists().setSelected(true);\n break;\n }\n case \"jpg\": {\n frameSearch.getPnSearch().getChUnicode().setSelected(true);\n\n break;\n }\n case \"rar\": {\n frameSearch.getPnSearch().getChHexa().setSelected(true);\n break;\n }\n default: {\n frameSearch.getPnSearch().getTxSearchText().setText(i);\n break;\n }\n }\n }\n frameSearch.getPnSearch().getChSearchText().setSelected(true);\n }\n }",
"public j3_Candidate_register_for_officer() {\n initComponents();\n show_candidate();\n }",
"public void setExtInfo(String ExtInfo) {\n this.ExtInfo = ExtInfo;\n }",
"public ADD_OFFICER() {\n initComponents();\n filltf();\n jLabel12.setText(\"Select a file\");\n setLocationRelativeTo(null);\n }",
"public void setRegisterWriteControl() {\r\n // registers.setRegWrite();\r\n //this.registerWrite.setData(1);\r\n //registers.setRegWriteControl(this.registerWrite);\r\n }",
"void setVisibleAdditionalComponents(boolean function) {\n\t\tfunction = !function;\n\t\trdbtnCurrentName.setVisible(function);\n\t\trdbtnOriginalName.setVisible(function);\n\t\trdbtnOwnName.setVisible(function);\n\t\trdbtnRandomName.setVisible(function);\n\t\ttextOwnName.setVisible(function);\n\n\t}",
"public void edit(PersonProxy personProxy, PersonRequest request) {\n driver.initialize(requestFactory, personEditor);\n// personEditor.editPersonProxy(personProxy);\n // Copy the data in the object into the UI\n driver.edit(personProxy, request);\n }",
"public void setFirstName(String fname){ firstName.set(fname); }",
"@Override\r\n\tpublic void seleccionarPersona() {\n\t\t\r\n\t}",
"public String editRequiredElements(){\r\n \tthis.getLog().info(\"+ nextView: editM_Tabpage\");\r\n \treturn \"editM_Tabpage\";\r\n }",
"void xsetDisplayName(org.apache.xmlbeans.XmlString displayName);",
"public ViewSavingAccountJPanel(Person person) {\n initComponents();\n DisplaySavingAccount(person);\n \n }",
"public SettingsPanelEmployee() {\n initComponents();\n \n setBackground (new Color (51, 51, 51)); \n \n bgGender.add(rbMale);\n bgGender.add(rbFemale);\n \n txtfAccountImageTextBox.setEditable(false);\n \n accountImageDialog.setUndecorated (true);\n accountImageDialog.getContentPane().setBackground(new Color (35, 35, 35));\n \n updateAccountInformation ();\n \n }",
"private void setEditable(boolean editable) {\n nameTextField.setEditable(editable);\n lastNameTextField.setEditable(editable);\n dniTextField.setEditable(editable);\n addressTextField.setEditable(editable);\n telephoneTextField.setEditable(editable);\n }",
"protected void initControls() {\n\t\tbind(true);\n\t}",
"public void set(Object requestor, String field, JComponent comp);",
"public void setNumeroExtremo()\r\n\t{\r\n\t\tthis.setFont(new Font(\"Arial\", Font.BOLD, 22));\r\n\t\tthis.setBorder(BorderFactory.createRaisedBevelBorder());\r\n\t}",
"@Override\n\tprotected void initControl() {\n\t\tsuper.initControl();\n mEdtPhoneNumber.requestFocus();\n Utils.setTextViewHtml(mTvNotifi1,getString(R.string.register_phone_text_notifi_1));\n InputMethodManager imm = (InputMethodManager) getSystemService(Context.INPUT_METHOD_SERVICE);\n imm.showSoftInput(mEdtPhoneNumber, InputMethodManager.SHOW_IMPLICIT);\n mEdtPhoneNumber.setOnEditorActionListener(new TextView.OnEditorActionListener() {\n @Override\n public boolean onEditorAction(TextView v, int actionId, KeyEvent event) {\n if ((event != null && (event.getKeyCode() == KeyEvent.KEYCODE_ENTER)) || (actionId == EditorInfo.IME_ACTION_DONE)) {\n registerPhone();\n }\n return false;\n }\n });\n mChkAccept.setOnCheckedChangeListener((buttonView, isChecked) -> {\n if(isChecked)\n Utils.setBackground(mBtnContinue,\n Utils.getDrawable(mContext, R.drawable.corner_red_login));\n else\n Utils.setBackground(mBtnContinue,\n Utils.getDrawable(mContext, R.drawable.corner_red_login_select));\n\n });\n\n\t}",
"@Override\n public void updateExtensionUsingName(String surname, String newNumber) {\n for (int i=0; i<members.size(); i++) {\n if (members.get(i).getSurname().equals(surname)) {\n members.get(i).setExtension(newNumber);\n }\n }\n\n }",
"public void setPeople(People people,String id)\n {\n myCamp = people;\n this.id = id;\n }",
"public void setPersonID(String personID){\n this.personID = personID;\n }",
"public interface BindingExt extends ExtComponent {\n\n//TODO: define get/set methods for properties for BindingExt if the extension element has attributes.\n /**\n * This class is an implementation of BindingExt interface that provides java model\n * for binding extensibility element.\n */\n public static class BindingExtImpl extends ExtModelImpl implements BindingExt {\n\n public BindingExtImpl(WSDLModel model, Element e) {\n super(model, e);\n }\n\n public BindingExtImpl(WSDLModel model) {\n this(model, createPrefixedElement(QN_BINDING_EXT, model));\n }\n\n public void accept(ExtVisitor visitor) {\n visitor.visit(this);\n }\n\n @Override\n public boolean canBeAddedTo(Component target) {\n if (target instanceof Binding) {\n return true;\n }\n return false;\n }\n }\n}",
"public void setViewerControlPanel(ViewerControlPanel cp) {\n\n\t}",
"public RegisterPanel() {\n control = new ControlRegister();\n initComponents();\n }",
"public void extend(String classQName, String[] extendedIdentifiers) {\r\n\t\tif (!regMap.containsKey(classQName)) {\r\n\t\t\tthrow new AutomationException(\"There is no [\" + classQName\r\n\t\t\t\t\t+ \"] in Widget Registory.\");\r\n\t\t}\r\n\t\tRegEntry regEntry = regMap.get(classQName);\r\n\t\tregEntry.addIdentifiers(extendedIdentifiers);\r\n\t\tregister(classQName, regEntry);\r\n\t}",
"void xsetDomicilio(org.apache.xmlbeans.XmlString domicilio);",
"public void setFirstName(String strFirstName){\n\t\tdriver.findElement(firstname).sendKeys(strFirstName);;\n\t}",
"public void setExtAttribute1(String value) {\n setAttributeInternal(EXTATTRIBUTE1, value);\n }",
"public void initAddressPanel() {\n\t\n\t\t\n\t\t\n\t\tlblAddressLine1 = new JCMSLabel();\n\t\ttxtAddressLine1 = getJCMSTextField();\n\t\tlblAddressLine2 = new JCMSLabel();\n\t\ttxtAddressLine2 = getJCMSTextField();\n\t\tlblZipCode = new JCMSLabel();\n\t\ttxtZipCode = getJCMSTextField();\n\t\tlblCity = new JCMSLabel();\n\t\ttxtCity = getJCMSTextField();\n\t\tlblState = new JCMSLabel();\n\t\ttxtState = getJCMSTextField();\n\t\tlblPhone1 = new JCMSLabel();\n\t\ttxtPhone1 = getJCMSMaskedTextField();\n\t\ttxtPhone1.setName(\"PHONE1\");\n\t\tif (nameSpec != null && nameSpec.length() > 0)\n\t\t\ttxtPhone1.setDocument(new TextFilter(nameSpec, 15));\n\t\tlblAddressLine1.setLabelFor(txtAddressLine1);\n\t\tlblAddressLine1.setText(RESOURCE.getString(\"AddressLine1\"));\n\t\tlblAddressLine2.setText(RESOURCE.getString(\"AddressLine2\"));\n\t\tlblZipCode.setText(RESOURCE.getString(\"Zip Code\"));\n\t\tlblCity.setText(RESOURCE.getString(\"City\"));\n\t\tlblState.setText(RESOURCE.getString(\"State\"));\n\t\tlblPhone1.setText(RESOURCE.getString(\"Phone 1\"));\n\t\tresetAddressPanelType(this.addressPanelType);\n\t\t/**\n\t\t * Text Verifier\n\t\t */\n\t\t// Text limits set as per max sizes allowed over various db tables involved\n\t\t// -MSB 02/10/06\n\t\t// Since Input is free form and we just want to\n\t\t// restrict the text length we don't need to filter\n\t\t// input. This resolves double-byte character input issues.\n\t\ttxtAddressLine1.setDocument(new CMSTextFilter(40));\n\t\ttxtAddressLine2.setDocument(new CMSTextFilter(30));\n\t\ttxtCity.setDocument(new CMSTextFilter(30));\n\t\ttxtState.setDocument(new CMSTextFilter(30));\n\t\ttxtZipCode.setDocument(new CMSTextFilter(10));\n\t\ttxtPhone1.setDocument(new CMSTextFilter(15));\n\t\ttxtPhone2.setDocument(new CMSTextFilter(15));\n\t\ttxtPhone3.setDocument(new CMSTextFilter(15));\n\t}",
"public void setExt1(java.lang.String ext1)\n {\n this.ext1 = ext1;\n }",
"public void setExtensions(String extensions)\n {\n this.ext = extensions;\n }",
"private void addDefaultPerson() {\n personNames.add(\"you\");\n personIds.add(STConstants.PERSON_NULL_ID);\n personPhotos.add(null);\n personSelections.add(new HashSet<Integer>()); \n }",
"public void set(Object requestor, String field, JFrame comp);",
"public void setLastName(String strLastName){\n\t\tdriver.findElement(lastname).sendKeys(strLastName);;\n\t}",
"public void _setControl() {\n requiredMethod(\"getControl()\") ;\n\n XInterface oNewControl = FormTools.createControl\n ((XComponent)tEnv.getObjRelation(\"xDoc\"), \"ComboBox\") ;\n\n XControlModel xControl = (XControlModel) UnoRuntime.queryInterface\n (XControlModel.class, oNewControl) ;\n\n oObj.setControl(xControl) ;\n\n XControlModel gControl = oObj.getControl() ;\n\n if (oNewControl.equals(gControl))\n tRes.tested(\"setControl()\", true) ;\n else {\n log.println(\"Control set is not equal to control get\") ;\n tRes.tested(\"setControl()\", false) ;\n }\n }",
"public void setPersonnames(List<Personname> personnames) {\r\n\r\n this.personnames = personnames;\r\n\r\n }",
"public void setFirstName(String fname) {\n firstNameField.setText(fname);\n }",
"private void initSitesOfInterestControl() {\n if(this.sitesOfInterest==null)\n sitesOfInterest = new SitesOfInterestControlPanel(this, this.siteGuiBean);\n sitesOfInterest.pack();\n sitesOfInterest.setVisible(true);\n }",
"org.apache.geronimo.corba.xbeans.csiv2.tss.TSSGeneralNameType addNewGeneralName();",
"@Schema(hidden = true)\n public void setPerson(Person person) {\n this.person = person;\n }",
"public void setExt1(Integer ext1) {\n this.ext1 = ext1;\n }",
"void xsetAlgIdExt(org.apache.xmlbeans.XmlUnsignedInt algIdExt);",
"public void set(Object requestor, String field, JDialog comp);",
"protected void addElementFormNamePropertyDescriptor(Object object) {\n\t\titemPropertyDescriptors.add\n\t\t\t(createItemPropertyDescriptor\n\t\t\t\t(((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(),\n\t\t\t\t getResourceLocator(),\n\t\t\t\t getString(\"_UI_Widget_elementFormName_feature\"),\n\t\t\t\t getString(\"_UI_PropertyDescriptor_description\", \"_UI_Widget_elementFormName_feature\", \"_UI_Widget_type\"),\n\t\t\t\t WavePackage.Literals.WIDGET__ELEMENT_FORM_NAME,\n\t\t\t\t true,\n\t\t\t\t false,\n\t\t\t\t false,\n\t\t\t\t ItemPropertyDescriptor.GENERIC_VALUE_IMAGE,\n\t\t\t\t null,\n\t\t\t\t null));\n\t}"
] |
[
"0.7193674",
"0.6697412",
"0.58868283",
"0.5784266",
"0.5772683",
"0.56509167",
"0.5561164",
"0.5495903",
"0.53343",
"0.529717",
"0.5286957",
"0.5272755",
"0.5241403",
"0.5227206",
"0.5224109",
"0.52038383",
"0.51918066",
"0.5128836",
"0.5037844",
"0.49722868",
"0.4968561",
"0.49682438",
"0.4941384",
"0.49347278",
"0.4929001",
"0.49216256",
"0.49210924",
"0.49011657",
"0.48795876",
"0.48759896",
"0.48415518",
"0.48220798",
"0.48046747",
"0.4804576",
"0.48025343",
"0.47968256",
"0.47892892",
"0.47763202",
"0.47693935",
"0.47550818",
"0.4750857",
"0.47445756",
"0.4744458",
"0.47423857",
"0.4736987",
"0.47012958",
"0.47012016",
"0.46993282",
"0.4681907",
"0.46771315",
"0.46739006",
"0.46685508",
"0.4667872",
"0.4659342",
"0.4655386",
"0.46363866",
"0.46285167",
"0.4618242",
"0.46103382",
"0.4608003",
"0.4607225",
"0.4605438",
"0.46022952",
"0.46015054",
"0.459802",
"0.45934394",
"0.4591643",
"0.45883998",
"0.45866615",
"0.45796612",
"0.45792",
"0.4572544",
"0.4571461",
"0.4568648",
"0.45682672",
"0.45675695",
"0.45661274",
"0.45654383",
"0.45649996",
"0.454865",
"0.45457727",
"0.45335442",
"0.45319182",
"0.45276552",
"0.45265433",
"0.45207986",
"0.4517641",
"0.4514223",
"0.45083332",
"0.45048574",
"0.45030475",
"0.44982585",
"0.44973096",
"0.44955236",
"0.44932827",
"0.44924816",
"0.44907942",
"0.44882464",
"0.44855347",
"0.44831923"
] |
0.7285255
|
0
|
Inserts and returns a new empty value (as xml) as the ith "controlPersonsExt" element
|
ch.crif_online.www.webservices.crifsoapservice.v1_00.ControlPerson insertNewControlPersonsExt(int i);
|
{
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
}
|
[
"ch.crif_online.www.webservices.crifsoapservice.v1_00.ControlPerson addNewControlPersonsExt();",
"ch.crif_online.www.webservices.crifsoapservice.v1_00.AddressDescription addNewControlPersons();",
"ch.crif_online.www.webservices.crifsoapservice.v1_00.AddressDescription insertNewControlPersons(int i);",
"private Element createXmlElementForConcat(Concat concat, Document xmlDocument, Constraint constraint) {\n\t\tElement element = xmlDocument.createElement(XML_CONCAT);\n\t\t//element.setAttribute(XML_INFO1, concat.getValue1().toString());\n\t\t//element.setAttribute(XML_INFO2, concat.getValue2().toString());\n\n\t\tfor (Value childValue : concat) {\n\t\t\tElement child = createXmlElementForValue(childValue, xmlDocument, constraint);\n\t\t\tif (child != null)\n\t\t\t\telement.appendChild(child);\n\t\t}\n\t\t\n\t\treturn (element.hasChildNodes() ? element : null);\n\t}",
"void setControlPersonsExtArray(int i, ch.crif_online.www.webservices.crifsoapservice.v1_00.ControlPerson controlPersonsExt);",
"void setControlPersonsExtArray(ch.crif_online.www.webservices.crifsoapservice.v1_00.ControlPerson[] controlPersonsExtArray);",
"org.apache.xmlbeans.XmlObject addNewContactMeans();",
"public void addCustExt() {\n String toAdd = customExt.getText();\n String[] extensions = toAdd.split(\",\");\n ExtensionsAdder.addExtensions(extensions);\n }",
"public void addElement() {\n\t\tXmlNode newNode = new XmlNode(rootNode, this);// make a new default-type field\n\t\taddElement(newNode);\n\t}",
"public org.apache.xmlbeans.XmlObject addNewValue()\n {\n synchronized (monitor())\n {\n check_orphaned();\n org.apache.xmlbeans.XmlObject target = null;\n target = (org.apache.xmlbeans.XmlObject)get_store().add_element_user(VALUE$2);\n return target;\n }\n }",
"private void addDefaultPerson() {\n personNames.add(\"you\");\n personIds.add(STConstants.PERSON_NULL_ID);\n personPhotos.add(null);\n personSelections.add(new HashSet<Integer>()); \n }",
"org.apache.xmlbeans.XmlObject insertNewContactMeans(int i);",
"org.apache.geronimo.corba.xbeans.csiv2.tss.TSSGeneralNameType insertNewGeneralName(int i);",
"org.apache.geronimo.corba.xbeans.csiv2.tss.TSSGeneralNameType addNewGeneralName();",
"int insert(AttributeExtend record);",
"public ExtElement insertFirst(String element, BaseModel value) {\r\n\t\treturn insertFirst(element, value.getJsObj());\r\n\t}",
"public int insertNewElement() {\r\n\t\treturn insertElements(Arrays.asList(getNewObject()));\r\n\t}",
"public void copyAndInsertElement(XmlNode node) {\n\t\t\t\n\t\tXmlNode newNode = duplicateDataFieldNode(node);\n\t\tduplicateDataFieldTree(node, newNode);\n\t\t\t\n\t\taddElement(newNode);\n\t\t\n\t}",
"int insertSelective(PersonRegisterDo record);",
"Builder addAccountablePerson(String value);",
"private Node getCompanyElements(Document doc, Element element, String name, String value) {\r\n Element node = doc.createElement(name);\r\n node.appendChild(doc.createTextNode(value));\r\n return node;\r\n }",
"private static Node getReceiverElements(Document doc, Element element, String name, String value) {\r\n\t\tElement node = doc.createElement(name);\r\n\t\tnode.appendChild(doc.createTextNode(value));\r\n\t\treturn node;\r\n\t}",
"public org.openxmlformats.schemas.presentationml.x2006.main.CTExtensionList addNewExtLst()\n {\n synchronized (monitor())\n {\n check_orphaned();\n org.openxmlformats.schemas.presentationml.x2006.main.CTExtensionList target = null;\n target = (org.openxmlformats.schemas.presentationml.x2006.main.CTExtensionList)get_store().add_element_user(EXTLST$14);\n return target;\n }\n }",
"int insertSelective(CfgPrintTemplateAttr record);",
"ch.crif_online.www.webservices.crifsoapservice.v1_00.ControlPerson getControlPersonsExtArray(int i);",
"void xsetAccountNumber(org.apache.xmlbeans.XmlString accountNumber);",
"public ExtElement insertFirst(ExtElement element, BaseModel value) {\r\n\t\treturn insertFirst(element, value.getJsObj());\r\n\t}",
"int insertSelective(AttributeExtend record);",
"private Element generateEmptyOutboundElem(XmlProcessor hqmfXmlProcessor) {\n\t\tElement outboundRelElem = hqmfXmlProcessor.getOriginalDoc().createElement(OUTBOUND_RELATIONSHIP);\n\t\toutboundRelElem.setAttribute(TYPE_CODE, \"COMP\");\n\t\treturn outboundRelElem;\n\t}",
"x0401.oecdStandardAuditFileTaxPT1.CustomsDetails addNewCustomsDetails();",
"public String toInsert() {\r\n return \"(null,'\"+ ref + \"','\" + name + \"','\" + tel + \"','\" + address + \"')\";\r\n }",
"int insertSelective(CompanyExtend record);",
"public PersonBuilderName noID()\n {\n edma_value[0] = null;\n return this;\n }",
"org.landxml.schema.landXML11.NoPassingZoneDocument.NoPassingZone insertNewNoPassingZone(int i);",
"int insert(CfgPrintTemplateAttr record);",
"void xsetDomicilio(org.apache.xmlbeans.XmlString domicilio);",
"public void addElement(XmlNode newNode) {\n\t\t\n\t\t// get selected Fields and add xmlElement after last seleted one\n\n\t\tXmlNode lastDataField = null;\n\t\t\n\t\tif (highlightedFields.size() > 0) {\n\t\t\tlastDataField = highlightedFields.get(highlightedFields.size()-1);\n\t\t} else {\n\t\t\t// add after last child of protocol (if there are any!)\n\t\t\tint numChildren = getRootNode().getChildren().size();\n\t\t\tif (numChildren > 0) \n\t\t\t\tlastDataField = rootNode.getChild(numChildren - 1);\n\t\t\t// otherwise, lastDataField is null, and new xmlElement will be 1st child of protocol\n\t\t}\n\t\t\n\t\t// if no xmlElement selected (none exist!), add at top (1st child of protocol)\n\t\tif (lastDataField == null) {\n\t\t\tnewNode.setParent(rootNode);\n\t\t\trootNode.addChild(newNode);\n\t\t\tnodeSelected(newNode, true);\n\t\t}\n\t\telse {\n\t\t// otherwise, add after the xmlElement.\n\t\t\tXmlNode parentNode = lastDataField.getParentNode();\n\t\t\tint indexToInsert = lastDataField.getMyIndexWithinSiblings() + 1;\n\n\t\t\tnewNode.setParent(parentNode);\n\t\t\tparentNode.addChild(indexToInsert, newNode);\n\t\t\t\n\t\t\tnodeSelected(newNode, true);\n\t\t}\n\t}",
"private void addOMEChild(String name, String value, OMElement parent, OMFactory factory, OMNamespace dsNs){\r\n\t\t OMElement child = factory.createOMElement(name, dsNs);\r\n\t\t child.addChild(factory.createOMText(value));\r\n\t\t parent.addChild(child);\r\n\t }",
"private void addSubnodes( Element root, int num ) {\r\n\t\t// element elements\r\n\t\tElement element = doc.createElement(\r\n\t\t\tUtils.replaceWhitespaces(\r\n\t\t\t\tInputs.getStr( \"¿Nombre del elemento \" + num + \"?\" ), '_'\r\n\t\t\t)\r\n\t\t);\r\n\t\telement.appendChild( \r\n\t\t\tdoc.createTextNode(\r\n\t\t\t\tInputs.getStr( \"¿Texto del elemento?\" )\r\n\t\t\t)\r\n\t\t);\r\n\t\troot.appendChild( element );\r\n\r\n\t\t// set attributes to element\r\n\t\twhile ( Inputs.confirm( \"¿Añadir un atributo?\" )) {\r\n\r\n\t\t\taddAttr( element );\r\n\t\t}\r\n\t}",
"ch.crif_online.www.webservices.crifsoapservice.v1_00.ControlPerson[] getControlPersonsExtArray();",
"int insertSelective(SysOrganization record);",
"Builder addEditor(Person.Builder value);",
"org.landxml.schema.landXML11.BridgeElementDocument.BridgeElement addNewBridgeElement();",
"amdocs.iam.pd.webservices.productrelations.checkproducteligibilityoutput.CheckProductEligibilityOutput addNewROOT();",
"public static native Element insertFirst(Element parent, DomConfig config)/*-{\r\n\t\tvar configJS = config.@com.ait.toolkit.sencha.shared.client.dom.DomConfig::getJsObject()();\r\n\t\treturn $wnd.Ext.DomHelper.insertFirst(parent, configJS);\r\n\t}-*/;",
"private void addElem(Document doc, Element parent, String elemName,\r\n String elemValue, boolean required) {\r\n Element elem = doc.createElement(elemName);\r\n elem.appendChild(doc.createTextNode(elemValue));\r\n if (required) {\r\n elem.setAttribute(\"required\", \"true\");\r\n }\r\n parent.appendChild(elem);\r\n }",
"public ExtElement overwrite(String element, BaseModel value) {\r\n\t\treturn overwrite(element, value.getJsObj());\r\n\t}",
"public Element toXml(Document doc)\n {\n if (null == doc)\n throw new IllegalArgumentException(\"Must provide a valid Document\");\n Element root = doc.createElement(XML_NODE_NAME);\n root.setAttribute(XML_NAME_ATTR, m_name);\n if (m_displayName.length() > 0)\n root.setAttribute(XML_DISPLAYNAME_ATTR, m_displayName);\n root.setAttribute(XML_DIMENSION_ATTR, m_dimension);\n root.setAttribute(XML_CHOICESET_ATTR, m_choiceSet);\n if (m_description.length() > 0)\n PSXmlDocumentBuilder.addElement(doc, root, XELEM_DESCRIPTION,\n m_description);\n\n // psxctl:ParamList\n if (m_params.size() > 0)\n {\n Element paramList = doc.createElement( XELEM_PARAMLIST );\n for (Iterator iter = m_params.iterator(); iter.hasNext();)\n {\n PSControlParameter param = (PSControlParameter) iter.next();\n paramList.appendChild(param.toXml(doc));\n }\n root.appendChild(paramList);\n }\n\n // psxctl:AssociatedFileList\n if (m_files.size() > 0)\n {\n Element files = doc.createElement( XELEM_FILES );\n for (Iterator iter = m_files.iterator(); iter.hasNext();)\n {\n PSFileDescriptor file = (PSFileDescriptor) iter.next();\n files.appendChild( file.toXml( doc ) );\n }\n root.appendChild(files);\n }\n\n // psxctl:Dependencies\n if (m_dependencies.size() > 0)\n {\n Element dependencies = doc.createElement( XELEM_DEPENDENCIES );\n for (Iterator iter = m_dependencies.iterator(); iter.hasNext();)\n {\n PSDependency dependency = (PSDependency) iter.next();\n dependencies.appendChild( dependency.toXml( doc ) );\n }\n root.appendChild(dependencies);\n }\n\n return root;\n }",
"public Element toXMLElement() {\n return null;\n }",
"XomNode appendElement(Element element) throws XmlBuilderException;",
"E createDefaultElement();",
"public String toXML() {\n return null;\n }",
"Builder addEditor(Person value);",
"int insertSelective(OrgMemberRecord record);",
"private Element generateCriteriaElementForSetOpExcerpt(XmlProcessor hqmfXmlProcessor,\n\t\t\tNode clonedNodeToAppendExcerpt) {\n\t\tElement criteriaElement = null;\n\t\tfor (int i = 0; i < clonedNodeToAppendExcerpt.getChildNodes().getLength(); i++) {\n\t\t\tNode childNode = clonedNodeToAppendExcerpt.getChildNodes().item(i);\n\t\t\tif (ID.equalsIgnoreCase(childNode.getNodeName())) {\n\t\t\t\tNode criteriaNode = generateEmptyGrouper(hqmfXmlProcessor,\n\t\t\t\t\t\tchildNode.getAttributes().getNamedItem(ROOT).getNodeValue(),\n\t\t\t\t\t\tchildNode.getAttributes().getNamedItem(EXTENSION).getNodeValue());\n\t\t\t\tcriteriaElement = (Element) criteriaNode;\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\t\treturn criteriaElement;\n\t}",
"public org.openxmlformats.schemas.presentationml.x2006.main.CTEmpty addNewPresent()\n {\n synchronized (monitor())\n {\n check_orphaned();\n org.openxmlformats.schemas.presentationml.x2006.main.CTEmpty target = null;\n target = (org.openxmlformats.schemas.presentationml.x2006.main.CTEmpty)get_store().add_element_user(PRESENT$0);\n return target;\n }\n }",
"@Override\r\n public IPreExtensionStrategy setGenValueAppendStrategy(GenValueAppendStrategy strategy) {\r\n // TODO Auto-generated method stub\r\n return null;\r\n }",
"Builder addProvider(Person.Builder value);",
"org.landxml.schema.landXML11.BridgeElementDocument.BridgeElement insertNewBridgeElement(int i);",
"int insertSelective(WfCfgModuleCatalog record);",
"Element xmlGetElements() {\n Element eItem= new Element(\"RandomName\");\n\n eItem.addContent(new Element(\"sName\").setText(xmlControl.escapeChars(sName)));\n eItem.addContent(new Element(\"sRace\").setText(xmlControl.escapeChars(sRace)));\n eItem.addContent(new Element(\"bLast\").setText(bLast?\"true\":\"false\"));\n eItem.addContent(new Element(\"bFemale\").setText(bFemale?\"true\":\"false\"));\n eItem.addContent(new Element(\"bMale\").setText(bMale?\"true\":\"false\"));\n\n\n return eItem;\n }",
"public void testXmlInsert() {\r\n \r\n GrouperSession.startRootSession();\r\n \r\n AuditType auditTypeOriginal = exampleAuditTypeDb(\"exampleInsert\", \"exampleInsertAction\");\r\n \r\n //not sure why I need to sleep, but the last membership update gets messed up...\r\n GrouperUtil.sleep(1000);\r\n \r\n //do this because last membership update isnt there, only in db\r\n auditTypeOriginal = exampleRetrieveAuditTypeDb(\"exampleInsert\", \"exampleInsertAction\", true);\r\n AuditType auditTypeCopy = exampleRetrieveAuditTypeDb(\"exampleInsert\", \"exampleInsertAction\", true);\r\n AuditType auditTypeCopy2 = exampleRetrieveAuditTypeDb(\"exampleInsert\", \"exampleInsertAction\", true);\r\n HibernateSession.byObjectStatic().delete(auditTypeCopy);\r\n \r\n //lets insert the original\r\n auditTypeCopy2.xmlSaveBusinessProperties(null);\r\n auditTypeCopy2.xmlSaveUpdateProperties();\r\n\r\n //refresh from DB\r\n auditTypeCopy = exampleRetrieveAuditTypeDb(\"exampleInsert\", \"exampleInsertAction\", true);\r\n \r\n assertFalse(auditTypeCopy == auditTypeOriginal);\r\n assertFalse(auditTypeCopy.xmlDifferentBusinessProperties(auditTypeOriginal));\r\n assertFalse(auditTypeCopy.xmlDifferentUpdateProperties(auditTypeOriginal));\r\n \r\n }",
"public String toXML() {\n return null;\n }",
"protected Object atInsert(Object value) {\n return null;\n }",
"private Element createXmlElementForNameValuePair(Value name, Value value, Document xmlDocument, Constraint constraint) {\n\t\tif (excludedNames.contains(name.toString()))\n\t\t\treturn null;\n\t\t\n\t\tif (constraint != null)\n\t\t\tname = MultiValue.simplify(name, constraint);\n\t\telse {\n\t\t\tname = MultiValue.simplify(name);\n\t\t}\n\t\tif (name == Undefined.UNDEFINED)\n\t\t\treturn null;\n\n\t\t\t\n\t\tif (constraint != null)\n\t\t\tvalue = MultiValue.simplify(value, constraint);\n\t\telse {\n\t\t\tvalue = MultiValue.simplify(value);\n\t\t}\n\t\tif (value == Undefined.UNDEFINED || value instanceof NullValue)\n\t\t\treturn null;\n\t\t\n\t\tElement element = xmlDocument.createElement(XML_NAME_VALUE);\n\t\telement.setAttribute(XML_DESC, name.toString());\n\t\telement.setAttribute(XML_INFO1, value instanceof ObjectExtValue ? \"Object\" : value.toString());\n\t\t\n\t\tElement childElement = createXmlElementForValue(value, xmlDocument, constraint);\n\t\tif (childElement != null)\n\t\t\telement.appendChild(childElement);\n\t\t\n\t\treturn (element.hasChildNodes() ? element : null);\n\t}",
"@FXML\n\tpublic void addRegistrationPair() {\n\t\tm_registrationState.addEmptyPair();\n\t}",
"public String\ttoXML()\t{\n\t\treturn toXML(0);\n\t}",
"private String addPerson()\n {\n String phone = getPhone();\n System.out.println(\"Person tilføjet.\");\n System.out.println(\"\");\n return phone;\n }",
"Builder addAccountablePerson(Person.Builder value);",
"int insert(CompanyExtend record);",
"@Override\n public void parseToXML(Document doc, Element parent)\n {\n String value = this.valueProperty().getValue();\n if (this.isRequired())\n parent.setAttribute(this.getName(), value);\n else if (! value.trim().isEmpty())\n parent.setAttribute(this.getName(), value);\n\n }",
"Builder addCharacter(Person.Builder value);",
"public String getKMLExtendedData(){\r\n String exData = \"\";\r\n for (int i = 0; i<attributes.size(); i++){\r\n String exDataRow = \"<Data name=\\\"\"+attributes.get(i).getAttName()+\"\\\"><value>\"+attributes.get(i).getAttValue()+\"</value></Data>\\n\";\r\n exData = exData+exDataRow;\r\n }\r\n return exData;\r\n }",
"int insertSelective(SpecValuePO record);",
"void insert(XdSpxx record);",
"public void openBlankXmlFile() {\n\t\t\n\t\t// the root of the xmlElement tree\n\t\trootNode = new XmlNode(this);\n\t\tXmlElement rootField = rootNode.getXmlElement();\n\t\t\n\t\trootField.setName(\"rootElement\", true);\n\t\t\n\t\tXmlNode newNode = new XmlNode(rootNode, this);// make a new default-type field\n\t\trootNode.addChild(newNode);\n\t}",
"public void addToInsertSelects(entity.LoadInsertSelect element);",
"com.icare.eai.schema.om.evSORequest.ListOfServiceElementsComplexType addNewListOfServiceElements();",
"private Element createXmlElementForObject(ObjectExtValue object, Document xmlDocument, Constraint constraint) {\n\t\tElement element = xmlDocument.createElement(XML_OBJECT);\n\t\t\n\t\tArrayList<NameValuePair> pairs = new ArrayList<NameValuePair>();\n\t\tfor (Iterator<Map.Entry<Value,Value>> iter = ((EntrySet) object.entrySet()).iterator(); iter.hasNext(); ) {\n\t\t\tMap.Entry<Value, Value> pair = iter.next();\n\t\t\tpairs.add(new NameValuePair(pair.getKey(), pair.getValue()));\n\t\t}\n\t\t\t\n\t\tCollections.sort(pairs, SortNameValuePairByName.inst);\n\t\t\n\t\tfor (NameValuePair pair : pairs) {\n\t\t\tElement childElement = createXmlElementForNameValuePair(pair.getName(), pair.getValue(), xmlDocument, constraint);\n\t\t\tif (childElement != null)\n\t\t\t\telement.appendChild(childElement);\n\t\t}\n\n\t\treturn (element.hasChildNodes() ? element : null);\n\t}",
"Builder addAccountablePerson(Person value);",
"public ExtElement insertBefore(String element, BaseModel value) {\r\n\t\treturn insertBefore(element, value.getJsObj());\r\n\t}",
"public static native ExtElement append(ExtElement parent, DomConfig config)/*-{\r\n\t\tvar configJS = config.@com.ait.toolkit.sencha.shared.client.dom.DomConfig::getJsObject()();\r\n\t\tvar obj = $wnd.Ext.DomHelper.append(\r\n\t\t\t\tparent.@com.ait.toolkit.core.client.JsObject::getJsObj()(),\r\n\t\t\t\tconfigJS, true);\r\n\t\treturn @com.ait.toolkit.sencha.shared.client.dom.ExtElement::new(Lcom/google/gwt/core/client/JavaScriptObject;)(obj);\r\n\t}-*/;",
"Builder addProvider(Person value);",
"public void addTX(){\r\n System.out.println(\"\\n\\n\");//print new line for clarity;\r\n\r\n DocumentBuilderFactory factory = DocumentBuilderFactory.newInstance();\r\n DocumentBuilder builder = null;\r\n\r\n try { builder = factory.newDocumentBuilder(); }\r\n catch (ParserConfigurationException e) { e.printStackTrace(); }\r\n\r\n // Load the input XML document, parse it and return an instance of the document class. will need to make this work on any computer somehow.\r\n Document document = null;\r\n\r\n try { document = builder.parse(new File(\"test.xml\")); }\r\n catch (SAXException e) { e.printStackTrace(); }\r\n catch (IOException e) { e.printStackTrace(); }\r\n\r\n //refere to Transmitter.java\r\n List<sample.Transmitter> transmitters = new ArrayList<sample.Transmitter>();\r\n NodeList nodeList = document.getDocumentElement().getChildNodes();\r\n for (int i = 0; i < nodeList.getLength(); i++) { //loop through to get every item and its attributes from the test.xml\r\n Node node = nodeList.item(i);\r\n if (node.getNodeType() == Node.ELEMENT_NODE) {\r\n Element elem = (Element) node;\r\n // Get the value of the ID attribute.\r\n ID = node.getAttributes().getNamedItem(\"ID\").getNodeValue();// transmitters(i.e. ULXTE-2)\r\n powerRating = Double.parseDouble(elem.getElementsByTagName(\"Power\").item(0).getChildNodes().item(0).getNodeValue());\r\n\r\n transmitters.add(new sample.Transmitter(ID, pa, cabinets, powerblocks, linesize, powerRating));//call constructor in Transmitter.java to set values for variables\r\n //read transmitter ID's into tx_cb combo box\r\n\r\n if(powerRating > Double.parseDouble(tpo.getText())) {\r\n tx_cb.getItems().add(ID);//add each ID(i.e. ULXTE-2) to tx_cb combo box\r\n System.out.println(ID + \"added to Transmitter combo box\");\r\n }\r\n }\r\n }\r\n }",
"int insertSelective(SdkPhone record);",
"public String getxValueAdded() {\n String text = xValueAdded.getText();\n if(text == null) {\n return(\"numGenerations\");\n } else {\n return (text);\n }\n}",
"public void insertInfo(editUserSetGet eu);",
"public String toXML()\n\t{\n\t\treturn toXML(0);\n\t}",
"public String toXML()\n\t{\n\t\treturn toXML(0);\n\t}",
"public M csmiPersonNull(){if(this.get(\"csmiPersonNot\")==null)this.put(\"csmiPersonNot\", \"\");this.put(\"csmiPerson\", null);return this;}",
"public XCN insertAdministeringProvider(int rep) throws HL7Exception { \r\n return (XCN) super.insertRepetition(10, rep);\r\n }",
"public ExtElement overwrite(ExtElement element, BaseModel value) {\r\n\t\treturn overwrite(element, value.getJsObj());\r\n\t}",
"@Test\n\tpublic void addProperty() {\n\t\tXMLTagParser.addNewElement(\"Person\");\n\t\tXMLTagParser.editElement(\"Person\", \"residence\", \"milan\");\n\n\t\tXMLTagParser.editProperty(\"Person\", \"residence\", \"isRenting\", \"false\");\n\t\tassertEquals(XMLTagParser.getPropertyValueFromTag(\"Person\", \"residence\", \"isRenting\"), \"false\");\n\t\tXMLTagParser.editProperty(\"Person\", \"residence\", \"hasGarage\", \"true\");\n\t\tassertEquals(XMLTagParser.getPropertyValueFromTag(\"Person\", \"residence\", \"hasGarage\"), \"true\");\n\t}",
"public void setExtValue(String extValue) {\n this.extValue = extValue == null ? null : extValue.trim();\n }",
"int insertSelective(MrpConfigSettingsEntity record);",
"public String getIdentityInsertString() {\n \t\treturn null;\n \t}",
"public Element marshall()\n {\n Element element = new Element(getQualifiedName(), Namespaces.NS_ATOM);\n if( type != null )\n {\n Attribute typeAttribute = new Attribute(\"type\", type.toString());\n element.addAttribute(typeAttribute);\n }\n \n if( content != null )\n\t {\n\t\t element.appendChild(content);\n\t }\n\t return element;\n }",
"private Element createXmlElementForSwitch(Switch switch_, Document xmlDocument, Constraint constraint) {\n\t\tElement element = xmlDocument.createElement(XML_SWITCH);\n\n\t\tfor (Case case_ : switch_) {\n\t\t\tElement child = createXmlElementForCase(case_, xmlDocument, constraint);\n\t\t\tif (child != null)\n\t\t\t\telement.appendChild(child);\n\t\t}\n\t\t\n\t\treturn (element.hasChildNodes() ? element : null);\n\t}",
"protected XMLElement createAnotherElement() {\n return new XMLElement(this.conversionTable,\n this.skipLeadingWhitespace,\n false,\n this.ignoreCase);\n }",
"private Element createXmlElementForChoice(Choice choice, Document xmlDocument, Constraint constraint) {\n\t\tElement element = xmlDocument.createElement(XML_CHOICE);\n\t\telement.setAttribute(XML_INFO1, choice.getConstraint().toString());\n\n\t\tElement child1 = createXmlElementForValue(choice.getValue1(), xmlDocument, constraint);\n\t\tif (child1 != null)\n\t\t\telement.appendChild(child1);\n\t\t\n\t\tElement child2 = createXmlElementForValue(choice.getValue2(), xmlDocument, constraint);\n\t\tif (child2 != null)\n\t\t\telement.appendChild(child2);\n\t\t\n\t\treturn (element.hasChildNodes() ? element : null);\n\t}"
] |
[
"0.64133036",
"0.5569135",
"0.54560566",
"0.5300301",
"0.524321",
"0.51605374",
"0.50787795",
"0.50280917",
"0.4960225",
"0.49170315",
"0.48697168",
"0.48470053",
"0.48428577",
"0.48410445",
"0.4782611",
"0.47803947",
"0.47674266",
"0.47582847",
"0.47559613",
"0.47423965",
"0.47342855",
"0.4718652",
"0.47185287",
"0.47032428",
"0.4698963",
"0.46987632",
"0.46626097",
"0.46523908",
"0.46485788",
"0.46407154",
"0.4627281",
"0.46151796",
"0.46148372",
"0.46114665",
"0.46111512",
"0.46065813",
"0.4606255",
"0.4605497",
"0.45990866",
"0.45747304",
"0.45606217",
"0.45602253",
"0.4537703",
"0.45262593",
"0.45248196",
"0.4502636",
"0.4501749",
"0.44975582",
"0.4496764",
"0.4496445",
"0.44896182",
"0.44889697",
"0.4485332",
"0.4484275",
"0.44807145",
"0.4474597",
"0.44726184",
"0.4467274",
"0.44654006",
"0.44631588",
"0.44621682",
"0.44621438",
"0.44620958",
"0.44602203",
"0.44577163",
"0.44574183",
"0.44554642",
"0.44488683",
"0.44468427",
"0.44370311",
"0.44321522",
"0.44268477",
"0.44206807",
"0.44204506",
"0.44182026",
"0.44133583",
"0.44121855",
"0.44059196",
"0.44040856",
"0.4399572",
"0.4398255",
"0.4388408",
"0.43867776",
"0.4382631",
"0.4377121",
"0.43758857",
"0.43726635",
"0.43706506",
"0.43706506",
"0.4369906",
"0.4369421",
"0.4367788",
"0.43677014",
"0.43568596",
"0.43552712",
"0.43551317",
"0.43529952",
"0.4351001",
"0.4344592",
"0.43441954"
] |
0.59805983
|
1
|
Appends and returns a new empty value (as xml) as the last "controlPersonsExt" element
|
ch.crif_online.www.webservices.crifsoapservice.v1_00.ControlPerson addNewControlPersonsExt();
|
{
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
}
|
[
"ch.crif_online.www.webservices.crifsoapservice.v1_00.AddressDescription addNewControlPersons();",
"public void addCustExt() {\n String toAdd = customExt.getText();\n String[] extensions = toAdd.split(\",\");\n ExtensionsAdder.addExtensions(extensions);\n }",
"void setControlPersonsExtArray(ch.crif_online.www.webservices.crifsoapservice.v1_00.ControlPerson[] controlPersonsExtArray);",
"ch.crif_online.www.webservices.crifsoapservice.v1_00.ControlPerson insertNewControlPersonsExt(int i);",
"void setControlPersonsExtArray(int i, ch.crif_online.www.webservices.crifsoapservice.v1_00.ControlPerson controlPersonsExt);",
"private Element createXmlElementForConcat(Concat concat, Document xmlDocument, Constraint constraint) {\n\t\tElement element = xmlDocument.createElement(XML_CONCAT);\n\t\t//element.setAttribute(XML_INFO1, concat.getValue1().toString());\n\t\t//element.setAttribute(XML_INFO2, concat.getValue2().toString());\n\n\t\tfor (Value childValue : concat) {\n\t\t\tElement child = createXmlElementForValue(childValue, xmlDocument, constraint);\n\t\t\tif (child != null)\n\t\t\t\telement.appendChild(child);\n\t\t}\n\t\t\n\t\treturn (element.hasChildNodes() ? element : null);\n\t}",
"ch.crif_online.www.webservices.crifsoapservice.v1_00.ControlPerson[] getControlPersonsExtArray();",
"public org.openxmlformats.schemas.presentationml.x2006.main.CTExtensionList addNewExtLst()\n {\n synchronized (monitor())\n {\n check_orphaned();\n org.openxmlformats.schemas.presentationml.x2006.main.CTExtensionList target = null;\n target = (org.openxmlformats.schemas.presentationml.x2006.main.CTExtensionList)get_store().add_element_user(EXTLST$14);\n return target;\n }\n }",
"org.apache.xmlbeans.XmlObject addNewContactMeans();",
"private Element generateEmptyOutboundElem(XmlProcessor hqmfXmlProcessor) {\n\t\tElement outboundRelElem = hqmfXmlProcessor.getOriginalDoc().createElement(OUTBOUND_RELATIONSHIP);\n\t\toutboundRelElem.setAttribute(TYPE_CODE, \"COMP\");\n\t\treturn outboundRelElem;\n\t}",
"ch.crif_online.www.webservices.crifsoapservice.v1_00.ControlPerson getControlPersonsExtArray(int i);",
"public org.apache.xmlbeans.XmlObject addNewValue()\n {\n synchronized (monitor())\n {\n check_orphaned();\n org.apache.xmlbeans.XmlObject target = null;\n target = (org.apache.xmlbeans.XmlObject)get_store().add_element_user(VALUE$2);\n return target;\n }\n }",
"ch.crif_online.www.webservices.crifsoapservice.v1_00.AddressDescription insertNewControlPersons(int i);",
"public void addElement() {\n\t\tXmlNode newNode = new XmlNode(rootNode, this);// make a new default-type field\n\t\taddElement(newNode);\n\t}",
"public String getKMLExtendedData(){\r\n String exData = \"\";\r\n for (int i = 0; i<attributes.size(); i++){\r\n String exDataRow = \"<Data name=\\\"\"+attributes.get(i).getAttName()+\"\\\"><value>\"+attributes.get(i).getAttValue()+\"</value></Data>\\n\";\r\n exData = exData+exDataRow;\r\n }\r\n return exData;\r\n }",
"public static native ExtElement append(ExtElement parent, DomConfig config)/*-{\r\n\t\tvar configJS = config.@com.ait.toolkit.sencha.shared.client.dom.DomConfig::getJsObject()();\r\n\t\tvar obj = $wnd.Ext.DomHelper.append(\r\n\t\t\t\tparent.@com.ait.toolkit.core.client.JsObject::getJsObj()(),\r\n\t\t\t\tconfigJS, true);\r\n\t\treturn @com.ait.toolkit.sencha.shared.client.dom.ExtElement::new(Lcom/google/gwt/core/client/JavaScriptObject;)(obj);\r\n\t}-*/;",
"private void addDefaultPerson() {\n personNames.add(\"you\");\n personIds.add(STConstants.PERSON_NULL_ID);\n personPhotos.add(null);\n personSelections.add(new HashSet<Integer>()); \n }",
"public org.openxmlformats.schemas.drawingml.x2006.main.CTOfficeArtExtensionList addNewExtLst()\n {\n synchronized (monitor())\n {\n check_orphaned();\n org.openxmlformats.schemas.drawingml.x2006.main.CTOfficeArtExtensionList target = null;\n target = (org.openxmlformats.schemas.drawingml.x2006.main.CTOfficeArtExtensionList)get_store().add_element_user(EXTLST$28);\n return target;\n }\n }",
"private void addOMEChild(String name, String value, OMElement parent, OMFactory factory, OMNamespace dsNs){\r\n\t\t OMElement child = factory.createOMElement(name, dsNs);\r\n\t\t child.addChild(factory.createOMText(value));\r\n\t\t parent.addChild(child);\r\n\t }",
"@Override\r\n public IPreExtensionStrategy setGenValueAppendStrategy(GenValueAppendStrategy strategy) {\r\n // TODO Auto-generated method stub\r\n return null;\r\n }",
"public String\ttoXML()\t{\n\t\treturn toXML(0);\n\t}",
"private String addExtra() {\n\t\t// One Parameter: ExtraName\n\t\tStringBuilder tag = new StringBuilder();\n\t\ttag.append(\"|extra:\" + parameters[0]);\n\t\treturn tag.toString();\n\t}",
"void removeControlPersonsExt(int i);",
"public RTWElementRef lastAsElement();",
"public String toXML() {\n return null;\n }",
"public String toXML()\n\t{\n\t\treturn toXML(0);\n\t}",
"public String toXML()\n\t{\n\t\treturn toXML(0);\n\t}",
"public PersonBuilderName noID()\n {\n edma_value[0] = null;\n return this;\n }",
"public static native ExtElement append(Element parent, DomConfig config)/*-{\r\n\t\tvar configJS = config.@com.ait.toolkit.sencha.shared.client.dom.DomConfig::getJsObject()();\r\n\t\tvar obj = $wnd.Ext.DomHelper.append(parent, configJS, true);\r\n\t\treturn @com.ait.toolkit.sencha.shared.client.dom.ExtElement::new(Lcom/google/gwt/core/client/JavaScriptObject;)(obj);\r\n\t}-*/;",
"public io.envoyproxy.envoy.config.core.v3.Extension.Builder addExtensionsBuilder() {\n return getExtensionsFieldBuilder().addBuilder(\n io.envoyproxy.envoy.config.core.v3.Extension.getDefaultInstance());\n }",
"public String toXML() {\n return null;\n }",
"private Element generateCriteriaElementForSetOpExcerpt(XmlProcessor hqmfXmlProcessor,\n\t\t\tNode clonedNodeToAppendExcerpt) {\n\t\tElement criteriaElement = null;\n\t\tfor (int i = 0; i < clonedNodeToAppendExcerpt.getChildNodes().getLength(); i++) {\n\t\t\tNode childNode = clonedNodeToAppendExcerpt.getChildNodes().item(i);\n\t\t\tif (ID.equalsIgnoreCase(childNode.getNodeName())) {\n\t\t\t\tNode criteriaNode = generateEmptyGrouper(hqmfXmlProcessor,\n\t\t\t\t\t\tchildNode.getAttributes().getNamedItem(ROOT).getNodeValue(),\n\t\t\t\t\t\tchildNode.getAttributes().getNamedItem(EXTENSION).getNodeValue());\n\t\t\t\tcriteriaElement = (Element) criteriaNode;\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\t\treturn criteriaElement;\n\t}",
"private static Node getReceiverElements(Document doc, Element element, String name, String value) {\r\n\t\tElement node = doc.createElement(name);\r\n\t\tnode.appendChild(doc.createTextNode(value));\r\n\t\treturn node;\r\n\t}",
"com.icare.eai.schema.om.evSORequest.ListOfServiceElementsComplexType addNewListOfServiceElements();",
"private String addPerson()\n {\n String phone = getPhone();\n System.out.println(\"Person tilføjet.\");\n System.out.println(\"\");\n return phone;\n }",
"public void addElement(XmlNode newNode) {\n\t\t\n\t\t// get selected Fields and add xmlElement after last seleted one\n\n\t\tXmlNode lastDataField = null;\n\t\t\n\t\tif (highlightedFields.size() > 0) {\n\t\t\tlastDataField = highlightedFields.get(highlightedFields.size()-1);\n\t\t} else {\n\t\t\t// add after last child of protocol (if there are any!)\n\t\t\tint numChildren = getRootNode().getChildren().size();\n\t\t\tif (numChildren > 0) \n\t\t\t\tlastDataField = rootNode.getChild(numChildren - 1);\n\t\t\t// otherwise, lastDataField is null, and new xmlElement will be 1st child of protocol\n\t\t}\n\t\t\n\t\t// if no xmlElement selected (none exist!), add at top (1st child of protocol)\n\t\tif (lastDataField == null) {\n\t\t\tnewNode.setParent(rootNode);\n\t\t\trootNode.addChild(newNode);\n\t\t\tnodeSelected(newNode, true);\n\t\t}\n\t\telse {\n\t\t// otherwise, add after the xmlElement.\n\t\t\tXmlNode parentNode = lastDataField.getParentNode();\n\t\t\tint indexToInsert = lastDataField.getMyIndexWithinSiblings() + 1;\n\n\t\t\tnewNode.setParent(parentNode);\n\t\t\tparentNode.addChild(indexToInsert, newNode);\n\t\t\t\n\t\t\tnodeSelected(newNode, true);\n\t\t}\n\t}",
"public Element toXMLElement() {\n return null;\n }",
"protected HL7DataTree more() {\n return null;\n }",
"public void setExtValue(String extValue) {\n this.extValue = extValue == null ? null : extValue.trim();\n }",
"public String getxValueAdded() {\n String text = xValueAdded.getText();\n if(text == null) {\n return(\"numGenerations\");\n } else {\n return (text);\n }\n}",
"private void addSubnodes( Element root, int num ) {\r\n\t\t// element elements\r\n\t\tElement element = doc.createElement(\r\n\t\t\tUtils.replaceWhitespaces(\r\n\t\t\t\tInputs.getStr( \"¿Nombre del elemento \" + num + \"?\" ), '_'\r\n\t\t\t)\r\n\t\t);\r\n\t\telement.appendChild( \r\n\t\t\tdoc.createTextNode(\r\n\t\t\t\tInputs.getStr( \"¿Texto del elemento?\" )\r\n\t\t\t)\r\n\t\t);\r\n\t\troot.appendChild( element );\r\n\r\n\t\t// set attributes to element\r\n\t\twhile ( Inputs.confirm( \"¿Añadir un atributo?\" )) {\r\n\r\n\t\t\taddAttr( element );\r\n\t\t}\r\n\t}",
"public Element toXml(Document doc)\n {\n if (null == doc)\n throw new IllegalArgumentException(\"Must provide a valid Document\");\n Element root = doc.createElement(XML_NODE_NAME);\n root.setAttribute(XML_NAME_ATTR, m_name);\n if (m_displayName.length() > 0)\n root.setAttribute(XML_DISPLAYNAME_ATTR, m_displayName);\n root.setAttribute(XML_DIMENSION_ATTR, m_dimension);\n root.setAttribute(XML_CHOICESET_ATTR, m_choiceSet);\n if (m_description.length() > 0)\n PSXmlDocumentBuilder.addElement(doc, root, XELEM_DESCRIPTION,\n m_description);\n\n // psxctl:ParamList\n if (m_params.size() > 0)\n {\n Element paramList = doc.createElement( XELEM_PARAMLIST );\n for (Iterator iter = m_params.iterator(); iter.hasNext();)\n {\n PSControlParameter param = (PSControlParameter) iter.next();\n paramList.appendChild(param.toXml(doc));\n }\n root.appendChild(paramList);\n }\n\n // psxctl:AssociatedFileList\n if (m_files.size() > 0)\n {\n Element files = doc.createElement( XELEM_FILES );\n for (Iterator iter = m_files.iterator(); iter.hasNext();)\n {\n PSFileDescriptor file = (PSFileDescriptor) iter.next();\n files.appendChild( file.toXml( doc ) );\n }\n root.appendChild(files);\n }\n\n // psxctl:Dependencies\n if (m_dependencies.size() > 0)\n {\n Element dependencies = doc.createElement( XELEM_DEPENDENCIES );\n for (Iterator iter = m_dependencies.iterator(); iter.hasNext();)\n {\n PSDependency dependency = (PSDependency) iter.next();\n dependencies.appendChild( dependency.toXml( doc ) );\n }\n root.appendChild(dependencies);\n }\n\n return root;\n }",
"public org.apache.xmlbeans.XmlString addNewMappingFields()\n {\n synchronized (monitor())\n {\n check_orphaned();\n org.apache.xmlbeans.XmlString target = null;\n target = (org.apache.xmlbeans.XmlString)get_store().add_element_user(MAPPINGFIELDS$28);\n return target;\n }\n }",
"@Override\n\tpublic AddAdditionalNameElement Elements() {\n\t\treturn new AddAdditionalNameElement(driver);\n\t}",
"private String addEnd() {\n\t\t// NO PARAMETERS\n\t\tStringBuilder tag = new StringBuilder();\n\t\ttag.append(\"|End\");\n\t\treturn tag.toString();\n\t}",
"x0401.oecdStandardAuditFileTaxPT1.CustomsDetails addNewCustomsDetails();",
"public String getExtValue() {\n return extValue;\n }",
"public void setExtAttribute1(String value) {\n setAttributeInternal(EXTATTRIBUTE1, value);\n }",
"public void addOriginalTextWriter(Contact value) {\r\n\t\tBase.add(this.model, this.getResource(), ORIGINALTEXTWRITER, value);\r\n\t}",
"org.apache.geronimo.corba.xbeans.csiv2.tss.TSSGeneralNameType addNewGeneralName();",
"amdocs.iam.pd.webservices.productrelations.checkproducteligibilityoutput.CheckProductEligibilityOutput addNewROOT();",
"@Override\r\n public GenValueAppendStrategy getGenValueAppendStrategy() {\n return null;\r\n }",
"XomNode appendElement(Element element) throws XmlBuilderException;",
"private void appendText()\n\t{\n\t\tString fieldText = \"\";\n\t\tString newText = \"\";\n\t\tfieldText = entry.getText();\n\t\t\n\t\tif(fieldText.equals (\"0\"))\n\t\t{\n\t\t\tnewText += append;\n\t\t\tfieldText = newText;\n\t\t\tentry.setText (fieldText);\n\t\t}\n\t\telse\n\t\t{\n\t\t\tfieldText += append;\n\t\t\tentry.setText (fieldText);\n\t\t}\n\t\t\n\t\tentry.grabFocus ( );\n\t\t\n\t}",
"@FXML\n\tpublic void addRegistrationPair() {\n\t\tm_registrationState.addEmptyPair();\n\t}",
"public void unsetExtLst()\n {\n synchronized (monitor())\n {\n check_orphaned();\n get_store().remove_element(EXTLST$14, 0);\n }\n }",
"Builder addProvider(Person.Builder value);",
"public FundReferenceDataReport4 addXtnsn(Extension1 xtnsn) {\n getXtnsn().add(xtnsn);\n return this;\n }",
"int sizeOfControlPersonsExtArray();",
"Builder addEditor(Person.Builder value);",
"Element xmlGetElements() {\n Element eItem= new Element(\"RandomName\");\n\n eItem.addContent(new Element(\"sName\").setText(xmlControl.escapeChars(sName)));\n eItem.addContent(new Element(\"sRace\").setText(xmlControl.escapeChars(sRace)));\n eItem.addContent(new Element(\"bLast\").setText(bLast?\"true\":\"false\"));\n eItem.addContent(new Element(\"bFemale\").setText(bFemale?\"true\":\"false\"));\n eItem.addContent(new Element(\"bMale\").setText(bMale?\"true\":\"false\"));\n\n\n return eItem;\n }",
"public ExtElement overwrite(String element, BaseModel value) {\r\n\t\treturn overwrite(element, value.getJsObj());\r\n\t}",
"@Override\n\tpublic CharSequence toXML() {\n\t\treturn null;\n\t}",
"public ExtElement overwrite(ExtElement element, BaseModel value) {\r\n\t\treturn overwrite(element, value.getJsObj());\r\n\t}",
"@XmlAnyElement ( lax = true )\n @JsonSerialize ( using = AnyElementSerializer.class )\n public List<Object> getExtensionElements() {\n return extensionElements;\n }",
"Builder addAccountablePerson(Person.Builder value);",
"@Override\r\n\tpublic String toString() {\r\n\t\tif ((personName != null) && (person == null)) {\r\n\t\t\tperson = new PersonType();\r\n\t\t}\r\n\t\tif (personName != null) {\r\n\t\t\tperson.getPersonName().add(personName);\r\n\t\t}\r\n\t\tif (person != null) {\r\n\t\t\tcriteria.setPerson(person);\r\n\t\t}\r\n\r\n\t\tthis.setPersonSearchCriteria(criteria);\r\n\r\n\t\tjava.io.OutputStream stream = new java.io.ByteArrayOutputStream();\r\n\t\ttry {\r\n\t\t\tJAXBContext jaxbContext = JAXBContext.newInstance(JAXB_CONTEXT);\r\n\t\t\tMarshaller marshaller = jaxbContext.createMarshaller();\r\n\t\t\tmarshaller.setProperty(\"jaxb.formatted.output\", true);\r\n\t\t\t// marshaller.setProperty(\"JMMarshallerImpl.JAXME_INDENTATION_STRING\",\r\n\t\t\t// \"\\r\\n\");\r\n\t\t\t// marshaller.setProperty(\"jaxb.noNamespaceSchemaLocation\",\r\n\t\t\t// \"http://uscis.gov/uscis/xsd/services/verification/2.0/verification\");\r\n\t\t\tmarshaller\r\n\t\t\t\t\t.setProperty(\"jaxb.schemaLocation\",\r\n\t\t\t\t\t\t\t\"http://uscis.gov/uscis/xsd/services/verification/2.0/verification\");\r\n\t\t\tmarshaller.marshal(this, stream);\r\n\t\t}\r\n\t\tcatch (Exception e) {\r\n\t\t\t// If you return the error message it might not be caught up front.\r\n\t\t\treturn \"\";\r\n\t\t}\r\n\t\treturn stream.toString();\r\n\t}",
"private static void addExtendedItemNonXmlProps(Element extendedItemNode,ReportDesigner reportDesigner){\r\n\t\t//outputFormat\r\n\t\tElement propertyNode = doc.createElement(\"property\");\r\n\t\tpropertyNode.setAttribute(ReportDesigner.ATTRIBUTE_NAME_NAME,\"outputFormat\");\r\n\t\tpropertyNode.appendChild(doc.createTextNode(\"JPG\"));\r\n\t\textendedItemNode.appendChild(propertyNode);\r\n\r\n\t\t//inheritColumns\r\n\t\tpropertyNode = doc.createElement(ReportDesigner.NODE_NAME_PROPERTY);\r\n\t\tpropertyNode.setAttribute(ReportDesigner.ATTRIBUTE_NAME_NAME,\"inheritColumns\");\r\n\t\tpropertyNode.appendChild(doc.createTextNode(\"false\"));\r\n\t\textendedItemNode.appendChild(propertyNode);\r\n\r\n\t\t//Data Set Chart\r\n\t\tpropertyNode = doc.createElement(ReportDesigner.NODE_NAME_PROPERTY);\r\n\t\tpropertyNode.setAttribute(ReportDesigner.ATTRIBUTE_NAME_NAME,\"dataSet\");\r\n\t\tpropertyNode.appendChild(doc.createTextNode(\"Data Set\"));\r\n\t\textendedItemNode.appendChild(propertyNode);\r\n\r\n\t\t//height\r\n\t\tpropertyNode = doc.createElement(ReportDesigner.NODE_NAME_PROPERTY);\r\n\t\tpropertyNode.setAttribute(ReportDesigner.ATTRIBUTE_NAME_NAME,\"height\");\r\n\t\tpropertyNode.appendChild(doc.createTextNode(\"3.7916666666666665in\"));\r\n\t\textendedItemNode.appendChild(propertyNode);\r\n\r\n\t\t//width\r\n\t\tpropertyNode = doc.createElement(ReportDesigner.NODE_NAME_PROPERTY);\r\n\t\tpropertyNode.setAttribute(ReportDesigner.ATTRIBUTE_NAME_NAME,\"width\");\r\n\t\tpropertyNode.appendChild(doc.createTextNode(\"7.875in\"));\r\n\t\textendedItemNode.appendChild(propertyNode);\r\n\r\n\t\textendedItemNode.appendChild(createExtendedItemListProp(reportDesigner));\r\n\t}",
"Builder addAccountablePerson(String value);",
"void xsetAccountNumber(org.apache.xmlbeans.XmlString accountNumber);",
"public abstract StringBuffer toXML();",
"private String addIDsNew(List<Person> list) {\n\t\tString iD = \"\";\n\t\tfor( int i = 0 ; i < list.size(); i++ ){\n\t\t\tif( i == list.size() - 1 ){\n\t\t\t\tiD = iD + list.get( i ).iD;\n\n\t\t\t}\n\t\t\telse{\n\t\t\t\tiD = iD + list.get( i ).iD + DEFAULT_DELIMMTER;\n\t\t\t}\n\t\t\t\n\t\t}\n\t\treturn iD;\n\t}",
"public String extended() {\r\n final StringBuilder sb = new StringBuilder();\r\n if(type != null) sb.append(\"[\" + code() + \"] \");\r\n return sb + simple();\r\n }",
"public Builder mergePersonOutputCharacteristics(io.dstore.values.StringValue value) {\n if (personOutputCharacteristicsBuilder_ == null) {\n if (personOutputCharacteristics_ != null) {\n personOutputCharacteristics_ =\n io.dstore.values.StringValue.newBuilder(personOutputCharacteristics_).mergeFrom(value).buildPartial();\n } else {\n personOutputCharacteristics_ = value;\n }\n onChanged();\n } else {\n personOutputCharacteristicsBuilder_.mergeFrom(value);\n }\n\n return this;\n }",
"private Node getCompanyElements(Document doc, Element element, String name, String value) {\r\n Element node = doc.createElement(name);\r\n node.appendChild(doc.createTextNode(value));\r\n return node;\r\n }",
"Builder addCopyrightHolder(Person.Builder value);",
"public XMLString concat(String str) {\n/* 673 */ return new XMLStringDefault(this.m_str.concat(str));\n/* */ }",
"private void appendKeyGeneratorSettings() {\n Label keyGeneratorSettings = new Label(Localization.lang(\"Key generator settings\"));\n keyGeneratorSettings.getStyleClass().add(\"sectionHeader\");\n builder.add(keyGeneratorSettings, 1, 10);\n builder.add(autoGenerateOnImport, 1, 11);\n builder.add(letterStartA, 2, 11);\n builder.add(warnBeforeOverwriting, 1, 12);\n builder.add(letterStartB, 2, 12);\n builder.add(dontOverwrite, 1, 13);\n builder.add(alwaysAddLetter, 2, 13);\n builder.add(generateOnSave, 1, 14);\n\n builder.add((new Label(Localization.lang(\"Replace (regular expression)\") + ':')), 1, 15);\n builder.add(new Label(Localization.lang(\"by\") + ':'), 2, 15);\n\n builder.add(keyPatternRegex, 1, 16);\n builder.add(keyPatternReplacement, 2, 16);\n\n dontOverwrite.setOnAction(e ->\n // Warning before overwriting is only relevant if overwriting can happen:\n warnBeforeOverwriting.setDisable(dontOverwrite.isSelected()));\n }",
"@Override\n protected HtmlInsertingResponseOutputWrapper createHtmlInsertingResponseOutputWrapper() {\n return new StoreAttributeAddingHtmlInsertingResponseOutputWrapper();\n }",
"public JspElement getLast() {\r\n\treturn _last;\r\n}",
"public void unsetExtLst()\n {\n synchronized (monitor())\n {\n check_orphaned();\n get_store().remove_element(EXTLST$28, 0);\n }\n }",
"public static native ExtElement append(ExtElement parent, ExtElement child)/*-{\r\n\t\tvar obj = $wnd.Ext.DomHelper\r\n\t\t\t\t.append(\r\n\t\t\t\t\t\tparent.@com.ait.toolkit.core.client.JsObject::getJsObj()(),\r\n\t\t\t\t\t\tchild.@com.ait.toolkit.core.client.JsObject::getJsObj()(),\r\n\t\t\t\t\t\ttrue);\r\n\t\treturn @com.ait.toolkit.sencha.shared.client.dom.ExtElement::new(Lcom/google/gwt/core/client/JavaScriptObject;)(obj);\r\n\t}-*/;",
"public org.openxmlformats.schemas.presentationml.x2006.main.CTEmpty addNewPresent()\n {\n synchronized (monitor())\n {\n check_orphaned();\n org.openxmlformats.schemas.presentationml.x2006.main.CTEmpty target = null;\n target = (org.openxmlformats.schemas.presentationml.x2006.main.CTEmpty)get_store().add_element_user(PRESENT$0);\n return target;\n }\n }",
"public abstract StringBuffer toXML ();",
"public String toXml() {\n\t\treturn(toString());\n\t}",
"public void setExtAttribute14(String value) {\n setAttributeInternal(EXTATTRIBUTE14, value);\n }",
"private org.apache.axiom.soap.SOAPEnvelope toEnvelope(org.apache.axiom.soap.SOAPFactory factory, registry.ClientRegistryStub.AddUser param, boolean optimizeContent, javax.xml.namespace.QName methodQName)\r\n throws org.apache.axis2.AxisFault{\r\n\r\n \r\n try{\r\n\r\n org.apache.axiom.soap.SOAPEnvelope emptyEnvelope = factory.getDefaultEnvelope();\r\n emptyEnvelope.getBody().addChild(param.getOMElement(registry.ClientRegistryStub.AddUser.MY_QNAME,factory));\r\n return emptyEnvelope;\r\n } catch(org.apache.axis2.databinding.ADBException e){\r\n throw org.apache.axis2.AxisFault.makeFault(e);\r\n }\r\n \r\n\r\n }",
"@Override\n\tprotected String getSpecificXML() {\n\t\t\n\t\tStringBuilder xml = new StringBuilder();\n\t\t\n\t\tstartElementWithAttributes(xml, \"Activity\");\n\t\taddStringAttribute(xml, \"activityHandle\", activityHandle);\n\t\tcloseParentElementWithAttributes(xml);\n\t\t\n\t\taddContext(xml);\n\t\taddContextMenu(xml);\n\t\taddMenuAction(xml);\n\t\taddMethods(xml);\n\t\taddDeltas(xml);\n\t\taddPublications(xml);\n\t\taddFields(xml);\n\t\t\n\t\tcloseParentElement(xml, \"Activity\");\n\t\t\n\t\treturn xml.toString();\n\t}",
"public String getExtendGroupName()\n {\n return this.extendGroup_name;\n }",
"public void setSrcPhoneExt(String value) {\r\n setAttributeInternal(SRCPHONEEXT, value);\r\n }",
"StringBuffer generateVc(){\n\n StringBuffer r = new StringBuffer();\n\n for(int i = 0; i <= sons.size() - 1; i++)\n r.append(getChildAt(i).toDot());\n \n return r;\n }",
"public Builder clearPersonOutputCharacteristicsNull() {\n \n personOutputCharacteristicsNull_ = false;\n onChanged();\n return this;\n }",
"public String getNewickExtra(ArrayList<ExtraData> data, String sfextra) //Perhaps make a version of this where the header DTD can be manually specified\n { //Also allow changing of generated tags to user specified values\n \n String newick = new String();\n newick = newick + generateNewickExtra(data, sfextra);\n newick = newick + \";\";\n return newick;\n }",
"void xsetDomicilio(org.apache.xmlbeans.XmlString domicilio);",
"public void addAttributesValue() {\r\n\t\t boolean flag=true;\r\n\t\t wsrdModel.setErrorMsg(\"\");\r\n\t\t List<UiAirplaneModel> modelList = new ArrayList<UiAirplaneModel>(uiAirplaneModel.getApNamesList());\t\r\n\t\t\tfor(UiAirplaneModel save:modelList) {\r\n\t\t\t\tif(save.isInputDisplayItem()) {\r\n\t\t\t\t\tflag = false;\t\t\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\tif(flag) {\r\n\t\t\t\tmodelList.add(emptyAttributesValue());\r\n\t\t\t\tuiAirplaneModel.setApNamesList(modelList);\r\n\t\t\t}else {\r\n\t\t\t\taddErrorMessage(\"wsrdAdmin:addAirplaneNamesPanelID\", \"edit.edit\");\r\n\t\t\t}\r\n\t\t}",
"public String getReceiversXML() {\n Enumeration allReceivers = receivers.elements();\n String retVal = new String();\n while (allReceivers.hasMoreElements()) {\n FIPA_AID_Address currentAddr = (FIPA_AID_Address) allReceivers.nextElement();\n retVal += currentAddr.toXML();\n }\n return retVal;\n }",
"public String getChildElementXML() {\n\n Element spawnVmElement = new Element(LinkedProcess.SPAWN_VM_TAG, LinkedProcess.LOP_FARM_NAMESPACE);\n if (this.vmId != null) {\n spawnVmElement.setAttribute(LinkedProcess.VM_ID_ATTRIBUTE, this.vmId);\n }\n if (this.vmSpecies != null) {\n spawnVmElement.setAttribute(LinkedProcess.VM_SPECIES_ATTRIBUTE, this.vmSpecies);\n }\n if (this.farmPassword != null) {\n spawnVmElement.setAttribute(LinkedProcess.FARM_PASSWORD_ATTRIBUTE, this.farmPassword);\n }\n\n return LinkedProcess.xmlOut.outputString(spawnVmElement);\n }",
"@Override\n public void toXML(Node node)\n {\n super.toXML(node);\n\n Document document = node.getOwnerDocument();\n\n Element e = document.createElement(\"lethal-range\");\n e.setTextContent(String.valueOf(this.getLethalRange()));\n node.appendChild(e);\n\n e = document.createElement(\"pk\");\n e.setTextContent(String.valueOf(this.getPk()));\n node.appendChild(e);\n\n e = document.createElement(\"max-gs\");\n e.setTextContent(String.valueOf(this.getMaxGs()));\n node.appendChild(e);\n }",
"public int getAppendExpValue() {\n\t\treturn appendExpValue;\n\t}",
"public amdocs.iam.pd.webservices.productattrrel.productdetailsoutput.Value addNewValue()\n {\n synchronized (monitor())\n {\n check_orphaned();\n amdocs.iam.pd.webservices.productattrrel.productdetailsoutput.Value target = null;\n target = (amdocs.iam.pd.webservices.productattrrel.productdetailsoutput.Value)get_store().add_element_user(VALUE$0);\n return target;\n }\n }"
] |
[
"0.5474187",
"0.52779233",
"0.5256282",
"0.5187802",
"0.51420456",
"0.50690806",
"0.50361496",
"0.5015543",
"0.4959056",
"0.49494082",
"0.494939",
"0.48978895",
"0.47900632",
"0.4770422",
"0.47386792",
"0.4735773",
"0.4726832",
"0.4719523",
"0.47108287",
"0.46831924",
"0.46765155",
"0.46085912",
"0.45757315",
"0.45748052",
"0.45628873",
"0.45627844",
"0.45627844",
"0.4562759",
"0.45541376",
"0.45443666",
"0.4518082",
"0.45170137",
"0.44938928",
"0.44862354",
"0.44819656",
"0.44812796",
"0.44754362",
"0.44636416",
"0.44632617",
"0.44569698",
"0.4455794",
"0.44551417",
"0.44536248",
"0.44499615",
"0.44461316",
"0.44385618",
"0.44345054",
"0.44327748",
"0.44246918",
"0.4424504",
"0.44182375",
"0.4410014",
"0.4401976",
"0.44017202",
"0.44001836",
"0.4387151",
"0.43842196",
"0.4380442",
"0.43788826",
"0.43729883",
"0.43700576",
"0.43693507",
"0.43566585",
"0.43477187",
"0.43455264",
"0.4337887",
"0.43320075",
"0.43006998",
"0.42985505",
"0.42959306",
"0.428807",
"0.428532",
"0.42844868",
"0.4282071",
"0.42774493",
"0.42749417",
"0.42731252",
"0.42726645",
"0.42718557",
"0.42681214",
"0.42607442",
"0.42592245",
"0.42549995",
"0.4252924",
"0.425063",
"0.42500988",
"0.42434633",
"0.42363635",
"0.42319757",
"0.4224641",
"0.42207527",
"0.42186493",
"0.4205229",
"0.4202887",
"0.4194866",
"0.41899097",
"0.41875297",
"0.41839573",
"0.418284",
"0.418181"
] |
0.6173556
|
0
|
Removes the ith "controlPersonsExt" element
|
void removeControlPersonsExt(int i);
|
{
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
}
|
[
"void removeControlPersons(int i);",
"public void deleteUlIdPerson()\r\n {\r\n this._has_ulIdPerson= false;\r\n }",
"public void unsetExtLst()\n {\n synchronized (monitor())\n {\n check_orphaned();\n get_store().remove_element(EXTLST$14, 0);\n }\n }",
"public void unsetExtLst()\n {\n synchronized (monitor())\n {\n check_orphaned();\n get_store().remove_element(EXTLST$28, 0);\n }\n }",
"public void deletePerson() {\n\t\t\n\n\t\tString code = selectedPerson.getCode();\n\t\tString nameKey = selectedPerson.getName()+code;\n\t\tString lastnameKey = selectedPerson.getLastName()+code;\n\t\tString fullNameKey = nameKey+lastnameKey+code;\n\t\ttreeName.removeE(nameKey);\n\t\ttreeLastname.removeE(lastnameKey);\n\t\ttreeFullName.removeE(fullNameKey);\n\t\ttreeCode.removeE(code);\n\n\t\t\n\t}",
"private void removePerson(){\r\n\t\t// can't remove a value if there's nothing there\r\n\t\tif (dataTable.getSelectedRow()== -1)\r\n\t\t\treturn;\r\n\t\tpeople.remove(dataTable.getSelectedRow());\r\n\t\tpersonTableModel.fireTableRowsDeleted(dataTable.getSelectedRow(),dataTable.getSelectedRow());\r\n\t}",
"void remove(Control control);",
"Form removeElement(String id);",
"Form removeElement(Element element);",
"ch.crif_online.www.webservices.crifsoapservice.v1_00.ControlPerson addNewControlPersonsExt();",
"private void remove() {\n \t\tfor(int i = 0; i < 5; i++) {\n \t\t\trMol[i].setText(\"\");\n \t\t\trGrams[i].setText(\"\");\n \t\t\tpMol[i].setText(\"\");\n \t\t\tpGrams[i].setText(\"\");\n \t\t}\n }",
"public void clearPeople() {\n personNames.clear();\n personIds.clear();\n personPhotos.clear();\n personSelections.clear();\n addDefaultPerson();\n }",
"void unsetControlType();",
"void setControlPersonsExtArray(int i, ch.crif_online.www.webservices.crifsoapservice.v1_00.ControlPerson controlPersonsExt);",
"public void removePlayerPkmnInfoBox()\r\n {\r\n removeObject(playerPkmnInfoBox);\r\n }",
"public void removePerson(Person p);",
"public void remElementName(){\n ((MenuDMO) core).remElementName();\n }",
"public void eliminaEdificio() {\n this.edificio = null;\n // Fijo el tipo después de eliminar el personaje\n this.setTipo();\n }",
"public abstract void removedFromWidgetTree();",
"void setControlPersonsExtArray(ch.crif_online.www.webservices.crifsoapservice.v1_00.ControlPerson[] controlPersonsExtArray);",
"void unsetListOfServiceElements();",
"public void removeTemplatesPage()\r\n {\r\n getSemanticObject().removeProperty(swpres_templatesPage);\r\n }",
"public void removePerson(Person p){\n Iterator<Person> itr = personList.iterator();\n while(itr.hasNext()){\n Person x = itr.next();\n if(x.equals(p)){itr.remove();}\n }\n }",
"public void jTextFieldRemoveUpdateGeneral(String sTipo,JTextField jTextField,DocumentEvent evt) { \t \r\n\t\ttry {\r\n\t\t\t//System.out.println(\"REMOVE\");\r\n\t\t\t\r\n \t\t} catch(Exception e) {\r\n \t\t\tFuncionesSwing.manageException2(this, e,logger,EvaluacionProveedorConstantesFunciones.CLASSNAME);\r\n \t\t}\r\n }",
"private void removeAccount(ProtocolProviderService protocolProvider)\n {\n Component c = (Component) this.accountSelectors\n .get(protocolProvider.getAccountID());\n \n this.remove(c);\n }",
"public void remove() {\n\n\t\t\tsuprimirNodo(anterior);\n\n\t\t}",
"public abstract void removeUI(BaseConfigInstance pPCI);",
"private void deleteAllQuestionInputTextAreas() {\n UIComponent panel = FacesContext.getCurrentInstance().getViewRoot().findComponent(\"tabsView:tabViewTasksSettings:viewEditPerformanceAppraisalSettingForm:questionsPerformanceAppraisalPanel\");\n panel.getChildren().clear();\n }",
"public void jTextFieldRemoveUpdateGeneral(String sTipo,JTextField jTextField,DocumentEvent evt) { \t \r\n\t\ttry {\r\n\t\t\t//System.out.println(\"REMOVE\");\r\n\t\t\t\r\n \t\t} catch(Exception e) {\r\n \t\t\tFuncionesSwing.manageException2(this, e,logger,AnalisisTransaClienteConstantesFunciones.CLASSNAME);\r\n \t\t}\r\n }",
"public void eliminarControlProducto(RequisitoConformidadDto control) {\n\t\tcurrentPao.getListaRequisitosConformidad().remove(control);\r\n\t\tFacesContext context = FacesContext.getCurrentInstance();\r\n\t\tcontext.addMessage(null, new FacesMessage(\"Mensaje\", \"Se eliminó control de producto correctamente\"));\r\n\t}",
"private void popupDelete() {\n\t\taufzugschacht.removeElement(this);\n\t}",
"public void removeFromInsertSelects(entity.LoadInsertSelect element);",
"public void jTextFieldRemoveUpdateGeneral(String sTipo,JTextField jTextField,DocumentEvent evt) { \t \r\n\t\ttry {\r\n\t\t\t//System.out.println(\"REMOVE\");\r\n\t\t\t\r\n \t\t} catch(Exception e) {\r\n \t\t\tFuncionesSwing.manageException2(this, e,logger,UtilidadTipoPrecioConstantesFunciones.CLASSNAME);\r\n \t\t}\r\n }",
"public void removeExtraPanel() {\n\t\tif (extraPanel != null) {\n\t\t\tremove(extraPanel);\n\t\t\textraPanel = null;\n\t\t\tupdate();\n\t\t}\n\t}",
"ch.crif_online.www.webservices.crifsoapservice.v1_00.ControlPerson insertNewControlPersonsExt(int i);",
"public void jTextFieldRemoveUpdateGeneral(String sTipo,JTextField jTextField,DocumentEvent evt) { \t \r\n\t\ttry {\r\n\t\t\t//System.out.println(\"REMOVE\");\r\n\t\t\t\r\n \t\t} catch(Exception e) {\r\n \t\t\tFuncionesSwing.manageException2(this, e,logger,CierreCajaConstantesFunciones.CLASSNAME);\r\n \t\t}\r\n }",
"public void jTextFieldRemoveUpdateGeneral(String sTipo,JTextField jTextField,DocumentEvent evt) { \t \r\n\t\ttry {\r\n\t\t\t//System.out.println(\"REMOVE\");\r\n\t\t\t\r\n \t\t} catch(Exception e) {\r\n \t\t\tFuncionesSwing.manageException2(this, e,logger,FacturaPuntoVentaConstantesFunciones.CLASSNAME);\r\n \t\t}\r\n }",
"public void removeEditDocumentationPage()\r\n {\r\n getSemanticObject().removeProperty(swpres_editDocumentationPage);\r\n }",
"public Builder clearPersonCharacteristicIds() {\n if (personCharacteristicIdsBuilder_ == null) {\n personCharacteristicIds_ = null;\n onChanged();\n } else {\n personCharacteristicIds_ = null;\n personCharacteristicIdsBuilder_ = null;\n }\n\n return this;\n }",
"public void deletePerson(){\r\n\r\n\t/*get values from text fields*/\r\n\tname = tfName.getText();\r\n\r\n\tif(name.equals(\"\"))\r\n\t{\r\n\t\tJOptionPane.showMessageDialog(null,\"Please enter person name to delete.\");\r\n\t}\r\n\telse\r\n\t{\r\n\t\t/*remove Person of the given name*/\r\n\t\tint no = pDAO.removePerson(name);\r\n\t\tJOptionPane.showMessageDialog(null, no + \" Record(s) deleted.\");\r\n\t}\r\n }",
"public void jTextFieldRemoveUpdateGeneral(String sTipo,JTextField jTextField,DocumentEvent evt) { \t \r\n\t\ttry {\r\n\t\t\t//System.out.println(\"REMOVE\");\r\n\t\t\t\r\n \t\t} catch(Exception e) {\r\n \t\t\tFuncionesSwing.manageException2(this, e,logger,PagosAutorizadosConstantesFunciones.CLASSNAME);\r\n \t\t}\r\n }",
"public void jTextFieldRemoveUpdateGeneral(String sTipo,JTextField jTextField,DocumentEvent evt) { \t \r\n\t\ttry {\r\n\t\t\t//System.out.println(\"REMOVE\");\r\n\t\t\t\r\n \t\t} catch(Exception e) {\r\n \t\t\tFuncionesSwing.manageException2(this, e,logger,LiquidacionImpuestoImporConstantesFunciones.CLASSNAME);\r\n \t\t}\r\n }",
"public void unsetRegular()\n {\n synchronized (monitor())\n {\n check_orphaned();\n get_store().remove_element(REGULAR$2, 0);\n }\n }",
"public void jTextFieldRemoveUpdateGeneral(String sTipo,JTextField jTextField,DocumentEvent evt) { \t \r\n\t\ttry {\r\n\t\t\t//System.out.println(\"REMOVE\");\r\n\t\t\t\r\n \t\t} catch(Exception e) {\r\n \t\t\tFuncionesSwing.manageException2(this, e,logger,LibroContableConstantesFunciones.CLASSNAME);\r\n \t\t}\r\n }",
"public void jTextFieldRemoveUpdateGeneral(String sTipo,JTextField jTextField,DocumentEvent evt) { \t \r\n\t\ttry {\r\n\t\t\t//System.out.println(\"REMOVE\");\r\n\t\t\t\r\n \t\t} catch(Exception e) {\r\n \t\t\tFuncionesSwing.manageException2(this, e,logger,TipoDireccionConstantesFunciones.CLASSNAME);\r\n \t\t}\r\n }",
"public void removed(IExtensionPoint[] extensionPoints) {\r\n\r\n\t\t// Do nothing\r\n\t}",
"private native void removeCallback(String name)\n /*-{\n var target = $wnd;\n var parts = name.split('.');\n \n for(var i = 0; i < parts.length - 1; i++) {\n var part = parts[i];\n if (target[part] === undefined) {\n $wnd.console.log(part,'not defined in',target);\n // No longer attached -> nothing more to do\n return;\n }\n target = target[part];\n }\n\n $wnd.console.log('removing',parts[parts.length - 1],'from',target);\n delete target[parts[parts.length - 1]];\n }-*/;",
"public static void remove() {\n if (create()) {\n DOM.removeChild((com.google.gwt.user.client.Element) \n tag.getParentElement(), \n (com.google.gwt.user.client.Element) tag);\n tag = null;\n removed = true;\n }\n }",
"public void jTextFieldRemoveUpdateGeneral(String sTipo,JTextField jTextField,DocumentEvent evt) { \t \r\n\t\ttry {\r\n\t\t\t//System.out.println(\"REMOVE\");\r\n\t\t\t\r\n \t\t} catch(Exception e) {\r\n \t\t\tFuncionesSwing.manageException2(this, e,logger,TipoDetalleMovimientoInventarioConstantesFunciones.CLASSNAME);\r\n \t\t}\r\n }",
"public void remove(Person person) {\n\t\tlistOfPeople.remove(person);\n\t}",
"public void deletePerson() {\n\t\tSystem.out.println(\"*****Delete the record*****\");\n\t\tSystem.out.println(\" \");\n\t\tSystem.out.println(\"Enter phone number for deletion : \");\n\t\tlong PhoneDelete = sc.nextLong();\n\t\tfor (int i = 0; i < details.length; i++) {\n\t\t\tif (details[i] != null && details[i].getPhoneNo() == PhoneDelete) {\n\t\t\t\tdetails[i] = null;\n\t\t\t\tSystem.out.println(\"Record deleted successfully\");\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\t}",
"public void jTextFieldRemoveUpdateGeneral(String sTipo,JTextField jTextField,DocumentEvent evt) { \t \r\n\t\ttry {\r\n\t\t\t//System.out.println(\"REMOVE\");\r\n\t\t\t\r\n \t\t} catch(Exception e) {\r\n \t\t\tFuncionesSwing.manageException2(this, e,logger,TablaAmortiDetalleConstantesFunciones.CLASSNAME);\r\n \t\t}\r\n }",
"public void jTextFieldRemoveUpdateGeneral(String sTipo,JTextField jTextField,DocumentEvent evt) { \t \r\n\t\ttry {\r\n\t\t\t//System.out.println(\"REMOVE\");\r\n\t\t\t\r\n \t\t} catch(Exception e) {\r\n \t\t\tFuncionesSwing.manageException2(this, e,logger,CostoGastoImporConstantesFunciones.CLASSNAME);\r\n \t\t}\r\n }",
"ch.crif_online.www.webservices.crifsoapservice.v1_00.ControlPerson getControlPersonsExtArray(int i);",
"@Override\n\t\t\tpublic void remove() {\n\t\t\t\tthrow new UnsupportedOperationException();\n//\t\t\t\tif (i == begin || removed)\n//\t\t\t\t\tthrow new IllegalStateException();\n//\t\t\t\telements.set(i-1, null);\n//\t\t\t\tremoved = true;\n\t\t\t}",
"public void jTextFieldRemoveUpdateGeneral(String sTipo,JTextField jTextField,DocumentEvent evt) { \t \r\n\t\ttry {\r\n\t\t\t//System.out.println(\"REMOVE\");\r\n\t\t\t\r\n \t\t} catch(Exception e) {\r\n \t\t\tFuncionesSwing.manageException2(this, e,logger,PlantillaFacturaConstantesFunciones.CLASSNAME);\r\n \t\t}\r\n }",
"@Override\n\tpublic void eliminarControl(Integer id_control) throws Exception {\n\t\tcontrolMapper.eliminarControl(id_control);\n\t}",
"private void remove() {\n disableButtons();\n clientgui.getClient().sendDeleteEntity(cen);\n cen = Entity.NONE;\n }",
"@Override\n public void remove( )\n {\n FormPortletHome.getInstance( ).remove( this );\n }",
"public void removeContact() {\r\n int selection = getContactSelection().getMinSelectionIndex();\r\n Statement stmt = null;\r\n try {\r\n rowSet.absolute(selection+1);\r\n Connection con = rowSet.getConnection();\r\n stmt = con.createStatement();\r\n String sql = \"delete from \" + CONTACTS_TABLE + \" where \" + CONTACTS_KEY + \" = \" + rowSet.getObject(CONTACTS_KEY);\r\n stmt.executeUpdate(sql);\r\n rowSet.execute();\r\n } catch (SQLException sqlex) {\r\n sqlex.printStackTrace();\r\n } finally {\r\n if (stmt != null) {\r\n try {\r\n stmt.close();\r\n } catch (SQLException sqlex) {\r\n sqlex.printStackTrace();\r\n }\r\n }\r\n }\r\n }",
"public void clearLeadUI() {\n\t\tfor (JLabel item : leadList) {\n\t\t\testimationGame.getContentPane().remove(item);\n\t\t}\n\t\tleadList.clear();\n\t}",
"public void clearWizardModel(){\n Object id1 = \"ChoicePanel\";\n \n step = 1;\n WizardPanelDescriptor temp1 = (WizardPanelDescriptor)wp.get(id1);\n wp.clear();\n wp.put(id1, temp1);\n step++;\n }",
"public void removeBtn(){\r\n\t\t\r\n\t\tWorkflowEntry entryToBeRemoved = (WorkflowEntry) tableView.getSelectionModel().getSelectedItem();\r\n\t\t\r\n\t\tdata.remove(entryToBeRemoved);\r\n\t\t\r\n\t}",
"public void clearPresentation()\n // -end- 362409A9000A remove_all_head327A646F00E6 \"ModelElement::clearPresentation\"\n ;",
"void removeGeneralName(int i);",
"public void clearRemovalTag() {\n\t levelOfRemoval = 0;\n\t}",
"void removeIsPersonType(Integer oldIsPersonType);",
"protected native void removeMCE(String id) /*-{\r\n\t\t$wnd.tinyMCE.execCommand('mceRemoveControl', true, id);\r\n\t}-*/;",
"public void removeAllInvolvedPerson() {\r\n\t\tBase.removeAll(this.model, this.getResource(), INVOLVEDPERSON);\r\n\t}",
"@FXML\n void removeFreeze() {\n generalTextArea.clear();\n clearEverything();\n enableRemove();\n }",
"public void clickRemoveButtonInPictureTab(){\r\n\t\t\t\r\n\t\t\tMcsElement.getElementByXpath(driver, \"//div[contains(@class,'x-panel-noborder') and not(contains(@class,'x-hide-display'))]//div[contains(@class,'x-panel-bbar')]//button[contains(text(),'Remove')]\").click();\r\n\t\t\t\r\n\t\t\tReporter.log(\"Clicked on Remove button in Picture Tab\", true);\r\n\t\t}",
"@FXML\n\tpublic void removeRegistrationPair() {\n\t\tRegistrationPair selected = m_registrationState.getSelected();\n\t\tm_registrationState.removePair(selected);\n\t}",
"@Override\n\tpublic void removeForm(ERForm form) {\n\t\t\n\t}",
"public void removeObservateur() {\r\n\t\tlisteObservateur = new ArrayList<Observateur>();\t\t\r\n\t}",
"public void removeFromLinesOfBusiness(entity.AppCritLineOfBusiness element);",
"public void supprimerHacker() {\n if (hacker != null) {\n g.getChildren().remove(hacker);\n\n }\n }",
"public PresentationElement removePresentation(PresentationElement presentation1)\n // -end- 362409A9000A remove_head327A646F00E6 \"ModelElement::removePresentation\"\n ;",
"@Override\n\tpublic void delObservateur() {\n\t\tthis.listObservateur = new ArrayList<Observateur>();\n\t}",
"public void _unlinkPresentation(PresentationElement presentation1);",
"private void removeButtonActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_removeButtonActionPerformed\n\n AttlistTableModel tm = (AttlistTableModel) attrTable.getModel();\n \n int sel = attrTable.getSelectedRow();\n if (sel > -1) {\n tm.removeRow(sel);\n if (numRows() > 0) {\n if (sel <= numRows() - 1)\n attrTable.getSelectionModel().setSelectionInterval(sel,sel);\n else\n attrTable.getSelectionModel().setSelectionInterval(sel - 1, sel - 1);\n } else removeButton.setEnabled(false);\n }\n }",
"@Override\n public void removeSecondPiePt(int i) {\n synchronized (monitor()) {\n check_orphaned();\n get_store().remove_element(PROPERTY_QNAME[0], i);\n }\n }",
"public void removeOwnKeyBindings() {\n getPolymerElement().removeOwnKeyBindings();\n }",
"public abstract boolean removeTextBox(TextBox tb);",
"private void editCPRPerson(ConfigPersonRelation segment, ArrayList<Integer> elementIdList) {\n List<Integer> type = segment.getPersonIndex();\n List<Integer> personId = dataModel.getRoleId(type);\n\n for (int deleteId : elementIdList) {\n int deleteIndexInProject = dataModel.getPersonIndexInProject(deleteId);\n for (int i = 0; i < personId.size(); i++) {\n int index = type.get(i);\n if (personId.get(i) == deleteId) {\n segment.getPersonIndex().remove(i);\n segment.getPersonIndicator().remove(i);\n } else if (index > deleteIndexInProject) {\n segment.getPersonIndex().remove(i);\n segment.getPersonIndex().add(i, index - 1);\n segment.getPersonIndicator().remove(index);\n }\n }\n }\n }",
"private void clearUserNames()\n\t{\n\t\tfor (final JLabel jLabel : userNamesLabels)\n\t\t{\n\t\t\tuserDisplayPanel.remove(jLabel);\n\t\t}\n\t\tuserNamesLabels.clear();\n\t}",
"void remove(RecordItemValidatorIF itemValidator);",
"void removeFocus();",
"public void unsetPatent()\r\n {\r\n synchronized (monitor())\r\n {\r\n check_orphaned();\r\n get_store().remove_element(PATENT$16, 0);\r\n }\r\n }",
"Form removeValidator(FormValidator validator);",
"private Element removeSubElements(Element p_seg)\n {\n ArrayList elems = new ArrayList();\n\n findSubElements(elems, p_seg);\n\n for (int i = 0; i < elems.size(); i++)\n {\n Element sub = (Element)elems.get(i);\n\n removeSubElement(sub);\n }\n\n return p_seg;\n }",
"public void removeNext()\r\n\t{\r\n\t\tremove(next);\r\n\t\t\r\n\t\trevalidate();\r\n\t\trepaint();\r\n\t\t\r\n\t\tstate.setWaiting(false);\r\n\t}",
"public void unsetDataCustom()\n {\n synchronized (monitor())\n {\n check_orphaned();\n get_store().remove_element(DATACUSTOM$2, 0);\n }\n }",
"public void unsetDataCustom()\n {\n synchronized (monitor())\n {\n check_orphaned();\n get_store().remove_element(DATACUSTOM$2, 0);\n }\n }",
"public void remove(IVisualElement elem) {\n children.remove(elem);\n if (elem.getParent() == parentRef.get()) {\n elem.setParent(null);\n }\n }",
"public void removeConfigPage()\r\n {\r\n getSemanticObject().removeProperty(swpres_configPage);\r\n }",
"public void removeOperador() {\r\n\t\toperadorLaboratorio=null;\r\n\t}",
"@FXML void Removebtnpushed1(ActionEvent event8) throws FileNotFoundException, IOException {\n\t try {\n\t Pane annunci[] = { Annuncio1, Annuncio2, Annuncio3};\n\t offerService.deleteOffer(TitleLabel.getText().toString(), eoEmail.getText().toString());\n\t annunci[0].setVisible(false);\n\t } catch (Exception e) {\n\t e.printStackTrace(); }\n\t}",
"public void removeSkills()\r\n\t{\r\n\t\tremove(skillOne);\r\n\t\tremove(skillTwo);\r\n\t\tremove(skillThree);\r\n\t\tremove(skillFour);\r\n\t\tremove(skillFive);\r\n\t\t\r\n\t\trevalidate();\r\n\t\trepaint();\r\n\t}",
"@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}"
] |
[
"0.72004825",
"0.62020755",
"0.6110028",
"0.6027847",
"0.58317304",
"0.57102674",
"0.56275123",
"0.5497395",
"0.54823333",
"0.5474253",
"0.5454718",
"0.5444882",
"0.53966",
"0.53943104",
"0.5379585",
"0.53782237",
"0.5318608",
"0.53076226",
"0.52882785",
"0.5281787",
"0.52695215",
"0.52608585",
"0.5233153",
"0.5212915",
"0.51914155",
"0.519049",
"0.51691955",
"0.5168621",
"0.51418",
"0.5134791",
"0.51295465",
"0.5125778",
"0.5121145",
"0.5118687",
"0.5118655",
"0.51129794",
"0.51129746",
"0.51128525",
"0.5104275",
"0.5103952",
"0.5103584",
"0.5101545",
"0.50981385",
"0.5097134",
"0.5096488",
"0.5095437",
"0.50951827",
"0.509505",
"0.508734",
"0.50866145",
"0.50791466",
"0.5078537",
"0.50782037",
"0.50762016",
"0.50759524",
"0.50721365",
"0.5061311",
"0.50516766",
"0.50470835",
"0.50460404",
"0.50418806",
"0.50316805",
"0.503078",
"0.5003289",
"0.49994892",
"0.49948815",
"0.4993208",
"0.49920586",
"0.49906048",
"0.49886966",
"0.49667966",
"0.4966791",
"0.49635065",
"0.49612355",
"0.49587792",
"0.49411404",
"0.4940368",
"0.49266982",
"0.4922057",
"0.49197945",
"0.49134222",
"0.49127483",
"0.49123487",
"0.49045813",
"0.4894624",
"0.48926613",
"0.48884216",
"0.4886437",
"0.48777425",
"0.48740172",
"0.48728883",
"0.48629075",
"0.48629075",
"0.48582473",
"0.4853673",
"0.48518968",
"0.48496363",
"0.48486295",
"0.48456714",
"0.48456714"
] |
0.7772411
|
0
|
Creates an empty (or nearempty) dictionary. The only value that may be put in by this constructor is DUMMY_LABEL, and only if the ADD_DUMMY_COMPONENT flag is on.
|
public FeatureDictionary() {
if (ADD_DUMMY_COMPONENT) {
id2label.add( DUMMY_LABEL );
label2id.put( DUMMY_LABEL, new Integer(0));
}
}
|
{
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
}
|
[
"public HashMap<String, Integer> makeEmpty() {\r\n\t\tHashMap<String, Integer> newMap = new HashMap<>();\r\n\t\tnewMap.put(new Gloom(\"Gloom\", null, 30, 25, 20, 10).getName(), 0);\r\n\t\tnewMap.put(new Golbat(\"Golbat\", null, 28, 25, 20, 10).getName(), 0);\r\n\t\tnewMap.put(new Growlithe(\"Growlithe\", null, 26, 25, 20, 10).getName(), 0);\r\n\t\tnewMap.put(new Jigglypuff(\"Jigglypuff\", null, 24, 25, 20, 10).getName(), 0);\r\n\t\tnewMap.put(new Persian(\"Persian\", null, 22, 25, 20, 10).getName(), 0);\r\n\t\tnewMap.put(new Pidgeotto(\"Pidgeotto\", null, 20, 25, 20, 10).getName(), 0);\r\n\t\tnewMap.put(new Pikachu(\"Pikachu\", null, 18, 25, 20, 10).getName(), 0);\r\n\t\tnewMap.put(new Seaking(\"Seaking\", null, 16, 25, 20, 10).getName(), 0);\r\n\t\tnewMap.put(new Staryu(\"Staryu\", null, 14, 25, 20, 10).getName(), 0);\r\n\t\tnewMap.put(new Tentacool(\"Tentacool\", null, 12, 25, 20, 10).getName(), 0);\r\n\t\tnewMap.put(new Zubat(\"Zubat\", null, 10, 25, 20, 10).getName(), 0);\r\n\t\treturn newMap;\r\n\t}",
"@SuppressWarnings(\"unchecked\")\r\n\tpublic HashMap() {\r\n\t\tdata = (Node<MapEntry<K, V>>[])new Node[INITIAL_SIZE];\r\n\t\tfor(int i = 0; i < data.length; i++)\t\t\t\t\t\t\t//For every element in data...\r\n\t\t\tdata[i] = new Node<MapEntry<K,V>>(new MapEntry<K,V>(null));\t//Add a head node to it.\r\n\t\t\r\n\t\t//TODO: May have to just default as null and in the put method, if the slot is null, then put a head node in it. The post-ceding code after that is logically correct!\r\n\t\r\n\t\tsize = 0;\t//Redundant but helpful to see that the size is 0\r\n\t}",
"public HDict createCustomTags(BComponent comp)\r\n {\r\n return HDict.EMPTY;\r\n }",
"public MagicDictionary() {\n this.map = new HashMap<>();\n }",
"@SuppressWarnings(\"unchecked\")\r\n\tpublic HashMap()\r\n\t{\r\n\t\ttable = new MapEntry[7];\r\n\t\tcount = 0;\r\n\t\tmaxCount = table.length - table.length/3;\r\n\t\tDUMMY = new MapEntry<>(null, null);\r\n\t}",
"public MyHashMap() {\r\n data = new Node[DEFAULT_CAPACITY];\r\n }",
"public MyHashMap() {\n\t\tthis(INIT_CAPACITY);\n\t}",
"public TreeDictionary() {\n\t\tfor (int i = 0; i < nodes.length; i++) {\n\t\t\tnodes[i] = null;\n\t\t}\n\t}",
"public MyHashMap() {\n\n }",
"public static <K, V> Reference2ObjectMap<K, V> emptyMap() {\n/* 178 */ return EMPTY_MAP;\n/* */ }",
"public MagicDictionary() {\n root=new Node();\n }",
"public Dictionary () {\n list = new DoubleLinkedList<>();\n this.count = 0;\n }",
"public IntObjectHashMap() {\n resetToDefault();\n }",
"public MagicDictionary() {\n\n }",
"@SuppressWarnings(\"unused\")\n private MyPropertiesMapEntry() {\n this.key = null;\n this.value = null;\n }",
"public CountingMap() {\n this( new HashMap<K, Integer>() );\n }",
"public static Map<String, AttributeValue> getEmptyItem() {\r\n Map<String, AttributeValue> item = User.getEmptyItem();\r\n item.put(\"item_type\", new AttributeValue(\"Gym\"));\r\n // item.put(\"address\", new AttributeValue(Constants.nullAttributeValue));\r\n // item.put(\"trainerIDs\", null);\r\n // item.put(\"weekly_hours\", null);\r\n // item.put(\"vacation_times\", null);\r\n item.put(\"sessionCapacity\", new AttributeValue(\"10\"));\r\n item.put(\"gymType\", new AttributeValue(\"independent\"));\r\n item.put(\"paymentSplit\", new AttributeValue(\"50\"));\r\n return item;\r\n }",
"public Map() {\n\t\t//intially empty\n\t}",
"private NoValue(K key) {\n this.key = key;\n }",
"public MyHashMap() {\n map = new HashMap();\n }",
"public MyHashMap() {\n\n }",
"public LabelFactory() {\n this(0);\n }",
"public static <K> Object2DoubleSortedMap<K> emptyMap() {\n/* 164 */ return EMPTY_MAP;\n/* */ }",
"public EmptyType() {\n super(\"<EMPTY>\");\n }",
"public DictionaryModuleImpl() {\r\n }",
"BSTDictionary() {\n\t\troot = null;// default root to null;\n\t}",
"public MyHashMap() {\n store = new int[1000001]; // Max number of key-value pairs allowed in the HashMap, cant exceed it.\n Arrays.fill(store, -1); // we have to anyways return -1 if key doesn't exists.\n }",
"public KripkeStructure() {\n states = new HashMap<>();\n }",
"@SuppressWarnings(\"unused\")\n public NoConstructor() {\n // Empty\n }",
"public Q706DesignHashMap() {\n keys = new ArrayList<>();\n values = new ArrayList<>();\n\n }",
"private DSLGrammarMap buildDummyGrammarMap() {\n DSLGrammarMap grammarMap = new DSLGrammarMap();\n {\n FunctionSymbol f = grammarMap.mkFunctionSymbol(\"f\", \"int\");\n f.addParameter(\"int\", \"x1\");\n }\n {\n FunctionSymbol g = grammarMap.mkFunctionSymbol(\"g\", \"int\");\n g.addParameter(\"int\", \"x1\");\n }\n {\n FunctionSymbol eq = grammarMap.mkFunctionSymbol(\"eq\", \"bool\");\n eq.addParameter(\"Poly\", \"x1\");\n eq.addParameter(\"Poly\", \"x2\");\n }\n return grammarMap;\n }",
"public Dictionary(){\n root = null;\n numItems = 0;\n }",
"public LabelValueBean() {\r\n\t\tsuper(\"\", \"\");\r\n\t}",
"public ComponentDescriptor() {\r\n\t\t// initialize empty collections\r\n\t\tconstructorParametersTypes = new LinkedList<List<Class<?>>>();\r\n//\t\trequiredProperties = new HashMap<String, MetaProperty>();\r\n//\t\toptionalProperties = new HashMap<String, MetaProperty>();\r\n\t}",
"public BasicKPartiteGraph() {\n\t\tthis(\"none\",UNLIMITED_PARTITIONS);\n\t}",
"public Dictionary createDictionary(){\n Dictionary dict = new Dictionary(9973);\n return dict;\n }",
"public ObservableHashMap()\n {\n super();\n }",
"public void buildEmptyMap() {\n this.emptyMap = new BufferedImage(this.boulderDashModel.getArea().getDimensionWidth() * zoom, this.boulderDashModel.getArea().getDimensionHeight() * zoom, BufferedImage.TYPE_INT_RGB);\n final Graphics2D graphics = (Graphics2D) this.emptyMap.getGraphics();\n graphics.drawImage(this.boulderDashModel.getArea().getImage(), 0, 0, this.boulderDashModel.getArea().getDimensionWidth() * zoom, this.boulderDashModel.getArea().getDimensionHeight() * zoom, null);\n }",
"public Graph() {\n\t\tdictionary=new HashMap<>();\n\t}",
"public static Map<Long, Sample> generateEmptyMap(final int numberOfBuckets, final DateTime startDate, final int slotDurationInMinutes, final int missingSampleDefaultValue) {\n\n final Map<Long, Sample> map = Maps.newHashMap();\n\n for(int i = 0; i < numberOfBuckets; i++) {\n final Long key = startDate.minusMinutes(i * slotDurationInMinutes).getMillis();\n LOGGER.trace(\"Inserting {}\", key);\n\n map.put(key, new Sample(key, missingSampleDefaultValue, null));\n }\n\n LOGGER.trace(\"Map size = {}\", map.size());\n\n\n return map;\n }",
"public AgentBuilderDictionary(int initialCapacity) {\n\t\tsuper(initialCapacity);\n\t}",
"public Hardware() {\n hwMap = null;\n }",
"public MyHashMap() {\r\n\t\tloadFactor = DEFAULT_LOAD_FACTOR;\r\n\t\tcapacity = DEFAULT_CAPACITY;\r\n\t\thashMapArray = new LinkedList[capacity];\r\n\t}",
"public _No_706_DesignHashMap() {\n// Arrays.fill(arr, -1);\n }",
"public TreeDictionary() {\n\t\t\n\t}",
"static <K extends Comparable<? super K>, V> KeyValue<K, V> makeNoValue(K key) {\n return new NoValue<>(key);\n }",
"public MapBuilder() {\r\n map = new Map();\r\n json = new Gson();\r\n }",
"public Map() {\n\n\t\t}",
"public ArrayMap() {\n this(DEFAULT_INITIAL_CAPACITY);\n }",
"public HashMap(){\n\t\tthis.numOfBins=10;\n\t\tthis.size=0;\n\t\tinitializeMap();\n\t}",
"public InstanceLabelMapTable() {\n\t\tthis(\"instance_label_map\", null);\n\t}",
"public GeneralDictionary() {\n map = new TreeMap<String, String>();\n map.put(\"book\", \"a set of written or printed pages, usually bound with \" + \"a protective cover\");\n map.put(\"editor\", \"a person who edits\");\n }",
"public CompactHashMap() {\n\t\tthis(INITIAL_SIZE);\n\t}",
"public void initializeDictionary() {\n\t\tmyDictionary = new SLogoDictionary();\n\t}",
"public AgentBuilderDictionary() {\n\t\tsuper();\n\t}",
"public KeyValuePair () {\n key = null;\n value = null;\n }",
"public MagicDictionary() {\n\t\troot = new TrieNode();\n\t}",
"EmptyType createEmptyType();",
"public static TracingMetadata empty() {\n return EMPTY;\n }",
"public OmaHashMap() {\n this.values = new OmaLista[32];\n this.numberOfValues = 0;\n }",
"public SimpleHashtable() {\r\n\t\tthis(DEFAULT_TABLE_SIZE);\r\n\t}",
"public Key()\n {\n name = \"\";\n fields = new Vector<String>();\n options = new Vector<String>();\n isPrimary = false;\n isUnique = false;\n }",
"private HashNode() {\r\n key = null;\r\n value = null;\r\n }",
"public Dictionary () {\n\t\tsuper();\n\t\t//words = new ArrayList < String > () ;\n\t}",
"public static Tag emptyTag() {\n\t\treturn new Tag(NAME, \"\");\n\t}",
"public BVHashtable()\n {\n super();\n }",
"public Node()\r\n {\r\n initialize(null);\r\n lbl = id;\r\n }",
"MyHashMap(int initialCapacity) {\r\n data = new Node[initialCapacity];\r\n }",
"public LLabel() {\n this(\"\");\n }",
"public static void clear() {\r\n\t\tdata.set(Collections.<String, String> emptyMap());\r\n\t}",
"private static <K, V> Map<K, V> newHashMap() {\n return new HashMap<K, V>();\n }",
"public MyHashMap() {\n hashMap = new ArrayList<>();\n }",
"public CreateStatus()\n {\n super(new DataMap(), null);\n }",
"public Dictionary() { //constructor\r\n try {\r\n createDictionary(); //create dictionary\r\n addCustomWords(); //add any user define words in it\r\n } catch (IOException e) {\r\n e.printStackTrace();\r\n }\r\n }",
"@Override\n public Map makeMap() {\n Map<Integer,String> testMap = new HashingMap<>();\n return testMap;\n }",
"@Contract(value = \" -> new\", pure = true)\n @Nonnull\n public static <K, V> Map<K, V> createSoftMap() {\n return Maps.newSoftHashMap();\n }",
"public static <K, V> HashMap<K, V> initHashMap() {\n\t\treturn new HashMap<K, V>();\n\t}",
"@Test\n\tpublic void createNewMyKeyEmptyName() {\n\t\tRsaKeyStore ks = new RsaKeyStore();\n\t\tboolean re = ks.createNewMyKeyPair(\"\");\n\t\tassertFalse(\"Should not have created new my keypair: empty name\", re);\n\t}",
"private ConfigurationKeys() {\n // empty constructor.\n }",
"public OwnMap() {\n super();\n keySet = new OwnSet();\n }",
"public MyHashMap() {\n keys = new MapNode[n];\n vals = new MapNode[n];\n for (int i=0; i < n ; ++i) {\n keys[i] = new MapNode();\n vals[i] = new MapNode();\n }\n }",
"public AttributeMap()\r\n\t{\r\n\t\tsuper();\r\n\t}",
"@Test\n public void constructorDefault() {\n final CourseType courseType = new CourseType();\n\n assertNull(courseType.getId());\n assertNull(courseType.getName());\n assertNull(courseType.getPicture());\n assertNull(courseType.getPosition());\n assertNull(courseType.getStatus());\n assertNull(courseType.getCourses());\n assertNull(courseType.getAllowedDishes());\n }",
"public Dictionary() throws IOException {\r\n\t\tthis(FILE_NAME);\r\n\t}",
"private TPM_DIGEST createEmptyPubKeyHash()\r\n {\r\n// if ( this.getTpmManufacturer() == TPMDriver.TPM_MANUFACTURER_BROADCOM )\r\n// {\r\n// return null;\r\n// }\r\n// else\r\n// {\r\n// return new TPM_DIGEST();\r\n// }\r\n if ( this.getTpmManufacturer() == TPMDriver.TPM_MANUFACTURER_INFINEON )\r\n {\r\n return new TPM_DIGEST();\r\n }\r\n else\r\n {\r\n return null;\r\n }\r\n }",
"public void testGetObjectSpecificationWithEmptyKey() throws Exception {\r\n root.addChild(createObject(\"key:identifier\", TYPE_OBJECT));\r\n\r\n specificationFactory = new ConfigurationObjectSpecificationFactory(root);\r\n\r\n try {\r\n specificationFactory.getObjectSpecification(\"\", \"identifier\");\r\n fail(\"IllegalArgumentException is expected.\");\r\n } catch (IllegalArgumentException e) {\r\n // ok\r\n }\r\n }",
"public Widget() {\r\n\t\t\r\n\t\twidgets = new LinkedHashMap<Component, String>();\r\n\t\t\r\n\t}",
"public FactoryMapImpl()\n {\n super();\n }",
"public ChainedHashDictionary() {\r\n this.capacity = 31;\r\n this.load = 0;\r\n this.chains = makeArrayOfChains(capacity);\r\n }",
"public Dictionary() {\n\t\tthis.dictionary = new HashSet<String>();\n\t\ttry {\n\t\t\tthis.populateDictionary();\n\t\t} catch (IOException e) {\n\t\t\tSystem.out.println(\"Error: File not found, please try again with a valid filename.\");\n\t\t}\n\t}",
"public ScreenDefaultTemplateMapper()\n {\n \t// empty\n }",
"public AllOOneDataStructure() {\n map = new HashMap<>();\n vals = new HashMap<>();\n maxKey = minKey = \"\";\n max = min = 0;\n }",
"OCRSet(int initialCapacity, float loadFactor, boolean dummy) {\r\n this.map = new LinkedHashMap<Integer, E>(initialCapacity, loadFactor);\r\n }",
"public MyHashMap() {\n map = new ArrayList<>();\n for (int i = 0;i<255;i++)\n map.add(new Entry());\n }",
"public void noncompliant() {\n Map<COLOR, String> moodMap = new HashMap<COLOR, String>(); // Noncompliant [[sc=34;ec=62]]\n new HashMap<COLOR, String>(); // Noncompliant\n Map<COLOR, String> moodMap2 = new HashMap<>(); // Noncompliant\n Map<COLOR, String> moodMap3 = new HashMap(); // Noncompliant\n Map moodMap4 = (new HashMap<COLOR, String>()); // Noncompliant\n\n Map<COLOR, String> map;\n map = new HashMap<>(); // Noncompliant [[sc=11;ec=26]]\n }",
"public Label() {\n }",
"public HashEntityMap()\n\t\t{\n\t\t\tmapNameToValue = new HashMap<String, Integer>();\n\t\t}",
"public HashTag() {}",
"protected abstract T _createEmpty(DeserializationContext ctxt);",
"public MyHashTable() {\n\t\tthis(DefaultCapacity);\n\t}"
] |
[
"0.59386766",
"0.5742978",
"0.5704945",
"0.5656335",
"0.56171775",
"0.55995053",
"0.5594795",
"0.55376565",
"0.5505332",
"0.5501374",
"0.5458385",
"0.538607",
"0.53643125",
"0.535784",
"0.5351714",
"0.5351701",
"0.5331876",
"0.53059334",
"0.5303728",
"0.52860665",
"0.52601475",
"0.5258334",
"0.52485913",
"0.52461714",
"0.52217823",
"0.52098876",
"0.52004564",
"0.5200237",
"0.5197738",
"0.5184007",
"0.51831496",
"0.5160278",
"0.51570517",
"0.51287043",
"0.5104497",
"0.5101738",
"0.50944906",
"0.5093574",
"0.5082446",
"0.50813407",
"0.5080487",
"0.50602126",
"0.5059154",
"0.5055539",
"0.50506556",
"0.504246",
"0.50203335",
"0.5013976",
"0.50036895",
"0.49992502",
"0.49932373",
"0.49830714",
"0.4980519",
"0.497916",
"0.49615657",
"0.49559838",
"0.4947351",
"0.49462473",
"0.4939734",
"0.49298593",
"0.49254367",
"0.49248856",
"0.4923608",
"0.49139577",
"0.49045208",
"0.49014503",
"0.48908862",
"0.48889777",
"0.48807392",
"0.48766428",
"0.4866124",
"0.48536596",
"0.48468676",
"0.48443672",
"0.48429924",
"0.48424754",
"0.48402944",
"0.48372805",
"0.48333403",
"0.48300648",
"0.48280382",
"0.48190638",
"0.48151204",
"0.4810364",
"0.4804499",
"0.4803904",
"0.48005056",
"0.48001847",
"0.47989348",
"0.47979984",
"0.4795982",
"0.47885337",
"0.4788151",
"0.47845334",
"0.47793698",
"0.47707814",
"0.4768006",
"0.47653148",
"0.47640404",
"0.47549015"
] |
0.7417278
|
0
|
Returns true if the dictionary is either completely empty, or only contains the DUMMY_LABEL
|
public boolean isPracticallyEmpty() {
return getDimension()==0 ||
getDimension()==1 && id2label.elementAt(0).equals(DUMMY_LABEL);
}
|
{
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
}
|
[
"@Override\n\tpublic boolean isEmpty() {\n\t\treturn bnetMap.size() == 0;\n\t}",
"public boolean\tisEmpty() {\n\t\treturn map.isEmpty();\n\t}",
"@Override\n\tpublic boolean isEmpty() \n\t{\n\t\treturn this.map.isEmpty();\n\t}",
"@Override\n\tpublic boolean isEmpty() {\n\t\treturn map.isEmpty();\n\t}",
"public boolean isEmpty() {\n\t\treturn map.isEmpty();\n\t}",
"public boolean isEmpty() {\n return this.extMap.isEmpty();\n }",
"public boolean isEmpty() {\r\n return this.map.isEmpty();\r\n }",
"public boolean isEmpty() {\n return map.isEmpty();\n }",
"public boolean isEmpty() {\n return map.isEmpty();\n }",
"@Override\n public boolean isEmpty() {\n return map.isEmpty();\n }",
"public final synchronized boolean isEmpty() {\n\t\treturn map.isEmpty();\n\t}",
"boolean isNilLabel();",
"public boolean isEmpty() {\r\n return numberOfKeys == 0;\r\n }",
"public boolean isEmpty(String keyName) {\n\t\treturn multistack.get(keyName) == null;\n\t}",
"public boolean hasLabel()\n {\n return _label.isNotNull();\n }",
"public boolean isEmpty(){\n\t\tfor(int i = 0; i < hashMap.length; i++){\n\t\t\tif(hashMap[i]!=null){\n\t\t\t\treturn(false);\n\t\t\t}\n\t\t}\n\t\treturn(true);\n\t}",
"@Override\n\tpublic boolean isEmpty() throws RemoteException {\n\t\treturn bnetMap.size() == 0;\n\t}",
"public static synchronized boolean isEmpty() {\n\t\treturn ClassRegistry.dictionary.isEmpty();\n\t}",
"public boolean isEmpty() {\n\t\treturn treeMap.isEmpty();\n\t}",
"public boolean isEmpty() {\n return numKeys == 0;\n }",
"public boolean isEmpty(String keyName) {\n\t\treturn !map.containsKey(keyName);\n\t}",
"default boolean isEmpty() {\n\t\treturn this.getContents().values().stream().allMatch(ItemStack::isEmpty);\n\t}",
"public boolean isEmpty() {\n return labeledFieldEmptyOrHidden;\n }",
"@Override\n\t\tpublic boolean hasLabel(Label label) {\n\t\t\treturn false;\n\t\t}",
"public boolean isEmpty() {\n return keyList.size() == 0;\n }",
"public boolean isBlank() {\n return (tags.length() == 0);\n }",
"public boolean isSetLabels() {\n return this.labels != null;\n }",
"private static <K, V> boolean isMapEmpty(Map<K, V> aMap) {\n for (V v : aMap.values()) {\n if (v == \"\") {\n return true;\n }\n }\n return false;\n }",
"boolean hasLabel();",
"boolean hasLabel();",
"boolean hasLabel();",
"@Override\r\n\tpublic boolean isEmpty() {\r\n\r\n\t\treturn data.isEmpty();\r\n\t}",
"@java.lang.Override\n public boolean containsLabels(java.lang.String key) {\n if (key == null) {\n throw new NullPointerException(\"map key\");\n }\n return internalGetLabels().getMap().containsKey(key);\n }",
"@java.lang.Override\n public boolean containsLabels(java.lang.String key) {\n if (key == null) {\n throw new NullPointerException(\"map key\");\n }\n return internalGetLabels().getMap().containsKey(key);\n }",
"public boolean isEmpty() {\r\n\r\n\t\treturn data.isEmpty();\r\n\t}",
"@java.lang.Override\n public boolean containsLabels(java.lang.String key) {\n if (key == null) {\n throw new NullPointerException(\"map key\");\n }\n return internalGetLabels().getMap().containsKey(key);\n }",
"@java.lang.Override\n public boolean containsLabels(java.lang.String key) {\n if (key == null) {\n throw new NullPointerException(\"map key\");\n }\n return internalGetLabels().getMap().containsKey(key);\n }",
"public boolean isEmpty (){\n\t\treturn hashTableSize == 0;\n\t}",
"public boolean is_empty() {\n\t\treturn false;\n\t}",
"public boolean isEmpty() {\n\t\t\tassert wellFormed() : \"invariant false on entry to isEmpty()\";\n\n\t\t\tif(this.getFirst() == null) {\n\t\t\t\treturn true;\n\t\t\t}\n\n\t\t\treturn false;\n\t\t}",
"@Override\n\tpublic boolean isEmpty() {\n\t\treturn bst.isEmpty();\n\t}",
"public boolean isMaybeObject() {\n checkNotPolymorphicOrUnknown();\n return object_labels != null && object_labels.stream().anyMatch(x -> x.getKind() != Kind.SYMBOL);\n }",
"public boolean isEmpty() \n { \n return numberOfEntries == 0;\n }",
"public boolean isEmpty() {\n return mValues.isEmpty();\n }",
"public boolean isEmpty() {\n return values.isEmpty();\n }",
"public boolean isClassEmpty()\r\n {\r\n return(number_of_entries == 0);\r\n }",
"public boolean isEmptyHuh() {\n return true; \n }",
"public boolean isEmpty()\r\n\t{\r\n\t\treturn data.size() == 0;\r\n\t}",
"@Override\n\tpublic boolean isEmpty() {\n\t\treturn super.isEmpty() || getFluid() == Fluids.EMPTY;\n\t}",
"public boolean isEmpty() {\n\t\treturn super.isEmpty();\n\t}",
"public boolean isEmpty()\n\t{\n\t\tverifyParseState();\n\t\treturn values.isEmpty();\n\t}",
"public boolean isEmpty() {\n return MapSequence.fromMap(files).isEmpty();\n }",
"public boolean isEmpty() {\n\t\tboolean empty = true;\n\t\tfor(int i = 0; i < contains.length && empty; i++) {\n\t\t\tif (contains[i]) {\n\t\t\t\tempty = false;\n\t\t\t}\n\t\t}\n\t\treturn empty;\n\t}",
"public boolean isEmpty() {\n return data.isEmpty();\n }",
"public boolean isEmpty() {\r\n for (int i = 0, tot = buckets.length; i < tot; i++) {\r\n CacheData<K, V> entry = getCacheData(i);\r\n // if we find a key that is valid it's not empty\r\n if (entry != null && entry.validateKey() != null) {\r\n return false;\r\n }\r\n }\r\n return true;\r\n }",
"boolean isItEmpty(){\n\t\t\tif (this.items.isEmpty() && (this.receptacle.isEmpty() || findSpecialtyContainers())){//if there's nothing in there.\n\t\t\t\tSystem.out.println(\"\\nThere's nothing here to do anything with.\");\n\t\t\t\treturn true;}\n\t\t\treturn false;\n\t\t}",
"public final boolean empty() {\n return data == null;\n }",
"public boolean empty() {\n return data.size() == 0;\n }",
"public boolean isEmpty( ){\r\n\t\treturn beginMarker.next==endMarker;\r\n\t}",
"protected boolean drillAllLabels() {\n return label == null;\n }",
"private boolean isEmpty() {\n return dataSize == 0;\n }",
"public boolean isEmpty() { \n return (bst.size() == 0);\n }",
"boolean isEmpty() {\n return mapped_vms.isEmpty();\n }",
"boolean isSetLabel();",
"@Override\r\n\tpublic boolean isEmpty() {\n\t\treturn (t==1);\r\n\t}",
"public boolean isEmpty( Map<?, ?> map ){\n if( map == null || map.isEmpty() ){\n return true;\n }\n return false;\n }",
"public boolean isEmpty() {\n\t\treturn objectMappers.isEmpty();\n\t}",
"public boolean isEmpty() {\n return this.ini == null;\n }",
"private boolean isEmpty() {\n\t\treturn size() == 0;\n\t}",
"public boolean isEmpty() {\n return _entries != null || _entries.isEmpty();\n }",
"@Override\n public boolean isTagged() {\n for (List<String> t : tags.values()) {\n if(!t.isEmpty()) return true;\n }\n return false;\n }",
"public boolean isMaybeSingleObjectLabel() {\n checkNotPolymorphicOrUnknown();\n return object_labels != null && object_labels.size() == 1;\n }",
"public boolean isEmpty(){\n\t\treturn super.isEmpty();\n\t}",
"public boolean isEmpty() {\n return cnt == 0;\n }",
"public boolean isEmpty() {\n\t\t\treturn properties.isEmpty();\n\t\t}",
"public boolean isEmpty() {\n return helpers.isEmpty();\n }",
"@Override\n\tpublic boolean isEmpty() {\n\t\treturn false;\n\t}",
"@Override\n\tpublic boolean isEmpty() {\n\t\treturn false;\n\t}",
"@Override\n\tpublic boolean isEmpty() {\n\t\treturn false;\n\t}",
"@Override\n\tpublic boolean isEmpty() {\n\t\treturn false;\n\t}",
"@Override\n\tpublic boolean isEmpty() {\n\t\treturn false;\n\t}",
"@Override\n\tpublic boolean isEmpty() {\n\t\treturn false;\n\t}",
"@Override\n\tpublic boolean isEmpty() {\n\t\treturn false;\n\t}",
"public boolean empty() {\r\n\t\treturn empty;\r\n\t}",
"public boolean isEmpty(){\r\n\t\treturn stackData.isEmpty();\r\n\t}",
"@Override\n\tpublic boolean isEmpty() {\n\t\treturn (getSize() == 0);\n\t}",
"public boolean isEmpty() {\n return this.tuples.isEmpty();\n }",
"@Override\n\t\tpublic boolean isEmpty() {\n\t\t\treturn false;\n\t\t}",
"@Override\n\t\tpublic boolean isEmpty() {\n\t\t\treturn false;\n\t\t}",
"public boolean isEmpty() {\n return vertexLayer.isEmpty();\n }",
"public boolean isEmpty()\n\t{\n\t\treturn block == Block.EMPTY;\n\t}",
"@Override\r\n\tpublic boolean isEmpty() {\n\t\treturn this.size == 0;\r\n\t}",
"public boolean isEmpty() {\n\t\treturn false;\r\n\t}",
"private boolean isEmpty() { return getSize() == 0; }",
"public boolean isEmpty(){\n\t\treturn isPassable&&!containsItems()&&!containsMonster()&&tileItems.noGold();\r\n\t}",
"public boolean is_T_EMPTY() {\n return (this.t.get_T().length() == 0) ? true : false;\n }",
"public boolean isEmpty() { return true; }",
"public boolean isFull() {\n return (kv1 != null && kv2 != null);\n }",
"public boolean isEmpty() {\n\t\treturn allItems.size() == 0;\n\t}",
"public boolean empty() {\n\t\treturn (this.root == null); // to be replaced by student code\n\t}"
] |
[
"0.7035335",
"0.6970327",
"0.69234174",
"0.69150174",
"0.68845993",
"0.6873317",
"0.68592393",
"0.68472284",
"0.6845623",
"0.68139815",
"0.67425925",
"0.6698052",
"0.66685945",
"0.6653419",
"0.6648883",
"0.6605862",
"0.6577473",
"0.6537044",
"0.6536673",
"0.6518595",
"0.64648587",
"0.6423901",
"0.6418805",
"0.64145297",
"0.6383302",
"0.6330984",
"0.63245195",
"0.6317399",
"0.63137263",
"0.63137263",
"0.63137263",
"0.6307792",
"0.6306246",
"0.6306246",
"0.62985903",
"0.6289907",
"0.6289907",
"0.62764376",
"0.627338",
"0.6270296",
"0.62584424",
"0.62525606",
"0.62488925",
"0.6229663",
"0.62256366",
"0.6212497",
"0.62071633",
"0.62028426",
"0.6187949",
"0.6181364",
"0.61788046",
"0.61769974",
"0.6165953",
"0.6165908",
"0.61642003",
"0.615327",
"0.6134777",
"0.61324686",
"0.6128575",
"0.61272156",
"0.6115956",
"0.6103825",
"0.609855",
"0.6091537",
"0.6089167",
"0.6089055",
"0.608503",
"0.6083139",
"0.6079832",
"0.6078583",
"0.60667",
"0.60666156",
"0.6051596",
"0.6047704",
"0.60475534",
"0.6041625",
"0.60383767",
"0.60383767",
"0.60383767",
"0.60383767",
"0.60383767",
"0.60383767",
"0.60383767",
"0.6034777",
"0.6033487",
"0.60321075",
"0.6030998",
"0.6028503",
"0.6028503",
"0.6028242",
"0.6027898",
"0.60240453",
"0.6022346",
"0.60161036",
"0.6015355",
"0.6014604",
"0.5999947",
"0.59992796",
"0.5998275",
"0.5994441"
] |
0.76478624
|
0
|
Retrieves the (0based integer) ID for the given feature label provided it's in the dictionary already
|
synchronized public int getId(String label) {
return label2id.get(label).intValue();
}
|
{
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
}
|
[
"synchronized public int getIdAlways(String label) throws BoxerXMLException {\n\tif (label==null) throw new IllegalArgumentException(\"label=null\");\n\tInteger x = label2id.get(label);\n\tif (x != null) return x.intValue();\n\tif (!IDValidation.validateFeatureName(label)) {\n\t throw new BoxerXMLException(\"Can't add feature with the name '\"+label+\"' to the feature dictionary, because this is not a legal name\");\n\t}\n\n\tid2label.add( label );\n\tint z = id2label.size() - 1; // the index of the last element\n\tlabel2id.put(label, new Integer(z));\n\treturn z;\n }",
"private static int getInstanceID (String label)\n {\n\tchar c;\n\tfor (int i = 0; i < label.length (); i++) {\n\t c = label.charAt (i);\n\t if (Character.isDigit (c)) {\n\t\tString id = label.substring (i, label.length ());\n\t\treturn Integer.parseInt (id);\n\t }; // if\n\t}; // for\n\n\treturn 0;\n\n }",
"FeatureId getFeatureId();",
"private String labelFeature(int feature) {\r\n\t\treturn label[feature];\r\n\t}",
"public IntColumn getFeatureId() {\n return (IntColumn) (isText ? textFields.computeIfAbsent(\"feature_id\", IntColumn::new) :\n getBinaryColumn(\"feature_id\"));\n }",
"String getIdNumber();",
"public <LabelType> void loadFeaturesID(Model<T, LabelType> model) {\n\t\tfeaturesID.clear();// remove all elements before\n\t\tfor (T feature : features) {\n\t\t\tfeaturesID.add(model.getDictionary().indexOf(feature));\n\t\t}\n\t\tfeaturesIdLoaded = true;\n\t}",
"Short getId();",
"java.lang.String getId();",
"java.lang.String getId();",
"java.lang.String getId();",
"java.lang.String getId();",
"java.lang.String getId();",
"java.lang.String getId();",
"java.lang.String getId();",
"java.lang.String getId();",
"java.lang.String getId();",
"java.lang.String getId();",
"java.lang.String getId();",
"java.lang.String getId();",
"java.lang.String getId();",
"java.lang.String getId();",
"java.lang.String getId();",
"java.lang.String getId();",
"java.lang.String getId();",
"java.lang.String getId();",
"java.lang.String getId();",
"private MapDBLabelToId() {\n\t\tproperties = new ProjectProperties(this.getClass());\n\n\t\tmap = db.getCollection(COLLECTION_NAME);\n\t\t// commitFrequency = properties.getInt(\"mapdb.commit\");\n\t}",
"Integer getId();",
"Integer getId();",
"Integer getId();",
"Object getId();",
"Feature loadFeature(Integer id);",
"public final Integer getId(final String key){\r\n\t\treturn keyIdMap.get(key);\r\n\t}",
"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();",
"public static int getIdentifier(){\n\t\tif(index > ids.size() - 1){\n\t\t\tindex = 0;\n\t\t}\n\t\t// Post increment is used here, returns index then increments index\n\t\treturn ids.get(index++);\n\t}",
"Integer getFntLID();",
"Integer getID();",
"Integer getID();",
"public int getId(){\n if (ID != null) {\n int i = Integer.parseInt(ID);\n return i;\n }\n return 0;\n }",
"int getId() throws UnsupportedOperationException;",
"io.dstore.values.IntegerValue getValueCharacteristicId();",
"Identity get(String label) throws IOException;",
"com.google.protobuf.ByteString getIdBytes();",
"com.google.protobuf.ByteString getIdBytes();",
"com.google.protobuf.ByteString getIdBytes();",
"com.google.protobuf.ByteString getIdBytes();",
"public int id () {\r\n int iId;\r\n\r\n if (isNull(\"id_term1\"))\r\n \tiId = getInt(DB.id_term+\"0\");\r\n else if (isNull(\"id_term2\"))\r\n \tiId = getInt(DB.id_term+\"1\");\r\n else if (isNull(\"id_term3\"))\r\n \tiId = getInt(DB.id_term+\"2\");\r\n else if (isNull(\"id_term4\"))\r\n \tiId = getInt(DB.id_term+\"3\");\r\n else if (isNull(\"id_term5\"))\r\n \tiId = getInt(DB.id_term+\"4\");\r\n else if (isNull(\"id_term6\"))\r\n \tiId = getInt(DB.id_term+\"5\");\r\n else if (isNull(\"id_term7\"))\r\n \tiId = getInt(DB.id_term+\"6\");\r\n else if (isNull(\"id_term8\"))\r\n \tiId = getInt(DB.id_term+\"7\");\r\n else if (isNull(\"id_term9\"))\r\n \tiId = getInt(DB.id_term+\"8\");\r\n else\r\n \tiId = getInt(DB.id_term+\"9\");\r\n\r\n return iId;\r\n }",
"public Integer getId() {\n return (Integer) get(0);\n }",
"public Integer getId()\r\n\t\t{ return mapping.getId(); }",
"java.lang.String getID();",
"public int getId() {\n if (!this.registered)\n return -1;\n return id;\n }",
"int getIdNum();",
"public String getFeatureID(long offset) throws IOException {\n\t\tdataBase.seek(offset);\n\t\tString[] array = dataBase.readLine().split(\"\\\\|\");\n\t\treturn array[0];\n\t}",
"java.lang.String getFortId();",
"String getExistingId();",
"@MapName(\"lnfid\")\n \tString getLnfId();",
"public IntColumn getLabelSeqId() {\n return (IntColumn) (isText ? textFields.computeIfAbsent(\"label_seq_id\", IntColumn::new) :\n getBinaryColumn(\"label_seq_id\"));\n }"
] |
[
"0.82379127",
"0.7012403",
"0.6333748",
"0.62604725",
"0.60031265",
"0.59292924",
"0.59282154",
"0.5851833",
"0.58158726",
"0.58158726",
"0.58158726",
"0.58158726",
"0.58158726",
"0.58158726",
"0.58158726",
"0.58158726",
"0.58158726",
"0.58158726",
"0.58158726",
"0.58158726",
"0.58158726",
"0.58158726",
"0.58158726",
"0.58158726",
"0.58158726",
"0.58158726",
"0.58158726",
"0.5814963",
"0.5756159",
"0.5756159",
"0.5756159",
"0.5736617",
"0.5639451",
"0.55962807",
"0.5569436",
"0.5569436",
"0.5569436",
"0.5569436",
"0.5569436",
"0.5569436",
"0.5569436",
"0.5569436",
"0.5569436",
"0.5569436",
"0.5569436",
"0.5569436",
"0.5569436",
"0.5569436",
"0.5569436",
"0.5569436",
"0.5569436",
"0.5569436",
"0.5569436",
"0.5569436",
"0.5569436",
"0.5569436",
"0.5569436",
"0.5569436",
"0.5569436",
"0.5569436",
"0.5569436",
"0.5569436",
"0.5569436",
"0.5569436",
"0.5569436",
"0.5569436",
"0.5569436",
"0.5569436",
"0.5569436",
"0.5569436",
"0.5569436",
"0.5569436",
"0.5569436",
"0.5569436",
"0.5569436",
"0.5569436",
"0.5569436",
"0.55269897",
"0.55256665",
"0.55251825",
"0.55251825",
"0.5522947",
"0.54649967",
"0.54564595",
"0.54475135",
"0.5436862",
"0.5436862",
"0.5436862",
"0.5436862",
"0.5422851",
"0.5409789",
"0.5400329",
"0.5399359",
"0.5392255",
"0.53823537",
"0.5373187",
"0.53717035",
"0.5367833",
"0.5354863",
"0.53523153"
] |
0.77492374
|
1
|
Always returns a valid ID for the given feature label: an already recorded one, if there is one, or a new one, otherwise. In the latter case, the feature label is validated before being inserted into the dictionary. This method must be synchronized to prevent double insertion
|
synchronized public int getIdAlways(String label) throws BoxerXMLException {
if (label==null) throw new IllegalArgumentException("label=null");
Integer x = label2id.get(label);
if (x != null) return x.intValue();
if (!IDValidation.validateFeatureName(label)) {
throw new BoxerXMLException("Can't add feature with the name '"+label+"' to the feature dictionary, because this is not a legal name");
}
id2label.add( label );
int z = id2label.size() - 1; // the index of the last element
label2id.put(label, new Integer(z));
return z;
}
|
{
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
}
|
[
"synchronized public int getId(String label) { \n\treturn label2id.get(label).intValue();\n }",
"private static int getInstanceID (String label)\n {\n\tchar c;\n\tfor (int i = 0; i < label.length (); i++) {\n\t c = label.charAt (i);\n\t if (Character.isDigit (c)) {\n\t\tString id = label.substring (i, label.length ());\n\t\treturn Integer.parseInt (id);\n\t }; // if\n\t}; // for\n\n\treturn 0;\n\n }",
"FeatureId getFeatureId();",
"String getExistingId();",
"public synchronized I identify(Object obj) {\r\n if (obj == null) {\r\n throw new IllegalArgumentException(\"Object cannot be null\");\r\n }\r\n I id = mObjectsToIdentifiers.get(obj);\r\n if (id == null) {\r\n do {\r\n id = newIdentifier(Random.randomLong());\r\n } while (mIdentifiersToObjects.get(id) != null);\r\n id = mIdentifiers.put(id);\r\n mObjectsToIdentifiers.put(obj, id);\r\n mIdentifiersToObjects.put(id, obj);\r\n }\r\n return id;\r\n }",
"@Nonnull\n LabelResponse addLabel(@Nonnull final String labelID, @Nonnull final String telegrafID);",
"private int getOrMakeID(LValueBox lvb) {\r\n\t\tif(this.lValueID.containsKey(lvb)) {\r\n\t\t\treturn this.lValueID.get(lvb);\r\n\t\t}\r\n\t\tint id = this.lValues.size();\r\n\t\tthis.lValueID.put(lvb, id);\r\n\t\tthis.lValues.add(lvb);\r\n\t\treturn id;\r\n\t}",
"public <LabelType> void loadFeaturesID(Model<T, LabelType> model) {\n\t\tfeaturesID.clear();// remove all elements before\n\t\tfor (T feature : features) {\n\t\t\tfeaturesID.add(model.getDictionary().indexOf(feature));\n\t\t}\n\t\tfeaturesIdLoaded = true;\n\t}",
"org.hl7.fhir.Identifier addNewIdentifier();",
"@Override\r\n public boolean contains(V label) {\r\n return map.containsKey(label);\r\n }",
"@PostMapping(\"/addlabel\")\n\tpublic ResponseEntity<ErrorResponse> addLabel(@RequestParam(\"labelId\") Long labelId,\n\t\t\t@RequestHeader(\"token\") String token, @RequestParam(\"noteId\") Long id) {\n\t\tSystem.out.println(labelId);\n\t\tlabelService.addLabel(labelId, id, token);\n\t\treturn new ResponseEntity<>(new ErrorResponse(HttpStatus.OK.value(), \"label added\"), HttpStatus.OK);\n\n\t}",
"UniqueId add(final ExternalIdBundle bundle, final T obj) {\n _writeLock.lock();\n try {\n _fromMap.putAll(obj, bundle.getExternalIds());\n for (final ExternalId identifier : bundle.getExternalIds()) {\n _toMap.put(identifier, obj);\n }\n if (_uniqueIdMap.inverse().containsKey(obj)) {\n return _uniqueIdMap.inverse().get(obj);\n }\n final UniqueId uniqueId = _idSupplier.get();\n _uniqueIdMap.put(uniqueId, obj);\n return uniqueId;\n } finally {\n _writeLock.unlock();\n }\n }",
"com.microsoft.schemas.xrm._2011.contracts.Label addNewLabel();",
"private int nextValidID() {\n return nextId++;\n }",
"void createLabelToken( String name, int id );",
"private String nextID(String id) throws ConstraintViolationException {\r\n\t if (id == null) { // generate a new id\r\n\t if (idCounter == 0) {\r\n\t idCounter = Calendar.getInstance().get(Calendar.YEAR);\r\n\t } else {\r\n\t idCounter++;\r\n\t }\r\n\t return \"S\" + idCounter;\r\n\t } else {\r\n\t // update id\r\n\t int num;\r\n\t try {\r\n\t num = Integer.parseInt(id.substring(1));\r\n\t } catch (RuntimeException e) {\r\n\t throw new ConstraintViolationException(\r\n\t ConstraintViolationException.Code.INVALID_VALUE, e, new Object[] { id });\r\n\t }\r\n\t \r\n\t if (num > idCounter) {\r\n\t idCounter = num;\r\n\t }\r\n\t \r\n\t return id;\r\n\t }\r\n\t \r\n\t \r\n\t \r\n\t \r\n\t \r\n}",
"private MapDBLabelToId() {\n\t\tproperties = new ProjectProperties(this.getClass());\n\n\t\tmap = db.getCollection(COLLECTION_NAME);\n\t\t// commitFrequency = properties.getInt(\"mapdb.commit\");\n\t}",
"private SchemaId getValidId() throws IOException {\n SchemaId id = new SchemaIdImpl(UUID.randomUUID());\n byte[] rowId = id.getBytes();\n // The chance it would already exist is small\n if (typeTable.exists(new Get(rowId))) {\n return getValidId();\n }\n // The chance a same uuid is generated after doing the exists check is\n // even smaller\n // If it would still happen, the incrementColumnValue would return a\n // number bigger than 1\n if (1L != typeTable\n .incrementColumnValue(rowId, TypeCf.DATA.bytes, TypeColumn.CONCURRENT_COUNTER.bytes, 1L)) {\n return getValidId();\n }\n return id;\n }",
"boolean hasID();",
"boolean hasID();",
"boolean hasID();",
"boolean hasID();",
"boolean hasID();",
"boolean hasID();",
"boolean hasID();",
"boolean hasID();",
"boolean hasID();",
"public static Long getAValidImageId() {\n\t\tLong id = getAId();\n\t\tif (id == null) {\n\n\t\t\tImage img = new Image(\"http://dummy.com/img.jpg\", (long)(Math.random()*10000), \"Description\", \"keyword\", new Date(0001L));\n\t\t\tIImageStore imageStore = StoreFactory.getImageStore();\n\t\t\timageStore.insert(img);\n\n\t\t\tid = getAId();\n\t\t\tif (id == null) {\n\t\t\t\tthrow new RuntimeException(\"There are no images in DB, and I can't insert one. Cannot run tests without.\");\n\t\t\t}\n\t\t}\n\t\treturn id;\n\t}",
"boolean isSetId();",
"void addId(II identifier);",
"public void addCaseToLabel(CaseUUID aCaseUUID, LabelUUID aLabelUUID);",
"boolean addNode(long idNum, String label);",
"private String labelFeature(int feature) {\r\n\t\treturn label[feature];\r\n\t}",
"private Integer getUniqueId(Object object) {\n/* 89 */ Integer id = this.idCache.get(object);\n/* 90 */ if (id == null) {\n/* 91 */ id = Integer.valueOf(this.uidGenerator.incrementAndGet());\n/* 92 */ Integer existing = this.idCache.putIfAbsent(object, id);\n/* 93 */ if (existing != null) {\n/* 94 */ return existing;\n/* */ }\n/* */ } \n/* 97 */ return id;\n/* */ }",
"private String nextID(String id) throws ConstraintViolationException {\n\t\tif (id == null) { // generate a new id\n//\t\t\tif (idCounter == 0) {\n//\t\t\t\tidCounter = Calendar.getInstance().get(Calendar.YEAR);\n//\t\t\t} else {\n\t\t\t\tidCounter++;\n\t\t\t\tString stringIdCounter = String.format(\"%06d\", idCounter);\n//\t\t\t}\n\t\t\treturn \"CUS\"+ stringIdCounter;\n\t\t} else {\n\t\t\t// update id\n\t\t\tint num;\n\t\t\ttry {\n\t\t\t\tnum = Integer.parseInt(id.substring(3));\n\t\t\t} catch (RuntimeException e) {\n\t\t\t\tthrow new ConstraintViolationException(ConstraintViolationException.Code.INVALID_VALUE, e,\n\t\t\t\t\t\tnew Object[] { id });\n\t\t\t}\n\n\t\t\tif (num > idCounter) {\n\t\t\t\tidCounter = num;\n\t\t\t}\n\n\t\t\treturn id;\n\t\t}\n\t}",
"public String createID(Connection conn, SimpleFeature feature, Statement statement)\r\n throws IOException {\r\n \t//JD: replacing no word characters with underscore\r\n \t//JD: forcing to start with a latter\r\n // According to GML and XML schema standards, FID is a XML ID\r\n // (http://www.w3.org/TR/xmlschema-2/#ID), whose acceptable values are those that match an\r\n // NCNAME production (http://www.w3.org/TR/1999/REC-xml-names-19990114/#NT-NCName):\r\n // NCName ::= (Letter | '_') (NCNameChar)* /* An XML Name, minus the \":\" */\r\n // NCNameChar ::= Letter | Digit | '.' | '-' | '_' | CombiningChar | Extender\r\n // We have to fix the generated UID replacing all non word chars with an _ (it seems\r\n // they area all \":\")\r\n// return \"fid-\" + new UID().toString().replaceAll( \"\\\\W\",\"_\" );\r\n// optimization, since the UID toString uses only \":\" and converts long and integers\r\n // to strings for the rest, so the only non word character is really \":\"\r\n return \"fid-\" + new UID().toString().replace(':', '_');\r\n }",
"public int hashCode() {\n return (new Integer(label)).hashCode();\n }",
"private void generateObjIdIfRequired(T obj) {\n Field idField = Arrays.stream(entityClass.getDeclaredFields())\n .filter(f -> f.isAnnotationPresent(Id.class) &&\n f.isAnnotationPresent(GeneratedValue.class) &&\n f.getType().equals(Long.TYPE)) //Refers to primitive type long\n .findFirst().orElse(null);\n \n if(idField == null) return;\n\n try {\n idField.setAccessible(true);\n idField.set(obj, idCounter);\n idField.setAccessible(false);\n idCounter++;\n } catch (IllegalAccessException e) {\n throw new DBException(\"Problem generating and setting id of object: \" + entityClass.getSimpleName() + \" : \" + obj.toString(), e);\n }\n\n }",
"@Nonnull\n LabelResponse addLabel(@Nonnull final Label label, @Nonnull final Telegraf telegraf);",
"public org.hl7.fhir.Identifier addNewIdentifier()\n {\n synchronized (monitor())\n {\n check_orphaned();\n org.hl7.fhir.Identifier target = null;\n target = (org.hl7.fhir.Identifier)get_store().add_element_user(IDENTIFIER$0);\n return target;\n }\n }",
"public org.hl7.fhir.Identifier addNewIdentifier()\n {\n synchronized (monitor())\n {\n check_orphaned();\n org.hl7.fhir.Identifier target = null;\n target = (org.hl7.fhir.Identifier)get_store().add_element_user(IDENTIFIER$0);\n return target;\n }\n }",
"II addId();",
"Feature loadFeature(Integer id);",
"public String getId(Object obj, boolean notificaton) {\n\t\t/* new object generate key and add to tables */\n\t\t/* <ShortClassName><Timestamp> */\n\t\tif (obj == null) {\n\t\t\treturn \"\";\n\t\t}\n\t\tString key = getKey(obj);\n\t\tif (key != null) {\n\t\t\treturn key;\n\t\t}\n\t\tkey = grammar.getId(obj, this);\n\t\tif (key != null) {\n\t\t\tput(key, obj, notificaton);\n\t\t\treturn key;\n\t\t}\n\t\treturn createId(obj, notificaton);\n\t}",
"java.lang.String getId();",
"java.lang.String getId();",
"java.lang.String getId();",
"java.lang.String getId();",
"java.lang.String getId();",
"java.lang.String getId();",
"java.lang.String getId();",
"java.lang.String getId();",
"java.lang.String getId();",
"java.lang.String getId();",
"java.lang.String getId();",
"java.lang.String getId();",
"java.lang.String getId();",
"java.lang.String getId();",
"java.lang.String getId();",
"java.lang.String getId();",
"java.lang.String getId();",
"java.lang.String getId();",
"java.lang.String getId();",
"public Integer insert(ElemFeature record) throws SQLException {\r\n\t\tObject newKey = getSqlMapClientTemplate().insert(\r\n\t\t\t\t\"cementerio_elem_feature.ibatorgenerated_insert\", record);\r\n\t\treturn (Integer) newKey;\r\n\t}",
"private static Integer generateID() {\n Integer uniqueID = -1;\n while (setOfIDs.contains(uniqueID) || !Employee.isPositive(uniqueID)) {\n uniqueID += 1;\n }\n return uniqueID;\n }",
"public boolean hasId() {\n return fieldSetFlags()[0];\n }",
"public boolean hasId() {\n return fieldSetFlags()[0];\n }",
"public boolean hasId() {\n return fieldSetFlags()[0];\n }",
"public boolean hasId() {\n return fieldSetFlags()[0];\n }",
"public boolean hasId() {\n return fieldSetFlags()[0];\n }",
"Identity get(String label) throws IOException;",
"public abstract boolean isValidID(long ID);",
"public Feature getFeatureKey(Lexicon lexicon, boolean training, int label) {\n return\n new RealConjunctiveFeature(\n containingPackage, generatingClassifier,\n getArgumentKey(left, lexicon, training, label),\n getArgumentKey(right, lexicon, training, label));\n }",
"public Integer insertSelective(ElemFeature record) throws SQLException {\r\n\t\tObject newKey = getSqlMapClientTemplate().insert(\r\n\t\t\t\t\"cementerio_elem_feature.ibatorgenerated_insertSelective\",\r\n\t\t\t\trecord);\r\n\t\treturn (Integer) newKey;\r\n\t}",
"@Override\n public ID getID() {\n // If it is incomplete, there's no meaningful ID that we can return.\n if (gid == null || pid == null) {\n return null;\n }\n\n try {\n String hashValue = getAdvertisementType() + gid.getUniqueValue().toString() + pid.getUniqueValue().toString();\n byte[] seed = hashValue.getBytes(\"UTF-8\");\n\n return IDFactory.newContentID(gid, seed, new ByteArrayInputStream(seed));\n } catch (Exception failed) {\n return null;\n }\n }",
"boolean hasId();",
"boolean hasId();",
"boolean hasId();",
"boolean hasId();",
"boolean hasId();",
"boolean hasId();",
"boolean hasId();",
"boolean hasId();",
"boolean hasId();",
"boolean hasId();",
"boolean hasId();",
"boolean hasId();",
"boolean hasId();",
"boolean hasId();",
"boolean hasId();",
"boolean hasId();",
"boolean hasId();",
"boolean hasId();",
"boolean hasId();",
"boolean hasId();",
"boolean hasId();",
"boolean hasId();",
"boolean hasId();",
"boolean hasId();",
"boolean hasId();"
] |
[
"0.62197065",
"0.5838515",
"0.53272533",
"0.5211662",
"0.5168204",
"0.5134798",
"0.50306606",
"0.5018059",
"0.49877432",
"0.4957968",
"0.4950193",
"0.49180958",
"0.4881392",
"0.4852855",
"0.48472324",
"0.48196852",
"0.47535765",
"0.47427204",
"0.47409505",
"0.47409505",
"0.47409505",
"0.47409505",
"0.47409505",
"0.47409505",
"0.47409505",
"0.47409505",
"0.47409505",
"0.47385073",
"0.47280917",
"0.46906474",
"0.46731052",
"0.46660015",
"0.46534833",
"0.4650118",
"0.464047",
"0.46337032",
"0.46326938",
"0.46249783",
"0.46194252",
"0.4616026",
"0.4616026",
"0.46051833",
"0.45945176",
"0.45930493",
"0.45721194",
"0.45721194",
"0.45721194",
"0.45721194",
"0.45721194",
"0.45721194",
"0.45721194",
"0.45721194",
"0.45721194",
"0.45721194",
"0.45721194",
"0.45721194",
"0.45721194",
"0.45721194",
"0.45721194",
"0.45721194",
"0.45721194",
"0.45721194",
"0.45721194",
"0.4570083",
"0.4569984",
"0.4566665",
"0.4566665",
"0.4566665",
"0.4566665",
"0.4566665",
"0.45588535",
"0.45488974",
"0.45380288",
"0.4528616",
"0.45223933",
"0.4510053",
"0.4510053",
"0.4510053",
"0.4510053",
"0.4510053",
"0.4510053",
"0.4510053",
"0.4510053",
"0.4510053",
"0.4510053",
"0.4510053",
"0.4510053",
"0.4510053",
"0.4510053",
"0.4510053",
"0.4510053",
"0.4510053",
"0.4510053",
"0.4510053",
"0.4510053",
"0.4510053",
"0.4510053",
"0.4510053",
"0.4510053",
"0.4510053"
] |
0.75776833
|
0
|
How many features are there so far?
|
public int getDimension() {
return id2label.size();
}
|
{
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
}
|
[
"int getFeaturesCount();",
"public int getFeaturesCount();",
"int countFeatures();",
"int countFeatures();",
"public int numberOfFeatures(){\n\t\treturn indexByFeature.keySet().size();\n\t}",
"public int getFeatureCount() {\n\r\n\t\treturn _features.length;\r\n\t}",
"int getFeatureCount();",
"long getFeaturesUsed();",
"public int numFeatures() {\n return FTypes.values().length;\n }",
"public int getFeaturesSize();",
"public int getNumberOfFeatures() {\n\t\treturn numberOfFeatures;\n\t}",
"int countTypedFeatures();",
"public int sizeOfFeatureArray()\r\n {\r\n synchronized (monitor())\r\n {\r\n check_orphaned();\r\n return get_store().count_elements(FEATURE$6);\r\n }\r\n }",
"public int sizeOfFeatureArray()\r\n {\r\n synchronized (monitor())\r\n {\r\n check_orphaned();\r\n return get_store().count_elements(FEATURE$6);\r\n }\r\n }",
"public int getNumberOfFeatures() {\n return features.size() - 1; // because slot 0 is skipped\n }",
"public int size(Feature f){\n\t\treturn featureIndex(f).size();\n\t}",
"int sizeOfFeatureArray();",
"int sizeOfFeatureArray();",
"public int sizeOfFeatureArray()\r\n {\r\n synchronized (monitor())\r\n {\r\n check_orphaned();\r\n return get_store().count_elements(FEATURE$14);\r\n }\r\n }",
"public int getProcessedCount()\r\n {\r\n return myFeatureCount;\r\n }",
"public int getFeaturesSize(int chromosome);",
"private void initializeSentimentFeaturesCount() {\n\t\tint count = 0;\n\n\t\t// Number of positive words\n\t\tif (Features.isNumberOfPositiveWords()) {\n\t\t\tcount++;\n\t\t}\n\t\t\n\t\t// Number of negative words\n\t\tif (Features.isNumberOfNegativeWords()) {\n\t\t\tcount++;\n\t\t}\n\t\t\n\t\t// Number of highly emotional positive words\n\t\tif (Features.isNumberOfHighlyEmoPositiveWords()) {\n\t\t\tcount++;\n\t\t}\n\t\t\n\t\t// Number of highly emotional negative words\n\t\tif (Features.isNumberOfHighlyEmoNegativeWords()) {\n\t\t\tcount++;\n\t\t}\n\t\t\n\t\t// Number of Capitalized positive words\n\t\tif (Features.isNumberOfCapitalizedPositiveWords()) {\n\t\t\tcount++;\n\t\t}\n\t\t\n\t\t// Number of Capitalized Negative Words\n\t\tif (Features.isNumberOfCapitalizedNegativeWords()) {\n\t\t\tcount++;\n\t\t}\n\t\t\n\t\t// Ratio of Emotional Words\n\t\tif (Features.isRatioOfEmotionalWords()) {\n\t\t\tcount++;\n\t\t}\n\t\t\n\t\t// Number of Positive Emoticons\n\t\tif (Features.isNumberOfPositiveEmoticons()) {\n\t\t\tcount++;\n\t\t}\n\t\t\n\t\t// Number of Negative Emoticons\n\t\tif (Features.isNumberOfNegativeEmoticons()) {\n\t\t\tcount++;\n\t\t}\n\t\t\n\t\t// Number of \"Neutral\" Emoticons\n\t\tif (Features.isNumberOfNeutralEmoticons()) {\n\t\t\tcount++;\n\t\t}\n\t\t\n\t\t// Number of \"Joking\" Emoticons\n\t\tif (Features.isNumberOfJokingEmoticons()) {\n\t\t\tcount++;\n\t\t}\n\t\t\n\t\t// Number Of Positive Slangs\n\t\tif (Features.isNumberOfPositiveSlangs()) {\n\t\t\tcount++;\n\t\t}\n\t\t\n\t\t// Number of Negative Slangs\n\t\tif (Features.isNumberOfNegativeSlangs()) {\n\t\t\tcount++;\n\t\t}\n\t\t\n\t\t// Number Of Positive Hashtags\n\t\tif (Features.isNumberOfPositiveHashtags()) {\n\t\t\tcount++;\n\t\t}\n\t\t\n\t\t// Number Of Negative Hashtags\n\t\tif (Features.isNumberOfNegativeHashtags()) {\n\t\t\tcount++;\n\t\t}\n\t\t\n\t\t// Contrast Words Vs Words\n\t\tif (Features.isContrastWordsVsWords()) {\n\t\t\tcount++;\n\t\t}\n\t\t\n\t\t// Contrast Words Vs Hashtags\n\t\tif (Features.isContrastWordsVsHashtags()) {\n\t\t\tcount++;\n\t\t}\n\t\t\n\t\t// Contrast Words Vs Emoticons\n\t\tif (Features.isContrastWordsVsEmoticons()) {\n\t\t\tcount++;\n\t\t}\n\t\t\n\t\t// Contrast Hashtags Vs Hashtags\n\t\tif (Features.isContrastHashtagsVsHashtags()) {\n\t\t\tcount++;\n\t\t}\n\t\t\n\t\t// Contrast Hashtags Vs Emoticons\n\t\tif (Features.isContrastHashtagsVsEmoticons()) {\n\t\t\tcount++;\n\t\t}\n\t\t\n\t\tSelectBasicFeaturesWindow.setNumberOfSentimentRelatedFeatures(count);\n\t\tSelectBasicFeaturesWindow.countOfSentimentRelatedFeatures.set(count);\n\t}",
"public int get_feature_dimension() {\n\t\treturn nFeatures;\n\t}",
"int sizeOfPlanFeatureArray();",
"private int computeCount() {\n \n int count;\n try{\n count = this.clippingFeatures.size() * this.featuresToClip.size();\n }catch(ArithmeticException e ){\n \n count = Integer.MAX_VALUE;\n }\n return count;\n }",
"public void increaseFeatureCount() {\n this.featureCount++;\n }",
"public int countFeatures(BoundingBox boundingBox) {\n return countFeatures(false, null, boundingBox);\n }",
"public void compareFeatures() {\n computeDistances();\n evaluationLogic();\n // compute recall and precision\n recall = truePositiveCount / (truePositiveCount + falseNegativeCount);\n // avoid division by zero\n float denominator = truePositiveCount + falsePositiveCount;\n precision = denominator == 0 ? 0 : truePositiveCount / denominator;\n }",
"boolean hasFeaturesUsed();",
"public int size() {\n return mFeatureStructures.size();\n }",
"public static int fullSize(Object... features) {\n if (features == null) {\n return 0;\n }\n int size = 0;\n for (Object feature: features) {\n if (feature instanceof Object[]) {\n size += ((Object[]) feature).length;\n } else if (feature instanceof Collection) {\n size += ((Collection<?>) feature).size();\n } else {\n size++;\n }\n }\n return size;\n }",
"public double getFeatureSize() {\n\t\t\treturn featureDensity.length;\n\t\t}",
"public int getClientFeaturesCount() {\n return clientFeatures_.size();\n }",
"public int getClientFeaturesCount() {\n return clientFeatures_.size();\n }",
"int cardinality();",
"int getExamplesCount();",
"int getExamplesCount();",
"int sizeOfClassificationArray();",
"@Override\n\tpublic int size()\n\t{\n\t\tint count = 0;\n\t\tfor (Variable var : FactorGraphIterables.variables(rootGraph()))\n\t\t{\n\t\t\tif (var.getPrior() != null)\n\t\t\t{\n\t\t\t\t++count;\n\t\t\t}\n\t\t}\n\t\treturn count;\n\t}",
"private int getNumberOfInputFeatures(final Collection<TrainingEntry<Login>> trainingDataSet) {\n return trainingDataSet.iterator().next().getEntity().getKeystrokeTimestamps().size();\n }",
"public int getNumOfClasses();",
"private void generalFeatureExtraction () {\n Logger.log(\"Counting how many calls each method does\");\n Chain<SootClass> classes = Scene.v().getApplicationClasses();\n try {\n for (SootClass sclass : classes) {\n if (!isLibraryClass(sclass)) {\n System.out.println(ConsoleColors.RED_UNDERLINED + \"\\n\\n 🔍🔍 Checking invocations in \" +\n sclass.getName() + \" 🔍🔍 \" + ConsoleColors.RESET);\n List<SootMethod> methods = sclass.getMethods();\n for (SootMethod method : methods) {\n featuresMap.put(method, new Features(method));\n }\n }\n }\n } catch (Exception e) { \n }\n System.out.println(\"\\n\");\n }",
"int getMetricDescriptorsCount();",
"public int featureDimension() {\n assert featureDimension > 0;\n return featureDimension;\n }",
"public com.flexnet.opsembedded.webservices.NumberQueryType getFeatureCount() {\n return featureCount;\n }",
"int getNumSampleDimensions();",
"public int getNumEClassifiers () { \r\n\t\treturn this.classifiers.size(); \r\n\t}",
"public int countFeatures(GeometryEnvelope envelope) {\n return featureDao.countIn(queryIdsSQL(envelope));\n }",
"public int getNumInstances() {\n return this.train_values.get(0).length;\n }",
"private Map<String, Feature> initializeFeatures(GameState state) {\n // initializes the features (values will be set within getFeatures)\n Map<String, Feature> features = new HashMap<>();\n\n // adds the 'global' features\n features.put(FeatureNames.RESOURCES_OWN, new Feature(FeatureNames.RESOURCES_OWN, 0, 0, 20));\n features.put(FeatureNames.RESOURCES_OPP, new Feature(FeatureNames.RESOURCES_OPP, 0, 0, 20));\n features.put(FeatureNames.GAME_TIME, new Feature(FeatureNames.GAME_TIME, 0, 0, 12000));\n features.put(FeatureNames.BIAS, new Feature(FeatureNames.BIAS, 1, 0, 1));\n\n // adds the 'per-quadrant' features\n int horizQuadLength = state.getPhysicalGameState().getWidth() / numQuadrants;\n int vertQuadLength = state.getPhysicalGameState().getHeight() / numQuadrants;\n\n int tilesPerQuadrant = horizQuadLength * vertQuadLength;\n\n // FIXME hardcoded to the HP of the base (which is the highest in microRTS)\n int maxHitPoints = 10;\n\n // the first two for traverse the quadrants\n for (int horizQuad = 0; horizQuad < numQuadrants; horizQuad++) {\n for (int vertQuad = 0; vertQuad < numQuadrants; vertQuad++) {\n\n // the third for traverses the players\n for (int player = 0; player < 2; player++) {\n String healthFeatName = FeatureNames.avgHealthPerQuad(horizQuad, vertQuad, player);\n\n features.put(healthFeatName, new Feature(healthFeatName, 0, 0, tilesPerQuadrant * maxHitPoints));\n\n // the fourth for traverses the unit types\n for (UnitType type : state.getUnitTypeTable().getUnitTypes()) {\n if (type.isResource)\n continue; // ignores resources\n String countFeatName = FeatureNames.unitsOfTypePerQuad(horizQuad, vertQuad, player, type);\n features.put(countFeatName, new Feature(countFeatName, 0, 0, tilesPerQuadrant));\n }\n }\n }\n }\n\n return features;\n }",
"public int countFeatures(BoundingBox boundingBox, String where) {\n return countFeatures(false, null, boundingBox, where);\n }",
"int getNumFrequents() {\n return numFrequents;\n }",
"public double getNumberOfCorrectlyClassified() {\n\t\treturn numberOfTruePositives + numberOfTrueNegatives;\n\t}",
"public long numSimilarities();",
"int getExperimentsCount();",
"int nParametricStates();",
"public int countFeatures(BoundingBox boundingBox, Projection projection) {\n return countFeatures(false, null, boundingBox, projection);\n }",
"public int countFeatures(GeometryEnvelope envelope, String where) {\n return countFeatures(false, null, envelope, where);\n }",
"public double getNumberOfExamples() {\n\t\treturn numberOfTruePositives + numberOfFalsePositives + numberOfFalseNegatives + numberOfTrueNegatives;\n\t}",
"public int getNbFacto() {\r\n return this.factories.size();\r\n }",
"int countAnnotations() {\n \tSet<Annotation> set = new LinkedHashSet<Annotation>();\n \tfor (Layer layer : layers.values())\n \t\tset.addAll(layer);\n \treturn set.size();\n }",
"public synchronized int size() {\n return\n this.oPreprocessingParams.size() +\n this.oFeatureExtractionParams.size() +\n this.oClassificationParams.size();\n }",
"public int size() {\n\t\treturn trainlist.size();\n\t}",
"public abstract int getScenarioCount();",
"int getPointsCount();",
"Iterator features();",
"int getNumberOfFold();",
"int getProcessorCount();",
"int getLabelsCount();",
"int getLabelsCount();",
"int getLabelsCount();",
"int getLabelsCount();",
"int getMetricsCount();",
"@Override\n public int count() {\n return this.bench.size();\n }",
"@Test\n public void testElementCounts() {\n assertEquals(0, model3d.getBlocks().size());\n\n assertEquals(28, model3d.getEdges().size());\n assertEquals(16, model3d.getFaces().size());\n assertEquals(14, model3d.getPoints().size());\n }",
"public int getFeaturesCount(Das2FeaturesQueryI query) { want to support fast way of determining feature count across entire genome assembly\n\t// query requirements to support fast method:\n\t// no overlaps, insides, excludes, coordinates, links, names, notes parameters\n\t// single captype parameter\n\t// note that this will be less efficient for \"split\" data types, where each sequence in the \n\t// assembly has its own table, thus requiring either querying each table or querying \n\t// mysql INFORMATION_SCHEMA.TABLES and summing across table counts. Fortunately there \n\t// appears to be a practical limit on the the number of tables one would need to query, \n\t// since for partial assemblies where the number of sequences in the assembly is likely \n\t// to be large (example, bosTau4, 12,000 sequences) UCSC doesn't use split tables \n\t// (I'm assuming to avoid for example 12,000 tables needed for a bosTau4 split data captype)\n\n\t// example of alternative with querying INFORMATION_SCHEMA.TABLES: \n\t// SELECT TABLE_NAME, TABLE_ROWS, UPDATE_TIME FROM INFORMATION_SCHEMA.TABLES where TABLE_SCHEMA = 'apiMel2' AND TABLE_NAME like '%_chainDm2';\n\t//\n\t// see http://stackoverflow.com/questions/1018336/getting-row-count-for-a-table-in-mysql\n\t// for argument for using INFORMATION_SCHEMA instead of \"select count(*)\", if mysql is \n\t// using InnoDB engine or if engine is unknown. If engine is known to be MyISAM then \n\t// \"select count(*)\" is fine. Based on current hgcentral.sql DB initialization script, \n\t// UCSC appears to only use MyISAM, but not sure if this will always be the case\n\t//\n\t// would also like to support fast method of feature count for a single sequence\n\t// but for many UCSC data types, this would require a much less efficient \n\t// select statement with a \"where\" clause, so not supporting this at least for no\n\t//\n\tint feat_count = 0;\n\tList<URI> types = query.getTypes();\n\tif (types.size() == 1 && \n\t query.getOverlaps().size() == 0 &&\n\t query.getInsides().size() == 0 &&\n\t query.getExcludes().size() == 0 && \n\t query.getCoordinates().size() == 0 &&\n\t query.getLinks().size() == 0 && \n\t query.getNames().size() == 0 &&\n\t query.getNotes().size() == 0 ) {\n\n\t URI typeuri = types.get(0);\n\t UcscType utype = (UcscType) getTypesCapability().getType(typeuri);\n\t boolean is_split = utype.isSplit();\n\t TrackType track_type = utype.getTrackType();\n\t String table_name_clause;\n\t if (is_split) {\n\t\ttable_name_clause = \"TABLE_NAME like '%_\" + utype.getName() + \"'\";\n\t }\n\t else {\n\t\ttable_name_clause = \"TABLE_NAME = '\" + utype.getTableName() + \"'\";\n\t }\n\t Connection conn = null;\n\t Statement stmt = null;\n\t ResultSet rs = null;\n\t try {\n\t\tconn = ucsc_version.getDbConnection();\n\t\tString genome_name = ucsc_version.getName();\n\t\t// String count_query = \"SELECT COUNT(*) FROM \" + utype.getName();\n\t\tString count_query = \"SELECT TABLE_NAME, TABLE_ROWS FROM INFORMATION_SCHEMA.TABLES \" + \n\t\t \"where TABLE_SCHEMA = '\" + genome_name + \"' AND \" + table_name_clause;\n\t\tstmt = conn.createStatement();\n\t\trs = stmt.executeQuery(count_query);\n\t\t// looping will cover both non-split cases (single entry) and \n\t\t// split cases (entry per sequence)\n\t\twhile (rs.next()) {\n\t\t if (is_split && rs.getString(\"TABLE_NAME\").startsWith(\"all_\")) {\n\t\t\t// skip \"all_***\" tables for split table types, since counts should be reflected \n\t\t\t// in individaul sequence tables\n\t\t\tcontinue;\n\t\t }\n\t\t else {\n\t\t\tfeat_count += rs.getInt(\"TABLE_ROWS\");\n\t\t }\n\t\t}\n\t\tif (DEBUG_ANNOT_COUNT) { System.out.println(utype.getName() + \" total annot count: \" + feat_count); }\n\t } catch (Exception ex) {\n\t\tLogger.getLogger(UcscFeaturesCapability.class.getName()).log(Level.SEVERE, null, ex);\n\t\tfeat_count = -1; // return feat_count of -1 ==> means couldn't be determined\n\t }\n\t finally {\n\t\ttry {\n\t\t if (rs != null) { rs.close(); }\n\t\t if (stmt != null) { stmt.close(); }\n\t\t if (conn != null) { conn.close(); }\n\t\t} catch (SQLException ex) { ex.printStackTrace(); }\n\t }\n\t}\n\t \n\telse {\n\t // can also easily add support for inefficient but more general query mechanism by \n\t // calling getFeatues(query), then doing response.getFeatures().size()\n\t //\tString count_query = \"SELECT COUNT(*) FROM \" + table_name;\n\n\t // return feat_count of -1 ==> means couldn't be determined\n\t feat_count = -1;\n\t}\n\treturn feat_count;\n }",
"public long getNumberOfDetectedConcepts() {\n return numberOfDetectedConcepts;\n }",
"int getPartitionLagsCount();",
"public List<ExplanationFeature> getTopNFeatures() {\n\t\tList<ExplanationFeature> ret = Lists.newArrayList(this.entries);\n\t\tCollections.sort(ret);\n\t\treturn ret;\n\t}",
"int getN_estimators();",
"public long getAllContextNodeCount();",
"public int cardinality() {\n\t\tint counter = 0;\n\t\tfinal EWAHIterator i =\n\t\t\t\tnew EWAHIterator(this.buffer, this.actualsizeinwords);\n\t\twhile (i.hasNext()) {\n\t\t\tRunningLengthWord localrlw = i.next();\n\t\t\tif (localrlw.getRunningBit()) {\n\t\t\t\tcounter += wordinbits * localrlw.getRunningLength();\n\t\t\t}\n\t\t\tfor (int j = 0; j < localrlw.getNumberOfLiteralWords(); ++j) {\n\t\t\t\tcounter += Long.bitCount(i.buffer()[i.dirtyWords() + j]);\n\t\t\t}\n\t\t}\n\t\treturn counter;\n\t}",
"public int getOccurrences() {\n\t\treturn this.occurrenceFactors.size();\n\t}",
"int getDataScansCount();",
"int getAttributesCount();",
"int getAttributesCount();",
"int getProbeFieldsCount();",
"public int numberOfStates();",
"int countByExample(RepStuLearningExample example);",
"int sizeOfDecisionSightDistanceArray();",
"public void setMaxFeatures(int maxFeatures) {\n this.maxFeatures = maxFeatures;\n }",
"int getStateValuesCount();",
"public int countFeatures(BoundingBox boundingBox, Projection projection,\n String where) {\n return countFeatures(false, null, boundingBox, projection, where);\n }",
"int getDetectionRulesCount();",
"public long getContextNodeCount();",
"int getGeoTargetConstantsCount();",
"public int getNumberOfPredictors()\n {\n return 1;\n }",
"public int countFeatures(String column, BoundingBox boundingBox) {\n return countFeatures(false, column, boundingBox);\n }",
"protected int numGenes() {\n\t\treturn genes.size();\n\t}",
"int getDimensionsCount();",
"public int countAllSpecies() {\n if(overallRoot == null)\n return 0;\n return (overallRoot.getNumLeafs());\n }"
] |
[
"0.8502633",
"0.8502181",
"0.84121907",
"0.84121907",
"0.82891697",
"0.82069784",
"0.8180103",
"0.80038273",
"0.7937981",
"0.7921489",
"0.7903021",
"0.7857824",
"0.7614551",
"0.7614551",
"0.75980014",
"0.757532",
"0.7567703",
"0.7567703",
"0.7557953",
"0.72165644",
"0.7124973",
"0.7084508",
"0.7052153",
"0.7010971",
"0.6982434",
"0.6959304",
"0.6669099",
"0.66518027",
"0.6643544",
"0.66237366",
"0.6593901",
"0.65821916",
"0.65421253",
"0.653197",
"0.651204",
"0.6436852",
"0.6436852",
"0.64310884",
"0.640612",
"0.6372145",
"0.6352471",
"0.6305411",
"0.6299519",
"0.6295475",
"0.62752765",
"0.6258427",
"0.6250818",
"0.62028307",
"0.61967987",
"0.6180749",
"0.61733913",
"0.6102977",
"0.6086733",
"0.6080789",
"0.6075984",
"0.6074141",
"0.6063703",
"0.6049397",
"0.6046235",
"0.60342455",
"0.60302234",
"0.60262334",
"0.6021358",
"0.6014658",
"0.6006902",
"0.6003152",
"0.59908396",
"0.59865123",
"0.59797555",
"0.59797555",
"0.59797555",
"0.59797555",
"0.59768075",
"0.59701276",
"0.59650177",
"0.5957073",
"0.59519815",
"0.5950135",
"0.59488636",
"0.5948748",
"0.59482265",
"0.5943787",
"0.5941751",
"0.59234416",
"0.5912395",
"0.5912395",
"0.5900223",
"0.58915436",
"0.5870003",
"0.58679587",
"0.58657604",
"0.5864801",
"0.58625114",
"0.58614695",
"0.58602595",
"0.58589906",
"0.58558834",
"0.58543515",
"0.5853353",
"0.58440524",
"0.5834303"
] |
0.0
|
-1
|
FIXME: is there a better place to set the dummy coeff?
|
void addDummyCompoIfRequired(Vector<DataPoint.FVPair> fv) throws BoxerXMLException {
if (ADD_DUMMY_COMPONENT) {
fv.add( new DataPoint.FVPair(getIdAlways(DUMMY_LABEL),1));
}
}
|
{
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
}
|
[
"public double[] coeff();",
"public void setCoeff(double value) {\n\t\t\t\tthis.coeff = value;\n\t\t\t}",
"public double getCoeff() {\n\t\t\t\treturn coeff;\n\t\t\t}",
"public PidCoefficients()\n {\n this(1.0, 0.0, 0.0, 0.0);\n }",
"protected void initCoefficients() {\n\n\t\tString S = C + \": initCoefficients():\";\n\t\tif (D) {\n\t\t\tSystem.out.println(S + \"Starting\");\n\t\t}\n\n\t\t// Make the ShakeMap coefficients\n\t\tcoefficientsSM.clear();\n\t\t// Note that the coefficients in \"the APPENDIX\" that David Wald sent to me (Ned) on 8/27/07\n\t\t// assume that all logs in their equation are base-10 (in spite of their using \"ln\" for\n\t\t// two of the terms). Thus, thier B1, B2, and Sigma values need to be multiplied by 2.3025.\n\t\t// Also, since their units are gals their B1 needs to have ln(980) subtracted from it\n\t\t// (except for PGV).\n\t\t// PGA\n\t\tBJF_1997_AttenRelCoefficients coeffSM0 = new BJF_1997_AttenRelCoefficients(\n\t\t\t\tPGA_Param.NAME,\n\t\t\t\t-1, 2.408, 2.408, 2.408, 1.3171, 0.000, -1.757, -0.473, 760, 6.0,\n\t\t\t\t0.660, 0.328, 0.737, 0.3948, 0.836);\n\t\t// SA/0.00\n\t\tBJF_1997_AttenRelCoefficients coeffSM1 = new BJF_1997_AttenRelCoefficients(\n\t\t\t\tSA_Param.NAME + '/' + (new Double(\"0.00\")).doubleValue(),\n\t\t\t\t0.00, 2.408, 2.408, 2.408, 1.3171, 0.000, -1.757, -0.473, 760, 6.0,\n\t\t\t\t0.660, 0.328, 0.737, 0.3948, 0.836);\n\t\t// Note: no sigma values were available for those below (Vince needs to recompute them)\n\t\t// (those above came from Vince via personal communication)\n\t\t// therefore, I multiplied those above by ratio of the sigmas given in the table in\n\t\t// \"the APPENDIX\" David sent to me (Ned). These are labeled as \"Sigma\" in their table\n\t\t// with no further explanation; using the ratios seems reasonable.\n\t\t// SA/0.30\n\t\tBJF_1997_AttenRelCoefficients coeffSM2 = new BJF_1997_AttenRelCoefficients(\n\t\t\t\t\"SA/\" + (new Double(\"0.30\")).doubleValue(),\n\t\t\t\t0.30, 0.835318, 0.835318, 0.835318, 1.71773, 0.000, -1.827, -0.608, 760,\n\t\t\t\t6.0,\n\t\t\t\t(0.842 / 0.836) * 0.660, (0.842 / 0.836) * 0.328,\n\t\t\t\t(0.842 / 0.836) * 0.737, (0.842 / 0.836) * 0.3948,\n\t\t\t\t(0.842 / 0.836) * 0.836);\n\t\t// SA/1.00\n\t\tBJF_1997_AttenRelCoefficients coeffSM3 = new BJF_1997_AttenRelCoefficients(\n\t\t\t\t\"SA/\" + (new Double(\"1.00\")).doubleValue(),\n\t\t\t\t1.00, -1.82877, -1.82877, -1.82877, 2.20818, 0.000, -1.211, -0.974, 760,\n\t\t\t\t6.0,\n\t\t\t\t(0.988 / 0.836) * 0.660, (0.988 / 0.836) * 0.328,\n\t\t\t\t(0.988 / 0.836) * 0.737, (0.988 / 0.836) * 0.3948,\n\t\t\t\t(0.988 / 0.836) * 0.836);\n\t\t// SA/3.00 - actually these are BJF's 2-second values\n\t\tBJF_1997_AttenRelCoefficients coeffSM4 = new BJF_1997_AttenRelCoefficients(\n\t\t\t\t\"SA/\" + (new Double(\"3.00\")).doubleValue(),\n\t\t\t\t3.00, -4.63102, -4.63102, -4.63102, 2.09305, 0.000, -0.848, -0.890, 760,\n\t\t\t\t6.0,\n\t\t\t\t(1.082 / 0.836) * 0.660, (1.082 / 0.836) * 0.328,\n\t\t\t\t(1.082 / 0.836) * 0.737, (1.082 / 0.836) * 0.3948,\n\t\t\t\t(1.082 / 0.836) * 0.836);\n\t\t// PGV - They actually give PGV coeffs so no scaling of 1-sec SA is needed.\n\t\tBJF_1997_AttenRelCoefficients coeffSM5 = new BJF_1997_AttenRelCoefficients(\n\t\t\t\tPGV_Param.NAME,\n\t\t\t\t-1, 5.1186, 5.1186, 5.1186, 1.70391, 0.000, -1.386, -0.668, 760, 6.0,\n\t\t\t\t(0.753 / 0.836) * 0.660, (0.753 / 0.836) * 0.328,\n\t\t\t\t(0.753 / 0.836) * 0.737, (0.753 / 0.836) * 0.3948,\n\t\t\t\t(0.753 / 0.836) * 0.836);\n\n\t\t// add these to the list\n\t\tcoefficientsSM.put(coeffSM0.getName(), coeffSM0);\n\t\tcoefficientsSM.put(coeffSM1.getName(), coeffSM1);\n\t\tcoefficientsSM.put(coeffSM2.getName(), coeffSM2);\n\t\tcoefficientsSM.put(coeffSM3.getName(), coeffSM3);\n\t\tcoefficientsSM.put(coeffSM4.getName(), coeffSM4);\n\t\tcoefficientsSM.put(coeffSM5.getName(), coeffSM5);\n\n\t\t// Now make the original BJF 1997 coefficients\n\t\tcoefficientsBJF.clear();\n\t\t// PGA\n\t\tBJF_1997_AttenRelCoefficients coeff0 = new BJF_1997_AttenRelCoefficients(\n\t\t\t\tPGA_Param.NAME,\n\t\t\t\t-1, -0.313, -0.117, -0.242, 0.527, 0.000, -0.778, -0.371, 1396, 5.57,\n\t\t\t\t0.431, 0.226, 0.486, 0.184, 0.520);\n\t\t// SA/0.00\n\t\tBJF_1997_AttenRelCoefficients coeff1 = new BJF_1997_AttenRelCoefficients(\n\t\t\t\tSA_Param.NAME + '/' + (new Double(\"0.00\")).doubleValue(),\n\t\t\t\t0.00, -0.313, -0.117, -0.242, 0.527, 0, -0.778, -0.371, 1396, 5.57,\n\t\t\t\t0.431, 0.226, 0.486, 0.184, 0.520);\n\t\t// SA/0.30\n\t\tBJF_1997_AttenRelCoefficients coeff2 = new BJF_1997_AttenRelCoefficients(\n\t\t\t\t\"SA/\" + (new Double(\"0.30\")).doubleValue(),\n\t\t\t\t0.30, 0.598, 0.803, 0.7, 0.769, -0.161, -0.893, -0.401, 2133, 5.94,\n\t\t\t\t0.440, 0.276, 0.519, 0.048, 0.522);\n\t\t// SA/1.00\n\t\tBJF_1997_AttenRelCoefficients coeff3 = new BJF_1997_AttenRelCoefficients(\n\t\t\t\t\"SA/\" + (new Double(\"1.00\")).doubleValue(),\n\t\t\t\t1.00, -1.133, -1.009, -1.08, 1.036, -0.032, -0.798, -0.698, 1406, 2.9,\n\t\t\t\t0.474, 0.325, 0.575, 0.214, 0.613);\n\t\t// SA/3.00 - actually these are BJF's 2-second values\n\t\tBJF_1997_AttenRelCoefficients coeff4 = new BJF_1997_AttenRelCoefficients(\n\t\t\t\t\"SA/\" + (new Double(\"3.00\")).doubleValue(),\n\t\t\t\t3.00, -1.699, -1.801, -1.743, 1.085, -0.085, -0.812, -0.655, 1795, 5.85,\n\t\t\t\t0.495, 0.362, 0.613, 0.276, 0.672);\n\t\t// PGV - these are actually from 1-sec SA using the Newmark & Hall (1982). According to the ShakeMap docs this\n\t\t// scaling factor is PGV = (37.27*2.54)*SA1.0\n\t\t// The following formula is slightly more accurate (from Ken Campbell)\n\t\tdouble SA10toPGV = Math.log(981.0 / (2.0 * Math.PI * 1.65));\n\t\tBJF_1997_AttenRelCoefficients coeff5 = new BJF_1997_AttenRelCoefficients(\n\t\t\t\tPGV_Param.NAME,\n\t\t\t\t-1, -1.133 + SA10toPGV, -1.009 + SA10toPGV, -1.08 + SA10toPGV, 1.036,\n\t\t\t\t-0.032, -0.798, -0.698, 1406, 2.9, 0.474, 0.325, 0.575, 0.214, 0.613);\n\n\t\t// add these to the list\n\t\tcoefficientsBJF.put(coeff0.getName(), coeff0);\n\t\tcoefficientsBJF.put(coeff1.getName(), coeff1);\n\t\tcoefficientsBJF.put(coeff2.getName(), coeff2);\n\t\tcoefficientsBJF.put(coeff3.getName(), coeff3);\n\t\tcoefficientsBJF.put(coeff4.getName(), coeff4);\n\t\tcoefficientsBJF.put(coeff5.getName(), coeff5);\n\n\t}",
"boolean fast_coeffs () { return false; }",
"private Polynom(double[] coef){ //defenzivní kopie\n double[] coefTemp = new double [coef.length];\n System.arraycopy(coef, 0, coefTemp, 0, coef.length);\n this.coef = coefTemp;\n }",
"private void set_coefficient(double a){\r\n\t\tthis._coefficient = a;\r\n\t}",
"private void set_coefficient(double a){\r\n\t\tthis._coefficient = a;\r\n\t}",
"public static double promptForCoeff( String prompt ) \r\n {\n return 0;\r\n }",
"public void set_coefficient1(double a){\n\t\tset_coefficient(a);\n\t}",
"Term(int coefficient, int exponent)\r\n\t{\r\n\t\tsetAll(coefficient, exponent);\r\n\t}",
"public PidCoefficients(double kP)\n {\n this(kP, 0.0, 0.0, 0.0);\n }",
"public InbreedingCoeff(){\n super((Set<String>) null);\n }",
"public TermImp(String term) {\n\n\t\tif(term.contains(\"x^\")) { //Contains an exponent != 1\n\n\t\t\tif(term.startsWith(\"x\")) this.setCoefficient(1);\n\t\t\telse if(term.startsWith(\"-x\")) this.setCoefficient(-1);\n\t\t\telse this.setCoefficient(Double.valueOf(term.substring(0, term.indexOf(\"x\"))));\n\n\t\t\tint exp = Integer.valueOf(term.substring(term.indexOf(\"^\")+1,term.length()));\n\t\t\tif(exp < 0) throw new IllegalArgumentException(\"Polynomials cannot have negative exponents.\");\n\t\t\tthis.setExponent(exp);\n\n\t\t}else if(term.contains(\"x\")) { //Contains an exponent == 1\n\n\t\t\tthis.setExponent(1);\n\t\t\tif(term.startsWith(\"x\")) this.setCoefficient(1);\n\t\t\telse if(term.startsWith(\"-x\")) this.setCoefficient(-1);\n\t\t\telse {\n\t\t\t\tthis.setCoefficient(Double.valueOf(term.substring(0, term.indexOf(\"x\"))));\n\t\t\t}\n\t\t}else { // Does not contains an x\n\t\t\tthis.setExponent(0);\n\t\t\tthis.setCoefficient(Double.valueOf(term));\n\t\t}\n\t}",
"public Variable(final int id, final float coeff, final boolean basic, final boolean flag) {\n this.id = id;\n c = coeff;\n isBasic = basic;\n isSlack = flag && basic;\n isSurplus = flag && !basic;\n isArtificial = basic && !flag;\n }",
"void adobe_coeff( CharPtr make, CharPtr model) {\n \n adobe_coeff( make.toString(), model.toString());\n}",
"public XxGamVtaUniformsPricesLOVVORowImpl() {\n }",
"public void derivate () {\n int size = myCoefficients.size();\n for (int i = 1; i < size; ++i) {\n myCoefficients.set(i - 1, myCoefficients.get(i) * i);\n }\n myCoefficients.remove(size - 1);\n }",
"public Polynomial( double coefficients[] )\n {\n super( \"Polynomial\", coefficients, new String[coefficients.length] );\n for ( int i = 0; i < parameter_names.length; i++ )\n parameter_names[i] = \"a\"+i;\n }",
"public KernelPolynomial()\r\n\t{\r\n\t\tthis(0, 0, 3);\r\n\t}",
"public void mul(final int factor) {\n for (int i = 0; i < coefficients.length; i++) {\n coefficients[i] = zpz.mul(coefficients[i],factor);\n }\n constant = zpz.mul(constant,factor);\n }",
"public PidCoefficients(double kP, double kI, double kD, double kF)\n {\n this.kP = Math.abs(kP);\n this.kI = Math.abs(kI);\n this.kD = Math.abs(kD);\n this.kF = Math.abs(kF);\n }",
"public final void setZero() {\n \t\n\t\tthis.m00 = 0.0F;\n\t\tthis.m01 = 0.0F;\n\t\tthis.m02 = 0.0F;\n\t\tthis.m10 = 0.0F;\n\t\tthis.m11 = 0.0F;\n\t\tthis.m12 = 0.0F;\n\t\tthis.m20 = 0.0F;\n\t\tthis.m21 = 0.0F;\n\t\tthis.m22 = 0.0F;\n }",
"public FitRealFunction() {\t\t\r\n\t}",
"public double getCoefficient();",
"private void calc_q0(double[] llr) {\n\t\tfor (int i=noffs; i<llr.length; i++)\n\t\t\tq0[i-noffs] = Math.exp(llr[i]) / (1 + Math.exp(llr[i])); // beliefs\t\t\t\n\t}",
"public PidCoefficients(double kP, double kI, double kD)\n {\n this(kP, kI, kD, 0.0);\n }",
"@Test\n public void test00() throws Throwable {\n TestInstances testInstances0 = new TestInstances();\n Instances instances0 = testInstances0.generate((String) null);\n Evaluation evaluation0 = new Evaluation(instances0);\n evaluation0.addNumericTrainClass('u', 4.9E-324);\n assertEquals(0.0, evaluation0.SFEntropyGain(), 0.01D);\n }",
"void setDefaultInterQuantMatrix()\n {\n for (int i=0;i<interQuantMatrix.length;i++)\n interQuantMatrix[i] = 16;\n }",
"private void instantiateVarsSingle(IntVar var, int coeff, int constant, Propagator prop) throws ContradictionException {\n var.instantiateTo(zpz.getSmallestGreaterEqThan(var.getLB(), zpz.div(constant, coeff)), prop);\n }",
"@Test\n public void testUnpreconditionedResidual() {\n final int n = 10;\n final int maxIterations = n;\n final RealLinearOperator a = new HilbertMatrix(n);\n final ConjugateGradient solver;\n solver = new ConjugateGradient(maxIterations, 1E-15, true);\n final RealVector r = new ArrayRealVector(n);\n final RealVector x = new ArrayRealVector(n);\n final IterationListener listener = new IterationListener() {\n\n @Override\n public void terminationPerformed(final IterationEvent e) {\n // Do nothing\n }\n\n @Override\n public void iterationStarted(final IterationEvent e) {\n // Do nothing\n }\n\n @Override\n public void iterationPerformed(final IterationEvent e) {\n final IterativeLinearSolverEvent evt;\n evt = (IterativeLinearSolverEvent) e;\n RealVector v = evt.getResidual();\n r.setSubVector(0, v);\n v = evt.getSolution();\n x.setSubVector(0, v);\n }\n\n @Override\n public void initializationPerformed(final IterationEvent e) {\n // Do nothing\n }\n };\n solver.getIterationManager().addIterationListener(listener);\n final RealVector b = new ArrayRealVector(n);\n for (int j = 0; j < n; j++) {\n b.set(0.);\n b.setEntry(j, 1.);\n\n boolean caught = false;\n try {\n solver.solve(a, b);\n } catch (MaxCountExceededException e) {\n caught = true;\n final RealVector y = a.operate(x);\n for (int i = 0; i < n; i++) {\n final double actual = b.getEntry(i) - y.getEntry(i);\n final double expected = r.getEntry(i);\n final double delta = 1E-6 * JdkMath.abs(expected);\n final String msg = String\n .format(\"column %d, residual %d\", i, j);\n Assert.assertEquals(msg, expected, actual, delta);\n }\n }\n Assert\n .assertTrue(\"MaxCountExceededException should have been caught\",\n caught);\n }\n }",
"public Complex() {\r\n real = 0;\r\n imaginary = 0;\r\n }",
"public double getCoeffAt (int i) {\n return myCoefficients.get(i);\n\n }",
"MagLegendre( int nt ) \n {\n nTerms = nt;\n Pcup = new double[ nTerms + 1 ];\n dPcup = new double[ nTerms + 1 ];\n }",
"public void multiply (double constant) {\n List<Double> temp = new ArrayList<Double>();\n temp.add(constant);\n Polynomial constantP = new Polynomial(temp);\n this.multiply(constantP);\n }",
"public SphR(final TImgTools.HasDimensions dummyDataset) {\n\t\t\testCOV(dummyDataset);\n\t\t}",
"public boolean isZero()\r\n\t{\r\n\t\tif(this.get_coefficient()==0)\r\n\t\t{\r\n\t\t\treturn true;\r\n\t\t}\r\n\t\telse\r\n\t\t{\r\n\t\t\treturn false;\r\n\t\t}\r\n\t}",
"private Proof mulLeftZero(Expression a) {\n Variable x = var(\"x\");\n Proof equalitySymConvert = equalitySymConvert(faxm8Gen(zero(), x));\n Proof faxm6gen = faxm6Gen(multi(zero(), x));\n Proof axm2convert = faxm2Convert(equalitySymConvert, faxm6gen);\n Proof axm2convertOnce = faxm2ConvertOnce(zero(), equalitySymConvert(axm2convert));\n return inductConclusion(x, a, faxm7Gen(zero()), axm2convertOnce);\n }",
"public void setVelocity(float dummyX, float dummyZ){\n\t\t\n\t}",
"public Polynomial() {\n degree = 0;\n }",
"private DiscretePotentialOperations() {\r\n\t}",
"@Override\n public double calcTerm( Map<String, Object> param_map )\n {\n double result = 0.0;\n int cat = (Integer) param_map.get( name );\n\n if( value == cat )\n result = coefficient;\n\n LOG.debug( String.format( \"calc: %s, %d, %d, %e\", name, value, cat, result ) );\n\n return result;\n }",
"public BigInteger[] coefficients()\n\t{\n\t\treturn coefficients;\n\t}",
"@Override\n\t\tpublic void afectarPorPantano(double coeficiente) {\n\t\t}",
"Complex() {\n real = 0.0;\n imag = 0.0;\n }",
"PriceModel getZeroPriceModel();",
"public PolynomialImpl() {\r\n head = new PolynomialEmptyNode();\r\n }",
"public int coeff(int n, int k) {\n // Insert your code here\n return fact(n) / (fact(k) * fact(n - k));\n }",
"void setDefaultIntraQuantMatrix()\n {\n for (int i=0;i<defaultIntraQuantMatrix.length;i++)\n intraQuantMatrix[i] = defaultIntraQuantMatrix[i];\n }",
"public MComplex() {\r\n\t\ta = b = r = phi = 0;\r\n\t\tcartesian = polar = true;\r\n\t}",
"public void setDummy(boolean dummy) {\n\t\tthis.isDummy = dummy;\n\t}",
"public void print(){\n\t\tfor(int i=0; i<degreecoeff.length;i++) {\n\t\t\tif(degreecoeff[i]==0) {\n\t\t\t\t\n\t\t\t}\n\t\t\telse {\n\t\t\t\tSystem.out.print(degreecoeff[i]+\"X\"+i+\" \");\n\t\t\t}\n\t\t}\n\t\t\n\t}",
"@Test\n public void testMCMCWithoutAllelicPoN() {\n final double meanBiasSimulated = 1.2;\n final double biasVarianceSimulated = 0.04;\n testMCMC(meanBiasSimulated, biasVarianceSimulated, meanBiasSimulated, biasVarianceSimulated, AllelicPanelOfNormals.EMPTY_PON);\n }",
"public Polynomial multiply(Polynomial p){\n\t\tfor(int i=0; i<degreecoeff.length;i++) {\n\t\t\tfor(int j=0; j<degreecoeff.length;j++) {\n\t\t\t\t\n\t\t\tp.degreecoeff[i]=(p.degreecoeff[i])+(degreecoeff[i]*p.degreecoeff[j]);\n\t\t}\n\t\t}\n\t\treturn p;\n\t}",
"public void zeroValues()\n {\n fx = 0.0f;\n fy = 0.0f;\n fz = 0.0f;\n magnitude = 0.0f;\n }",
"private void setObjective() throws IloException{\n\n IloLinearNumExpr expr = this.cplex.linearNumExpr();\n int i = 0;\n for(IloNumVar xi : x){\n expr.addTerm(xi, this.c[i]);\n i++;\n }\n this.objective = this.cplex.addMinimize(expr);\n }",
"public Polynomial(double ... coefs) {\n this.coefs = coefs;\n // invert order of ceofficients\n for (int i = 0; i < coefs.length / 2; i++) {\n double temp = coefs[i];\n coefs[i] = coefs[coefs.length - i - 1];\n coefs[coefs.length - i - 1] = temp;\n }\n }",
"public void add (Polynomial otherPolynomial) {\n int minDegree = Math.min(this.getDegree(), otherPolynomial.getDegree());\n for (int i = 0; i <= minDegree; ++i) {\n double newCoef = myCoefficients.get(i) + otherPolynomial.getCoeffAt(i);\n myCoefficients.set(i, newCoef);\n\n }\n // make sure there are no trailing zeros\n int i = this.getDegree();\n while (myCoefficients.size() > 0 && myCoefficients.get(i) == 0) {\n myCoefficients.remove(i);\n i -= 1;\n }\n }",
"abstract void assignZero();",
"public void multiplyOneMinusP0H(){\n\t\t\n\t\tfor (int I : targetLengthSet)\n\t\t for (int i = 1; i < I+1; i++)\n\t\t\t\tfor (int j = 1; j < I+1; j++)\n\t\t\t\t a[i][j][I] *= (1-p0H);\n\t\tfor (int I : targetLengthSet){\n\t\t for (int i = 1; i < I+1; i++){\n\t\t\t\tfor (int j = 1; j < I+1; j++){\n\t\t\t\t a[i][i + I][I] = p0H;\n\t\t a[i + I][i + I][I] = p0H;\n\t\t a[i+I][j][I] = a[i][j][I];\n\t\t\t\t}\n\t\t }\n\t\t}\n\t}",
"public void antiderivative (double constant) {\n // do last index first since it requires adding a term to the list\n int size = myCoefficients.size();\n double last = myCoefficients.get(size - 1) / (size);\n\n for (int i = myCoefficients.size() - 2; i >= 0; --i) {\n myCoefficients.set(i + 1, myCoefficients.get(i) / (i + 1));\n }\n myCoefficients.set(0, constant);\n myCoefficients.add(last);\n }",
"@Test\n public void testZeroB() {\n assertEquals(1, PiGenerator.powerMod(5, 0, 42));\n }",
"private void SetZN8 ( int Work )\n\t{\n\t\t_Zero = Work != 0 ? 1 : 0;\n\t\t_Negative = Work;\n\t}",
"public double setCoefficient(double coefficient) {\n this.coefficient = coefficient;\n return this.coefficient;\n }",
"public void initState() {\n\n\t\tdouble bsc_p = 0.09; // TODO : doit dependre du souffle !?\n\t\tfor (int i=0; i<n; i++) lambda[i] = 0;\n\t\taddBSCnoise(lambda, bsc_p); \n\t\t// lambda: log likelihood ratio\n\t\tcalc_q0(lambda);\n\n\t\t// initialization of beta\n\t\tfor (int i = 0; i <= m - 1; i++) {\n\t\t\tfor (int j = 0; j <= row_weight[i] - 1; j++) {\n\t\t\t\tbeta[i][j] = 0.0;\n\t\t\t}\n\t\t}\t\t\n\n\t}",
"private static BigInteger setPrintFromVector(double[] weightVector, BigInteger print)\n {\n assert(weightVector.length == print.bitCount());\n\n int len = weightVector.length;\n for(int i = 0; i < len; i ++) {\n if(weightVector[i] > 0) {\n print = print.setBit(i);\n } else {\n print = print.clearBit(i);\n }\n }\n\n return print;\n }",
"@org.junit.Test\n public void getUniformParamsEmptyCurve() {\n BezierCurve emptyCurve = new BezierCurve();\n assertEquals(0, emptyCurve.getUniformParams(3).size());\n }",
"private Polynomial(Polynomial existing) {\n\t setParameters(new double[existing.getNumberOfParameters()]);\n\t}",
"public Complex_Number(double realPart)\n {\n this(realPart,0,0);\n }",
"public void initWithPelletReasoner()\r\n\t{\r\n\t\tcredits();\r\n\t\tONT_MODEL = ModelFactory.createOntologyModel(PelletReasonerFactory.THE_SPEC);\t\r\n\t}",
"public void add (Double constant) {\n if (myCoefficients.size() == 0) {\n myCoefficients.add(constant);\n }\n else {\n double value = myCoefficients.get(0) + constant;\n myCoefficients.set(0, value);\n }\n\n }",
"public abstract double initialise();",
"@AnyLogicInternalCodegenAPI\n public double _BirthProbability_DefaultValue_xjal() {\n final Main self = this;\n return \n0.01 \n;\n }",
"private void setZeroPowerBrakes() {\n //Initialize Mecanum Wheel DC Motor Behavior\n robot2.DriveRightFront.setZeroPowerBehavior(DcMotor.ZeroPowerBehavior.BRAKE);\n robot2.DriveRightRear.setZeroPowerBehavior(DcMotor.ZeroPowerBehavior.BRAKE);\n robot2.DriveLeftFront.setZeroPowerBehavior(DcMotor.ZeroPowerBehavior.BRAKE);\n robot2.DriveLeftRear.setZeroPowerBehavior(DcMotor.ZeroPowerBehavior.BRAKE);\n }",
"public void useUniformDeviates(){\n this.gaussianDeviates = false;\n }",
"public final void mo1281a() {\n this.f1998g = 0;\n this.f1999h = 0;\n this.f2000i = false;\n }",
"PolynomialNode addTerm(int coefficient, int power);",
"@Test\n public void test_constructor_0(){\n\tSystem.out.println(\"Testing MeasuredRatioModel's MeasuredRatioModel()\");\n //Tests if default values are correct\n MeasuredRatioModel instance=new MeasuredRatioModel();\n String expResult=\"NONE\";\n String result=instance.getName();\n assertEquals(expResult,result);\n result=instance.getUncertaintyType();\n assertEquals(expResult,result);\n BigDecimal expectedResult=new BigDecimal(\"0\");\n BigDecimal actualResult=instance.getValue();\n assertEquals(expectedResult,actualResult);\n actualResult=instance.getOneSigma();\n assertEquals(expectedResult,actualResult);\n assertEquals(false,instance.isFracCorr());\n assertEquals(false,instance.isOxideCorr());\n }",
"Vector getZeroVector();",
"public void zero()\n {\n Runnable zeroRunnable = new Runnable() {\n @Override\n public void run()\n {\n {\n boolean liftLimit;\n boolean extendLimit;\n\n\n\n do\n {\n liftLimit = liftLimitSwitch.getState();\n extendLimit = extendLimitSwitch.getState();\n\n if (!liftLimit)\n {\n lift.setPower(-0.5);\n }\n else\n {\n lift.setPower(0);\n }\n\n if (extendLimit)\n {\n extend.setPower(-0.5);\n }\n else\n {\n extend.setPower(0);\n }\n\n if (cancel)\n {\n break;\n }\n } while (!liftLimit || !extendLimit);\n\n if (!cancel)\n {\n lift.setMode(DcMotor.RunMode.STOP_AND_RESET_ENCODER);\n lift.setMode(DcMotor.RunMode.RUN_WITHOUT_ENCODER);\n\n extend.setMode(DcMotor.RunMode.STOP_AND_RESET_ENCODER);\n extend.setMode(DcMotor.RunMode.RUN_WITHOUT_ENCODER);\n\n isZeroed = true;\n }\n }\n }\n };\n\n zeroThread = new Thread(zeroRunnable);\n zeroThread.start();\n }",
"public Matrix3f() {\n\t\n \tthis.setZero();\n }",
"public double get_coefficient() {\r\n\t\treturn this._coefficient;\r\n\t}",
"public void resetZero() {\n\t\tset((byte) (get() & ~(1 << 7)));\n\t}",
"void doDummyComputation() {\n\t\tlong dummyValue = 0;\n\t\t// We use a random number and a subsequent check to avoid smart\n\t\t// compilers\n\t\tRandom rand = new Random();\n\t\tint seed = rand.nextInt(10) + 1;\n\t\tfor (int i = 0; i < 10000000; i++) {\n\t\t\tdummyValue = 10 + ((31 * (dummyValue + seed)) % 1234567);\n\t\t}\n\t\tif (dummyValue < 10) {\n\t\t\tthrow new RuntimeException(\n\t\t\t\t\t\"This never happens, but let's pretend the value matters to avoid this being complied away.\");\n\t\t}\n\t\ttry {\n\t\t\tThread.sleep(50);\n\t\t} catch (InterruptedException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t}\n\t}",
"@Override\n public float apply$mcFD$sp (double arg0)\n {\n return 0;\n }",
"private void init()\n {\n sendData(REG_MMXCOMMAND, MMXCOMMAND_RESET);\n Delay.msDelay(50);\n // init motor operation parameters\n for (int i=0;i<CHANNELS;i++){\n motorParams[MOTPARAM_RAMPING][i] = MOTPARAM_OP_TRUE;\n motorParams[MOTPARAM_ENCODER_BRAKING][i] = MOTPARAM_OP_TRUE;\n motorParams[MOTPARAM_POWER][i] = 0;\n motorParams[MOTPARAM_REGULATE][i] = MOTPARAM_OP_TRUE;\n doCommand(CMD_SETPOWER, 100, i); // will set motorParams[MOTPARAM_POWER][channel]\n }\n \n }",
"public Rays(Double _coefficient) {\n\t\tthis._coefficient = new Double(_coefficient);\n\t}",
"@org.junit.Test\n public void getSecondDerivEmptyCurve() {\n BezierCurve emptyCurve = new BezierCurve();\n assertEquals(new Vector(), emptyCurve.getSecondDeriv(0));\n assertEquals(new Vector(), emptyCurve.getSecondDeriv(1));\n }",
"public Cylinder() {\n\t\tthis(1.0);\n\t}",
"public void byConstant(double k){\r\n if (k<0){\r\n double aux = firstExtreme;\r\n firstExtreme = k*secondExtreme;\r\n secondExtreme = k*aux;\r\n }else{\r\n firstExtreme = k*firstExtreme;\r\n secondExtreme = k*secondExtreme;\r\n }\r\n }",
"public void loadCoeffs(byte coeffs[]) {\r\n\t\tint idx = 0;\r\n\t\tfor (int s = 1; s < stages.length; s++) {\r\n\t\t\tfor (int i = 0; i < stages[s].coeffs.length; i++) {\r\n\t\t\t\tfor (int j = 0; j < stages[s].coeffs[0].length; j++) {\r\n\t\t\t\t\tstages[s].coeffs[i][j] = coeffs[idx++];\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t}",
"@Test\r\n public void testPolynomialApproximator() {\r\n List<Point> data = createLinearDataset();\r\n test(PolynomialApacheMathApproximator.INSTANCE_3, data, null);\r\n }",
"public Scientific() {\n initComponents();\n }",
"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 void set_z(int RHS)\n {\n try\n {\n set_reg(30,Utils.get_lobyte(RHS));\n set_reg(31,Utils.get_hibyte(RHS));\n }\n catch(RuntimeException e) { }\n }",
"@AnyLogicInternalCodegenAPI\n public double _DeathRisk_DefaultValue_xjal() {\n final Main self = this;\n return \n0.01 \n;\n }",
"public void setZero() {\n\t\tset((byte) (get() | (1 << 7)));\n\t}",
"public ToZeroRampGenerator() { \r\n }",
"public NoiseCalculator() {\n this(1.0);\n }"
] |
[
"0.6393611",
"0.6302359",
"0.60375935",
"0.598595",
"0.5785434",
"0.57768947",
"0.5673332",
"0.5659042",
"0.5659042",
"0.56244314",
"0.55984294",
"0.55713046",
"0.5398387",
"0.5396895",
"0.53049153",
"0.52686656",
"0.52418983",
"0.52041245",
"0.51559436",
"0.5153845",
"0.514555",
"0.51449716",
"0.513849",
"0.5107738",
"0.5063641",
"0.5050043",
"0.50408167",
"0.50334764",
"0.5024885",
"0.50240064",
"0.50142175",
"0.5003858",
"0.49945295",
"0.49903253",
"0.49785808",
"0.49757433",
"0.49726442",
"0.49716756",
"0.49614277",
"0.496035",
"0.49492756",
"0.49477485",
"0.4934519",
"0.49314278",
"0.49128616",
"0.4898943",
"0.48980924",
"0.48948354",
"0.4886599",
"0.48814708",
"0.48546454",
"0.48531318",
"0.48500973",
"0.4843969",
"0.4837415",
"0.48302642",
"0.48204955",
"0.4820336",
"0.48121732",
"0.4810417",
"0.48054338",
"0.48046613",
"0.47878808",
"0.47859004",
"0.47833645",
"0.47797224",
"0.47685343",
"0.47616526",
"0.47546718",
"0.47510314",
"0.47508",
"0.47464487",
"0.47428948",
"0.47293857",
"0.47253054",
"0.4723983",
"0.47231895",
"0.47229072",
"0.4721782",
"0.47166094",
"0.47085425",
"0.47029454",
"0.47017217",
"0.46934566",
"0.4693099",
"0.46891057",
"0.46865854",
"0.46849683",
"0.46843502",
"0.46841154",
"0.46799636",
"0.46770272",
"0.46754587",
"0.46737662",
"0.46733144",
"0.46666792",
"0.46653432",
"0.46625903",
"0.46616012",
"0.4655319"
] |
0.5128713
|
23
|
Describe the list of features as an element of an XML document
|
public org.w3c.dom.Element createFeaturesElement(Document xmldoc) {
Element e = xmldoc.createElement(XML.FEATURES);
StringBuffer b=new StringBuffer();
for(int i=0; i< id2label.size();i++) {
if (b.length()>0) b.append(" ");
b.append(getLabel(i));
}
Text textNode = xmldoc.createTextNode(b.toString());
e.appendChild(textNode);
return e;
}
|
{
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
}
|
[
"java.util.List<org.landxml.schema.landXML11.FeatureDocument.Feature> getFeatureList();",
"java.util.List<org.landxml.schema.landXML11.FeatureDocument.Feature> getFeatureList();",
"org.landxml.schema.landXML11.FeatureDocument.Feature getFeatureArray(int i);",
"org.landxml.schema.landXML11.FeatureDocument.Feature getFeatureArray(int i);",
"org.landxml.schema.landXML11.FeatureDocument.Feature[] getFeatureArray();",
"org.landxml.schema.landXML11.FeatureDocument.Feature[] getFeatureArray();",
"org.landxml.schema.landXML11.FeatureDocument.Feature addNewFeature();",
"org.landxml.schema.landXML11.FeatureDocument.Feature addNewFeature();",
"List<Feature> getFeatures();",
"@Test\n public void testFromXml() throws Exception\n {\n Element root = XmlBuilder.element(\"http://earth.google.com/kml/2.1\", \"kml\",\n XmlBuilder.element(\"http://earth.google.com/kml/2.1\", \"Folder\",\n XmlBuilder.element(\"http://earth.google.com/kml/2.1\", \"description\", XmlBuilder.text(\"folder description\"))),\n XmlBuilder.element(\"http://earth.google.com/kml/2.1\", \"Document\",\n XmlBuilder.element(\"http://earth.google.com/kml/2.1\", \"description\", XmlBuilder.text(\"document description\"))))\n .toDOM().getDocumentElement();\n\n KmlFile file = KmlFile.fromXml(root.getOwnerDocument());\n\n List<Feature<?>> features = file.getFeatures();\n\n assertEquals(\"number of features\", 2, features.size());\n assertEquals(\"first feature type\", Folder.class, features.get(0).getClass());\n assertEquals(\"first feature attribute\", \"folder description\", features.get(0).getDescription());\n assertEquals(\"second feature type\", Document.class, features.get(1).getClass());\n assertEquals(\"second feature attribute\", \"document description\", features.get(1).getDescription());\n }",
"List<String> getFeatures();",
"java.util.List<java.lang.String> getFeaturesList();",
"private List<XmlElementNameAndContents> encodeFeatures(TOP fs, AttributesImpl attrs,\n boolean insideListNode) throws SAXException {\n List<XmlElementNameAndContents> childElements = new ArrayList<>();\n // int heapValue = cds.cas.getHeapValue(addr);\n // int[] feats = cds.tsi.ll_getAppropriateFeatures(heapValue);\n\n String attrValue;\n // boolean isSofa = false;\n // if (sofaTypeCode == heapValue)\n // {\n // // set isSofa flag to apply SofaID mapping and to store sofaNum->xmi:id mapping\n // isSofa = true;\n // }\n for (final FeatureImpl fi : fs._getTypeImpl().getFeatureImpls()) {\n\n if (cds.isFiltering) {\n // skip features that aren't in the target type system\n String fullFeatName = fi.getName();\n if (cds.filterTypeSystem_inner.getFeatureByFullName(fullFeatName) == null) {\n continue;\n }\n }\n\n final String featName = fi.getShortName();\n final int featureValueClass = fi.rangeTypeClass;\n\n switch (featureValueClass) {\n\n case LowLevelCAS.TYPE_CLASS_BYTE:\n case LowLevelCAS.TYPE_CLASS_SHORT:\n case LowLevelCAS.TYPE_CLASS_INT:\n case LowLevelCAS.TYPE_CLASS_LONG:\n case LowLevelCAS.TYPE_CLASS_FLOAT:\n case LowLevelCAS.TYPE_CLASS_DOUBLE:\n case LowLevelCAS.TYPE_CLASS_BOOLEAN:\n attrValue = fs.getFeatureValueAsString(fi);\n break;\n\n case LowLevelCAS.TYPE_CLASS_STRING:\n attrValue = fs.getFeatureValueAsString(fi);\n break;\n\n // Arrays\n case LowLevelCAS.TYPE_CLASS_INTARRAY:\n case LowLevelCAS.TYPE_CLASS_FLOATARRAY:\n case LowLevelCAS.TYPE_CLASS_BOOLEANARRAY:\n case LowLevelCAS.TYPE_CLASS_BYTEARRAY:\n case LowLevelCAS.TYPE_CLASS_SHORTARRAY:\n case LowLevelCAS.TYPE_CLASS_LONGARRAY:\n case LowLevelCAS.TYPE_CLASS_DOUBLEARRAY:\n case LowLevelCAS.TYPE_CLASS_FSARRAY:\n if (cds.isStaticMultiRef(fi)) {\n attrValue = cds.getXmiId(fs.getFeatureValue(fi));\n } else {\n attrValue = arrayToString(fs.getFeatureValue(fi), featureValueClass);\n }\n break;\n\n // special case for StringArrays, which stored values as child elements rather\n // than attributes.\n case LowLevelCAS.TYPE_CLASS_STRINGARRAY:\n StringArray stringArray = (StringArray) fs.getFeatureValue(fi);\n if (cds.isStaticMultiRef(fi)) {\n attrValue = cds.getXmiId(stringArray);\n } else if (stringArray != null && stringArray.size() == 0) {\n attrValue = \"\"; // https://issues.apache.org/jira/browse/UIMA-5558\n } else {\n stringArrayToElementList(featName, (StringArray) fs.getFeatureValue(fi),\n childElements);\n attrValue = null;\n }\n break;\n\n // Lists\n case CasSerializerSupport.TYPE_CLASS_INTLIST:\n case CasSerializerSupport.TYPE_CLASS_FLOATLIST:\n case CasSerializerSupport.TYPE_CLASS_FSLIST:\n TOP startNode = fs.getFeatureValue(fi);\n if (insideListNode || cds.isStaticMultiRef(fi)) {\n // If the feature has multipleReferencesAllowed = true OR if we're already\n // inside another list node (i.e. this is the \"tail\" feature), serialize as a normal\n // FS.\n // Otherwise, serialize as a multi-valued property.\n // if (cds.isStaticMultRef(feats[i]) ||\n // cds.embeddingNotAllowed.contains(featVal) ||\n // insideListNode) {\n\n attrValue = cds.getXmiId(startNode);\n } else {\n attrValue = listToString((CommonList) fs.getFeatureValue(fi));\n }\n break;\n\n // special case for StringLists, which stored values as child elements rather\n // than attributes.\n case CasSerializerSupport.TYPE_CLASS_STRINGLIST:\n if (insideListNode || cds.isStaticMultiRef(fi)) {\n attrValue = cds.getXmiId(fs.getFeatureValue(fi));\n } else {\n // it is not safe to use a space-separated attribute, which would\n // break for strings containing spaces. So use child elements instead.\n StringList stringList = (StringList) fs.getFeatureValue(fi);\n if (stringList == null) {\n attrValue = null;\n } else {\n if (stringList instanceof EmptyStringList) {\n attrValue = \"\";\n } else {\n List<String> listOfStrings = stringList.anyListToStringList(null, cds);\n // if (array.length > 0 && !arrayAndListFSs.put(featVal, featVal)) {\n // reportWarning(\"Warning: multiple references to a ListFS. Reference identity\n // will not be preserved.\");\n // }\n for (String string : listOfStrings) {\n childElements.add(new XmlElementNameAndContents(\n new XmlElementName(\"\", featName, featName), string));\n }\n attrValue = null;\n }\n }\n }\n break;\n\n default: // Anything that's not a primitive type, array, or list.\n attrValue = cds.getXmiId(fs.getFeatureValue(fi));\n break;\n\n } // end of switch\n\n if (attrValue != null && featName != null) {\n addAttribute(attrs, featName, attrValue, \"\");\n }\n } // end of for loop over all features\n\n // add out-of-typesystem features, if any\n if (cds.sharedData != null) {\n OotsElementData oed = cds.sharedData.getOutOfTypeSystemFeatures(fs);\n if (oed != null) {\n // attributes\n Iterator<XmlAttribute> attrIter = oed.attributes.iterator();\n while (attrIter.hasNext()) {\n XmlAttribute attr = attrIter.next();\n addAttribute(workAttrs, attr.name, attr.value);\n }\n // child elements\n childElements.addAll(oed.childElements);\n }\n }\n return childElements;\n }",
"java.util.List<iet.distributed.telemetry.Feature> \n getFeatureList();",
"java.util.List<org.landxml.schema.landXML11.PlanFeatureDocument.PlanFeature> getPlanFeatureList();",
"org.landxml.schema.landXML11.FeatureDocument.Feature insertNewFeature(int i);",
"org.landxml.schema.landXML11.FeatureDocument.Feature insertNewFeature(int i);",
"private static List<IFeature> parseFeatures(WMElement features) {\n List<IFeature> trainingFeatures = new ArrayList<>();\n for (int i = 0; i < features.ConvertToIdentifier().GetNumberChildren(); i++) {\n IFeature res;\n WMElement curFeatureType = features.ConvertToIdentifier().GetChild(i);\n WMElement curFeature = curFeatureType.ConvertToIdentifier().GetChild(0);\n String featureName = curFeature.GetAttribute();\n String featureVal = curFeature.GetValueAsString();\n double featureValNumerical = -1.0;\n try {\n featureValNumerical = Double.parseDouble(featureVal);\n } catch (Exception e) {\n if (featureVal.equalsIgnoreCase(\"true\")) {\n featureValNumerical = 1.0;\n } else if (featureVal.equalsIgnoreCase(\"false\")) {\n featureValNumerical = 0.0;\n }\n }\n\n switch (curFeatureType.GetAttribute()) {\n case \"boolean\":\n res = new BooleanFeature(featureName, featureValNumerical);\n break;\n case \"numerical\":\n res = new NumericalFeature(featureName, featureValNumerical);\n break;\n case \"categorical\":\n res = new CategoricalFeature(featureName, featureVal);\n break;\n default:\n throw new IllegalArgumentException(\"Given feature type is not supported.\");\n }\n\n trainingFeatures.add(res);\n }\n return trainingFeatures;\n }",
"public void setFeatures(List<String> features) {\n this.features = features;\n }",
"public Features() {\n\t\tsuper();\n\t\t// TODO Auto-generated constructor stub\n\t}",
"List<IFeature> getFeatureList();",
"public List<String> getFeatures() {\n return features;\n }",
"public Document saveAsXML() {\n\tDocument xmldoc= new DocumentImpl();\n\tElement root = createFeaturesElement(xmldoc);\n\txmldoc.appendChild(root);\n\treturn xmldoc;\n }",
"Iterator features();",
"public ListOfOnixElement<ResourceFileFeatureDescription, String> resourceFileFeatureDescriptions() {\n _initialize();\n return resourceFileFeatureDescriptions;\n }",
"public java.util.List<org.landxml.schema.landXML11.FeatureDocument.Feature> getFeatureList()\r\n {\r\n final class FeatureList extends java.util.AbstractList<org.landxml.schema.landXML11.FeatureDocument.Feature>\r\n {\r\n public org.landxml.schema.landXML11.FeatureDocument.Feature get(int i)\r\n { return IntersectionImpl.this.getFeatureArray(i); }\r\n \r\n public org.landxml.schema.landXML11.FeatureDocument.Feature set(int i, org.landxml.schema.landXML11.FeatureDocument.Feature o)\r\n {\r\n org.landxml.schema.landXML11.FeatureDocument.Feature old = IntersectionImpl.this.getFeatureArray(i);\r\n IntersectionImpl.this.setFeatureArray(i, o);\r\n return old;\r\n }\r\n \r\n public void add(int i, org.landxml.schema.landXML11.FeatureDocument.Feature o)\r\n { IntersectionImpl.this.insertNewFeature(i).set(o); }\r\n \r\n public org.landxml.schema.landXML11.FeatureDocument.Feature remove(int i)\r\n {\r\n org.landxml.schema.landXML11.FeatureDocument.Feature old = IntersectionImpl.this.getFeatureArray(i);\r\n IntersectionImpl.this.removeFeature(i);\r\n return old;\r\n }\r\n \r\n public int size()\r\n { return IntersectionImpl.this.sizeOfFeatureArray(); }\r\n \r\n }\r\n \r\n synchronized (monitor())\r\n {\r\n check_orphaned();\r\n return new FeatureList();\r\n }\r\n }",
"public java.util.List<org.landxml.schema.landXML11.FeatureDocument.Feature> getFeatureList()\r\n {\r\n final class FeatureList extends java.util.AbstractList<org.landxml.schema.landXML11.FeatureDocument.Feature>\r\n {\r\n public org.landxml.schema.landXML11.FeatureDocument.Feature get(int i)\r\n { return SurfaceImpl.this.getFeatureArray(i); }\r\n \r\n public org.landxml.schema.landXML11.FeatureDocument.Feature set(int i, org.landxml.schema.landXML11.FeatureDocument.Feature o)\r\n {\r\n org.landxml.schema.landXML11.FeatureDocument.Feature old = SurfaceImpl.this.getFeatureArray(i);\r\n SurfaceImpl.this.setFeatureArray(i, o);\r\n return old;\r\n }\r\n \r\n public void add(int i, org.landxml.schema.landXML11.FeatureDocument.Feature o)\r\n { SurfaceImpl.this.insertNewFeature(i).set(o); }\r\n \r\n public org.landxml.schema.landXML11.FeatureDocument.Feature remove(int i)\r\n {\r\n org.landxml.schema.landXML11.FeatureDocument.Feature old = SurfaceImpl.this.getFeatureArray(i);\r\n SurfaceImpl.this.removeFeature(i);\r\n return old;\r\n }\r\n \r\n public int size()\r\n { return SurfaceImpl.this.sizeOfFeatureArray(); }\r\n \r\n }\r\n \r\n synchronized (monitor())\r\n {\r\n check_orphaned();\r\n return new FeatureList();\r\n }\r\n }",
"public java.util.List<org.landxml.schema.landXML11.FeatureDocument.Feature> getFeatureList()\r\n {\r\n final class FeatureList extends java.util.AbstractList<org.landxml.schema.landXML11.FeatureDocument.Feature>\r\n {\r\n public org.landxml.schema.landXML11.FeatureDocument.Feature get(int i)\r\n { return GPSSetupImpl.this.getFeatureArray(i); }\r\n \r\n public org.landxml.schema.landXML11.FeatureDocument.Feature set(int i, org.landxml.schema.landXML11.FeatureDocument.Feature o)\r\n {\r\n org.landxml.schema.landXML11.FeatureDocument.Feature old = GPSSetupImpl.this.getFeatureArray(i);\r\n GPSSetupImpl.this.setFeatureArray(i, o);\r\n return old;\r\n }\r\n \r\n public void add(int i, org.landxml.schema.landXML11.FeatureDocument.Feature o)\r\n { GPSSetupImpl.this.insertNewFeature(i).set(o); }\r\n \r\n public org.landxml.schema.landXML11.FeatureDocument.Feature remove(int i)\r\n {\r\n org.landxml.schema.landXML11.FeatureDocument.Feature old = GPSSetupImpl.this.getFeatureArray(i);\r\n GPSSetupImpl.this.removeFeature(i);\r\n return old;\r\n }\r\n \r\n public int size()\r\n { return GPSSetupImpl.this.sizeOfFeatureArray(); }\r\n \r\n }\r\n \r\n synchronized (monitor())\r\n {\r\n check_orphaned();\r\n return new FeatureList();\r\n }\r\n }",
"void addFeatures(Features features);",
"public Iterator<SimpleFeature> getFeatures() {\n \treturn this.iterator();\n }",
"public Set<String> getFeatures();",
"void setFeatureArray(int i, org.landxml.schema.landXML11.FeatureDocument.Feature feature);",
"void setFeatureArray(int i, org.landxml.schema.landXML11.FeatureDocument.Feature feature);",
"public FeatureSet getFeatures() {\n\treturn features;\n }",
"java.lang.String getFeatures(int index);",
"public FeatureDictionary(Element e) throws BoxerXMLException {\n\tif (!e.getTagName().equals(XML.FEATURES)) {\n\t throw new BoxerXMLException(\"FeatureDictionary can only be deserialized from an XML element named `\" + XML.FEATURES + \"'\");\n\t}\n\n\tfor(Node n = e.getFirstChild(); n!=null; n = n.getNextSibling()) {\n\t int type = n.getNodeType();\n\t //System.out.println(\"Node Name = \" + n.getNodeName()+ \t\t\t\t \", type=\" + type + \", val= \" + val);\n\t \n\t boolean found = false;\n\t if (type == Node.COMMENT_NODE) { // skip \n\t } else if (type == Node.TEXT_NODE) {\n\t\tString val = n.getNodeValue().trim();\n\t\tif (val.length()==0) { \t\t//skip\n\t\t} else {\n\t\t if (found) throw new BoxerXMLException(\"FeatureDictionary deserializer expects only one non-empty TEXT element in the XML element being parsed\");\n\t\t found = true;\n\t\t String[] tokens = val.split(\"\\\\s+\");\n\t\t if (ADD_DUMMY_COMPONENT && \n\t\t\t(tokens.length==0 || !tokens[0].equals(DUMMY_LABEL))) {\n\t\t\tthrow new BoxerXMLException(\"FeatureDictionary deserializer: ADD_DUMMY_COMPONENT flag is on, but the feature list in the XML element does not start with \" + DUMMY_LABEL);\n\t\t }\n\t\t id2label.setSize(tokens.length);\n\n\t\t for(int i=0; i<tokens.length; i++) {\n\t\t\tif (!IDValidation.validateFeatureName(tokens[i])) {\n\t\t\t throw new BoxerXMLException(\"Can't add feature with the name '\"+ tokens[i]+\"' to the feature dictionary, because this is not a legal name\");\n\t\t\t}\n\t\t\tid2label.set( i, tokens[i]);\n\t\t\tlabel2id.put( tokens[i], i);\n\t\t }\n\t\t}\n\t } else {\n\t\tthrow new IllegalArgumentException(\"FeatureDictionary deserializer: encountered unexpected node type \" + type);\n\t }\n\t}\n }",
"void addFeature(Feature feature);",
"public interface XMLStructure {\n\n /**\n * Indicates whether a specified feature is supported.\n *\n * @param feature the feature name (as an absolute URI)\n * @return <code>true</code> if the specified feature is supported,\n * <code>false</code> otherwise\n * @throws NullPointerException if <code>feature</code> is <code>null</code>\n */\n boolean isFeatureSupported(String feature);\n}",
"void setFeatureArray(org.landxml.schema.landXML11.FeatureDocument.Feature[] featureArray);",
"void setFeatureArray(org.landxml.schema.landXML11.FeatureDocument.Feature[] featureArray);",
"public String getFeature() {\r\n return feature;\r\n }",
"public String feature() {\n return feature;\n }",
"public void addFeatures(IFeature feature);",
"Feature createFeature();",
"public int getFeaturesCount();",
"public Collection<String> getProvideFeature();",
"@Override\n public String toString() {\n return mFeatureStructures.toString();\n }",
"org.landxml.schema.landXML11.PlanFeatureDocument.PlanFeature getPlanFeatureArray(int i);",
"org.landxml.schema.landXML11.PlanFeatureDocument.PlanFeature[] getPlanFeatureArray();",
"public DasFeature[] getAllFeatures() {\n Vector feats = new Vector();\n while (iXml.indexOf(\"<FEATURE\", lastFeatureEndPosition + 9) != -1) {\n String feature = iXml.substring(iXml.indexOf(\"<FEATURE\", lastFeatureEndPosition + 9), iXml.indexOf(\"</FEATURE>\", lastFeatureEndPosition + 9) + 10);\n lastFeatureEndPosition = iXml.indexOf(\"</FEATURE>\", lastFeatureEndPosition + 9);\n if (feature.indexOf(\"<NOTE>No features found for the segment</NOTE>\") < 0) {\n DasFeature f = new DasFeature(feature);\n feats.add(f);\n }\n }\n DasFeature[] features = new DasFeature[feats.size()];\n feats.toArray(features);\n return features;\n }",
"UMLStructuralFeature createUMLStructuralFeature();",
"@Override\n protected SimpleFeature buildFeature() {\n synchronized(EDGE_FEATURE_BUILDER) {\n EDGE_FEATURE_BUILDER.add(getId());\n EDGE_FEATURE_BUILDER.add(displayName);\n EDGE_FEATURE_BUILDER.add(url);\n EDGE_FEATURE_BUILDER.add(selected);\n EDGE_FEATURE_BUILDER.add(lineString);\n return EDGE_FEATURE_BUILDER.buildFeature(null);\n }\n }",
"public String getFeatVect();",
"org.landxml.schema.landXML11.PlanFeatureDocument.PlanFeature addNewPlanFeature();",
"Feature getFeature();",
"Feature getFeature();",
"int getFeaturesCount();",
"void setFeatures(Features f) throws Exception;",
"String getFeature();",
"String getFeature();",
"public int getFeatureCount() {\n\r\n\t\treturn _features.length;\r\n\t}",
"@Nonnull\r\n public Set<Feature> getFeatures() {\r\n return features;\r\n }",
"public static String supportedFeatures() {\n\t\tStringBuilder buf = new StringBuilder(\"Filesystem features: \");\n\n\t\tClass<Feature> c = Feature.class;\n\t\tfor (Method m : c.getDeclaredMethods()) {\n\t\t\tint mod = m.getModifiers();\n\t\t\tString name = m.getName();\n\n\t\t\tif (!name.equals(\"supportedFeatures\") && Modifier.isStatic(mod) && Modifier.isPublic(mod)) {\n\t\t\t\ttry {\n\t\t\t\t\tboolean ret = (Boolean)m.invoke(null);\n\t\t\t\t\tif (ret) {\n\t\t\t\t\t\tbuf.append(m.getName());\n\t\t\t\t\t\tbuf.append(\" \");\n\t\t\t\t\t}\n\t\t\t\t} catch (IllegalArgumentException ignored) {\n\t\t\t\t} catch (IllegalAccessException ignored) {\n\t\t\t\t} catch (InvocationTargetException ignored) {\n\t\t\t\t}\n\n\t\t\t}\n\t\t}\n\n\t\tbuf.append(\"\\n\");\n\t\treturn buf.toString();\n\t}",
"@Override\n\tpublic String getXMLDescription() {\n\t\treturn \"<node>\" + getDescription() + \"</node>\";\n\t}",
"Collection<StructuralFeature> getTypedFeatures();",
"public void addFeature(Feature feature) {\n rows.addElement(feature);\n }",
"public Integer getFeature() {\n return feature;\n }",
"public int getNumberOfFeatures() {\n\t\treturn numberOfFeatures;\n\t}",
"private List<WebServiceFeature> getFeatures(AssertionSet alternative) {\n return Collections.emptyList();\n }",
"com.google.protobuf.ByteString getFeaturesBytes(int index);",
"public FeatureElements getFeatureAccess() {\n\t\treturn pFeature;\n\t}",
"public void addFeatures(Feature... f) {\r\n addFeatures(Arrays.asList(f));\r\n }",
"void addFeature(int index, Feature feature);",
"java.util.List<? extends iet.distributed.telemetry.FeatureOrBuilder> \n getFeatureOrBuilderList();",
"org.landxml.schema.landXML11.PlanFeatureDocument.PlanFeature insertNewPlanFeature(int i);",
"public static List<RandomVariable> createDocFeatureRVs(List<RandomVariable> paraDocFeatures, String name) {\n List<RandomVariable> docFeatures = new ArrayList<>();\n for (RandomVariable rv : paraDocFeatures) {\n docFeatures.add(new RandomVariable(2, name + \"_\" + rv.getName()));\n }\n return docFeatures;\n }",
"FeatureConcept createFeatureConcept();",
"public WebServiceFeature[] getFeatures() {\n\t\treturn null;\n\t}",
"public FeatureTypeSchema_Impl() {\r\n schema = XMLTools.create();\r\n }",
"iet.distributed.telemetry.Feature getFeature(int index);",
"public interface GetFeatureRequest extends Request{\n\n /**\n * @return QName : requested type name, can be null\n * if not yet configured.\n */\n QName getTypeName();\n\n /**\n * @param type : requested type name, must not be null\n */\n void setTypeName(QName type);\n\n /**\n * @return Filter : the request filter, null for no filter\n */\n Filter getFilter();\n\n /**\n * @param filter : the request filter, null for no filter\n */\n void setFilter(Filter filter);\n\n /**\n * @return Integer : maximum features returned by this request,\n * null for no limit.\n */\n Integer getMaxFeatures();\n\n /**\n * @param max : maximum features returned by this request,\n * null for no limit.\n */\n void setMaxFeatures(Integer max);\n\n /**\n * @return String[] : array of requested properties,\n * null if all properties, empty for only the id.\n */\n GenericName[] getPropertyNames();\n\n /**\n * @param properties : array of requested properties,\n * null if all properties, empty for only the id.\n */\n void setPropertyNames(GenericName[] properties);\n\n /**\n * Return the output format to use for the response.\n * text/xml; subtype=gml/3.1.1 must be supported.\n * Other output formats are possible as well as long as their MIME\n * type is advertised in the capabilities document.\n *\n * @return The current outputFormat\n */\n String getOutputFormat();\n\n /**\n * Set the output format to use for the response.\n * text/xml; subtype=gml/3.1.1 must be supported.\n * Other output formats are possible as well as long as their MIME\n * type is advertised in the capabilities document.\n *\n * @param outputFormat The current outputFormat\n */\n void setOutputFormat(String outputFormat);\n}",
"public int getFeaturesSize();",
"public void addFeatures(@Nonnull Collection<Feature> f) {\r\n features.addAll(f);\r\n }",
"public void saveFeatureMetadata();",
"int getFeatureCount();",
"public EStructuralFeature getFeatureByXMLElementName(String namespace, String xmlElementName) {\n \t\t\t// try to find the EStructural feature locally\n \t\t\t// TODO: consider namespace\n \t\t\tEStructuralFeature result = xmlNameToEStructuralFeatureMap.get(xmlElementName);\n \t\t\tif (null == result) {\n \t\t\t\tIterator<EStructuralFeature> allFeaturesIter = eClass.getEAllStructuralFeatures().iterator();\n \t\t\t\tList<EStructuralFeature> results = new ArrayList<EStructuralFeature>();\n \t\t\t\twhile (allFeaturesIter.hasNext()) {\n \t\t\t\t\tEStructuralFeature feature = allFeaturesIter.next();\n \t\t\t\t\tString xmlWrapperName = getRMFExtendedMetaData(feature).getXMLWrapperName();\n \n \t\t\t\t\t// search by feature wrapper\n \t\t\t\t\tif (xmlWrapperName.equals(xmlElementName)) {\n \t\t\t\t\t\tif (isIdentifiedByFeatureWrapper(feature)) {\n \t\t\t\t\t\t\tresults.add(feature);\n \t\t\t\t\t\t} else {\n \t\t\t\t\t\t\t// not found, continue with next feature\n \t\t\t\t\t\t}\n \t\t\t\t\t} else {\n \t\t\t\t\t\t// search by feature name\n \t\t\t\t\t\tString xmlName = getRMFExtendedMetaData(feature).getXMLName();\n \t\t\t\t\t\tif (xmlName.equals(xmlElementName)) {\n \t\t\t\t\t\t\tif (isIdentifiedByFeature(feature)) {\n \t\t\t\t\t\t\t\tresults.add(feature);\n \t\t\t\t\t\t\t} else {\n \t\t\t\t\t\t\t\t// not found, continue with next feature\n \t\t\t\t\t\t\t}\n \t\t\t\t\t\t} else {\n \t\t\t\t\t\t\t// search by type wrapper (assuming type is type of feature)\n \t\t\t\t\t\t\tString classifierWrapperXMLName = getRMFExtendedMetaData(feature.getEType()).getXMLWrapperName();\n \t\t\t\t\t\t\tif (classifierWrapperXMLName.equals(xmlElementName)) {\n \t\t\t\t\t\t\t\tif (isIdentifiedByClassifierWrapper(feature)) {\n \t\t\t\t\t\t\t\t\tresults.add(feature);\n \t\t\t\t\t\t\t\t} else {\n \t\t\t\t\t\t\t\t\t// not found, continue with next feature\n \t\t\t\t\t\t\t\t}\n \t\t\t\t\t\t\t} else {\n \t\t\t\t\t\t\t\t// search by type wrapper name (assuming type not type of feature)\n \t\t\t\t\t\t\t\tEClassifier classifier = getTypeByXMLWrapperName(namespace, xmlElementName);\n \t\t\t\t\t\t\t\tif (null != classifier) {\n \t\t\t\t\t\t\t\t\tif (feature.getEType().equals(classifier)) {\n \t\t\t\t\t\t\t\t\t\tif (isIdentifiedByClassifierWrapper(feature)) {\n \t\t\t\t\t\t\t\t\t\t\tresults.add(feature);\n \t\t\t\t\t\t\t\t\t\t} else {\n \t\t\t\t\t\t\t\t\t\t\t// not found, continue with next feature\n \t\t\t\t\t\t\t\t\t\t}\n \t\t\t\t\t\t\t\t\t} else if (classifier instanceof EClass) {\n \t\t\t\t\t\t\t\t\t\tEClass eClass = (EClass) classifier;\n \t\t\t\t\t\t\t\t\t\tif (eClass.getEAllSuperTypes().contains(feature.getEType())) {\n \t\t\t\t\t\t\t\t\t\t\tif (isIdentifiedByClassifierWrapper(feature)) {\n \t\t\t\t\t\t\t\t\t\t\t\tresults.add(feature);\n \t\t\t\t\t\t\t\t\t\t\t} else {\n \t\t\t\t\t\t\t\t\t\t\t\t// not found, continue with next feature\n \t\t\t\t\t\t\t\t\t\t\t}\n \t\t\t\t\t\t\t\t\t\t} else {\n \t\t\t\t\t\t\t\t\t\t\t// not found, continue with next feature\n \t\t\t\t\t\t\t\t\t\t}\n \t\t\t\t\t\t\t\t\t} else {\n \t\t\t\t\t\t\t\t\t\t// not found, continue with next feature\n \t\t\t\t\t\t\t\t\t}\n \t\t\t\t\t\t\t\t} else {\n \t\t\t\t\t\t\t\t\t// search by type name (assuming type not type of feature)\n \t\t\t\t\t\t\t\t\tclassifier = getTypeByXMLName(namespace, xmlElementName);\n \t\t\t\t\t\t\t\t\tif (null != classifier) {\n \t\t\t\t\t\t\t\t\t\tif (feature.getEType().equals(classifier)) {\n \t\t\t\t\t\t\t\t\t\t\tif (isIdentifiedByClassifier(feature)) {\n \t\t\t\t\t\t\t\t\t\t\t\tresults.add(feature);\n \t\t\t\t\t\t\t\t\t\t\t} else if (isNone(feature)) {\n \t\t\t\t\t\t\t\t\t\t\t\tresults.add(feature);\n \t\t\t\t\t\t\t\t\t\t\t} else {\n \t\t\t\t\t\t\t\t\t\t\t\t// not found, continue with next feature\n \t\t\t\t\t\t\t\t\t\t\t}\n \t\t\t\t\t\t\t\t\t\t} else if (classifier instanceof EClass) {\n \t\t\t\t\t\t\t\t\t\t\tif (eClass.getEAllSuperTypes().contains(feature.getEType())) {\n \t\t\t\t\t\t\t\t\t\t\t\tif (isIdentifiedByClassifier(feature)) {\n \t\t\t\t\t\t\t\t\t\t\t\t\tresults.add(feature);\n \t\t\t\t\t\t\t\t\t\t\t\t} else if (isNone(feature)) {\n \t\t\t\t\t\t\t\t\t\t\t\t\tresults.add(feature);\n \t\t\t\t\t\t\t\t\t\t\t\t} else {\n \t\t\t\t\t\t\t\t\t\t\t\t\t// not found, continue with next feature\n \t\t\t\t\t\t\t\t\t\t\t\t}\n \t\t\t\t\t\t\t\t\t\t\t} else if (isNone(feature)) {\n \t\t\t\t\t\t\t\t\t\t\t\tresults.add(feature);\n \t\t\t\t\t\t\t\t\t\t\t} else {\n \t\t\t\t\t\t\t\t\t\t\t\t// not found, continue with next feature\n \t\t\t\t\t\t\t\t\t\t\t}\n \t\t\t\t\t\t\t\t\t\t} else if (isNone(feature)) {\n \t\t\t\t\t\t\t\t\t\t\tresults.add(feature);\n \t\t\t\t\t\t\t\t\t\t} else {\n \t\t\t\t\t\t\t\t\t\t\t// not found, continue with next feature\n \t\t\t\t\t\t\t\t\t\t}\n \t\t\t\t\t\t\t\t\t} else if (isNone(feature)) {\n \t\t\t\t\t\t\t\t\t\tresults.add(feature);\n \t\t\t\t\t\t\t\t\t} else {\n \t\t\t\t\t\t\t\t\t\t// not found, continue with next feature\n \t\t\t\t\t\t\t\t\t}\n \t\t\t\t\t\t\t\t} // if (null != classifier && classifier instanceof EClass)\n \t\t\t\t\t\t\t} // if (classifierXMLName.equals(xmlElementName))\n \t\t\t\t\t\t} // if (xmlName.equals(xmlElementName))\n \t\t\t\t\t} // if (xmlWrapperName.equals(xmlElementName))\n \t\t\t\t} // while\n \n \t\t\t\t// if there are multiple valid features, we prefer the feature that is many and is not NONE\n \t\t\t\tint size = results.size();\n \t\t\t\tif (1 == size) {\n \t\t\t\t\tresult = results.get(0);\n \t\t\t\t} else if (0 < size) {\n \t\t\t\t\t// rule 1 we like the features that are explicitly selected\n \t\t\t\t\tList<EStructuralFeature> identifiedFeatures = new ArrayList<EStructuralFeature>();\n \t\t\t\t\tList<EStructuralFeature> noneFeatures = new ArrayList<EStructuralFeature>();\n \t\t\t\t\tfor (int i = 0; i < size; i++) {\n \t\t\t\t\t\tEStructuralFeature feature = results.get(i);\n \t\t\t\t\t\tif (isNone(feature)) {\n \t\t\t\t\t\t\tnoneFeatures.add(feature);\n \t\t\t\t\t\t} else {\n \t\t\t\t\t\t\tidentifiedFeatures.add(feature);\n \t\t\t\t\t\t}\n \t\t\t\t\t}\n \n \t\t\t\t\tif (identifiedFeatures.isEmpty()) {\n \t\t\t\t\t\t// there are none Features only\n \t\t\t\t\t\tresults = noneFeatures;\n \t\t\t\t\t} else {\n \t\t\t\t\t\tresults = identifiedFeatures;\n \t\t\t\t\t}\n \n \t\t\t\t\tresult = results.get(0);\n \n \t\t\t\t\t// try to find a better features that is many\n \t\t\t\t\tfor (EStructuralFeature feature : results) {\n \t\t\t\t\t\tif (feature.isMany()) {\n \t\t\t\t\t\t\tresult = feature;\n \t\t\t\t\t\t\tbreak;\n \t\t\t\t\t\t}\n \t\t\t\t\t}\n \t\t\t\t}\n\t\t\t}\n \n \t\t\t// TODO: fall back to standard serialization?\n \n \t\t\treturn result;\n \t\t}",
"public String getListAttributesPref()\n {\n Serializer<Collection<RecognizedElement>> serializer = new Serializer<Collection<RecognizedElement>>();\n return serializer.serialize(tree.getChildren());\n }",
"@Override\n protected void loadXMLDescription() {\n\n }",
"public FeatureStream getFeatureStream() {\n\treturn stream;\n }",
"@UML(identifier=\"featureType\", obligation=OPTIONAL, specification=ISO_19139)\n Collection<? extends LocalName> getFeatureTypes();",
"public static void main(String[] args) throws JDOMException, IOException, IllegalArgumentException, FeedException {\n\t\tInputStream in = new BufferedInputStream(\n\t new FileInputStream(args[0]));\n\t SAXBuilder builder = new SAXBuilder();\n\t Document doc = builder.build(in);\n\t \n\t \n\t Element root = doc.getRootElement();\n\t System.out.println(root);\n\t System.out.println(root.getName());\n\t System.out.println(root.getChildren());\n\t \n\t //java.util.List αντικείμενο που περιέχει 3 Element αντικείμενα\n\t \n\t}",
"public String getDescription() {\n return \"XML Files\";\n }",
"private static List<Feature> getFeatures(List<String> row) {\n\t\tString sex = row.get(0);\n\t\tdouble length = Double.parseDouble(row.get(1));\n double diameter = Double.parseDouble(row.get(2));\n double height = Double.parseDouble(row.get(3));\n// double whole_height = Double.parseDouble(row.get(4));\n// double shucked_height = Double.parseDouble(row.get(5));\n double viscera_weight = Double.parseDouble(row.get(6));\n double shell_weight = Double.parseDouble(row.get(7));\n\t\tList<Feature> features = new ArrayList<Feature>();\n\t\tfeatures.add(new NominalFeature(sex));\n\t\tfeatures.add(new ContinuousFeature(length));\n\t\tfeatures.add(new ContinuousFeature(diameter));\n\t\tfeatures.add(new ContinuousFeature(height));\n//\t\tfeatures.add(new ContinuousFeature(whole_height));\n//\t\tfeatures.add(new ContinuousFeature(shucked_height));\n\t\tfeatures.add(new ContinuousFeature(viscera_weight));\n\t\tfeatures.add(new ContinuousFeature(shell_weight));\n\t\treturn features;\n\t}",
"public java.util.List getFeature() \n {\n \tModelFacade instance = ModelFacade.getInstance(this.refOutermostPackage().refMofId());\n \tif (instance != null && \n \t\tinstance.isRepresentative(this.refMofId())&&\n \t\tinstance.hasRefObject(this.refMofId()))\n \t{ \t\n \t\tList list = instance.getFeature(this.refMofId());\n \t\tlist.addAll(super_getFeature());\n \t\t\n \t\treturn list; \t\t\n \t}\n \n \treturn super_getFeature();\n }",
"public org.landxml.schema.landXML11.FeatureDocument.Feature[] getFeatureArray()\r\n {\r\n synchronized (monitor())\r\n {\r\n check_orphaned();\r\n java.util.List targetList = new java.util.ArrayList();\r\n get_store().find_all_element_users(FEATURE$14, targetList);\r\n org.landxml.schema.landXML11.FeatureDocument.Feature[] result = new org.landxml.schema.landXML11.FeatureDocument.Feature[targetList.size()];\r\n targetList.toArray(result);\r\n return result;\r\n }\r\n }",
"public org.landxml.schema.landXML11.FeatureDocument.Feature[] getFeatureArray()\r\n {\r\n synchronized (monitor())\r\n {\r\n check_orphaned();\r\n java.util.List targetList = new java.util.ArrayList();\r\n get_store().find_all_element_users(FEATURE$6, targetList);\r\n org.landxml.schema.landXML11.FeatureDocument.Feature[] result = new org.landxml.schema.landXML11.FeatureDocument.Feature[targetList.size()];\r\n targetList.toArray(result);\r\n return result;\r\n }\r\n }",
"public org.landxml.schema.landXML11.FeatureDocument.Feature[] getFeatureArray()\r\n {\r\n synchronized (monitor())\r\n {\r\n check_orphaned();\r\n java.util.List targetList = new java.util.ArrayList();\r\n get_store().find_all_element_users(FEATURE$6, targetList);\r\n org.landxml.schema.landXML11.FeatureDocument.Feature[] result = new org.landxml.schema.landXML11.FeatureDocument.Feature[targetList.size()];\r\n targetList.toArray(result);\r\n return result;\r\n }\r\n }",
"protected void addFeaturesPropertyDescriptor(Object object) {\n itemPropertyDescriptors.add\n (createItemPropertyDescriptor\n (((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(),\n getResourceLocator(),\n getString(\"_UI_Reference_features_feature\"),\n getString(\"_UI_PropertyDescriptor_description\", \"_UI_Reference_features_feature\", \"_UI_Reference_type\"),\n NoSQLSchemaPackage.Literals.REFERENCE__FEATURES,\n true,\n false,\n true,\n null,\n null,\n null));\n }",
"com.google.protobuf.Struct getCustomFeatures();",
"Collection<Feature> getReference();"
] |
[
"0.7335973",
"0.7335973",
"0.67727166",
"0.67727166",
"0.65367436",
"0.65367436",
"0.65278834",
"0.65278834",
"0.64187",
"0.6400987",
"0.6322766",
"0.6313708",
"0.6310546",
"0.62164026",
"0.617124",
"0.61649287",
"0.61649287",
"0.61470425",
"0.61365014",
"0.61112624",
"0.61024565",
"0.60832036",
"0.605867",
"0.60576326",
"0.60345525",
"0.6022544",
"0.59673595",
"0.59535575",
"0.5936432",
"0.5922716",
"0.5883369",
"0.58600295",
"0.58600295",
"0.58148754",
"0.5810647",
"0.57954997",
"0.56566185",
"0.5642879",
"0.5625294",
"0.5625294",
"0.5618666",
"0.5614805",
"0.56028014",
"0.5584231",
"0.5525027",
"0.5493335",
"0.54846245",
"0.5483017",
"0.5479679",
"0.5468335",
"0.5467051",
"0.5459499",
"0.5431922",
"0.54229856",
"0.5414734",
"0.5414734",
"0.5402084",
"0.5399458",
"0.5376074",
"0.5376074",
"0.5374344",
"0.53694546",
"0.5361472",
"0.53594387",
"0.53442115",
"0.5333778",
"0.5331248",
"0.5330478",
"0.531543",
"0.53085184",
"0.5306629",
"0.53041613",
"0.53029585",
"0.5293608",
"0.5292758",
"0.5287491",
"0.52619433",
"0.52552307",
"0.5249975",
"0.52172476",
"0.5200097",
"0.5192339",
"0.5188166",
"0.5182155",
"0.51776505",
"0.51677614",
"0.5155108",
"0.51439065",
"0.5135744",
"0.51308703",
"0.51305383",
"0.51292014",
"0.5126219",
"0.5126105",
"0.51233405",
"0.5123169",
"0.5123169",
"0.5083032",
"0.50768787",
"0.5073732"
] |
0.74310446
|
0
|
Saves the dictionary as an XML document
|
public Document saveAsXML() {
Document xmldoc= new DocumentImpl();
Element root = createFeaturesElement(xmldoc);
xmldoc.appendChild(root);
return xmldoc;
}
|
{
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
}
|
[
"public void saveDictionaryToFile() {\n\t\tdictionary.saveDictionary();\n\t}",
"private void xmlSave() {\r\n FileDialog fd = new FileDialog(new Frame(), \r\n \"Save as a jMusic XML file...\", \r\n FileDialog.SAVE);\r\n fd.show();\r\n if (fd.getFile() != null) {\r\n jm.util.Write.xml(score, fd.getDirectory() + fd.getFile());\r\n }\r\n }",
"void save(XMLDocument document, XMLStreamWriter writer) throws XMLStreamException;",
"private XmlElement toXmlDict(Map<String, Object> map)\n {\n XmlElement dict = new XmlElement(\"dict\");\n for (Map.Entry<String, Object> entry : map.entrySet())\n {\n dict.add(new XmlElement(\"key\", entry.getKey()));\n dict.add(objectToXml(entry.getValue()));\n }\n return dict;\n }",
"public void save() {\n int hour = Calendar.getInstance().get(Calendar.HOUR_OF_DAY);\r\n int minute = Calendar.getInstance().get(Calendar.MINUTE);\r\n\r\n // Hierarchie: 2010/04/05/01_05042010_00002.xml\r\n File dir = getOutputDir();\r\n File f = new File(dir, getCode().replace(' ', '_') + \".xml\");\r\n Element topLevel = new Element(\"ticket\");\r\n topLevel.setAttribute(new Attribute(\"code\", this.getCode()));\r\n topLevel.setAttribute(\"hour\", String.valueOf(hour));\r\n topLevel.setAttribute(\"minute\", String.valueOf(minute));\r\n // Articles\r\n for (Pair<Article, Integer> item : this.items) {\r\n Element e = new Element(\"article\");\r\n e.setAttribute(\"qte\", String.valueOf(item.getSecond()));\r\n // Prix unitaire\r\n e.setAttribute(\"prix\", String.valueOf(item.getFirst().getPriceInCents()));\r\n e.setAttribute(\"prixHT\", String.valueOf(item.getFirst().getPriceHTInCents()));\r\n e.setAttribute(\"idTaxe\", String.valueOf(item.getFirst().getIdTaxe()));\r\n e.setAttribute(\"categorie\", item.getFirst().getCategorie().getName());\r\n e.setAttribute(\"codebarre\", item.getFirst().getCode());\r\n e.setText(item.getFirst().getName());\r\n topLevel.addContent(e);\r\n }\r\n // Paiements\r\n for (Paiement paiement : this.paiements) {\r\n final int montantInCents = paiement.getMontantInCents();\r\n if (montantInCents > 0) {\r\n final Element e = new Element(\"paiement\");\r\n String type = \"\";\r\n if (paiement.getType() == Paiement.CB) {\r\n type = \"CB\";\r\n } else if (paiement.getType() == Paiement.CHEQUE) {\r\n type = \"CHEQUE\";\r\n } else if (paiement.getType() == Paiement.ESPECES) {\r\n type = \"ESPECES\";\r\n }\r\n e.setAttribute(\"type\", type);\r\n e.setAttribute(\"montant\", String.valueOf(montantInCents));\r\n topLevel.addContent(e);\r\n }\r\n\r\n }\r\n try {\r\n final XMLOutputter out = new XMLOutputter(Format.getPrettyFormat());\r\n out.output(topLevel, new FileOutputStream(f));\r\n } catch (IOException e) {\r\n e.printStackTrace();\r\n }\r\n\r\n }",
"public void saveData(){\n try{\n DocumentBuilderFactory documentBuilderFactory = DocumentBuilderFactory.newInstance();\n DocumentBuilder documentBuilder = documentBuilderFactory.newDocumentBuilder();\n Document document = documentBuilder.newDocument();\n\n Element rootElement = document.createElement(\"departments\");\n document.appendChild(rootElement);\n for (Department department : entities){\n Element dep = document.createElement(\"department\");\n rootElement.appendChild(dep);\n\n dep.setAttribute(\"id\", department.getId().toString());\n dep.appendChild(createElementFromDepartment(\n document, \"name\", department.getName()));\n dep.appendChild(createElementFromDepartment(\n document, \"numberOfPlaces\", department.getNumberOfPlaces().toString()));\n }\n\n DOMSource domSource = new DOMSource(document);\n StreamResult streamResult = new StreamResult(fileName);\n TransformerFactory transformerFactory = TransformerFactory.newInstance();\n Transformer transformer = transformerFactory.newTransformer();\n transformer.transform(domSource, streamResult);\n\n } catch (ParserConfigurationException | TransformerException e) {\n e.printStackTrace();\n }\n }",
"public static String map2XmlStr(Map<String, String> map) {\r\n Document document = DocumentHelper.createDocument();\r\n Element nodeElement = document.addElement(\"xml\");\r\n for (String obj : map.keySet()) {\r\n Element keyElement = nodeElement.addElement(obj);\r\n keyElement.setText(map.get(obj));\r\n }\r\n return document.getRootElement().asXML();\r\n// return doc2String(document);\r\n }",
"public void writeToXML() throws IOException, XMLStreamException {\n FileOutputStream outPC = new FileOutputStream(\"C:\\\\Users\\\\Ruben Joosen\\\\Documents\\\\AntwerpenU\\\\Semester 5\\\\Distributed Systems\\\\ProjectY\\\\DS\\\\ProjectY\\\\map.xml\");\n FileOutputStream out = new FileOutputStream(\"/home/pi/Documents/DS/ProjectY/map.xml\"); // \"/home/pi/Documents/DS/ProjectY/map.xml\"\n\n XMLStreamWriter xsw = null;\n try {\n try {\n XMLOutputFactory xof = XMLOutputFactory.newInstance();\n xsw = xof.createXMLStreamWriter(out, \"UTF-8\");\n xsw.writeStartDocument(\"utf-8\", \"1.0\");\n xsw.writeStartElement(\"entries\");\n\n // Do the Collection\n for (Map.Entry<Integer, String> e : this.IPmap.entrySet()) {\n xsw.writeStartElement(\"entry\");\n xsw.writeAttribute(\"key\", e.getKey().toString());\n xsw.writeAttribute(\"value\", e.getValue().toString());\n xsw.writeEndElement();\n }\n xsw.writeEndElement();\n xsw.writeEndDocument();\n } finally {\n if (out != null) {\n try {\n out.close();\n } catch (IOException e) { /* ignore */ }\n }\n }// end inner finally\n } finally {\n if (xsw != null) {\n try {\n xsw.close();\n } catch (XMLStreamException e) { /* ignore */ }\n }\n }\n }",
"public void savetoxml() throws FileNotFoundException, JAXBException {\n xml_methods.save(player);\n }",
"public static void save() {\n\t\tif (!init)\n\t\t\tinit();\n\n\t\tDocument xmlDocument = DocumentHelper.createDocument();\n\n\t\tElement root = xmlDocument.addElement(\"protocolstore\");\n\n\t\tint id = 1;\n\n\t\tfor (ProtocolDescriptor td : installedAddons) {\n\t\t\tif (!td.storable) {\n\t\t\t\tcontinue;\n\t\t\t}\n\n\t\t\tElement protocol = root.addElement(\"protocol\");\n\t\t\tprotocol.addAttribute(\"id\", \"\" + (id++));\n\t\t\tprotocol.addAttribute(\"file\", td.getFile().getName());\n\n\t\t\ttd.saveDescriptor();\n\t\t}\n\n\t\ttry {\n\t\t\tOutputFormat format = OutputFormat.createPrettyPrint();\n\n\t\t\tif (!Key.KEY_PROTOCOLSTORE_FILE.exists()) {\n\t\t\t\tKey.KEY_PROTOCOLSTORE_FILE.getParentFile().mkdirs();\n\t\t\t\tKey.KEY_PROTOCOLSTORE_FILE.createNewFile();\n\t\t\t}\n\n\t\t\tXMLWriter writer = new XMLWriter(new FileWriter(\n\t\t\t\t\tKey.KEY_PROTOCOLSTORE_FILE), format);\n\t\t\twriter.write(xmlDocument);\n\t\t\twriter.close();\n\t\t} catch (IOException ex) {\n\t\t\tex.printStackTrace();\n\t\t}\n\t}",
"@Override\n\tpublic void write() {\n\t\tSystem.out.println(\"使用xml方式存储\");\n\t}",
"public void saveMapping() {\n String userHome = System.getProperty(\"user.home\");\n String filePath = userHome + \"/\"+ System.currentTimeMillis() +\"-mapping.xml\";\n XMLExporter exporter = XMLExporter.getInstance();\n File file = new File(filePath);\n try {\n exporter.save(mappings, file);\n Logger.getLogger(MappingAppState.class.getName()).log(Level.INFO, \"Mapping saved as {0}\", filePath);\n } catch (IOException ex) {\n Logger.getLogger(MappingAppState.class.getName()).log(Level.SEVERE, \"Failed to save node!\", ex);\n }\n }",
"public void save() {\n JAXB.marshal(this, new File(fileName));\n }",
"public void CreatFileXML(HashMap<String, List<Detail>> wordMap, String fileName ) throws ParserConfigurationException, TransformerException {\n\t\tDocumentBuilderFactory dbFactory = DocumentBuilderFactory.newInstance();\n\t\tDocumentBuilder dBuilder = dbFactory.newDocumentBuilder();\n\t\tDocument doc = dBuilder.newDocument();\n\t\t\n\t\t//root element\n\t\tElement rootElement = doc.createElement(\"Words\");\n\t\tdoc.appendChild(rootElement);\n\t\t\n\t\tSet<String> keyset = wordMap.keySet();\n\t\tfor(String key : keyset) {\n\t\t\t\n\t\t\t// Load List of detail from HashMap\n\t\t\tList<Detail> values = wordMap.get(key);\n\t\t\t\n\t\t\tfor (Detail detail : values) {\n\t\t\t\n\t\t\t\t//LexicalEntry element\n\t\t\t\tElement LexicalEntry = doc.createElement(\"LexicalEntry\");\n\t\t\t\trootElement.appendChild(LexicalEntry);\n\t\t\t\t\n\t\t\t\t//HeadWord element\n\t\t\t\tElement HeadWord = doc.createElement(\"HeadWord\");\n\t\t\t\tHeadWord.appendChild(doc.createTextNode(key));\n\t\t\t\tLexicalEntry.appendChild(HeadWord);\n\t\t\t\t\n\t\t\t\t//Detail element\n\t\t\t\tElement Detail = doc.createElement(\"Detail\");\n\t\t\t\t\n\t\t\t\t// WordType element\n\t\t\t\tElement WordType = doc.createElement(\"WordType\");\n\t\t\t\tWordType.appendChild(doc.createTextNode(detail.getTypeWord()));\n\t\t\t\t\n\t\t\t\t// CateWord element\n\t\t\t\tElement CateWord = doc.createElement(\"CateWord\");\n\t\t\t\tCateWord.appendChild(doc.createTextNode(detail.getCateWord()));\n\t\t\t\t\n\t\t\t\t// SubCateWord element\n\t\t\t\tElement SubCateWord = doc.createElement(\"SubCateWord\");\n\t\t\t\tSubCateWord.appendChild(doc.createTextNode(detail.getSubCateWord()));\n\t\t\t\t\n\t\t\t\t// VerbPattern element\n\t\t\t\tElement VerbPattern = doc.createElement(\"VerbPattern\");\n\t\t\t\tVerbPattern.appendChild(doc.createTextNode(detail.getVerbPattern()));\n\t\t\t\t\n\t\t\t\t// CateMean element\n\t\t\t\tElement CateMean = doc.createElement(\"CateMean\");\n\t\t\t\tCateMean.appendChild(doc.createTextNode(detail.getCateMean()));\n\t\t\t\t\n\t\t\t\t// Definition element\n\t\t\t\tElement Definition = doc.createElement(\"Definition\");\n\t\t\t\tDefinition.appendChild(doc.createTextNode(detail.getDefinition()));\n\t\t\t\t\n\t\t\t\t// Example element\n\t\t\t\tElement Example = doc.createElement(\"Example\");\n\t\t\t\tExample.appendChild(doc.createTextNode(detail.getExample()));\n\t\t\t\t\n\t\t\t\t// Put in Detail Element\n\t\t\t\tDetail.appendChild(WordType);\n\t\t\t\tDetail.appendChild(CateWord);\n\t\t\t\tDetail.appendChild(SubCateWord);\n\t\t\t\tDetail.appendChild(VerbPattern);\n\t\t\t\tDetail.appendChild(CateMean);\n\t\t\t\tDetail.appendChild(Definition);\n\t\t\t\tDetail.appendChild(Example);\n\t\t\t\t\n\t\t\t\t// Add Detail into LexicalEntry\n\t\t\t\tLexicalEntry.appendChild(Detail);\n\t\t\t}\n\t\t}\n\t\t\n\t\t// write the content into xml file\n\t\tTransformerFactory tfmFactory = TransformerFactory.newInstance();\n\t\tTransformer transformer = tfmFactory.newTransformer();\n\t\tDOMSource source = new DOMSource(doc);\n\t\tStreamResult result = new StreamResult(new File(\"F://GitHUB/ReadXML/data/\" + fileName));\n\t\ttransformer.transform(source, result);\n\t\t\n//\t\t// output testing\n//\t\tStreamResult consoleResult = new StreamResult(System.out);\n// transformer.transform(source, consoleResult);\n\t}",
"void save() throws IOException, ParserConfigurationException, TransformerConfigurationException;",
"public static void save()\n\t{\n writeMap();\n\t}",
"public void saveAsXML(String fname) {\n\tXMLUtil.writeXML(saveAsXML(), fname);\n }",
"public void saveDocument() throws IOException;",
"void saveObject(DataObject sdo, XMLStreamWriter writer) throws XMLStreamException;",
"public abstract void saveLocationXml(Location location);",
"public void writeXML() throws IOException {\n OutputFormat format = OutputFormat.createPrettyPrint();//th format of xml file\n XMLWriter xmlWriter =new XMLWriter( new FileOutputStream(file), format);\n xmlWriter.write(document);//write the new xml into the file\n xmlWriter.flush();\n }",
"public static HashMap<String, String> OutputXml() {\n\t\treturn methodMap(\"xml\");\n\t}",
"public static void save() {\n Game.save(UI.askNgetString(\"Filename for this save file?\")+\".xml\");\n }",
"public abstract String toXML();",
"public abstract String toXML();",
"public abstract String toXML();",
"public void saveToFile(Map<String, T> data) throws IOException{\n\t\tOutputStream file = new FileOutputStream(filePath);\n OutputStream buffer = new BufferedOutputStream(file);\n ObjectOutput output = new ObjectOutputStream(buffer);\n\n // serialize the Map\n output.writeObject(data);\n output.close();\n\t}",
"public void saveToXML() {\n\t\tList<String> vendorList = map.values().stream().sorted().distinct().collect(Collectors.toList());\n\t\t//Iterate over the vendor list\n\t\tfor (int i=0;i < vendorList.size();i++) {\n\t\t\tProducts vendorSpecificList = new Products(); //create a product object just for a member\n\t\t\tList<output.Product> miniProductList = new ArrayList<>(); //holds the list of individual Product\n\t\t\t//iterate the whole map\t\n\t\t\tfor (Entry<Product, String> entry : map.entrySet()) {\t\t\n\t\t\t\t//identify members of the distinct vendor\n\t\t\t\tif(vendorList.get(i).equals(entry.getValue())) {\t\t\t\t\n\t\t\t\t\tminiProductList.add(entry.getKey()); //add to a subset\n\t\t\t\t}\n\t\t\t}\n\n\t\t\tvendorSpecificList.setProduct(miniProductList); //populate with subset\n\t\t\tprintFile(vendorSpecificList,vendorList.get(i)); //prints the subset\n\n\t\t}\n\t}",
"public Element toXml(Document doc)\n {\n if (doc == null)\n throw new IllegalArgumentException(\"doc may not be null\");\n\n Element root = doc.createElement(getRelationType());\n\n // add our db state\n addComponentState(root);\n\n for (int i = 0; i < m_keyNames.size(); i++)\n {\n PSXmlDocumentBuilder.addElement(doc, root,\n m_keyNames.get(i).toString(), m_keyValues.get(i).toString());\n }\n\n return root;\n }",
"public void persist() {\n\t\ttry {\n\t\t\tFileOutputStream fos = this._context.openFileOutput(\n\t\t\t\t\tConstants.CATALOG_XML_FILE_NAME, Context.MODE_PRIVATE);\n\t\t\tfos.write(\"<?xml version=\\\"1.0\\\" encoding=\\\"UTF-8\\\" ?>\\n\".getBytes());\n\t\t\tfos.write(\"<orders>\\n\".getBytes());\n\t\t\tfor (int i = 0; i < getOrderEntryCount(); i++) {\n\t\t\t\tOrderEntry oe = getOrderEntry(i);\n\t\t\t\tfos.write(oe.toXMLString().getBytes());\n\t\t\t}\n\t\t\tfos.write(\"</orders>\\n\".getBytes());\n\t\t\tfos.flush();\n\t\t\tfos.close();\n\t\t}\n\t\tcatch (Exception e) {\n\t\t\tLog.d(Constants.LOGTAG, \" \" + OrderList.CLASSTAG\n\t\t\t\t\t+ \"Failed to write out file?\" + e.getMessage());\n\t\t}\n\t}",
"@Override\r\n protected XMLSave createXMLSave() {\r\n prepareSave();\r\n return super.createXMLSave();\r\n }",
"public static void saveDocument( Document doc, String path ) {\n\t\ttry {\n\t\t\tFormat format = Format.getPrettyFormat();\n\t\t\tXMLOutputter fmt = new XMLOutputter( format );\n\t\t\tFile file = new File( path );\n\t\t\tOutputStream stream = new FileOutputStream( file );\n\t\t\tfmt.output( doc, stream );\n\t\t} catch (FileNotFoundException e) {\n\t\t\tthrow new RuntimeException( \"No se encontro el archivo: \" + path, e );\n\t\t} catch (IOException e) {\n\t\t\tthrow new RuntimeException( \"Error al guardar el archivo: \" + path, e );\n\t\t}\n\t}",
"public void saveDictionary() throws IOException {\r\n\t\tif (modified) {\r\n\t\t\tSystem.out.println(\"Saving...\");\r\n\t\t}\r\n\t\telse {\r\n\t\t\tSystem.out.println(\"Saving un-changed dictionary...\");\r\n\t\t}\r\n\t\ttry {\r\n\t\t\tFileWriter fw = new FileWriter(\"dictionary.txt\", false);\r\n\t\t\tBufferedWriter bw = new BufferedWriter(fw);\r\n\t\t\tObject[] dictionaryArray = dictionary.toArray();\r\n\t\t\tfor (int i = 0; i < dictionary.size(); i++) {\r\n\t\t\t\tString word = (String)dictionaryArray[i];\r\n\t\t\t\tSystem.out.println(word);\r\n\t\t\t\tbw.write(word);\r\n\t\t\t\tbw.newLine();\r\n\t\t\t}\r\n\t\t\tbw.close();\r\n\t\t\tmodified = false;\r\n\t\t}\r\n\t\tcatch (IOException e) {\r\n\t\t\tSystem.out.println(\"An error occurred while attempting to save the dictionary.\");\r\n\t\t\tSystem.out.println(e.getMessage());\r\n\t\t}\r\n\t}",
"public void save(File f) {\n\t\tif (f.exists()) {\r\n\t\t\tString filename = f.getName();\r\n\t\t\tString backName;\r\n\t\t\tif (filename.contains(\".\")) {\r\n\t\t\t\tbackName = filename.substring(0,filename.lastIndexOf('.'));\r\n\t\t\t\tbackName += \"_backup\";\r\n\t\t\t\tbackName += filename.substring(filename.lastIndexOf('.'));\r\n\t\t\t} else {\r\n\t\t\t\tbackName = filename + \"_backup\";\r\n\t\t\t}\r\n\t\t\tFile back = new File(f.getParent(),backName);\r\n\t\t\tSystem.out.println(\"Writing backup to: \"+back.getAbsolutePath());\r\n\t\t\tif (back.exists()) back.delete();\r\n\t\t\tFile newF = f;\r\n\t\t\tf.renameTo(back);\r\n\t\t\tf = newF;\r\n\t\t}\r\n\r\n\t\tFileOutputStream outputStream = null;\r\n\t\ttry {\r\n\t\t\tDocument doc = DocumentBuilderFactory.newInstance().newDocumentBuilder().newDocument();\r\n//\t\t\tb.append(\"<Map xmlns:xsi=\\\"http://www.w3.org/2001/XMLSchema-instance\\\" xsi:noNamespaceSchemaLocation=\\\"map.xsd\\\">\");\r\n//\t\t\tProcessingInstruction pi = doc.createProcessingInstruction(\"xml-stylesheet\", \"type=\\\"text/xsl\\\" href=\\\"/assistantdm/static/CharacterSheetTemplate.xsl\\\"\");\r\n//\t\t\tdoc.appendChild(pi);\r\n\t\t\tXMLMapExporter processor = new XMLMapExporter(doc);\r\n\t\t\tmapPanel.executeProcess(processor);\r\n\t\t\tdoc.setXmlStandalone(true);\r\n\r\n\t\t\tTransformer trans = TransformerFactory.newInstance().newTransformer();\r\n\t\t\ttrans.setOutputProperty(OutputKeys.INDENT, \"yes\");\r\n\t\t\ttrans.setOutputProperty(OutputKeys.ENCODING, \"UTF-8\");\r\n\t\t\ttrans.setOutputProperty(\"{http://xml.apache.org/xslt}indent-amount\", \"4\");\r\n\t\t\toutputStream = new FileOutputStream(f);\r\n\t\t\ttrans.transform(new DOMSource(doc), new StreamResult(outputStream));\r\n\t\t\tmapPanel.modified = false;\r\n\t\t} catch (Exception ex) {\r\n\t\t\tex.printStackTrace();\r\n\t\t} finally {\r\n\t\t\tif (outputStream != null) {\r\n\t\t\t\ttry {\r\n\t\t\t\t\toutputStream.close();\r\n\t\t\t\t} catch (IOException e1) {\r\n\t\t\t\t\te1.printStackTrace();\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t}",
"public void writeToFile() {\n\t\ttry {\n\t\t\tFileOutputStream file = new FileOutputStream(pathName);\n\t\t\tObjectOutputStream output = new ObjectOutputStream(file);\n\n\t\t\tMap<String, HashSet<String>> toSerialize = tagToImg;\n\t\t\toutput.writeObject(toSerialize);\n\t\t\toutput.close();\n\t\t\tfile.close();\n\t\t} catch (IOException e) {\n\t\t\te.printStackTrace();\n\t\t} catch (Exception e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t}",
"public static void saveMapEditor(MapEditor editor, String fileName) throws PersistenceException {\n try {\n\n // setup: create a save file and a JAXB Marshaller for the class\n File saveFile = new File(fileName);\n JAXBContext editorContext = JAXBContext.newInstance(MapEditor.class);\n Marshaller editorMarshaller = editorContext.createMarshaller();\n editorMarshaller.setProperty(Marshaller.JAXB_FORMATTED_OUTPUT, true);\n\n // convert the java object to XML\n editorMarshaller.marshal(editor, saveFile);\n\n } catch (JAXBException e) {\n throw new PersistenceException(\"Failed to save the MapEditor file. \\n\", e);\n }\n }",
"private void writeXmlFile( Document doc, String file_path ) {\r\n\r\n\t\ttry {\r\n\t\t\t\r\n\t\t\tTransformerFactory tf = TransformerFactory.newInstance();\r\n\t\t\tTransformer transformer = tf.newTransformer();\r\n\t\t\tDOMSource source \t\t= new DOMSource( doc );\r\n\t\t\tStreamResult result \t= new StreamResult( new File( file_path ));\r\n\t\t\t\r\n\t\t\t// Output to console for testing\r\n\t\t\t// StreamResult result = new StreamResult(System.out);\r\n\r\n\t\t\ttransformer.transform( source, result );\r\n\t\t\tSystem.out.println( \"File saved!\" );\r\n\r\n\r\n\t\t} catch ( TransformerException e ) {\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t}",
"public File XMLforRoot(String hashid, String key, String value, int LayerId, int copyNum, String timer, boolean timerType, String userid, String Time, Certificate Certi) {\n try {\n\n DocumentBuilderFactory documentFactory = DocumentBuilderFactory.newInstance();\n\n DocumentBuilder documentBuilder = documentFactory.newDocumentBuilder();\n\n Document document = documentBuilder.newDocument();\n\n // root element\n Element root = document.createElement(\"Root_Node_For\" + key + \"Copy\" + copyNum);\n document.appendChild(root);\n\n Element hashId = document.createElement(\"HashID\");\n hashId.appendChild(document.createTextNode(hashid));\n root.appendChild(hashId);\n\n Element layerid = document.createElement(\"layerid\");\n hashId.appendChild(layerid);\n layerid.setAttribute(\"Id\", String.valueOf(LayerId));\n\n Element key1 = document.createElement(\"Key\");\n hashId.appendChild(key1);\n key1.setAttribute(\"Key\", key);\n\n Element Value = document.createElement(\"Value\");\n Value.appendChild(document.createTextNode(value));\n hashId.appendChild(Value);\n\n Element copynum = document.createElement(\"copynum\");\n copynum.appendChild(document.createTextNode(String.valueOf(copyNum)));\n hashId.appendChild(copynum);\n\n Element timer2 = document.createElement(\"timer\");\n timer2.appendChild(document.createTextNode(String.valueOf(timer)));\n hashId.appendChild(timer2);\n\n Element timertype = document.createElement(\"timertype\");\n timertype.appendChild(document.createTextNode(String.valueOf(timerType)));\n hashId.appendChild(timertype);\n\n Element userId = document.createElement(\"userId\");\n userId.appendChild(document.createTextNode(String.valueOf(userid)));\n hashId.appendChild(userId);\n\n Element time2 = document.createElement(\"time\");\n time2.appendChild(document.createTextNode(String.valueOf(Time)));\n hashId.appendChild(time2);\n\n Element cert = document.createElement(\"Certificate\");\n cert.appendChild(document.createTextNode(String.valueOf(Certi)));\n hashId.appendChild(cert);\n\n\n // create the xml file\n //transform the DOM Object to an XML File\n TransformerFactory transformerFactory = TransformerFactory.newInstance();\n Transformer transformer = transformerFactory.newTransformer();\n DOMSource domSource = new DOMSource(document);\n StreamResult streamResult = new StreamResult(new File(\"Root_Node for\" + key + \"Copy\" + copyNum + \".xml\"));\n\n transformer.transform(domSource, streamResult);\n\n } catch (ParserConfigurationException pce) {\n pce.printStackTrace();\n } catch (TransformerException tfe) {\n tfe.printStackTrace();\n }\n\n File file = new File(\"Root_Node for\" + key + \"Copy\" + copyNum + \".xml\");\n return file;\n }",
"void saveToFile() {\n\t\ttry {\n\t\t\tFile directory = GameApplication.getInstance().getExternalFilesDir(Environment.DIRECTORY_DOCUMENTS);\n\t\t\tFile target = new File(directory, FILE_NAME);\n\t\t\tif (!target.exists()) {\n\t\t\t\ttarget.createNewFile();\n\t\t\t}\n\t\t\tJsonWriter writer = new JsonWriter(new FileWriter(target));\n\t\t\twriter.setIndent(\" \");\n\t\t\twriter.beginArray();\n\t\t\tfor (Scoreboard scoreboard : scoreboards.values()) {\n\t\t\t\twriteScoreboard(writer, scoreboard);\n\t\t\t}\n\t\t\twriter.endArray();\n\t\t\twriter.flush();\n\t\t\twriter.close();\n\t\t} catch (IOException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t}",
"void save() {\n File file = new File(main.myPath + \"state.xml\");\n Framework.backup(main.myPath + \"state.xml\");\n Framework.transform(stateDoc, new StreamResult(file), null);\n setDirty(false);\n }",
"public void fileSaved(OpenDefinitionsDocument doc) { }",
"public void fileSaved(OpenDefinitionsDocument doc) { }",
"@Override\n\tprotected void saveTo(Map<String, Object> map) {\n\t\tmap.put(\"rootElemId\", rootElemId);\n\t}",
"@Override\n\tpublic void save(String file_name) {\n\t\tserialize(file_name);\n\t}",
"public File makeXML(String key, int layerID, String value1, String time1, int totalCopies1, int copyNum1, boolean timerType1, String userId, String time, Certificate cert) {\n\n try {\n\n DocumentBuilderFactory documentFactory = DocumentBuilderFactory.newInstance();\n\n DocumentBuilder documentBuilder = documentFactory.newDocumentBuilder();\n\n Document document = documentBuilder.newDocument();\n\n Element key1 = document.createElement(\"Search_Result_for\" + key);\n document.appendChild(key1);\n key1.setAttribute(\"Key\", key);\n\n Element layerid = document.createElement(\"layerid\");\n\n key1.appendChild(layerid);\n layerid.setAttribute(\"Id\", String.valueOf(layerID));\n\n Element Value = document.createElement(\"Value\");\n Value.appendChild(document.createTextNode(value1));\n layerid.appendChild(Value);\n\n Element timer = document.createElement(\"timer\");\n timer.appendChild(document.createTextNode(String.valueOf(time1)));\n layerid.appendChild(timer);\n\n Element totcopies = document.createElement(\"totcopies\");\n totcopies.appendChild(document.createTextNode(String.valueOf(totalCopies1)));\n layerid.appendChild(totcopies);\n\n Element copynum = document.createElement(\"copynum\");\n copynum.appendChild(document.createTextNode(String.valueOf(copyNum1)));\n layerid.appendChild(copynum);\n\n Element timertype = document.createElement(\"timertype\");\n timertype.appendChild(document.createTextNode(String.valueOf(timerType1)));\n layerid.appendChild(timertype);\n\n Element userid = document.createElement(\"userid\");\n userid.appendChild(document.createTextNode(userId));\n layerid.appendChild(userid);\n\n Element time2 = document.createElement(\"time\");\n time2.appendChild(document.createTextNode(String.valueOf(time1)));\n layerid.appendChild(time2);\n\n /*Element cert1 = document.createElement(\"cert\");\n cert1.appendChild(document.createTextNode(String.valueOf(cert)));\n layerid.appendChild((Node) cert);*/\n\n // create the xml file\n //transform the DOM Object to an XML File\n TransformerFactory transformerFactory = TransformerFactory.newInstance();\n Transformer transformer = transformerFactory.newTransformer();\n DOMSource domSource = new DOMSource(document);\n StreamResult streamResult = new StreamResult(new File(layerID + \"_Search Result for \" + key + \".xml\"));\n\n transformer.transform(domSource, streamResult);\n\n System.out.println(\"Done creating XML File\");\n\n } catch (ParserConfigurationException pce) {\n pce.printStackTrace();\n } catch (TransformerException tfe) {\n tfe.printStackTrace();\n }\n\n File file = new File(layerID + \"_Search Result for \" + key + \".xml\");\n return file;\n }",
"private void save() throws FileNotFoundException {\n\t\tm.write(new FileOutputStream(OUTPUT), \"RDF/XML\");\n\t}",
"Element toXML();",
"public void save(String filename) throws IOException {\r\n String newline = System.getProperty(\"line.separator\");\r\n FileWriter out = new FileWriter(filename);\r\n Enumeration e = keyvaluepairs.keys();\r\n while (e.hasMoreElements()) {\r\n String key = (String) e.nextElement();\r\n out.write(key + \"=\" + (String) keyvaluepairs.get(key) + newline);\r\n }\r\n out.close();\r\n }",
"public void save(){\r\n\t\t//System.out.println(\"call save\");\r\n\t\tmodel.printDoc();\r\n\t}",
"void saveMap(Escenario esc,File f) throws Exception {\n\t\tthis.itfPersistenciaMRS.escenarioToXML(esc, f);\n\t}",
"public void writeObsTU(Hashtable<Integer, Hashtable<Integer, String>> obsTable, String dstPath) {\n\n\t\ttry {\n\n\t\t\tDocumentBuilderFactory docFactory = DocumentBuilderFactory.newInstance();\n\t\t\tDocumentBuilder docBuilder = docFactory.newDocumentBuilder();\n\n\t\t\t// root elements\n\t\t\tDocument doc = docBuilder.newDocument();\n\t\t\tElement rootElement = doc.createElement(\"observation\");\n\t\t\tdoc.appendChild(rootElement);\n\n\t\t\tfor (Map.Entry<Integer, Hashtable<Integer, String>> entrySet : obsTable.entrySet()) {\n\t\t\t\tInteger userID = entrySet.getKey();\n\t\t\t\tElement dayElement = doc.createElement(\"week_day\");\n\t\t\t\trootElement.appendChild(dayElement);\n\n\t\t\t\t// set attribute to staff element\n\t\t\t\tAttr attr = doc.createAttribute(\"id\");\n\t\t\t\tattr.setValue(String.valueOf(userID));\n\t\t\t\tdayElement.setAttributeNode(attr);\n\t\t\t\t// System.out.println(pKey);\n\t\t\t\tHashtable<Integer, String> value = entrySet.getValue();\n\t\t\t\tfor (Map.Entry<Integer, String> entrySet1 : value.entrySet()) {\n\t\t\t\t\tInteger weekDay = entrySet1.getKey();\n\t\t\t\t\tString obs = entrySet1.getValue();\n\n\t\t\t\t\tElement usrSeqElement = doc.createElement(\"user\");\n\t\t\t\t\tdayElement.appendChild(usrSeqElement);\n\n\t\t\t\t\t// set attribute to staff element\n\t\t\t\t\tattr = doc.createAttribute(\"id\");\n\t\t\t\t\tattr.setValue(String.valueOf(weekDay));\n\t\t\t\t\tusrSeqElement.setAttributeNode(attr);\n\n\t\t\t\t\tattr = doc.createAttribute(\"seq\");\n\t\t\t\t\t// attr.setValue(formatter.format(probability));\n\t\t\t\t\tattr.setValue(obs);\n\t\t\t\t\tusrSeqElement.setAttributeNode(attr);\n\n\t\t\t\t}\n\n\t\t\t}\n\n\t\t\t// write the content into xml file\n\t\t\tTransformerFactory transformerFactory = TransformerFactory.newInstance();\n\t\t\tTransformer transformer = transformerFactory.newTransformer();\n\t\t\tDOMSource source = new DOMSource(doc);\n\t\t\tStreamResult result = new StreamResult(new File(dstPath));\n\n\t\t\t// Output to console for testing\n\t\t\t// StreamResult result = new StreamResult(System.out);\n\t\t\ttransformer.transform(source, result);\n\n\t\t\tSystem.out.println(\"File saved!\");\n\n\t\t} catch (ParserConfigurationException | TransformerException pce) {\n\t\t}\n\t}",
"public static void saveXMLDoc(final File file, final Document doc)\r\n\t\t\tthrows TransformerException {\r\n\t\t/*\r\n\t\t * SAVE ALL THE THINGS\r\n\t\t */\r\n\t\tTransformerFactory transfac = TransformerFactory.newInstance();\r\n\t\tTransformer trans = transfac.newTransformer();\r\n\t\ttrans.setOutputProperty(OutputKeys.OMIT_XML_DECLARATION, \"yes\");\r\n\t\ttrans.setOutputProperty(OutputKeys.INDENT, \"yes\");\r\n\t\tStringWriter sw = new StringWriter();\r\n\t\tStreamResult result = new StreamResult(sw);\r\n\t\tDOMSource source = new DOMSource(doc);\r\n\t\ttrans.transform(source, result);\r\n\t\tString xmlString = sw.toString();\r\n\r\n\t\tSystem.err.println(xmlString);\r\n\r\n\t\ttry {\r\n\t\t\tFileWriter f = new FileWriter(file);\r\n\t\t\tf.write(xmlString);\r\n\t\t\tf.close();\r\n\t\t} catch (IOException e1) {\r\n\t\t\te1.printStackTrace();\r\n\t\t}\r\n\t}",
"private void genSaveMapCode(String name, String keyClassSimpleName, String valueClassSimpleName, boolean elementIsPersistable) {\n\n int tabLevel = 1;\n String tabs = tabs(tabLevel);\n\n String itVarName = \"i\" + \"_\" + name;\n String vVarName = \"v\" + \"_\" + name;\n\n String keyCppType = cppType(keyClassSimpleName);\n String valueCppType = cppType(valueClassSimpleName);\n\n String mapType = \"std::map< \" + keyCppType + \", \" + valueCppType + \" >\";\n\n save.println(\"\\t// \" + mapType + \" \" + name);\n genDebug(save, \"\\tstd::cout << \\\"save \" + mapType + \" \" + name + \"\\\" << std::endl;\");\n\n // initialize local variable that points to the member map\n save.println(tabs + mapType + \"& \" + vVarName + \" = this->\" + name + \";\");\n\n // number of elements in the map\n save.println(tabs + \"int \" + vVarName + \"_length = \" + vVarName + \".size();\");\n\n save.println();\n save.println(tabs + OUTSTREAM_VAR_NAME + \".writeInt( \" + vVarName + \"_length );\");\n\n genDebugDumpValue(save, vVarName + \"_length\", tabs);\n\n // loop through the elements and save each one\n save.println();\n save.println(tabs + mapType + \"::iterator \" + itVarName + \";\");\n save.println(tabs + \"for( \" + itVarName + \" = \" + vVarName + \".begin(); \" + itVarName + \" != \" + vVarName + \".end(); ++\"\n + itVarName + \" ){\");\n\n tabs = tabs(++tabLevel);\n\n // save the key\n String keyVarName = vVarName + \"_key\";\n save.println(tabs + keyCppType + \" \" + keyVarName + \" = \" + itVarName + \"->first;\");\n save.println(tabs + genWriteCode(keyVarName, keyCppType));\n\n // save the value\n String valueVarName = vVarName + \"_value\";\n save.println(tabs + valueCppType + \" \" + valueVarName + \" = \" + itVarName + \"->second;\");\n\n if (elementIsPersistable) {\n save.println(tabs + valueVarName + \".save( \" + OUTSTREAM_VAR_NAME + \" );\");\n } else {\n save.println(tabs + genWriteCode(valueVarName, valueCppType));\n }\n\n tabs = tabs(--tabLevel);\n save.println(tabs + \"}\");\n }",
"public void writeToGameFile(String fileName) {\n\n try {\n DocumentBuilderFactory docFactory = DocumentBuilderFactory.newInstance();\n DocumentBuilder docBuilder = docFactory.newDocumentBuilder();\n Document doc = docBuilder.newDocument();\n Element rootElement = doc.createElement(\"Sifeb\");\n doc.appendChild(rootElement);\n Element game = doc.createElement(\"Game\");\n rootElement.appendChild(game);\n\n Element id = doc.createElement(\"Id\");\n id.appendChild(doc.createTextNode(\"001\"));\n game.appendChild(id);\n Element stories = doc.createElement(\"Stories\");\n game.appendChild(stories);\n\n for (int i = 1; i < 10; i++) {\n Element cap1 = doc.createElement(\"story\");\n Element image = doc.createElement(\"Image\");\n image.appendChild(doc.createTextNode(\"Mwheels\"));\n Element text = doc.createElement(\"Text\");\n text.appendChild(doc.createTextNode(\"STEP \" + i + \":\\nLorem ipsum dolor sit amet, consectetur adipiscing elit. Donec eu.\"));\n cap1.appendChild(image);\n cap1.appendChild(text);\n stories.appendChild(cap1);\n }\n\n TransformerFactory transformerFactory = TransformerFactory.newInstance();\n Transformer transformer = transformerFactory.newTransformer();\n DOMSource source = new DOMSource(doc);\n File file = new File(SifebUtil.GAME_FILE_DIR + fileName + \".xml\");\n StreamResult result = new StreamResult(file);\n transformer.transform(source, result);\n\n System.out.println(\"File saved!\");\n\n } catch (ParserConfigurationException | TransformerException pce) {\n pce.printStackTrace();\n }\n\n }",
"private void writeMapToFile() {\r\n\t\ttry {\r\n\t\t\tString dm = gson.toJson(daoMap);// gson.toJson(entity);\r\n\t\t\tFileWriter fileWriter = new FileWriter(path);\r\n\t\t\t\r\n\t\t\tfileWriter.write(dm);\r\n\t\t\tfileWriter.close();\r\n\t\t} catch (Exception e) {\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t}",
"public void save () {\n\t\tif (!open) {\n\t\t\tSystem.out.println (\"ExternalDocument.save: attempt to save unopened document \" + fileName);\n\t\t\treturn;\n\t\t}\n\t\ttry {\n\t\t\tif (format.equals(\"sgml\")) {\n\t\t\t\tString tagToWrite;\n\t\t\t\tif (allTags)\n\t\t\t\t\ttagToWrite = null;\n\t\t\t\telse if (SGMLtags.length == 0)\n\t\t\t\t\ttagToWrite = \"***\"; // unused annotation type\n\t\t\t\telse if (SGMLtags.length == 1)\n\t\t\t\t\ttagToWrite = SGMLtags[0];\n\t\t\t\telse {\n\t\t\t\t\tSystem.out.println (\"ExternalDocument.save: cannot write more than 1 annotation type\");\n\t\t\t\t\treturn;\n\t\t\t\t}\n\t\t\t\tString string = writeSGML(tagToWrite).toString();\n\t\t\t\tFile file = new File(fullFileName());\n\t\t\t\tBufferedWriter writer = new BufferedWriter (\n\t\t\t\t\t\tnew OutputStreamWriter (new FileOutputStream(file), JetTest.encoding));\n\t\t\t\twriteWithSystemNewlines (writer, string);\n\t\t\t\twriter.close();\n\t\t\t} else {\n\t\t\t\t\tSystem.out.println (\"Error saving document \" + fileName);\n\t\t\t\t\tSystem.out.println (\"Unknown document format.\");\n\t\t\t}\n\t\t} catch (IOException e) {\n\t\t\t\tSystem.out.println (\"Error opening document \" + fileName);\n\t\t\t\tSystem.out.println (e);\n\t\t}\n\t}",
"public void writeToXmlFile(String xmlFile, Constraint constraint) {\n\t\tDocument xmlDocument = XmlDocument.newDocument();\n\t\t\n\t\tElement rootElement = xmlDocument.createElement(XML_ROOT);\n\t\trootElement.setAttribute(XML_NUM_ATTRS, \"2\");\n\t\trootElement.setAttribute(XML_ATTR + \"1\", XML_INFO1);\n\t\trootElement.setAttribute(XML_ATTR + \"2\", XML_INFO2);\n\t\txmlDocument.appendChild(rootElement);\n\t\t\n\t\tCollections.sort(nameValuePairs, SortNameValuePairByName.inst);\n\t\t\n\t\tfor (NameValuePair pair : nameValuePairs) {\n\t\t\tElement element = createXmlElementForNameValuePair(pair.getName(), pair.getValue(), xmlDocument, constraint);\n\t\t\tif (element != null)\n\t\t\t\trootElement.appendChild(element);\n\t\t}\n\t\t\n\t\tXmlDocument.writeXmlDocumentToFile(xmlDocument, xmlFile);\n\t}",
"public String generatedXmlFile(Document doc){\n\t\tStringWriter sw = new StringWriter();\r\n\t\t\t\ttry {\r\n\t\t\t\t\t\r\n\t\t\t\t\tTransformerFactory tf = TransformerFactory.newInstance();\r\n\t\t\t\t\tTransformer transformer = tf.newTransformer();\r\n\t\t\t\t\ttransformer.setOutputProperty(OutputKeys.OMIT_XML_DECLARATION, \"no\");\r\n\t\t\t\t\ttransformer.setOutputProperty(OutputKeys.METHOD, \"xml\");\r\n\t\t\t\t\ttransformer.setOutputProperty(OutputKeys.INDENT, \"yes\");\r\n\t\t\t\t\ttransformer.setOutputProperty(OutputKeys.ENCODING, \"UTF-8\");\r\n\r\n\t\t\t\t\ttransformer.transform(new DOMSource(doc), new StreamResult(sw));\r\n\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\tthrow new RuntimeException(\"Error converting to String\", ex);\r\n\t\t\t\t}\r\n\t\t\t\treturn sw.toString();\r\n\t}",
"public static void saveDocument(Document doc, File file) throws Exception {\r\n if (doc == null || file == null)\r\n return;\r\n\r\n TransformerFactory tFactory = TransformerFactory.newInstance();\r\n Transformer transformer = tFactory.newTransformer();\r\n\r\n transformer.setOutputProperty(OutputKeys.INDENT, \"yes\");\r\n transformer.setOutputProperty(\r\n \"{http://xml.apache.org/xslt}indent-amount\", \"2\");\r\n\r\n DOMSource source = new DOMSource(doc);\r\n StreamResult result = new StreamResult(file);\r\n transformer.transform(source, result);\r\n }",
"public static void saveMap(String filePath, int dimension_x, int dimension_y, Map<Integer[], Integer> obstacles) throws IOException {\n\t\t//Enregistrement du fond de carte sous forme de fichier XML\n\t\t/*\n\t\t * <world>\n\t\t * \t<size_x>10</size_x>\n\t\t * \t<size_y>15</size_y>\n\t\t * \t<obstacles>\n\t\t * \t\t<obstacle>\n\t\t * \t\t\t<pos_x></pos_x>\n\t\t * \t\t\t<pos_y></pos_y>\n\t\t * \t\t<level></level>\n\t\t * \t\t</obstacle>\n\t\t * \t</obstacles>\n\t\t * (...)\n\t\t * </world>\n\t\t */\n\t\tElement map = new Element(\"map\");\n\t\tDocument doc = new Document(map);\n\n\t\tmap.addContent(new Element(\"size_x\").setText(Integer.toString(dimension_x)));\n\t\tmap.addContent(new Element(\"size_y\").setText(Integer.toString(dimension_y)));\n\t\tElement obstaclesXML = new Element(\"obstacles\");\n\t\tmap.addContent(obstaclesXML);\n\n\t\tfor(Integer[] key : obstacles.keySet()) {\n\t\t\tElement obstacle = new Element(\"obstacle\");\n\t\t\tobstacle.addContent(new Element(\"pos_x\").setText(Integer.toString(key[0])));\n\t\t\tobstacle.addContent(new Element(\"pos_y\").setText(Integer.toString(key[1])));\n\t\t\tobstacle.addContent(new Element(\"level\").setText(Integer.toString(obstacles.get(key))));\n\t\t\tobstaclesXML.addContent(obstacle);\n\t\t}\n\n\t\tXMLOutputter xmlOutput = new XMLOutputter();\n\t\txmlOutput.setFormat(Format.getPrettyFormat());\n\t\txmlOutput.output(doc, new FileWriter(filePath));\n\t}",
"public static void save(Game game, String filename) {\n\t\ttry {\n\t\t\t/*\n\t\t\t * Setting up the xml writer\n\t\t\t */\n\t\t\t StringWriter stringWriter = new StringWriter();\n\n\t XMLOutputFactory xMLOutputFactory = XMLOutputFactory.newInstance();\n\t XMLStreamWriter xMLStreamWriter = xMLOutputFactory.createXMLStreamWriter(stringWriter);\n\n\t //Game node\n\t xMLStreamWriter.writeStartDocument();\n\t xMLStreamWriter.writeStartElement(\"Game\");\n\n\t\t\tWorld world = game.getWorld();\n\n\t\t\txMLStreamWriter.writeStartElement(\"TorchLight\");\n\t\t\txMLStreamWriter.writeCharacters(game.getTorchLight()+\"\");\n\t\t\txMLStreamWriter.writeEndElement();\n\n\t\t\t//World node\n\t\t\txMLStreamWriter.writeStartElement(\"World\");\n\n\t\t\t/*\n\t\t\t * Writing the dimensions of the game (i.e its width and height)\n\t\t\t */\n\t\t\twriteWorldDimension(xMLStreamWriter, world);\n\n\t\t\t/*\n\t\t\t * Writing the content of every room in the game\n\t\t\t */\n\t\t\tfor(int row = 0; row < world.getHeight(); row++) {\n\t\t\t\tfor(int col = 0; col < world.getWidth(); col++) {\n\t\t\t\t\twriteRoom(xMLStreamWriter, world, row, col);\n\t\t\t\t}\n\t\t\t}\n\n\t\t\t/*\n\t\t\t * Closing the tags\n\t\t\t */\n\t xMLStreamWriter.writeEndElement();\n\t xMLStreamWriter.writeEndElement();\n\n\t xMLStreamWriter.writeEndDocument();\n\n\t xMLStreamWriter.flush();\n\t xMLStreamWriter.close();\n\n\t String xmlString = stringWriter.getBuffer().toString();\n\n\t stringWriter.close();\n\t /*\n\t * Writing the content of the game in xml format\n\t */\n\t try (PrintStream out = new PrintStream(new FileOutputStream(filename))) {\n\t \t out.print(xmlString);\n\t \t out.close();\n\t \t}\n\t\t}\n\t\tcatch(Exception e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t}",
"private void exportarXML(){\n \n String nombre_archivo=IO_ES.leerCadena(\"Inserte el nombre del archivo\");\n String[] nombre_elementos= {\"Modulos\", \"Estudiantes\", \"Profesores\"};\n Document doc=XML.iniciarDocument();\n doc=XML.estructurarDocument(doc, nombre_elementos);\n \n for(Persona estudiante : LEstudiantes){\n estudiante.escribirXML(doc);\n }\n for(Persona profesor : LProfesorado){\n profesor.escribirXML(doc);\n }\n for(Modulo modulo: LModulo){\n modulo.escribirXML(doc);\n }\n \n XML.domTransformacion(doc, RUTAXML, nombre_archivo);\n \n }",
"void save(String fileName) throws IOException, TransformerConfigurationException, ParserConfigurationException;",
"public void save() {\t\n\t\n\t\n\t}",
"private void SaveProperties(HttpServletRequest request, HttpServletResponse response) throws IOException, NumberFormatException {\n String elementTopic = request.getParameter(\"elementToSave\");\n String indexString = request.getParameter(\"elementIndex\");\n String Info = request.getParameter(\"info\");\n int elementIndex = Integer.parseInt(indexString);\n\n String BackRequest = saveChanges(Info, elementTopic, XMLTree.getInstance(), elementIndex);\n response.getWriter().write(BackRequest);\n }",
"private void writeToDictionary() throws IOException {\n\n File file = new File(filePathDictionaryAuto);\n\n if (file.delete()) {\n file.createNewFile();\n Enumeration e = dictionaryTerms.keys();\n while (e.hasMoreElements()) {\n String word = (String) e.nextElement();\n if (word.length() != 1) {\n writePrintStream(dictionaryTerms.get(word) + \" \" + word, filePathDictionaryAuto);\n }\n }\n } else {\n System.out.println(\"Error in dictionary file\");\n }\n System.out.println(\"Dictionary updated\");\n\n }",
"public void saveConfigXml() {\n // Save the xml object to disk\n IPathManager pm = PathManagerFactory.getPathManager();\n LocalizationContext lc = pm.getContext(LocalizationType.COMMON_STATIC,\n LocalizationLevel.SITE);\n\n LocalizationFile newXmlFile = pm.getLocalizationFile(lc,\n CONFIG_FILE_NAME);\n\n if (newXmlFile.getFile().getParentFile().exists() == false) {\n // System.out.println(\"Creating new directory\");\n\n if (newXmlFile.getFile().getParentFile().mkdirs() == false) {\n // System.out.println(\"Could not create new directory...\");\n }\n }\n\n try {\n // System.out.println(\"Saving -- \"\n // + newXmlFile.getFile().getAbsolutePath());\n jaxb.marshalToXmlFile(configXml, newXmlFile.getFile()\n .getAbsolutePath());\n newXmlFile.save();\n\n lf = newXmlFile;\n } catch (Exception e) {\n statusHandler.handle(Priority.ERROR, \"Couldn't save config file.\",\n e);\n }\n }",
"public boolean saveXMLDocument(String fileName, Document doc) {\r\n log.debug(\"Saving XML file... \" + fileName);\r\n // open output stream where XML Document will be saved\r\n File xmlOutputFile = new File(fileName);\r\n FileOutputStream fos;\r\n Transformer transformer;\r\n try {\r\n fos = new FileOutputStream(xmlOutputFile);\r\n }\r\n catch (FileNotFoundException e) {\r\n log.debug(\"Error occured: \" + e.getMessage());\r\n return false;\r\n }\r\n // Use a Transformer for output\r\n TransformerFactory transformerFactory = TransformerFactory.newInstance();\r\n try {\r\n transformer = transformerFactory.newTransformer();\r\n }\r\n catch (TransformerConfigurationException e) {\r\n log.debug(\"Transformer configuration error: \" + e.getMessage());\r\n return false;\r\n }\r\n DOMSource source = new DOMSource(doc);\r\n StreamResult result = new StreamResult(fos);\r\n // transform source into result will do save\r\n try {\r\n transformer.transform(source, result);\r\n }\r\n catch (TransformerException e) {\r\n log.debug(\"Error transform: \" + e.getMessage());\r\n }\r\n log.debug(\"XML file saved.\");\r\n return true;\r\n }",
"public void saveXMLConfig() {\n\n\t\t// Get the Carma namespace\n\t\tNamespace ns = Namespace.getNamespace(\"Carma\",\n\t\t\t\t\"http://www.mmarray.org\");\n\n\t\t// Update NameServers. First remove them all, then add since\n\t\t// the number of them could have changed\n\t\tElement nameserversElement = _root.getChild(\"pdbi\", ns)\n\t\t .getChild(\"nameServers\", ns);\n\t\tnameserversElement.removeChildren(\"nameServer\", ns);\n\n\t\t// Set the new children one at a time\n\t\tfor (int i = 0; i < _nameservers.size(); i++) {\n\t\t\t nameserversElement.addContent( new Element(\"nameServer\", ns).\n\t\t\t addContent(new Element(\"identifier\", ns).\n\t\t\t\t setText((String)_nameservers.get(i))));\n\t\t}\n\n\t\t// Update NameServerPorts. First remove them all, then add since\n\t\t// the number of them could have changed\n\t\tElement nameserverPortsElement = _root.getChild(\"pdbi\", ns)\n\t\t .getChild(\"nameServerPorts\", ns);\n\t\tnameserverPortsElement.removeChildren(\"nameServerPort\", ns);\n\n\t\t// Set the new children one at a time\n\t\tfor (int i = 0; i < _nameserverPorts.size(); i++) {\n\t\t\t nameserverPortsElement.addContent( new Element(\"nameServerPort\",\n\t\t\t ns).\n\t\t\t addContent(new Element(\"pidentifier\", ns).\n\t\t\t\t setText((String)_nameserverPorts.get(i))));\n\t\t}\n\n\t\t// Update obsRecord Event Channel Name\n\t\t_root.getChild(\"server\", ns)\n\t\t .getChild(\"obsRecordEventChannelName\", ns)\n\t\t .setText(_obsRecordEventChannelName);\n\t}",
"public void save() {\n try {\n FileOutputStream fos = new FileOutputStream(file);\n properties.store(fos, \"Preferences\");\n } catch (FileNotFoundException e) {\n } catch (IOException e) {\n e.printStackTrace();\n }\n\n }",
"protected abstract void toXml(PrintWriter result);",
"public void saveToXML(Element rootElement){\n Element sensorElement = rootElement.addElement(\"sensor\")\n .addAttribute(\"id\",String.valueOf(getModel().getId()));\n sensorElement.addElement(\"name\").addText(getModel().getName());\n sensorElement.addElement(\"refresh\").addText(String.valueOf(getModel().getRefreshTime()));\n sensorElement.addElement(\"signal\").addText(String.valueOf(getModel().getSignal()));\n sensorElement.addElement(\"battery\").addText(String.valueOf(getModel().getBattery()));\n if(getPanel() != null){\n sensorElement.addElement(\"icon\").addText(getPanel().getIconType().getName());\n sensorElement.addElement(\"header_color\").addText(getPanel().getHexHeaderColor());\n }\n Element valuesElement = sensorElement.addElement(\"values\");\n for(Value value : getModel().getValues()){\n value.saveToXML(valuesElement);\n }\n }",
"public void saveChanges() throws TransformerException {\n\t\tTransformerFactory transformerFactory = TransformerFactory.newInstance();\r\n\t\tTransformer transformer = transformerFactory.newTransformer();\r\n\t\tDOMSource source = new DOMSource(document);\r\n\t\tStreamResult result = new StreamResult(new File(path));\r\n\t\ttransformer.transform(source, result);\r\n\t}",
"private String transformDomToXml(Document document) throws KeyChangeException {\n Transformer transformer;\n try {\n transformer = TransformerFactory.newInstance().newTransformer();\n transformer.setOutputProperty(OutputKeys.INDENT, KeyChangeConstants.YES);\n } catch (TransformerConfigurationException e) {\n throw new KeyChangeException(\"Configuration error occurred while creating new Transformer.\", e);\n }\n\n StringWriter stringWriter = null;\n try {\n stringWriter = new StringWriter();\n StreamResult result = new StreamResult(stringWriter);\n DOMSource source = new DOMSource(document);\n transformer.transform(source, result);\n return stringWriter.toString();\n } catch (TransformerException e) {\n throw new KeyChangeException(\"Error occurred while transforming Document element to XML.\", e);\n } finally {\n if (stringWriter != null) {\n try {\n stringWriter.close();\n } catch (IOException e) {\n throw new KeyChangeException(\"Error closing stream writer.\", e);\n }\n }\n }\n }",
"public void close(){\r\n Transformer t = null;\r\n\t\ttry {\r\n\t\t\tt = TransformerFactory.newInstance().newTransformer();\r\n\t\t\tt.setOutputProperty(OutputKeys.METHOD, \"xml\");\r\n\t\t\tt.setOutputProperty(OutputKeys.INDENT, \"yes\"); \r\n\t\t\tt.transform(new DOMSource(document), new StreamResult(new FileOutputStream(XMLFileName))); \t\r\n\t\t} catch (Exception e) {\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n }",
"void save();",
"void save();",
"void save();",
"private void transformToXml(Document doc) {\r\n try {\r\n TransformerFactory tf = TransformerFactory.newInstance();\r\n Transformer trans = tf.newTransformer();\r\n trans.transform(new DOMSource(doc),new StreamResult(new File(\"./evidence.xml\")));\r\n } catch (TransformerException e) {\r\n System.err.println(\"Transformation failed\");\r\n }\r\n }",
"private static void putPreferencesInXml(Element elt, Document doc, Preferences prefs, boolean subTree) throws BackingStoreException {\n Preferences[] kidsCopy = null;\n String[] kidNames = null;\n synchronized (((AbstractPreferences) prefs).lock) {\n if (((AbstractPreferences) prefs).isRemoved()) {\n elt.getParentNode().removeChild(elt);\n return;\n }\n int i;\n String[] keys = prefs.keys();\n Element map = (Element) elt.appendChild(doc.createElement(PolicyMappingsExtension.MAP));\n for (i = 0; i < keys.length; i++) {\n Element entry = (Element) map.appendChild(doc.createElement(\"entry\"));\n entry.setAttribute(\"key\", keys[i]);\n entry.setAttribute(\"value\", prefs.get(keys[i], null));\n }\n if (subTree) {\n kidNames = prefs.childrenNames();\n kidsCopy = new Preferences[kidNames.length];\n for (i = 0; i < kidNames.length; i++) {\n kidsCopy[i] = prefs.node(kidNames[i]);\n }\n }\n }\n }",
"Document toXml() throws ParserConfigurationException, TransformerException, IOException;",
"public static void writeObsDUT(Hashtable<String, Hashtable<Integer, Obs>> obsTable, String dstPath) {\n\n\t\ttry {\n\n\t\t\tDocumentBuilderFactory docFactory = DocumentBuilderFactory.newInstance();\n\t\t\tDocumentBuilder docBuilder = docFactory.newDocumentBuilder();\n\n\t\t\t// root elements\n\t\t\tDocument doc = docBuilder.newDocument();\n\t\t\tElement rootElement = doc.createElement(\"observation\");\n\t\t\tdoc.appendChild(rootElement);\n\n\t\t\tfor (Map.Entry<String, Hashtable<Integer, Obs>> entrySet : obsTable.entrySet()) {\n\t\t\t\tString userID = entrySet.getKey();\n\t\t\t\tElement dayElement = doc.createElement(\"week_day\");\n\t\t\t\trootElement.appendChild(dayElement);\n\n\t\t\t\t// set attribute to staff element\n\t\t\t\tAttr attr = doc.createAttribute(\"id\");\n\t\t\t\tattr.setValue(String.valueOf(userID));\n\t\t\t\tdayElement.setAttributeNode(attr);\n\t\t\t\t// System.out.println(pKey);\n\t\t\t\tHashtable<Integer, Obs> value = entrySet.getValue();\n\t\t\t\tfor (Map.Entry<Integer, Obs> entrySet1 : value.entrySet()) {\n\t\t\t\t\tInteger weekDay = entrySet1.getKey();\n\t\t\t\t\tObs obs = entrySet1.getValue();\n\n\t\t\t\t\tElement usrSeqElement = doc.createElement(\"user\");\n\t\t\t\t\tdayElement.appendChild(usrSeqElement);\n\n\t\t\t\t\tattr = doc.createAttribute(\"id\");\n\t\t\t\t\tattr.setValue(String.valueOf(weekDay));\n\t\t\t\t\tusrSeqElement.setAttributeNode(attr);\n\n\t\t\t\t\tattr = doc.createAttribute(\"seq\");\n\t\t\t\t\tattr.setValue(obs.seq);\n\t\t\t\t\tusrSeqElement.setAttributeNode(attr);\n\n\t\t\t\t\tattr = doc.createAttribute(\"viterbi\");\n\t\t\t\t\tattr.setValue(obs.vitPath);\n\t\t\t\t\tusrSeqElement.setAttributeNode(attr);\n\n\t\t\t\t\tattr = doc.createAttribute(\"timestamp\");\n\t\t\t\t\tattr.setValue(obs.timeStamp);\n\t\t\t\t\tusrSeqElement.setAttributeNode(attr);\n\n\t\t\t\t}\n\n\t\t\t}\n\n\t\t\t// write the content into xml file\n\t\t\tTransformerFactory transformerFactory = TransformerFactory.newInstance();\n\t\t\tTransformer transformer = transformerFactory.newTransformer();\n\t\t\tDOMSource source = new DOMSource(doc);\n\t\t\tStreamResult result = new StreamResult(new File(dstPath));\n\n\t\t\t// Output to console for testing\n\t\t\t// StreamResult result = new StreamResult(System.out);\n\t\t\ttransformer.transform(source, result);\n\n\t\t\tSystem.out.println(\"File saved!\");\n\n\t\t} catch (ParserConfigurationException | TransformerException pce) {\n\t\t}\n\t}",
"public void dumpAsXmlFile(String pFileName);",
"static void xmlWriter(Document doc, DocWriteDOM dwrite, String name, String dirPath, String dirOut, String tag) {\n NodeList nList = doc.getElementsByTagName(\"ods:\" + tag);\n String id=\"\";\n\n for (int temp = 0; temp < nList.getLength(); temp++) {\n Node nNode = nList.item(temp);\n \n if (nNode.getNodeType() == Node.ELEMENT_NODE) {\n Element eElement = (Element) nNode;\n id=eElement.getElementsByTagName(\"identifier\").item(0).getTextContent();\n dwrite.createEventXml(eElement, name + \"_\" + tag, id, dirPath, dirOut);\n }\n }\n }",
"public String toXML() {\n StringWriter stringWriter = new StringWriter();\n PrintWriter printWriter = new PrintWriter(stringWriter, true);\n toXML(printWriter);\n return stringWriter.toString();\n }",
"public void toXMLImpl(XMLStreamWriter out) throws XMLStreamException {\n // Start element:\n out.writeStartElement(getXMLElementTagName());\n\n //out.writeAttribute(ID_ATTRIBUTE_TAG, getId());\n out.writeAttribute(\"nationalAdvantages\", nationalAdvantages.toString());\n out.writeStartElement(\"Nations\");\n for (Map.Entry<Nation, NationState> entry : nations.entrySet()) {\n out.writeStartElement(\"Nation\");\n out.writeAttribute(ID_ATTRIBUTE_TAG, entry.getKey().getId());\n out.writeAttribute(\"state\", entry.getValue().toString());\n out.writeEndElement();\n }\n out.writeEndElement();\n\n out.writeEndElement();\n }",
"public static void writeSave(String filepath, ISaveConfiguration scores) {\n try {\n Element root = Writer.buildDocumentWithRoot(DATA_TYPE);\n Document document = root.getOwnerDocument();\n\n addSaves(document, root, scores);\n\n Writer.writeOutput(document, filepath);\n } catch (TransformerException e) {\n throw new XMLException(e, Factory.UNKNOWN_ERROR);\n }\n }",
"public void getXml(Writer fileout, boolean saveInvisible,\n\t\t\tMindMapNode pRootNode) throws IOException {\n\t\tfileout.write(\"<map \");\n\t\tfileout.write(\"version=\\\"\" + FreeMind.XML_VERSION + \"\\\"\");\n\t\tfileout.write(\">\\n\");\n\t\tfileout.write(\"<!-- To view this file, download free mind mapping software FreeMind from http://freemind.sourceforge.net -->\\n\");\n\t\tgetRegistry().save(fileout);\n\t\tpRootNode.save(fileout, this.getLinkRegistry(), saveInvisible, true);\n\t\tfileout.write(\"</map>\\n\");\n\t\tfileout.close();\n\t}",
"@Override\n\tpublic void saveDocument(String path, String name) {\n\t\t\n\t}",
"public void saveMap() {\n this.scanMap();\n String userHome = System.getProperty(\"user.home\");\n BinaryExporter export = BinaryExporter.getInstance();\n File file = new File(userHome + \"world.j3o\");\n try {\n export.save(this.testNode, file); \n } catch (IOException ex) {\n Logger.getLogger(mapDevAppState_2.class.getName()).log(Level.SEVERE, \"File write error\");\n }\n }",
"public static void valueToStorageDocument( Value value, String rootNodeName, Document document )\n\t{\n\t\tElement root = document.createElement( rootNodeName );\n\t\tdocument.appendChild( root );\n\t\t_valueToStorageDocument( value, root, document );\n\t}",
"public void writeKeysToFile(){\n if(d == null){\n calculateKeypair();\n }\n FileHandler fh = new FileHandler();\n fh.writeFile(sbPrivate.toString(), \"sk.txt\");\n fh.writeFile(sbPublic.toString(), \"pk.txt\");\n }",
"protected void saveKeys()\r\n {\r\n try\r\n {\r\n log.info(\"{0}: Saving keys to: {1}, key count: {2}\",\r\n () -> logCacheName, () -> fileName, keyHash::size);\r\n\r\n keyFile.reset();\r\n\r\n final HashMap<K, IndexedDiskElementDescriptor> keys = new HashMap<>(keyHash);\r\n if (!keys.isEmpty())\r\n {\r\n keyFile.writeObject(keys, 0);\r\n }\r\n\r\n log.info(\"{0}: Finished saving keys.\", logCacheName);\r\n }\r\n catch (final IOException e)\r\n {\r\n log.error(\"{0}: Problem storing keys.\", logCacheName, e);\r\n }\r\n }",
"private void salvarXML(){\r\n\t\tarquivo.setLista(listaDeUsuarios);\r\n\t\tarquivo.finalizarXML();\r\n\t}",
"public String exportXML() {\n\n\t\tXStream xstream = new XStream();\n\t\txstream.setMode(XStream.NO_REFERENCES);\n\n\t\treturn xstream.toXML(this);\n\t}",
"@Override\r\n\tpublic void saveMap() {\n\r\n\t}",
"private void saveMap() {\r\n new Thread(() -> {\r\n try {\r\n FileOutputStream f = new FileOutputStream(this.save_file);\r\n ObjectOutputStream S = new ObjectOutputStream(f);\r\n S.writeObject(this.music_map);\r\n S.close();\r\n f.close();\r\n if (!this.save_file.setLastModified(this.music_root.lastModified())) {\r\n throw new IllegalStateException(\"Impossibile aggiornare il file dizionario\");\r\n }\r\n } catch (IOException e) {\r\n e.printStackTrace();\r\n }\r\n }).start();\r\n }",
"void saveKeys() throws IOException;",
"public void saveToFile(Student entity) throws Exception{\n Document document = DocumentBuilderFactory\n .newInstance()\n .newDocumentBuilder()\n .parse(XMLfile);\n Element root = document.getDocumentElement();\n Element studentElement = document.createElement(\"student\");\n studentElement.setAttribute(\"serialNumber\",entity.getSerialNumber());\n root.appendChild(studentElement);\n\n appendChildWithText(document, studentElement, \"name\", entity.getName());\n appendChildWithText(document, studentElement, \"group\", String.valueOf(entity.getGroup()));\n appendChildWithText(document, studentElement, \"id\", entity.getId().toString());\n\n Transformer transformer =\n TransformerFactory.newInstance().newTransformer();\n transformer.transform(new DOMSource(root),\n new StreamResult(new FileOutputStream(\n XMLfile)));\n }",
"public String save() {\n\t\t\t try {\n\t\t\t\t File file = new File(CollectionFileScanner.getFileName());\n\t\t\t\t String fileName = CollectionFileScanner.getFileName();\n\t\t\t\t DocumentBuilderFactory factory = DocumentBuilderFactory.newInstance();\n\t\t\t\t DocumentBuilder builder = factory.newDocumentBuilder();\n\t\t\t\t Document document = builder.newDocument();\n\t\t\t\t Element tagCollections = document.createElement(\"Collections\");\n\t\t\t\t document.appendChild(tagCollections);\n\t\t\t\t for (Olders e : collectionsOlders) {\n\t\t\t\t\t if (e.getId() != 0) {\n\t\t\t\t\t\t Element tagOlders = document.createElement(\"Older\");\n\t\t\t\t\t\t Element nameOlder = document.createElement(\"Name\");\n\t\t\t\t\t\t Element tagID = document.createElement(\"ID\");\n\t\t\t\t\t\t Element tagDimension = document.createElement(\"Dimension\");\n\t\t\t\t\t\t Text iDText = document.createTextNode(new Long(e.getId()).toString());\n\t\t\t\t\t\t tagCollections.appendChild(tagOlders);\n\t\t\t\t\t\t tagOlders.appendChild(nameOlder);\n\t\t\t\t\t\t Text nameText = document.createTextNode(e.getName());\n\t\t\t\t\t\t nameOlder.appendChild(nameText);\n\t\t\t\t\t\t tagOlders.appendChild(tagID);\n\t\t\t\t\t\t tagID.appendChild(iDText);\n\t\t\t\t\t\t tagOlders.appendChild(tagDimension);\n\n\n\t\t\t\t\t }\n\t\t\t\t }\n\t\t\t\t DOMImplementation impl = document.getImplementation();\n\t\t\t\t DOMImplementationLS implLS = (DOMImplementationLS) impl.getFeature(\"LS\", \"3.0\");\n\t\t\t\t LSSerializer ser = implLS.createLSSerializer();\n\t\t\t\t ser.getDomConfig().setParameter(\"format-pretty-print\", true);\n\t\t\t\t String wellDone = ser.writeToString(document);\n\t\t\t\t LSOutput out = implLS.createLSOutput();\n\t\t\t\t out.setEncoding(\"UTF-8\");\n\t\t\t\t try {\n\t\t\t\t\t out.setByteStream(Files.newOutputStream(Paths.get(fileName)));\n\t\t\t\t } catch (IOException e1) {\n\t\t\t\t\t return \"Файл не найден или не доступен\";\n\t\t\t\t }\n\t\t\t\t try {\n\t\t\t\t\t ser.write(document, out);\n\t\t\t\t } catch (LSException l) {\n\n\t\t\t\t }\n\t\t\t\t return \"Коллекция успешно была сохранена!\";\n\t\t\t } catch (ParserConfigurationException e) {\n\t\t\t\t return \"Ошибка парсинга файла!\";\n\t\t\t }\n\t\t }"
] |
[
"0.66641533",
"0.6575477",
"0.64320964",
"0.6391639",
"0.62154317",
"0.6181588",
"0.61354995",
"0.61349404",
"0.61049426",
"0.6081931",
"0.60552824",
"0.59904784",
"0.59677994",
"0.5956568",
"0.5934605",
"0.5925948",
"0.5904335",
"0.58764285",
"0.5860872",
"0.5844484",
"0.58408964",
"0.5822018",
"0.58051145",
"0.5796781",
"0.5796781",
"0.5796781",
"0.5752509",
"0.5736634",
"0.5727261",
"0.5720097",
"0.5709815",
"0.56676435",
"0.56378824",
"0.5632526",
"0.56320804",
"0.561866",
"0.56128466",
"0.56116813",
"0.5583797",
"0.5580677",
"0.55725604",
"0.55725604",
"0.5559944",
"0.55438435",
"0.55403703",
"0.55309486",
"0.5528585",
"0.5517132",
"0.5502765",
"0.5478967",
"0.5475515",
"0.54616463",
"0.54552895",
"0.54500866",
"0.54495746",
"0.5444146",
"0.5428536",
"0.5420129",
"0.5416046",
"0.5411727",
"0.53988856",
"0.5387893",
"0.5380341",
"0.5376534",
"0.53744847",
"0.53735846",
"0.5360853",
"0.5358028",
"0.5333561",
"0.53302145",
"0.5323355",
"0.53135777",
"0.5310806",
"0.530884",
"0.5306679",
"0.5298054",
"0.5298054",
"0.5298054",
"0.52957135",
"0.5295519",
"0.5295213",
"0.5293778",
"0.5284701",
"0.5279672",
"0.5276346",
"0.5271669",
"0.5253217",
"0.5248951",
"0.5246754",
"0.5237701",
"0.52296376",
"0.5225998",
"0.52224994",
"0.5218236",
"0.52088994",
"0.5193265",
"0.5192685",
"0.51854175",
"0.516859",
"0.5166518"
] |
0.6395514
|
3
|
Saves the dictionary as an XML document and writes it to a file
|
public void saveAsXML(String fname) {
XMLUtil.writeXML(saveAsXML(), fname);
}
|
{
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
}
|
[
"public void saveDictionaryToFile() {\n\t\tdictionary.saveDictionary();\n\t}",
"private void xmlSave() {\r\n FileDialog fd = new FileDialog(new Frame(), \r\n \"Save as a jMusic XML file...\", \r\n FileDialog.SAVE);\r\n fd.show();\r\n if (fd.getFile() != null) {\r\n jm.util.Write.xml(score, fd.getDirectory() + fd.getFile());\r\n }\r\n }",
"public void writeToXML() throws IOException, XMLStreamException {\n FileOutputStream outPC = new FileOutputStream(\"C:\\\\Users\\\\Ruben Joosen\\\\Documents\\\\AntwerpenU\\\\Semester 5\\\\Distributed Systems\\\\ProjectY\\\\DS\\\\ProjectY\\\\map.xml\");\n FileOutputStream out = new FileOutputStream(\"/home/pi/Documents/DS/ProjectY/map.xml\"); // \"/home/pi/Documents/DS/ProjectY/map.xml\"\n\n XMLStreamWriter xsw = null;\n try {\n try {\n XMLOutputFactory xof = XMLOutputFactory.newInstance();\n xsw = xof.createXMLStreamWriter(out, \"UTF-8\");\n xsw.writeStartDocument(\"utf-8\", \"1.0\");\n xsw.writeStartElement(\"entries\");\n\n // Do the Collection\n for (Map.Entry<Integer, String> e : this.IPmap.entrySet()) {\n xsw.writeStartElement(\"entry\");\n xsw.writeAttribute(\"key\", e.getKey().toString());\n xsw.writeAttribute(\"value\", e.getValue().toString());\n xsw.writeEndElement();\n }\n xsw.writeEndElement();\n xsw.writeEndDocument();\n } finally {\n if (out != null) {\n try {\n out.close();\n } catch (IOException e) { /* ignore */ }\n }\n }// end inner finally\n } finally {\n if (xsw != null) {\n try {\n xsw.close();\n } catch (XMLStreamException e) { /* ignore */ }\n }\n }\n }",
"void save(XMLDocument document, XMLStreamWriter writer) throws XMLStreamException;",
"public void saveToFile(Map<String, T> data) throws IOException{\n\t\tOutputStream file = new FileOutputStream(filePath);\n OutputStream buffer = new BufferedOutputStream(file);\n ObjectOutput output = new ObjectOutputStream(buffer);\n\n // serialize the Map\n output.writeObject(data);\n output.close();\n\t}",
"public void savetoxml() throws FileNotFoundException, JAXBException {\n xml_methods.save(player);\n }",
"public void CreatFileXML(HashMap<String, List<Detail>> wordMap, String fileName ) throws ParserConfigurationException, TransformerException {\n\t\tDocumentBuilderFactory dbFactory = DocumentBuilderFactory.newInstance();\n\t\tDocumentBuilder dBuilder = dbFactory.newDocumentBuilder();\n\t\tDocument doc = dBuilder.newDocument();\n\t\t\n\t\t//root element\n\t\tElement rootElement = doc.createElement(\"Words\");\n\t\tdoc.appendChild(rootElement);\n\t\t\n\t\tSet<String> keyset = wordMap.keySet();\n\t\tfor(String key : keyset) {\n\t\t\t\n\t\t\t// Load List of detail from HashMap\n\t\t\tList<Detail> values = wordMap.get(key);\n\t\t\t\n\t\t\tfor (Detail detail : values) {\n\t\t\t\n\t\t\t\t//LexicalEntry element\n\t\t\t\tElement LexicalEntry = doc.createElement(\"LexicalEntry\");\n\t\t\t\trootElement.appendChild(LexicalEntry);\n\t\t\t\t\n\t\t\t\t//HeadWord element\n\t\t\t\tElement HeadWord = doc.createElement(\"HeadWord\");\n\t\t\t\tHeadWord.appendChild(doc.createTextNode(key));\n\t\t\t\tLexicalEntry.appendChild(HeadWord);\n\t\t\t\t\n\t\t\t\t//Detail element\n\t\t\t\tElement Detail = doc.createElement(\"Detail\");\n\t\t\t\t\n\t\t\t\t// WordType element\n\t\t\t\tElement WordType = doc.createElement(\"WordType\");\n\t\t\t\tWordType.appendChild(doc.createTextNode(detail.getTypeWord()));\n\t\t\t\t\n\t\t\t\t// CateWord element\n\t\t\t\tElement CateWord = doc.createElement(\"CateWord\");\n\t\t\t\tCateWord.appendChild(doc.createTextNode(detail.getCateWord()));\n\t\t\t\t\n\t\t\t\t// SubCateWord element\n\t\t\t\tElement SubCateWord = doc.createElement(\"SubCateWord\");\n\t\t\t\tSubCateWord.appendChild(doc.createTextNode(detail.getSubCateWord()));\n\t\t\t\t\n\t\t\t\t// VerbPattern element\n\t\t\t\tElement VerbPattern = doc.createElement(\"VerbPattern\");\n\t\t\t\tVerbPattern.appendChild(doc.createTextNode(detail.getVerbPattern()));\n\t\t\t\t\n\t\t\t\t// CateMean element\n\t\t\t\tElement CateMean = doc.createElement(\"CateMean\");\n\t\t\t\tCateMean.appendChild(doc.createTextNode(detail.getCateMean()));\n\t\t\t\t\n\t\t\t\t// Definition element\n\t\t\t\tElement Definition = doc.createElement(\"Definition\");\n\t\t\t\tDefinition.appendChild(doc.createTextNode(detail.getDefinition()));\n\t\t\t\t\n\t\t\t\t// Example element\n\t\t\t\tElement Example = doc.createElement(\"Example\");\n\t\t\t\tExample.appendChild(doc.createTextNode(detail.getExample()));\n\t\t\t\t\n\t\t\t\t// Put in Detail Element\n\t\t\t\tDetail.appendChild(WordType);\n\t\t\t\tDetail.appendChild(CateWord);\n\t\t\t\tDetail.appendChild(SubCateWord);\n\t\t\t\tDetail.appendChild(VerbPattern);\n\t\t\t\tDetail.appendChild(CateMean);\n\t\t\t\tDetail.appendChild(Definition);\n\t\t\t\tDetail.appendChild(Example);\n\t\t\t\t\n\t\t\t\t// Add Detail into LexicalEntry\n\t\t\t\tLexicalEntry.appendChild(Detail);\n\t\t\t}\n\t\t}\n\t\t\n\t\t// write the content into xml file\n\t\tTransformerFactory tfmFactory = TransformerFactory.newInstance();\n\t\tTransformer transformer = tfmFactory.newTransformer();\n\t\tDOMSource source = new DOMSource(doc);\n\t\tStreamResult result = new StreamResult(new File(\"F://GitHUB/ReadXML/data/\" + fileName));\n\t\ttransformer.transform(source, result);\n\t\t\n//\t\t// output testing\n//\t\tStreamResult consoleResult = new StreamResult(System.out);\n// transformer.transform(source, consoleResult);\n\t}",
"public void saveMapping() {\n String userHome = System.getProperty(\"user.home\");\n String filePath = userHome + \"/\"+ System.currentTimeMillis() +\"-mapping.xml\";\n XMLExporter exporter = XMLExporter.getInstance();\n File file = new File(filePath);\n try {\n exporter.save(mappings, file);\n Logger.getLogger(MappingAppState.class.getName()).log(Level.INFO, \"Mapping saved as {0}\", filePath);\n } catch (IOException ex) {\n Logger.getLogger(MappingAppState.class.getName()).log(Level.SEVERE, \"Failed to save node!\", ex);\n }\n }",
"public void writeToFile() {\n\t\ttry {\n\t\t\tFileOutputStream file = new FileOutputStream(pathName);\n\t\t\tObjectOutputStream output = new ObjectOutputStream(file);\n\n\t\t\tMap<String, HashSet<String>> toSerialize = tagToImg;\n\t\t\toutput.writeObject(toSerialize);\n\t\t\toutput.close();\n\t\t\tfile.close();\n\t\t} catch (IOException e) {\n\t\t\te.printStackTrace();\n\t\t} catch (Exception e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t}",
"public void writeXML() throws IOException {\n OutputFormat format = OutputFormat.createPrettyPrint();//th format of xml file\n XMLWriter xmlWriter =new XMLWriter( new FileOutputStream(file), format);\n xmlWriter.write(document);//write the new xml into the file\n xmlWriter.flush();\n }",
"public void save(File f) {\n\t\tif (f.exists()) {\r\n\t\t\tString filename = f.getName();\r\n\t\t\tString backName;\r\n\t\t\tif (filename.contains(\".\")) {\r\n\t\t\t\tbackName = filename.substring(0,filename.lastIndexOf('.'));\r\n\t\t\t\tbackName += \"_backup\";\r\n\t\t\t\tbackName += filename.substring(filename.lastIndexOf('.'));\r\n\t\t\t} else {\r\n\t\t\t\tbackName = filename + \"_backup\";\r\n\t\t\t}\r\n\t\t\tFile back = new File(f.getParent(),backName);\r\n\t\t\tSystem.out.println(\"Writing backup to: \"+back.getAbsolutePath());\r\n\t\t\tif (back.exists()) back.delete();\r\n\t\t\tFile newF = f;\r\n\t\t\tf.renameTo(back);\r\n\t\t\tf = newF;\r\n\t\t}\r\n\r\n\t\tFileOutputStream outputStream = null;\r\n\t\ttry {\r\n\t\t\tDocument doc = DocumentBuilderFactory.newInstance().newDocumentBuilder().newDocument();\r\n//\t\t\tb.append(\"<Map xmlns:xsi=\\\"http://www.w3.org/2001/XMLSchema-instance\\\" xsi:noNamespaceSchemaLocation=\\\"map.xsd\\\">\");\r\n//\t\t\tProcessingInstruction pi = doc.createProcessingInstruction(\"xml-stylesheet\", \"type=\\\"text/xsl\\\" href=\\\"/assistantdm/static/CharacterSheetTemplate.xsl\\\"\");\r\n//\t\t\tdoc.appendChild(pi);\r\n\t\t\tXMLMapExporter processor = new XMLMapExporter(doc);\r\n\t\t\tmapPanel.executeProcess(processor);\r\n\t\t\tdoc.setXmlStandalone(true);\r\n\r\n\t\t\tTransformer trans = TransformerFactory.newInstance().newTransformer();\r\n\t\t\ttrans.setOutputProperty(OutputKeys.INDENT, \"yes\");\r\n\t\t\ttrans.setOutputProperty(OutputKeys.ENCODING, \"UTF-8\");\r\n\t\t\ttrans.setOutputProperty(\"{http://xml.apache.org/xslt}indent-amount\", \"4\");\r\n\t\t\toutputStream = new FileOutputStream(f);\r\n\t\t\ttrans.transform(new DOMSource(doc), new StreamResult(outputStream));\r\n\t\t\tmapPanel.modified = false;\r\n\t\t} catch (Exception ex) {\r\n\t\t\tex.printStackTrace();\r\n\t\t} finally {\r\n\t\t\tif (outputStream != null) {\r\n\t\t\t\ttry {\r\n\t\t\t\t\toutputStream.close();\r\n\t\t\t\t} catch (IOException e1) {\r\n\t\t\t\t\te1.printStackTrace();\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t}",
"public void saveDictionary() throws IOException {\r\n\t\tif (modified) {\r\n\t\t\tSystem.out.println(\"Saving...\");\r\n\t\t}\r\n\t\telse {\r\n\t\t\tSystem.out.println(\"Saving un-changed dictionary...\");\r\n\t\t}\r\n\t\ttry {\r\n\t\t\tFileWriter fw = new FileWriter(\"dictionary.txt\", false);\r\n\t\t\tBufferedWriter bw = new BufferedWriter(fw);\r\n\t\t\tObject[] dictionaryArray = dictionary.toArray();\r\n\t\t\tfor (int i = 0; i < dictionary.size(); i++) {\r\n\t\t\t\tString word = (String)dictionaryArray[i];\r\n\t\t\t\tSystem.out.println(word);\r\n\t\t\t\tbw.write(word);\r\n\t\t\t\tbw.newLine();\r\n\t\t\t}\r\n\t\t\tbw.close();\r\n\t\t\tmodified = false;\r\n\t\t}\r\n\t\tcatch (IOException e) {\r\n\t\t\tSystem.out.println(\"An error occurred while attempting to save the dictionary.\");\r\n\t\t\tSystem.out.println(e.getMessage());\r\n\t\t}\r\n\t}",
"private void writeXmlFile( Document doc, String file_path ) {\r\n\r\n\t\ttry {\r\n\t\t\t\r\n\t\t\tTransformerFactory tf = TransformerFactory.newInstance();\r\n\t\t\tTransformer transformer = tf.newTransformer();\r\n\t\t\tDOMSource source \t\t= new DOMSource( doc );\r\n\t\t\tStreamResult result \t= new StreamResult( new File( file_path ));\r\n\t\t\t\r\n\t\t\t// Output to console for testing\r\n\t\t\t// StreamResult result = new StreamResult(System.out);\r\n\r\n\t\t\ttransformer.transform( source, result );\r\n\t\t\tSystem.out.println( \"File saved!\" );\r\n\r\n\r\n\t\t} catch ( TransformerException e ) {\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t}",
"private XmlElement toXmlDict(Map<String, Object> map)\n {\n XmlElement dict = new XmlElement(\"dict\");\n for (Map.Entry<String, Object> entry : map.entrySet())\n {\n dict.add(new XmlElement(\"key\", entry.getKey()));\n dict.add(objectToXml(entry.getValue()));\n }\n return dict;\n }",
"public void save() {\n int hour = Calendar.getInstance().get(Calendar.HOUR_OF_DAY);\r\n int minute = Calendar.getInstance().get(Calendar.MINUTE);\r\n\r\n // Hierarchie: 2010/04/05/01_05042010_00002.xml\r\n File dir = getOutputDir();\r\n File f = new File(dir, getCode().replace(' ', '_') + \".xml\");\r\n Element topLevel = new Element(\"ticket\");\r\n topLevel.setAttribute(new Attribute(\"code\", this.getCode()));\r\n topLevel.setAttribute(\"hour\", String.valueOf(hour));\r\n topLevel.setAttribute(\"minute\", String.valueOf(minute));\r\n // Articles\r\n for (Pair<Article, Integer> item : this.items) {\r\n Element e = new Element(\"article\");\r\n e.setAttribute(\"qte\", String.valueOf(item.getSecond()));\r\n // Prix unitaire\r\n e.setAttribute(\"prix\", String.valueOf(item.getFirst().getPriceInCents()));\r\n e.setAttribute(\"prixHT\", String.valueOf(item.getFirst().getPriceHTInCents()));\r\n e.setAttribute(\"idTaxe\", String.valueOf(item.getFirst().getIdTaxe()));\r\n e.setAttribute(\"categorie\", item.getFirst().getCategorie().getName());\r\n e.setAttribute(\"codebarre\", item.getFirst().getCode());\r\n e.setText(item.getFirst().getName());\r\n topLevel.addContent(e);\r\n }\r\n // Paiements\r\n for (Paiement paiement : this.paiements) {\r\n final int montantInCents = paiement.getMontantInCents();\r\n if (montantInCents > 0) {\r\n final Element e = new Element(\"paiement\");\r\n String type = \"\";\r\n if (paiement.getType() == Paiement.CB) {\r\n type = \"CB\";\r\n } else if (paiement.getType() == Paiement.CHEQUE) {\r\n type = \"CHEQUE\";\r\n } else if (paiement.getType() == Paiement.ESPECES) {\r\n type = \"ESPECES\";\r\n }\r\n e.setAttribute(\"type\", type);\r\n e.setAttribute(\"montant\", String.valueOf(montantInCents));\r\n topLevel.addContent(e);\r\n }\r\n\r\n }\r\n try {\r\n final XMLOutputter out = new XMLOutputter(Format.getPrettyFormat());\r\n out.output(topLevel, new FileOutputStream(f));\r\n } catch (IOException e) {\r\n e.printStackTrace();\r\n }\r\n\r\n }",
"public void saveData(){\n try{\n DocumentBuilderFactory documentBuilderFactory = DocumentBuilderFactory.newInstance();\n DocumentBuilder documentBuilder = documentBuilderFactory.newDocumentBuilder();\n Document document = documentBuilder.newDocument();\n\n Element rootElement = document.createElement(\"departments\");\n document.appendChild(rootElement);\n for (Department department : entities){\n Element dep = document.createElement(\"department\");\n rootElement.appendChild(dep);\n\n dep.setAttribute(\"id\", department.getId().toString());\n dep.appendChild(createElementFromDepartment(\n document, \"name\", department.getName()));\n dep.appendChild(createElementFromDepartment(\n document, \"numberOfPlaces\", department.getNumberOfPlaces().toString()));\n }\n\n DOMSource domSource = new DOMSource(document);\n StreamResult streamResult = new StreamResult(fileName);\n TransformerFactory transformerFactory = TransformerFactory.newInstance();\n Transformer transformer = transformerFactory.newTransformer();\n transformer.transform(domSource, streamResult);\n\n } catch (ParserConfigurationException | TransformerException e) {\n e.printStackTrace();\n }\n }",
"public void saveDocument() throws IOException;",
"public static void save() {\n Game.save(UI.askNgetString(\"Filename for this save file?\")+\".xml\");\n }",
"private void writeToDictionary() throws IOException {\n\n File file = new File(filePathDictionaryAuto);\n\n if (file.delete()) {\n file.createNewFile();\n Enumeration e = dictionaryTerms.keys();\n while (e.hasMoreElements()) {\n String word = (String) e.nextElement();\n if (word.length() != 1) {\n writePrintStream(dictionaryTerms.get(word) + \" \" + word, filePathDictionaryAuto);\n }\n }\n } else {\n System.out.println(\"Error in dictionary file\");\n }\n System.out.println(\"Dictionary updated\");\n\n }",
"private void save() throws FileNotFoundException {\n\t\tm.write(new FileOutputStream(OUTPUT), \"RDF/XML\");\n\t}",
"public void save() {\n JAXB.marshal(this, new File(fileName));\n }",
"public void writeToGameFile(String fileName) {\n\n try {\n DocumentBuilderFactory docFactory = DocumentBuilderFactory.newInstance();\n DocumentBuilder docBuilder = docFactory.newDocumentBuilder();\n Document doc = docBuilder.newDocument();\n Element rootElement = doc.createElement(\"Sifeb\");\n doc.appendChild(rootElement);\n Element game = doc.createElement(\"Game\");\n rootElement.appendChild(game);\n\n Element id = doc.createElement(\"Id\");\n id.appendChild(doc.createTextNode(\"001\"));\n game.appendChild(id);\n Element stories = doc.createElement(\"Stories\");\n game.appendChild(stories);\n\n for (int i = 1; i < 10; i++) {\n Element cap1 = doc.createElement(\"story\");\n Element image = doc.createElement(\"Image\");\n image.appendChild(doc.createTextNode(\"Mwheels\"));\n Element text = doc.createElement(\"Text\");\n text.appendChild(doc.createTextNode(\"STEP \" + i + \":\\nLorem ipsum dolor sit amet, consectetur adipiscing elit. Donec eu.\"));\n cap1.appendChild(image);\n cap1.appendChild(text);\n stories.appendChild(cap1);\n }\n\n TransformerFactory transformerFactory = TransformerFactory.newInstance();\n Transformer transformer = transformerFactory.newTransformer();\n DOMSource source = new DOMSource(doc);\n File file = new File(SifebUtil.GAME_FILE_DIR + fileName + \".xml\");\n StreamResult result = new StreamResult(file);\n transformer.transform(source, result);\n\n System.out.println(\"File saved!\");\n\n } catch (ParserConfigurationException | TransformerException pce) {\n pce.printStackTrace();\n }\n\n }",
"public void save(String filename) throws IOException {\r\n String newline = System.getProperty(\"line.separator\");\r\n FileWriter out = new FileWriter(filename);\r\n Enumeration e = keyvaluepairs.keys();\r\n while (e.hasMoreElements()) {\r\n String key = (String) e.nextElement();\r\n out.write(key + \"=\" + (String) keyvaluepairs.get(key) + newline);\r\n }\r\n out.close();\r\n }",
"public static void save() {\n\t\tif (!init)\n\t\t\tinit();\n\n\t\tDocument xmlDocument = DocumentHelper.createDocument();\n\n\t\tElement root = xmlDocument.addElement(\"protocolstore\");\n\n\t\tint id = 1;\n\n\t\tfor (ProtocolDescriptor td : installedAddons) {\n\t\t\tif (!td.storable) {\n\t\t\t\tcontinue;\n\t\t\t}\n\n\t\t\tElement protocol = root.addElement(\"protocol\");\n\t\t\tprotocol.addAttribute(\"id\", \"\" + (id++));\n\t\t\tprotocol.addAttribute(\"file\", td.getFile().getName());\n\n\t\t\ttd.saveDescriptor();\n\t\t}\n\n\t\ttry {\n\t\t\tOutputFormat format = OutputFormat.createPrettyPrint();\n\n\t\t\tif (!Key.KEY_PROTOCOLSTORE_FILE.exists()) {\n\t\t\t\tKey.KEY_PROTOCOLSTORE_FILE.getParentFile().mkdirs();\n\t\t\t\tKey.KEY_PROTOCOLSTORE_FILE.createNewFile();\n\t\t\t}\n\n\t\t\tXMLWriter writer = new XMLWriter(new FileWriter(\n\t\t\t\t\tKey.KEY_PROTOCOLSTORE_FILE), format);\n\t\t\twriter.write(xmlDocument);\n\t\t\twriter.close();\n\t\t} catch (IOException ex) {\n\t\t\tex.printStackTrace();\n\t\t}\n\t}",
"public static void saveDocument( Document doc, String path ) {\n\t\ttry {\n\t\t\tFormat format = Format.getPrettyFormat();\n\t\t\tXMLOutputter fmt = new XMLOutputter( format );\n\t\t\tFile file = new File( path );\n\t\t\tOutputStream stream = new FileOutputStream( file );\n\t\t\tfmt.output( doc, stream );\n\t\t} catch (FileNotFoundException e) {\n\t\t\tthrow new RuntimeException( \"No se encontro el archivo: \" + path, e );\n\t\t} catch (IOException e) {\n\t\t\tthrow new RuntimeException( \"Error al guardar el archivo: \" + path, e );\n\t\t}\n\t}",
"void save() throws IOException, ParserConfigurationException, TransformerConfigurationException;",
"void saveToFile() {\n\t\ttry {\n\t\t\tFile directory = GameApplication.getInstance().getExternalFilesDir(Environment.DIRECTORY_DOCUMENTS);\n\t\t\tFile target = new File(directory, FILE_NAME);\n\t\t\tif (!target.exists()) {\n\t\t\t\ttarget.createNewFile();\n\t\t\t}\n\t\t\tJsonWriter writer = new JsonWriter(new FileWriter(target));\n\t\t\twriter.setIndent(\" \");\n\t\t\twriter.beginArray();\n\t\t\tfor (Scoreboard scoreboard : scoreboards.values()) {\n\t\t\t\twriteScoreboard(writer, scoreboard);\n\t\t\t}\n\t\t\twriter.endArray();\n\t\t\twriter.flush();\n\t\t\twriter.close();\n\t\t} catch (IOException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t}",
"public Document saveAsXML() {\n\tDocument xmldoc= new DocumentImpl();\n\tElement root = createFeaturesElement(xmldoc);\n\txmldoc.appendChild(root);\n\treturn xmldoc;\n }",
"public void dictionaryExportToFile(String path) throws IOException {\n FileWriter fw = new FileWriter(path);\n TreeMap<String, ArrayList<String>> wordList = dictionary.getWordList();\n\n int count = 0;\n\n for (Map.Entry<String, ArrayList<String>> entry : wordList.entrySet()) {\n fw.write(++count + \") \" + entry.getKey() + \"\\n\");\n for (String str : entry.getValue()) {\n fw.write(\" \" + str + \"\\n\");\n }\n }\n\n fw.close();\n }",
"private void writeMapToFile() {\r\n\t\ttry {\r\n\t\t\tString dm = gson.toJson(daoMap);// gson.toJson(entity);\r\n\t\t\tFileWriter fileWriter = new FileWriter(path);\r\n\t\t\t\r\n\t\t\tfileWriter.write(dm);\r\n\t\t\tfileWriter.close();\r\n\t\t} catch (Exception e) {\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t}",
"public void writeToXmlFile(String xmlFile, Constraint constraint) {\n\t\tDocument xmlDocument = XmlDocument.newDocument();\n\t\t\n\t\tElement rootElement = xmlDocument.createElement(XML_ROOT);\n\t\trootElement.setAttribute(XML_NUM_ATTRS, \"2\");\n\t\trootElement.setAttribute(XML_ATTR + \"1\", XML_INFO1);\n\t\trootElement.setAttribute(XML_ATTR + \"2\", XML_INFO2);\n\t\txmlDocument.appendChild(rootElement);\n\t\t\n\t\tCollections.sort(nameValuePairs, SortNameValuePairByName.inst);\n\t\t\n\t\tfor (NameValuePair pair : nameValuePairs) {\n\t\t\tElement element = createXmlElementForNameValuePair(pair.getName(), pair.getValue(), xmlDocument, constraint);\n\t\t\tif (element != null)\n\t\t\t\trootElement.appendChild(element);\n\t\t}\n\t\t\n\t\tXmlDocument.writeXmlDocumentToFile(xmlDocument, xmlFile);\n\t}",
"public static String map2XmlStr(Map<String, String> map) {\r\n Document document = DocumentHelper.createDocument();\r\n Element nodeElement = document.addElement(\"xml\");\r\n for (String obj : map.keySet()) {\r\n Element keyElement = nodeElement.addElement(obj);\r\n keyElement.setText(map.get(obj));\r\n }\r\n return document.getRootElement().asXML();\r\n// return doc2String(document);\r\n }",
"public static void save()\n\t{\n writeMap();\n\t}",
"public void persist() {\n\t\ttry {\n\t\t\tFileOutputStream fos = this._context.openFileOutput(\n\t\t\t\t\tConstants.CATALOG_XML_FILE_NAME, Context.MODE_PRIVATE);\n\t\t\tfos.write(\"<?xml version=\\\"1.0\\\" encoding=\\\"UTF-8\\\" ?>\\n\".getBytes());\n\t\t\tfos.write(\"<orders>\\n\".getBytes());\n\t\t\tfor (int i = 0; i < getOrderEntryCount(); i++) {\n\t\t\t\tOrderEntry oe = getOrderEntry(i);\n\t\t\t\tfos.write(oe.toXMLString().getBytes());\n\t\t\t}\n\t\t\tfos.write(\"</orders>\\n\".getBytes());\n\t\t\tfos.flush();\n\t\t\tfos.close();\n\t\t}\n\t\tcatch (Exception e) {\n\t\t\tLog.d(Constants.LOGTAG, \" \" + OrderList.CLASSTAG\n\t\t\t\t\t+ \"Failed to write out file?\" + e.getMessage());\n\t\t}\n\t}",
"public static void saveMapEditor(MapEditor editor, String fileName) throws PersistenceException {\n try {\n\n // setup: create a save file and a JAXB Marshaller for the class\n File saveFile = new File(fileName);\n JAXBContext editorContext = JAXBContext.newInstance(MapEditor.class);\n Marshaller editorMarshaller = editorContext.createMarshaller();\n editorMarshaller.setProperty(Marshaller.JAXB_FORMATTED_OUTPUT, true);\n\n // convert the java object to XML\n editorMarshaller.marshal(editor, saveFile);\n\n } catch (JAXBException e) {\n throw new PersistenceException(\"Failed to save the MapEditor file. \\n\", e);\n }\n }",
"public void exportDictionary() \r\n\t{\t\r\n\t\tInputStream is = this.getClass().getResourceAsStream(\"/dictionary.sqlite\");\t\t\r\n\t\tOutputStream os = null;\r\n\r\n\t\ttry\r\n\t\t{\r\n\t\t\tos = new FileOutputStream(fDictionaryFile());\r\n\t\t\tbyte[] buffer = new byte[1024];\r\n\t\t\tint length;\r\n\t\t\t\r\n\t\t\t//copy the file content in bytes \r\n\t\t\twhile ((length = is.read(buffer)) > 0) \r\n\t\t\t{\r\n\t\t\t\tos.write(buffer, 0, length);\r\n\t\t\t}\r\n\r\n\t\t\tis.close();\r\n\t\t\tos.close();\r\n\r\n\t\t\tSystem.out.println(\"/* Dictionary export successful! */\");\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}",
"public abstract void saveLocationXml(Location location);",
"public static void saveMap(String filePath, int dimension_x, int dimension_y, Map<Integer[], Integer> obstacles) throws IOException {\n\t\t//Enregistrement du fond de carte sous forme de fichier XML\n\t\t/*\n\t\t * <world>\n\t\t * \t<size_x>10</size_x>\n\t\t * \t<size_y>15</size_y>\n\t\t * \t<obstacles>\n\t\t * \t\t<obstacle>\n\t\t * \t\t\t<pos_x></pos_x>\n\t\t * \t\t\t<pos_y></pos_y>\n\t\t * \t\t<level></level>\n\t\t * \t\t</obstacle>\n\t\t * \t</obstacles>\n\t\t * (...)\n\t\t * </world>\n\t\t */\n\t\tElement map = new Element(\"map\");\n\t\tDocument doc = new Document(map);\n\n\t\tmap.addContent(new Element(\"size_x\").setText(Integer.toString(dimension_x)));\n\t\tmap.addContent(new Element(\"size_y\").setText(Integer.toString(dimension_y)));\n\t\tElement obstaclesXML = new Element(\"obstacles\");\n\t\tmap.addContent(obstaclesXML);\n\n\t\tfor(Integer[] key : obstacles.keySet()) {\n\t\t\tElement obstacle = new Element(\"obstacle\");\n\t\t\tobstacle.addContent(new Element(\"pos_x\").setText(Integer.toString(key[0])));\n\t\t\tobstacle.addContent(new Element(\"pos_y\").setText(Integer.toString(key[1])));\n\t\t\tobstacle.addContent(new Element(\"level\").setText(Integer.toString(obstacles.get(key))));\n\t\t\tobstaclesXML.addContent(obstacle);\n\t\t}\n\n\t\tXMLOutputter xmlOutput = new XMLOutputter();\n\t\txmlOutput.setFormat(Format.getPrettyFormat());\n\t\txmlOutput.output(doc, new FileWriter(filePath));\n\t}",
"void save(String fileName) throws IOException, TransformerConfigurationException, ParserConfigurationException;",
"public static void saveDocument(Document doc, File file) throws Exception {\r\n if (doc == null || file == null)\r\n return;\r\n\r\n TransformerFactory tFactory = TransformerFactory.newInstance();\r\n Transformer transformer = tFactory.newTransformer();\r\n\r\n transformer.setOutputProperty(OutputKeys.INDENT, \"yes\");\r\n transformer.setOutputProperty(\r\n \"{http://xml.apache.org/xslt}indent-amount\", \"2\");\r\n\r\n DOMSource source = new DOMSource(doc);\r\n StreamResult result = new StreamResult(file);\r\n transformer.transform(source, result);\r\n }",
"@Override\n\tpublic void write() {\n\t\tSystem.out.println(\"使用xml方式存储\");\n\t}",
"private static void writeFile(Document document, File file) throws TransformerException, IOException {\n Transformer tr = TransformerFactory.newInstance().newTransformer();\n\n tr.setOutputProperty(OutputKeys.ENCODING, \"UTF-8\");\n tr.setOutputProperty(OutputKeys.INDENT, \"yes\");\n\n document.setXmlStandalone(true);\n\n DOMSource source = new DOMSource(document);\n FileOutputStream fos = new FileOutputStream(file);\n StreamResult result = new StreamResult(fos);\n tr.transform(source, result);\n fos.close();\n }",
"public void writeKeysToFile(){\n if(d == null){\n calculateKeypair();\n }\n FileHandler fh = new FileHandler();\n fh.writeFile(sbPrivate.toString(), \"sk.txt\");\n fh.writeFile(sbPublic.toString(), \"pk.txt\");\n }",
"public static void writeSave(String filepath, ISaveConfiguration scores) {\n try {\n Element root = Writer.buildDocumentWithRoot(DATA_TYPE);\n Document document = root.getOwnerDocument();\n\n addSaves(document, root, scores);\n\n Writer.writeOutput(document, filepath);\n } catch (TransformerException e) {\n throw new XMLException(e, Factory.UNKNOWN_ERROR);\n }\n }",
"public void fileSaved(OpenDefinitionsDocument doc) { }",
"public void fileSaved(OpenDefinitionsDocument doc) { }",
"public void saveMap() {\n this.scanMap();\n String userHome = System.getProperty(\"user.home\");\n BinaryExporter export = BinaryExporter.getInstance();\n File file = new File(userHome + \"world.j3o\");\n try {\n export.save(this.testNode, file); \n } catch (IOException ex) {\n Logger.getLogger(mapDevAppState_2.class.getName()).log(Level.SEVERE, \"File write error\");\n }\n }",
"public void writeObsTU(Hashtable<Integer, Hashtable<Integer, String>> obsTable, String dstPath) {\n\n\t\ttry {\n\n\t\t\tDocumentBuilderFactory docFactory = DocumentBuilderFactory.newInstance();\n\t\t\tDocumentBuilder docBuilder = docFactory.newDocumentBuilder();\n\n\t\t\t// root elements\n\t\t\tDocument doc = docBuilder.newDocument();\n\t\t\tElement rootElement = doc.createElement(\"observation\");\n\t\t\tdoc.appendChild(rootElement);\n\n\t\t\tfor (Map.Entry<Integer, Hashtable<Integer, String>> entrySet : obsTable.entrySet()) {\n\t\t\t\tInteger userID = entrySet.getKey();\n\t\t\t\tElement dayElement = doc.createElement(\"week_day\");\n\t\t\t\trootElement.appendChild(dayElement);\n\n\t\t\t\t// set attribute to staff element\n\t\t\t\tAttr attr = doc.createAttribute(\"id\");\n\t\t\t\tattr.setValue(String.valueOf(userID));\n\t\t\t\tdayElement.setAttributeNode(attr);\n\t\t\t\t// System.out.println(pKey);\n\t\t\t\tHashtable<Integer, String> value = entrySet.getValue();\n\t\t\t\tfor (Map.Entry<Integer, String> entrySet1 : value.entrySet()) {\n\t\t\t\t\tInteger weekDay = entrySet1.getKey();\n\t\t\t\t\tString obs = entrySet1.getValue();\n\n\t\t\t\t\tElement usrSeqElement = doc.createElement(\"user\");\n\t\t\t\t\tdayElement.appendChild(usrSeqElement);\n\n\t\t\t\t\t// set attribute to staff element\n\t\t\t\t\tattr = doc.createAttribute(\"id\");\n\t\t\t\t\tattr.setValue(String.valueOf(weekDay));\n\t\t\t\t\tusrSeqElement.setAttributeNode(attr);\n\n\t\t\t\t\tattr = doc.createAttribute(\"seq\");\n\t\t\t\t\t// attr.setValue(formatter.format(probability));\n\t\t\t\t\tattr.setValue(obs);\n\t\t\t\t\tusrSeqElement.setAttributeNode(attr);\n\n\t\t\t\t}\n\n\t\t\t}\n\n\t\t\t// write the content into xml file\n\t\t\tTransformerFactory transformerFactory = TransformerFactory.newInstance();\n\t\t\tTransformer transformer = transformerFactory.newTransformer();\n\t\t\tDOMSource source = new DOMSource(doc);\n\t\t\tStreamResult result = new StreamResult(new File(dstPath));\n\n\t\t\t// Output to console for testing\n\t\t\t// StreamResult result = new StreamResult(System.out);\n\t\t\ttransformer.transform(source, result);\n\n\t\t\tSystem.out.println(\"File saved!\");\n\n\t\t} catch (ParserConfigurationException | TransformerException pce) {\n\t\t}\n\t}",
"void saveMap(Escenario esc,File f) throws Exception {\n\t\tthis.itfPersistenciaMRS.escenarioToXML(esc, f);\n\t}",
"public File makeXML(String key, int layerID, String value1, String time1, int totalCopies1, int copyNum1, boolean timerType1, String userId, String time, Certificate cert) {\n\n try {\n\n DocumentBuilderFactory documentFactory = DocumentBuilderFactory.newInstance();\n\n DocumentBuilder documentBuilder = documentFactory.newDocumentBuilder();\n\n Document document = documentBuilder.newDocument();\n\n Element key1 = document.createElement(\"Search_Result_for\" + key);\n document.appendChild(key1);\n key1.setAttribute(\"Key\", key);\n\n Element layerid = document.createElement(\"layerid\");\n\n key1.appendChild(layerid);\n layerid.setAttribute(\"Id\", String.valueOf(layerID));\n\n Element Value = document.createElement(\"Value\");\n Value.appendChild(document.createTextNode(value1));\n layerid.appendChild(Value);\n\n Element timer = document.createElement(\"timer\");\n timer.appendChild(document.createTextNode(String.valueOf(time1)));\n layerid.appendChild(timer);\n\n Element totcopies = document.createElement(\"totcopies\");\n totcopies.appendChild(document.createTextNode(String.valueOf(totalCopies1)));\n layerid.appendChild(totcopies);\n\n Element copynum = document.createElement(\"copynum\");\n copynum.appendChild(document.createTextNode(String.valueOf(copyNum1)));\n layerid.appendChild(copynum);\n\n Element timertype = document.createElement(\"timertype\");\n timertype.appendChild(document.createTextNode(String.valueOf(timerType1)));\n layerid.appendChild(timertype);\n\n Element userid = document.createElement(\"userid\");\n userid.appendChild(document.createTextNode(userId));\n layerid.appendChild(userid);\n\n Element time2 = document.createElement(\"time\");\n time2.appendChild(document.createTextNode(String.valueOf(time1)));\n layerid.appendChild(time2);\n\n /*Element cert1 = document.createElement(\"cert\");\n cert1.appendChild(document.createTextNode(String.valueOf(cert)));\n layerid.appendChild((Node) cert);*/\n\n // create the xml file\n //transform the DOM Object to an XML File\n TransformerFactory transformerFactory = TransformerFactory.newInstance();\n Transformer transformer = transformerFactory.newTransformer();\n DOMSource domSource = new DOMSource(document);\n StreamResult streamResult = new StreamResult(new File(layerID + \"_Search Result for \" + key + \".xml\"));\n\n transformer.transform(domSource, streamResult);\n\n System.out.println(\"Done creating XML File\");\n\n } catch (ParserConfigurationException pce) {\n pce.printStackTrace();\n } catch (TransformerException tfe) {\n tfe.printStackTrace();\n }\n\n File file = new File(layerID + \"_Search Result for \" + key + \".xml\");\n return file;\n }",
"public static void save(Game game, String filename) {\n\t\ttry {\n\t\t\t/*\n\t\t\t * Setting up the xml writer\n\t\t\t */\n\t\t\t StringWriter stringWriter = new StringWriter();\n\n\t XMLOutputFactory xMLOutputFactory = XMLOutputFactory.newInstance();\n\t XMLStreamWriter xMLStreamWriter = xMLOutputFactory.createXMLStreamWriter(stringWriter);\n\n\t //Game node\n\t xMLStreamWriter.writeStartDocument();\n\t xMLStreamWriter.writeStartElement(\"Game\");\n\n\t\t\tWorld world = game.getWorld();\n\n\t\t\txMLStreamWriter.writeStartElement(\"TorchLight\");\n\t\t\txMLStreamWriter.writeCharacters(game.getTorchLight()+\"\");\n\t\t\txMLStreamWriter.writeEndElement();\n\n\t\t\t//World node\n\t\t\txMLStreamWriter.writeStartElement(\"World\");\n\n\t\t\t/*\n\t\t\t * Writing the dimensions of the game (i.e its width and height)\n\t\t\t */\n\t\t\twriteWorldDimension(xMLStreamWriter, world);\n\n\t\t\t/*\n\t\t\t * Writing the content of every room in the game\n\t\t\t */\n\t\t\tfor(int row = 0; row < world.getHeight(); row++) {\n\t\t\t\tfor(int col = 0; col < world.getWidth(); col++) {\n\t\t\t\t\twriteRoom(xMLStreamWriter, world, row, col);\n\t\t\t\t}\n\t\t\t}\n\n\t\t\t/*\n\t\t\t * Closing the tags\n\t\t\t */\n\t xMLStreamWriter.writeEndElement();\n\t xMLStreamWriter.writeEndElement();\n\n\t xMLStreamWriter.writeEndDocument();\n\n\t xMLStreamWriter.flush();\n\t xMLStreamWriter.close();\n\n\t String xmlString = stringWriter.getBuffer().toString();\n\n\t stringWriter.close();\n\t /*\n\t * Writing the content of the game in xml format\n\t */\n\t try (PrintStream out = new PrintStream(new FileOutputStream(filename))) {\n\t \t out.print(xmlString);\n\t \t out.close();\n\t \t}\n\t\t}\n\t\tcatch(Exception e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t}",
"@Override\n\tpublic void save(String file_name) {\n\t\tserialize(file_name);\n\t}",
"public static void saveXMLDoc(final File file, final Document doc)\r\n\t\t\tthrows TransformerException {\r\n\t\t/*\r\n\t\t * SAVE ALL THE THINGS\r\n\t\t */\r\n\t\tTransformerFactory transfac = TransformerFactory.newInstance();\r\n\t\tTransformer trans = transfac.newTransformer();\r\n\t\ttrans.setOutputProperty(OutputKeys.OMIT_XML_DECLARATION, \"yes\");\r\n\t\ttrans.setOutputProperty(OutputKeys.INDENT, \"yes\");\r\n\t\tStringWriter sw = new StringWriter();\r\n\t\tStreamResult result = new StreamResult(sw);\r\n\t\tDOMSource source = new DOMSource(doc);\r\n\t\ttrans.transform(source, result);\r\n\t\tString xmlString = sw.toString();\r\n\r\n\t\tSystem.err.println(xmlString);\r\n\r\n\t\ttry {\r\n\t\t\tFileWriter f = new FileWriter(file);\r\n\t\t\tf.write(xmlString);\r\n\t\t\tf.close();\r\n\t\t} catch (IOException e1) {\r\n\t\t\te1.printStackTrace();\r\n\t\t}\r\n\t}",
"public void saveToXML() {\n\t\tList<String> vendorList = map.values().stream().sorted().distinct().collect(Collectors.toList());\n\t\t//Iterate over the vendor list\n\t\tfor (int i=0;i < vendorList.size();i++) {\n\t\t\tProducts vendorSpecificList = new Products(); //create a product object just for a member\n\t\t\tList<output.Product> miniProductList = new ArrayList<>(); //holds the list of individual Product\n\t\t\t//iterate the whole map\t\n\t\t\tfor (Entry<Product, String> entry : map.entrySet()) {\t\t\n\t\t\t\t//identify members of the distinct vendor\n\t\t\t\tif(vendorList.get(i).equals(entry.getValue())) {\t\t\t\t\n\t\t\t\t\tminiProductList.add(entry.getKey()); //add to a subset\n\t\t\t\t}\n\t\t\t}\n\n\t\t\tvendorSpecificList.setProduct(miniProductList); //populate with subset\n\t\t\tprintFile(vendorSpecificList,vendorList.get(i)); //prints the subset\n\n\t\t}\n\t}",
"void save() {\n File file = new File(main.myPath + \"state.xml\");\n Framework.backup(main.myPath + \"state.xml\");\n Framework.transform(stateDoc, new StreamResult(file), null);\n setDirty(false);\n }",
"public void dumpAsXmlFile(String pFileName);",
"void saveObject(DataObject sdo, XMLStreamWriter writer) throws XMLStreamException;",
"public void saveToFile(String path, AddressBook addressBook) {\n try {\n DocumentBuilderFactory docFactory = DocumentBuilderFactory.newInstance();\n DocumentBuilder docBuilder = docFactory.newDocumentBuilder();\n Document doc = docBuilder.newDocument();\n \n Element rootElement = doc.createElement(\"addressBook\");\n doc.appendChild(rootElement);\n \n Attr attr = doc.createAttribute(\"addressBookName\");\n attr.setValue(addressBook.getAddressBookName());\n rootElement.setAttributeNode(attr);\n \n for (AddressEntry entry : entrySet) {\n \n Element addressEntries = doc.createElement(\"addressEntry\");\n rootElement.appendChild(addressEntries);\n \n Element nameElement = doc.createElement(\"name\");\n nameElement.appendChild(doc.createTextNode(entry.getName()));\n addressEntries.appendChild(nameElement);\n \n Element postalAddressElement = doc.createElement(\"postalAddress\");\n postalAddressElement.appendChild(doc.createTextNode(entry.getPostalAddress()));\n addressEntries.appendChild(postalAddressElement);\n \n Element phoneNumberElement = doc.createElement(\"phoneNumber\");\n phoneNumberElement.appendChild(doc.createTextNode(entry.getPhoneNumber()));\n addressEntries.appendChild(phoneNumberElement);\n \n Element emailElement = doc.createElement(\"emailAddress\");\n emailElement.appendChild(doc.createTextNode(entry.getEmailAddress()));\n addressEntries.appendChild(emailElement);\n \n Element noteElement = doc.createElement(\"note\");\n noteElement.appendChild(doc.createTextNode(entry.getNote()));\n addressEntries.appendChild(noteElement);\n \n TransformerFactory transformerFactory = TransformerFactory.newInstance();\n Transformer transformer = transformerFactory.newTransformer();\n DOMSource source = new DOMSource(doc);\n StreamResult result = new StreamResult(new File(path));\n transformer.transform(source, result);\n }\n \n } catch (Exception e) {\n e.printStackTrace();\n }\n }",
"public void save () {\n\t\tif (!open) {\n\t\t\tSystem.out.println (\"ExternalDocument.save: attempt to save unopened document \" + fileName);\n\t\t\treturn;\n\t\t}\n\t\ttry {\n\t\t\tif (format.equals(\"sgml\")) {\n\t\t\t\tString tagToWrite;\n\t\t\t\tif (allTags)\n\t\t\t\t\ttagToWrite = null;\n\t\t\t\telse if (SGMLtags.length == 0)\n\t\t\t\t\ttagToWrite = \"***\"; // unused annotation type\n\t\t\t\telse if (SGMLtags.length == 1)\n\t\t\t\t\ttagToWrite = SGMLtags[0];\n\t\t\t\telse {\n\t\t\t\t\tSystem.out.println (\"ExternalDocument.save: cannot write more than 1 annotation type\");\n\t\t\t\t\treturn;\n\t\t\t\t}\n\t\t\t\tString string = writeSGML(tagToWrite).toString();\n\t\t\t\tFile file = new File(fullFileName());\n\t\t\t\tBufferedWriter writer = new BufferedWriter (\n\t\t\t\t\t\tnew OutputStreamWriter (new FileOutputStream(file), JetTest.encoding));\n\t\t\t\twriteWithSystemNewlines (writer, string);\n\t\t\t\twriter.close();\n\t\t\t} else {\n\t\t\t\t\tSystem.out.println (\"Error saving document \" + fileName);\n\t\t\t\t\tSystem.out.println (\"Unknown document format.\");\n\t\t\t}\n\t\t} catch (IOException e) {\n\t\t\t\tSystem.out.println (\"Error opening document \" + fileName);\n\t\t\t\tSystem.out.println (e);\n\t\t}\n\t}",
"public void save() {\n try {\n FileOutputStream fos = new FileOutputStream(file);\n properties.store(fos, \"Preferences\");\n } catch (FileNotFoundException e) {\n } catch (IOException e) {\n e.printStackTrace();\n }\n\n }",
"public File XMLforRoot(String hashid, String key, String value, int LayerId, int copyNum, String timer, boolean timerType, String userid, String Time, Certificate Certi) {\n try {\n\n DocumentBuilderFactory documentFactory = DocumentBuilderFactory.newInstance();\n\n DocumentBuilder documentBuilder = documentFactory.newDocumentBuilder();\n\n Document document = documentBuilder.newDocument();\n\n // root element\n Element root = document.createElement(\"Root_Node_For\" + key + \"Copy\" + copyNum);\n document.appendChild(root);\n\n Element hashId = document.createElement(\"HashID\");\n hashId.appendChild(document.createTextNode(hashid));\n root.appendChild(hashId);\n\n Element layerid = document.createElement(\"layerid\");\n hashId.appendChild(layerid);\n layerid.setAttribute(\"Id\", String.valueOf(LayerId));\n\n Element key1 = document.createElement(\"Key\");\n hashId.appendChild(key1);\n key1.setAttribute(\"Key\", key);\n\n Element Value = document.createElement(\"Value\");\n Value.appendChild(document.createTextNode(value));\n hashId.appendChild(Value);\n\n Element copynum = document.createElement(\"copynum\");\n copynum.appendChild(document.createTextNode(String.valueOf(copyNum)));\n hashId.appendChild(copynum);\n\n Element timer2 = document.createElement(\"timer\");\n timer2.appendChild(document.createTextNode(String.valueOf(timer)));\n hashId.appendChild(timer2);\n\n Element timertype = document.createElement(\"timertype\");\n timertype.appendChild(document.createTextNode(String.valueOf(timerType)));\n hashId.appendChild(timertype);\n\n Element userId = document.createElement(\"userId\");\n userId.appendChild(document.createTextNode(String.valueOf(userid)));\n hashId.appendChild(userId);\n\n Element time2 = document.createElement(\"time\");\n time2.appendChild(document.createTextNode(String.valueOf(Time)));\n hashId.appendChild(time2);\n\n Element cert = document.createElement(\"Certificate\");\n cert.appendChild(document.createTextNode(String.valueOf(Certi)));\n hashId.appendChild(cert);\n\n\n // create the xml file\n //transform the DOM Object to an XML File\n TransformerFactory transformerFactory = TransformerFactory.newInstance();\n Transformer transformer = transformerFactory.newTransformer();\n DOMSource domSource = new DOMSource(document);\n StreamResult streamResult = new StreamResult(new File(\"Root_Node for\" + key + \"Copy\" + copyNum + \".xml\"));\n\n transformer.transform(domSource, streamResult);\n\n } catch (ParserConfigurationException pce) {\n pce.printStackTrace();\n } catch (TransformerException tfe) {\n tfe.printStackTrace();\n }\n\n File file = new File(\"Root_Node for\" + key + \"Copy\" + copyNum + \".xml\");\n return file;\n }",
"private void saveButtonMouseClicked(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_saveButtonMouseClicked\n \n FileDialog dialog = new FileDialog(this, \"Ssuvegarder le fichier dictionnaire\", FileDialog.SAVE);\n dialog.setFile(loadedDictionaryFilename);\n dialog.setVisible(true);\n \n String filename = dialog.getFile();\n if(filename != null) // if user selected a file\n {\n // add .txt extension if user didn't add it\n if(!filename.substring(filename.length() - 4).equals(\".txt\"))\n filename = filename + \".txt\";\n \n // add full path of the filename\n filename = dialog.getDirectory() + filename;\n \n // get all WordDefinition in an arraylist \n ArrayList<WordDefinition> allWordDefinitionList = new ArrayList<>();\n for(int i = 0 ; i < lexiNodeTrees.size() ; i++)\n {\n ArrayList<WordDefinition> allWordsInTree = lexiNodeTrees.get(i).getAllWordsFromTree();\n \n for(int j = 0 ; j < allWordsInTree.size() ; j++)\n {\n allWordDefinitionList.add(allWordsInTree.get(j));\n }\n }\n \n // sort the list of word definition in alphabetical order\n Collections.sort(allWordDefinitionList, new WordDefinitionComparator());\n \n // save to file\n if(DictioFileOperations.saveListToFile(filename, allWordDefinitionList))\n {\n loadedDictionaryFilename = filename; // save new name in case user wants to save again\n JOptionPane.showMessageDialog(this, \"La list des mots a été \"\n + \"sauvegardé dans le fichier\\n\" + filename + \".\\n\\n\", \"INFORMATION\", \n JOptionPane.INFORMATION_MESSAGE);\n }\n\n else // if there was a problem saving the file\n JOptionPane.showMessageDialog(this, \"ERREUR: Impossible de \"\n + \"sauvegarder dans le fichier.\\n\\n\", \"ERREUR\", \n JOptionPane.ERROR_MESSAGE);\n }\n }",
"public void saveConfigXml() {\n // Save the xml object to disk\n IPathManager pm = PathManagerFactory.getPathManager();\n LocalizationContext lc = pm.getContext(LocalizationType.COMMON_STATIC,\n LocalizationLevel.SITE);\n\n LocalizationFile newXmlFile = pm.getLocalizationFile(lc,\n CONFIG_FILE_NAME);\n\n if (newXmlFile.getFile().getParentFile().exists() == false) {\n // System.out.println(\"Creating new directory\");\n\n if (newXmlFile.getFile().getParentFile().mkdirs() == false) {\n // System.out.println(\"Could not create new directory...\");\n }\n }\n\n try {\n // System.out.println(\"Saving -- \"\n // + newXmlFile.getFile().getAbsolutePath());\n jaxb.marshalToXmlFile(configXml, newXmlFile.getFile()\n .getAbsolutePath());\n newXmlFile.save();\n\n lf = newXmlFile;\n } catch (Exception e) {\n statusHandler.handle(Priority.ERROR, \"Couldn't save config file.\",\n e);\n }\n }",
"public static void writeObsDUT(Hashtable<String, Hashtable<Integer, Obs>> obsTable, String dstPath) {\n\n\t\ttry {\n\n\t\t\tDocumentBuilderFactory docFactory = DocumentBuilderFactory.newInstance();\n\t\t\tDocumentBuilder docBuilder = docFactory.newDocumentBuilder();\n\n\t\t\t// root elements\n\t\t\tDocument doc = docBuilder.newDocument();\n\t\t\tElement rootElement = doc.createElement(\"observation\");\n\t\t\tdoc.appendChild(rootElement);\n\n\t\t\tfor (Map.Entry<String, Hashtable<Integer, Obs>> entrySet : obsTable.entrySet()) {\n\t\t\t\tString userID = entrySet.getKey();\n\t\t\t\tElement dayElement = doc.createElement(\"week_day\");\n\t\t\t\trootElement.appendChild(dayElement);\n\n\t\t\t\t// set attribute to staff element\n\t\t\t\tAttr attr = doc.createAttribute(\"id\");\n\t\t\t\tattr.setValue(String.valueOf(userID));\n\t\t\t\tdayElement.setAttributeNode(attr);\n\t\t\t\t// System.out.println(pKey);\n\t\t\t\tHashtable<Integer, Obs> value = entrySet.getValue();\n\t\t\t\tfor (Map.Entry<Integer, Obs> entrySet1 : value.entrySet()) {\n\t\t\t\t\tInteger weekDay = entrySet1.getKey();\n\t\t\t\t\tObs obs = entrySet1.getValue();\n\n\t\t\t\t\tElement usrSeqElement = doc.createElement(\"user\");\n\t\t\t\t\tdayElement.appendChild(usrSeqElement);\n\n\t\t\t\t\tattr = doc.createAttribute(\"id\");\n\t\t\t\t\tattr.setValue(String.valueOf(weekDay));\n\t\t\t\t\tusrSeqElement.setAttributeNode(attr);\n\n\t\t\t\t\tattr = doc.createAttribute(\"seq\");\n\t\t\t\t\tattr.setValue(obs.seq);\n\t\t\t\t\tusrSeqElement.setAttributeNode(attr);\n\n\t\t\t\t\tattr = doc.createAttribute(\"viterbi\");\n\t\t\t\t\tattr.setValue(obs.vitPath);\n\t\t\t\t\tusrSeqElement.setAttributeNode(attr);\n\n\t\t\t\t\tattr = doc.createAttribute(\"timestamp\");\n\t\t\t\t\tattr.setValue(obs.timeStamp);\n\t\t\t\t\tusrSeqElement.setAttributeNode(attr);\n\n\t\t\t\t}\n\n\t\t\t}\n\n\t\t\t// write the content into xml file\n\t\t\tTransformerFactory transformerFactory = TransformerFactory.newInstance();\n\t\t\tTransformer transformer = transformerFactory.newTransformer();\n\t\t\tDOMSource source = new DOMSource(doc);\n\t\t\tStreamResult result = new StreamResult(new File(dstPath));\n\n\t\t\t// Output to console for testing\n\t\t\t// StreamResult result = new StreamResult(System.out);\n\t\t\ttransformer.transform(source, result);\n\n\t\t\tSystem.out.println(\"File saved!\");\n\n\t\t} catch (ParserConfigurationException | TransformerException pce) {\n\t\t}\n\t}",
"public boolean saveXMLDocument(String fileName, Document doc) {\r\n log.debug(\"Saving XML file... \" + fileName);\r\n // open output stream where XML Document will be saved\r\n File xmlOutputFile = new File(fileName);\r\n FileOutputStream fos;\r\n Transformer transformer;\r\n try {\r\n fos = new FileOutputStream(xmlOutputFile);\r\n }\r\n catch (FileNotFoundException e) {\r\n log.debug(\"Error occured: \" + e.getMessage());\r\n return false;\r\n }\r\n // Use a Transformer for output\r\n TransformerFactory transformerFactory = TransformerFactory.newInstance();\r\n try {\r\n transformer = transformerFactory.newTransformer();\r\n }\r\n catch (TransformerConfigurationException e) {\r\n log.debug(\"Transformer configuration error: \" + e.getMessage());\r\n return false;\r\n }\r\n DOMSource source = new DOMSource(doc);\r\n StreamResult result = new StreamResult(fos);\r\n // transform source into result will do save\r\n try {\r\n transformer.transform(source, result);\r\n }\r\n catch (TransformerException e) {\r\n log.debug(\"Error transform: \" + e.getMessage());\r\n }\r\n log.debug(\"XML file saved.\");\r\n return true;\r\n }",
"public void saveChanges() throws TransformerException {\n\t\tTransformerFactory transformerFactory = TransformerFactory.newInstance();\r\n\t\tTransformer transformer = transformerFactory.newTransformer();\r\n\t\tDOMSource source = new DOMSource(document);\r\n\t\tStreamResult result = new StreamResult(new File(path));\r\n\t\ttransformer.transform(source, result);\r\n\t}",
"private void saveMap() {\r\n new Thread(() -> {\r\n try {\r\n FileOutputStream f = new FileOutputStream(this.save_file);\r\n ObjectOutputStream S = new ObjectOutputStream(f);\r\n S.writeObject(this.music_map);\r\n S.close();\r\n f.close();\r\n if (!this.save_file.setLastModified(this.music_root.lastModified())) {\r\n throw new IllegalStateException(\"Impossibile aggiornare il file dizionario\");\r\n }\r\n } catch (IOException e) {\r\n e.printStackTrace();\r\n }\r\n }).start();\r\n }",
"public void close(){\r\n Transformer t = null;\r\n\t\ttry {\r\n\t\t\tt = TransformerFactory.newInstance().newTransformer();\r\n\t\t\tt.setOutputProperty(OutputKeys.METHOD, \"xml\");\r\n\t\t\tt.setOutputProperty(OutputKeys.INDENT, \"yes\"); \r\n\t\t\tt.transform(new DOMSource(document), new StreamResult(new FileOutputStream(XMLFileName))); \t\r\n\t\t} catch (Exception e) {\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n }",
"private void exportarXML(){\n \n String nombre_archivo=IO_ES.leerCadena(\"Inserte el nombre del archivo\");\n String[] nombre_elementos= {\"Modulos\", \"Estudiantes\", \"Profesores\"};\n Document doc=XML.iniciarDocument();\n doc=XML.estructurarDocument(doc, nombre_elementos);\n \n for(Persona estudiante : LEstudiantes){\n estudiante.escribirXML(doc);\n }\n for(Persona profesor : LProfesorado){\n profesor.escribirXML(doc);\n }\n for(Modulo modulo: LModulo){\n modulo.escribirXML(doc);\n }\n \n XML.domTransformacion(doc, RUTAXML, nombre_archivo);\n \n }",
"public void getXml(Writer fileout, boolean saveInvisible,\n\t\t\tMindMapNode pRootNode) throws IOException {\n\t\tfileout.write(\"<map \");\n\t\tfileout.write(\"version=\\\"\" + FreeMind.XML_VERSION + \"\\\"\");\n\t\tfileout.write(\">\\n\");\n\t\tfileout.write(\"<!-- To view this file, download free mind mapping software FreeMind from http://freemind.sourceforge.net -->\\n\");\n\t\tgetRegistry().save(fileout);\n\t\tpRootNode.save(fileout, this.getLinkRegistry(), saveInvisible, true);\n\t\tfileout.write(\"</map>\\n\");\n\t\tfileout.close();\n\t}",
"private static void createZipOrXmlFile(Document createdDocument) {\n if(attachmentList.size() > 0){\n File zipFile = new File(OUTPUT_ZIP_PATH);\n ZipOutputStream zipOutputStream = null;\n String fileName;\n byte[] decoded;\n\n try {\n zipOutputStream = new ZipOutputStream(new FileOutputStream(zipFile));\n } catch (FileNotFoundException e) {\n e.printStackTrace();\n }\n for (Attachment attachment : attachmentList) {\n try {\n //create a new zip entry\n //add the zip entry and write the decoded data\n assert zipOutputStream != null;\n fileName = attachment.filename;\n decoded = attachment.data;\n ZipEntry imageOutputStream = new ZipEntry(ImportUtils.PHOTO_FILE_PATH + fileName);\n zipOutputStream.putNextEntry(imageOutputStream);\n zipOutputStream.write(decoded);\n\n } catch (IllegalArgumentException | IOException e) {\n e.printStackTrace();\n }\n }\n //add the xml after the attachments have been added\n ZipEntry xmlOutputStream = new ZipEntry(ImportUtils.GENERATED_XML_FILENAME);\n try {\n zipOutputStream.putNextEntry(xmlOutputStream);\n zipOutputStream.write(Entry.toBytes(createdDocument));\n //closing the stream\n //! not closing the stream can result in malformed zip files\n zipOutputStream.finish();\n zipOutputStream.flush();\n zipOutputStream.closeEntry();\n } catch (IOException e) {\n e.printStackTrace();\n\n }\n }else{\n //if no attachments found\n // add the xml file only\n OutputFormat format = OutputFormat.createPrettyPrint();\n try {\n OutputStream outputStream = new FileOutputStream(OUTPUT_XML_PATH);\n XMLWriter writer = new XMLWriter(outputStream, format);\n writer.write(createdDocument);\n } catch (IOException e ) {\n e.printStackTrace();\n }\n }\n }",
"public void saveToFile(Student entity) throws Exception{\n Document document = DocumentBuilderFactory\n .newInstance()\n .newDocumentBuilder()\n .parse(XMLfile);\n Element root = document.getDocumentElement();\n Element studentElement = document.createElement(\"student\");\n studentElement.setAttribute(\"serialNumber\",entity.getSerialNumber());\n root.appendChild(studentElement);\n\n appendChildWithText(document, studentElement, \"name\", entity.getName());\n appendChildWithText(document, studentElement, \"group\", String.valueOf(entity.getGroup()));\n appendChildWithText(document, studentElement, \"id\", entity.getId().toString());\n\n Transformer transformer =\n TransformerFactory.newInstance().newTransformer();\n transformer.transform(new DOMSource(root),\n new StreamResult(new FileOutputStream(\n XMLfile)));\n }",
"public static HashMap<String, String> OutputXml() {\n\t\treturn methodMap(\"xml\");\n\t}",
"public static void saveToFile(String filepath) throws IOException {\r\n fileExists(filepath);\r\n try (\r\n \r\n OutputStream file = new FileOutputStream(filepath + filePath);\r\n OutputStream buffer = new BufferedOutputStream(file);\r\n ObjectOutput output = new ObjectOutputStream(buffer)\r\n ) {\r\n // more will be added for other Maps\r\n output.writeObject(clientMap);\r\n output.writeObject(flightMap);\r\n output.writeObject(adminMap);\r\n output.writeObject(itineraryMap);\r\n output.close();\r\n \r\n } catch (IOException ex) {\r\n fLogger.log(Level.SEVERE, \"Cannot perform output.\", ex);\r\n }\r\n }",
"public static void ExportToFile() throws IOException {\n BufferedWriter writer = new BufferedWriter(new FileWriter(\"Data/dictionary.txt\"));\r\n for (Word word : Dictionary.dictionaryList) {\r\n writer.write(String.format(\"%s\\t%s\\n\", word.getWord(), word.getWordMeaning()));\r\n }\r\n writer.close();\r\n }",
"private void writeToFile() throws IOException {\n\t\tFileWriter write = new FileWriter(path);\n\t\tPrintWriter print_line = new PrintWriter(write);\n\t\t\n\t\tEnumeration<String> fd_key_Enum = fileData.keys();\n\t\tEnumeration<String> fd_value_Enum = fileData.elements();\n\t\twhile (fd_key_Enum.hasMoreElements() && fd_value_Enum.hasMoreElements()) {\n\t\t\tprint_line.printf(\"%s\" + \"%n\", fd_key_Enum.nextElement() + \":\" + fd_value_Enum.nextElement());\n\t\t}\n\t\t\n\t\tprint_line.close();\n\t\twrite.close();\n\t}",
"void saveKeys() throws IOException;",
"public void save() {\n // Convert the settings to a string\n String output = readSettings();\n \n try {\n // Make sure the file exists\n if (!settingsFile.exists()) {\n File parent = settingsFile.getParentFile();\n parent.mkdirs();\n settingsFile.createNewFile(); \n }\n \n // Write the data into the file\n BufferedWriter writer = new BufferedWriter(new FileWriter(settingsFile));\n writer.write(output);\n writer.close(); \n } catch (Exception e) {\n e.printStackTrace();\n }\n }",
"private static void saveMapToFile(HashMap<String, Integer> posCounts, String fileName) throws FileNotFoundException, IOException {\n\t\tProperties properties = new Properties();\r\n\r\n\t for (Map.Entry<String,Integer> entry : posCounts.entrySet()) {\r\n\t properties.put(entry.getKey(), entry.getValue().toString());\r\n\t }\r\n\t \r\n\t properties.store(new FileOutputStream(fileName), null);\r\n\t}",
"public void printToXML() {\n String fileString = \"outputDisposal.xml\";\n //Creating the path object of the file\n Path filePath = Paths.get(fileString);\n if (Files.notExists(filePath)) {\n try {\n Files.createFile(filePath);\n } catch (IOException e1) {\n\n e1.printStackTrace();\n }\n }\n //Converting the path object to file to use in the FileWriter constructor \n File newFile = filePath.toFile();\n\n /*\n Typical try-with-resources block that features three streams: FileWriter,BufferedWriter and PrintWriter.\n The FileWriter object connects the file tho the stream.\n The BufferedWriter object \n */\n try ( PrintWriter out = new PrintWriter(new BufferedWriter(new FileWriter(newFile)))) {\n for (PickUp pck : pickups) {\n out.print(pck);\n }\n\n } catch (IOException e) {\n System.err.println(e);\n }\n\n }",
"public void write() throws IOException {\n // No pairs to write\n if(map.size() == 0 || !isDirty) {\n System.err.println(\"preferences is already updated..\");\n return;\n }\n\n try(BufferedWriter bufferedWriter = Files.newBufferedWriter(fileName,\n StandardOpenOption.TRUNCATE_EXISTING,\n StandardOpenOption.CREATE))\n {\n for(Map.Entry<String, String> entry : map.entrySet()) {\n String key = entry.getKey();\n String value = entry.getValue();\n\n // Writes the current pair value in the format of 'key=value'\n bufferedWriter.write(String.format(\"%s=%s\\n\", key, value));\n }\n }\n\n isDirty = false;\n }",
"public static void createSaveFile( )\n {\n try\n {\n new File( \"data\" ).mkdirs( );\n PrintWriter writer = new PrintWriter( \"data/\" + Game.instance.getCurrentSaveFile( ).SAVEFILENAME + \".txt\", \"UTF-8\" );\n writer.println( \"dkeys: \" + Game.START_DIAMOND_KEY_COUNT );\n writer.close( );\n }\n catch ( IOException e )\n {\n e.printStackTrace( );\n System.exit( 1 );\n }\n }",
"public void writeToFile(String fileName, String xml) {\n\t\ttry {\n\t\t\tBufferedWriter bw = new BufferedWriter(new FileWriter(fileName));\n\t\t\tbw.write(xml);\n\t\t\tbw.close();\n\t\t} catch(IOException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t}",
"public String generatedXmlFile(Document doc){\n\t\tStringWriter sw = new StringWriter();\r\n\t\t\t\ttry {\r\n\t\t\t\t\t\r\n\t\t\t\t\tTransformerFactory tf = TransformerFactory.newInstance();\r\n\t\t\t\t\tTransformer transformer = tf.newTransformer();\r\n\t\t\t\t\ttransformer.setOutputProperty(OutputKeys.OMIT_XML_DECLARATION, \"no\");\r\n\t\t\t\t\ttransformer.setOutputProperty(OutputKeys.METHOD, \"xml\");\r\n\t\t\t\t\ttransformer.setOutputProperty(OutputKeys.INDENT, \"yes\");\r\n\t\t\t\t\ttransformer.setOutputProperty(OutputKeys.ENCODING, \"UTF-8\");\r\n\r\n\t\t\t\t\ttransformer.transform(new DOMSource(doc), new StreamResult(sw));\r\n\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\tthrow new RuntimeException(\"Error converting to String\", ex);\r\n\t\t\t\t}\r\n\t\t\t\treturn sw.toString();\r\n\t}",
"public final void toFile(final File xmlFile) throws IOException {\n if (xmlFile == null) throw new FileNotFoundException(\"file is null\");\n\n PrintWriter pw = new PrintWriter(new FileWriter(xmlFile));\n pw.print(toString());\n pw.close();\n }",
"public static void saveGame(GameWorld world, String fileName) throws PersistenceException {\n\n try {\n\n // setup: create a save file and a JAXB Marshaller for the class\n File saveFile = new File(fileName);\n JAXBContext gameContext = JAXBContext.newInstance(GameWorld.class);\n Marshaller gameMarshaller = gameContext.createMarshaller();\n gameMarshaller.setProperty(Marshaller.JAXB_FORMATTED_OUTPUT, true);\n\n // convert the java object to XML\n gameMarshaller.marshal(world, saveFile);\n\n } catch (JAXBException e) {\n throw new PersistenceException(\"Failed to save the GameWorld file. \\n\", e);\n }\n }",
"public void setUpNewXMLFile(File file) {\n\t\tPrintWriter pw = null;\n\t\ttry {\n\t\t\tpw = new PrintWriter(file, \"UTF-8\");\n\t\t\tpw.write(\"<?xml version=\\\"1.0\\\" encoding=\\\"UTF-8\\\" standalone=\\\"no\\\" ?>\\n\");\n\t\t\tpw.write(\"<\" + defaultDocumentElement + \">\\n\");\n\t\t\tpw.write(\"</\" + defaultDocumentElement + \">\\n\");\n\t\t\tpw.close();\n\t\t} catch(Exception e) {\n\t\t\tSystem.out.println(\"Error creating new XML File.\");\n\t\t} finally {\n\t\t\ttry {\n\t\t\t\tpw.close();\n\t\t\t} catch(Exception e) {\n\t\t\t\t//Seems like it was already closed.\n\t\t\t}\n\t\t}\n\t}",
"public void saveKeystore(File meKeystoreFile) throws IOException {\n FileOutputStream output;\n\n output = new FileOutputStream(meKeystoreFile);\n\n keystore.serialize(output);\n output.close();\n }",
"public static void save()\n {\n try\n {\n FileOutputStream fOS = new FileOutputStream(propsFile); \n props.store(fOS, \"\");\n fOS.close();\n } catch (IOException e)\n {\n e.printStackTrace();\n }\n }",
"public static void write(Map<Food, Integer> foodStock){\n\n try(BufferedWriter writer = new BufferedWriter(new FileWriter(\"FoodStock.txt\", false))){\n Set<Map.Entry<Food, Integer>> foodSet = foodStock.entrySet();\n foodSet.forEach(item -> {\n try {\n writer.write(item.getKey().toString() + \" \" + item.getValue() + \"\\n\");\n } catch (IOException e) {\n e.printStackTrace();\n }\n });\n\n } catch (IOException ex){\n System.out.println(\"Oops, something went wrong!\");\n System.out.println(ex.getMessage());\n }\n }",
"private void genSaveMapCode(String name, String keyClassSimpleName, String valueClassSimpleName, boolean elementIsPersistable) {\n\n int tabLevel = 1;\n String tabs = tabs(tabLevel);\n\n String itVarName = \"i\" + \"_\" + name;\n String vVarName = \"v\" + \"_\" + name;\n\n String keyCppType = cppType(keyClassSimpleName);\n String valueCppType = cppType(valueClassSimpleName);\n\n String mapType = \"std::map< \" + keyCppType + \", \" + valueCppType + \" >\";\n\n save.println(\"\\t// \" + mapType + \" \" + name);\n genDebug(save, \"\\tstd::cout << \\\"save \" + mapType + \" \" + name + \"\\\" << std::endl;\");\n\n // initialize local variable that points to the member map\n save.println(tabs + mapType + \"& \" + vVarName + \" = this->\" + name + \";\");\n\n // number of elements in the map\n save.println(tabs + \"int \" + vVarName + \"_length = \" + vVarName + \".size();\");\n\n save.println();\n save.println(tabs + OUTSTREAM_VAR_NAME + \".writeInt( \" + vVarName + \"_length );\");\n\n genDebugDumpValue(save, vVarName + \"_length\", tabs);\n\n // loop through the elements and save each one\n save.println();\n save.println(tabs + mapType + \"::iterator \" + itVarName + \";\");\n save.println(tabs + \"for( \" + itVarName + \" = \" + vVarName + \".begin(); \" + itVarName + \" != \" + vVarName + \".end(); ++\"\n + itVarName + \" ){\");\n\n tabs = tabs(++tabLevel);\n\n // save the key\n String keyVarName = vVarName + \"_key\";\n save.println(tabs + keyCppType + \" \" + keyVarName + \" = \" + itVarName + \"->first;\");\n save.println(tabs + genWriteCode(keyVarName, keyCppType));\n\n // save the value\n String valueVarName = vVarName + \"_value\";\n save.println(tabs + valueCppType + \" \" + valueVarName + \" = \" + itVarName + \"->second;\");\n\n if (elementIsPersistable) {\n save.println(tabs + valueVarName + \".save( \" + OUTSTREAM_VAR_NAME + \" );\");\n } else {\n save.println(tabs + genWriteCode(valueVarName, valueCppType));\n }\n\n tabs = tabs(--tabLevel);\n save.println(tabs + \"}\");\n }",
"public void save(String filePath){\r\n Scanner in = new Scanner(System.in);\r\n File saveFile = new File(filePath);\r\n if (saveFile.exists()){\r\n System.out.println(\"Do you really, really want to overwrite your previous game?\");\r\n System.out.println(\"Yes: '1', No: '0'.\");\r\n int input = in.nextInt();\r\n if (input!=1){\r\n return;\r\n }\r\n }\r\n File saveDir = new File(this.savePath);\r\n if (!saveDir.exists()){\r\n saveDir.mkdir();\r\n }\r\n FileOutputStream fos = null;\r\n ObjectOutputStream out = null;\r\n try {\r\n fos = new FileOutputStream(saveFile);\r\n out = new ObjectOutputStream(fos);\r\n out.writeObject(this.serialVersionUID);\r\n out.writeObject(p);\r\n out.writeObject(map);\r\n out.close();\r\n } catch (Exception ex) {\r\n System.out.println(\"Make sure you don't use spaces in your folder names.\");\r\n ex.printStackTrace();\r\n }\r\n }",
"static void save(Schedules schedules, String filename) throws IOException, RBEConfigObjectException\n {\n\t\tFileWriter fw = new FileWriter(filename);\n\t\tschedules.toXML(fw);\n\t\tfw.close();\n }",
"void serializeToFile(String fileName, BigInteger mod, BigInteger exp) throws IOException {\r\n ObjectOutputStream ObjOut = new ObjectOutputStream(new BufferedOutputStream(new FileOutputStream(fileName)));\r\n\r\n try {\r\n ObjOut.writeObject(mod);\r\n ObjOut.writeObject(exp);\r\n System.out.println(\"Key File Created: \" + fileName);\r\n } catch (Exception e) {\r\n throw new IOException(\" Error while writing the key object\", e);\r\n } finally {\r\n ObjOut.close();\r\n }\r\n }",
"@Override\n\tpublic void saveDocument(String path, String name) {\n\t\t\n\t}",
"private void saveAs() {\n\t\tFileChooser fileChooser = new FileChooser();\n\n\t\t// Set extension filter\n\t\tFileChooser.ExtensionFilter extFilter = new FileChooser.ExtensionFilter(\n\t\t\t\t\"XML files (*.xml)\", \"*.xml\");\n\t\tfileChooser.getExtensionFilters().add(extFilter);\n\n\t\t// Show save file dialog\n\t\tFile file = fileChooser.showSaveDialog(mainApp.getPrimaryStage());\n\n\t\tif (file != null) {\n\t\t\t// Make sure it has the correct extension\n\t\t\tif (!file.getPath().endsWith(\".xml\")) {\n\t\t\t\tfile = new File(file.getPath() + \".xml\");\n\t\t\t}\n\t\t\tmainApp.saveFilmDataToFile(file);\n\t\t}\n\t}",
"private void transformToXml(Document doc) {\r\n try {\r\n TransformerFactory tf = TransformerFactory.newInstance();\r\n Transformer trans = tf.newTransformer();\r\n trans.transform(new DOMSource(doc),new StreamResult(new File(\"./evidence.xml\")));\r\n } catch (TransformerException e) {\r\n System.err.println(\"Transformation failed\");\r\n }\r\n }",
"public static void savewtg() throws FileNotFoundException {\n String fileName = \"./outputFiles/wtgVector.txt\";\n PrintWriter pw = new PrintWriter(new FileOutputStream(fileName));\n for (Map.Entry<String,List<Double>> entry : wtgMap.entrySet()){\n pw.println(entry.getKey() + \"-> \" + entry.getValue());\n }\n pw.close();\n }",
"private static void saveToFile(String xmlExtrato, ArrayList diretorios, String sessionId)\n\t{\n\t try\n\t {\n\t //Percorrendo a lista de diretorios e verificando se existe algum valido.\n\t for(int i = 0; i < diretorios.size(); i++)\n\t {\n\t File diretorio = new File((String)diretorios.get(i));\n\t if((diretorio.exists()) && (diretorio.isDirectory()))\n\t {\n\t \t //Salvando o xml em arquivo\n\t \t String fileName = diretorios.get(i) + File.separator + sessionId;\n\t \t File fileExtrato = new File(fileName);\n\t \t FileWriter writer = new FileWriter(fileExtrato);\n\t \t writer.write(xmlExtrato);\n\t \t writer.close();\n\t \t break;\n\t }\n\t }\n\t }\n\t catch(Exception e)\n\t {\n\t e.printStackTrace();\n\t }\n\t}",
"public static void exportXml(JButton inputButton, LinkedHashMap<String, Integer> inputData, String elementInGraph, String graphName)\r\n {\r\n inputButton.addActionListener((ActionEvent e) -> \r\n {\r\n JFileChooser fileChooser = new JFileChooser();\r\n fileChooser.setFileFilter(new FileNameExtensionFilter(\"xml\", \"xml\"));\r\n String selectedExtension = fileChooser.getFileFilter().getDescription();\r\n Document resultDoc = null;\r\n int option = fileChooser.showSaveDialog(null);\r\n if(option == JFileChooser.APPROVE_OPTION)\r\n {\r\n try\r\n {\r\n resultDoc = generateXmlFile(inputData, elementInGraph, graphName);\r\n } \r\n catch (ParserConfigurationException ex)\r\n {\r\n Logger.getLogger(drawMusicData_Utils.class.getName()).log(Level.SEVERE, null, ex);\r\n }\r\n \r\n //Salvataggio nuovo file XML prendendo il file selezionato dal chooser e concatenando l'estensione\r\n Result output = new StreamResult(new File(fileChooser.getSelectedFile().getAbsolutePath()+\".\"+selectedExtension));\r\n Source input = new DOMSource(resultDoc);\r\n try\r\n {\r\n TransformerFactory tf = TransformerFactory.newInstance();\r\n Transformer t;\r\n t = tf.newTransformer();\r\n t.setOutputProperty(OutputKeys.INDENT, \"yes\");\r\n t.setOutputProperty(\"{http://xml.apache.org/xslt}indent-amount\", \"3\");\r\n t.transform(input, output);\r\n }\r\n catch (IllegalArgumentException | TransformerException ex)\r\n {\r\n \r\n }\r\n }\r\n }); \r\n }"
] |
[
"0.7267578",
"0.66750264",
"0.65950835",
"0.65304065",
"0.63715214",
"0.6323625",
"0.628248",
"0.627343",
"0.62612915",
"0.61918736",
"0.6160098",
"0.61465853",
"0.61385375",
"0.6135619",
"0.61265105",
"0.612633",
"0.6099232",
"0.6082747",
"0.60649806",
"0.60585445",
"0.6029372",
"0.6001372",
"0.59855425",
"0.59846705",
"0.5958267",
"0.5956161",
"0.594888",
"0.59360886",
"0.5935539",
"0.59351975",
"0.5921746",
"0.5915835",
"0.5885132",
"0.5822927",
"0.58080506",
"0.5802461",
"0.5801525",
"0.57888496",
"0.5780718",
"0.574852",
"0.5747747",
"0.57311726",
"0.5730276",
"0.57286406",
"0.5724119",
"0.5724119",
"0.5716948",
"0.5712566",
"0.5700362",
"0.56886053",
"0.56854874",
"0.56825346",
"0.56757",
"0.56342",
"0.56245536",
"0.56237465",
"0.56212354",
"0.5598806",
"0.5595862",
"0.55623454",
"0.5546941",
"0.55468464",
"0.5519246",
"0.5487715",
"0.5471753",
"0.54703605",
"0.54542404",
"0.54529333",
"0.5452437",
"0.54481333",
"0.54413205",
"0.5429307",
"0.54283524",
"0.54174924",
"0.5416848",
"0.5403153",
"0.5397129",
"0.53906333",
"0.53858626",
"0.53759044",
"0.5373505",
"0.5349864",
"0.5349606",
"0.53400856",
"0.53398025",
"0.5339033",
"0.533846",
"0.53358173",
"0.53163093",
"0.5308333",
"0.53040683",
"0.529462",
"0.5291863",
"0.52906346",
"0.52881855",
"0.52862614",
"0.52807224",
"0.5273111",
"0.52658963",
"0.52598536"
] |
0.5966353
|
24
|
Reads in a FeatureDictionary from an XML file.
|
public FeatureDictionary(File f)
throws IOException, SAXException, BoxerXMLException {
this(ParseXML.readFileToElement(f));
}
|
{
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
}
|
[
"public FeatureDictionary(Element e) throws BoxerXMLException {\n\tif (!e.getTagName().equals(XML.FEATURES)) {\n\t throw new BoxerXMLException(\"FeatureDictionary can only be deserialized from an XML element named `\" + XML.FEATURES + \"'\");\n\t}\n\n\tfor(Node n = e.getFirstChild(); n!=null; n = n.getNextSibling()) {\n\t int type = n.getNodeType();\n\t //System.out.println(\"Node Name = \" + n.getNodeName()+ \t\t\t\t \", type=\" + type + \", val= \" + val);\n\t \n\t boolean found = false;\n\t if (type == Node.COMMENT_NODE) { // skip \n\t } else if (type == Node.TEXT_NODE) {\n\t\tString val = n.getNodeValue().trim();\n\t\tif (val.length()==0) { \t\t//skip\n\t\t} else {\n\t\t if (found) throw new BoxerXMLException(\"FeatureDictionary deserializer expects only one non-empty TEXT element in the XML element being parsed\");\n\t\t found = true;\n\t\t String[] tokens = val.split(\"\\\\s+\");\n\t\t if (ADD_DUMMY_COMPONENT && \n\t\t\t(tokens.length==0 || !tokens[0].equals(DUMMY_LABEL))) {\n\t\t\tthrow new BoxerXMLException(\"FeatureDictionary deserializer: ADD_DUMMY_COMPONENT flag is on, but the feature list in the XML element does not start with \" + DUMMY_LABEL);\n\t\t }\n\t\t id2label.setSize(tokens.length);\n\n\t\t for(int i=0; i<tokens.length; i++) {\n\t\t\tif (!IDValidation.validateFeatureName(tokens[i])) {\n\t\t\t throw new BoxerXMLException(\"Can't add feature with the name '\"+ tokens[i]+\"' to the feature dictionary, because this is not a legal name\");\n\t\t\t}\n\t\t\tid2label.set( i, tokens[i]);\n\t\t\tlabel2id.put( tokens[i], i);\n\t\t }\n\t\t}\n\t } else {\n\t\tthrow new IllegalArgumentException(\"FeatureDictionary deserializer: encountered unexpected node type \" + type);\n\t }\n\t}\n }",
"public static HashMap parseXml(File xmlFile) throws IOException\n\t{\n\t\tSystem.out.println(\"Parsing \" + xmlFile.getName() + \"...\");\n\t\n\t\t// Parse the XML file\n\t\tXMLObject xml = XMLParser.parseFile(xmlFile);\n\n\t\tSystem.out.println(\"Parsing \" + xmlFile.getName() + \" complete.\");\n\t\t\n\t\t// Determine whether the XML file contains OSIS content.\n\t\tXMLObject parent = xml.getChild(OsisConverter.OSIS_TAG);\n\t\t\n\t\tGoBibleCreator creator = null;\n\t\t\n\t\tif (parent != null)\n\t\t{\n\t\t\tSystem.out.println(\"Converting \" + xmlFile.getName() + \" from OSIS format.\");\n\t\t\tcreator = new OsisConverter();\n\t\t}\n\t\telse\n\t\t{\n\t\t\tSystem.out.println(\"Converting \" + xmlFile.getName() + \" from ThML format.\");\n\n\t\t\tparent = xml.getChild(ThmlConverter.THML_TAG);\n\n\t\t\tfor (Enumeration e = xml.getChildren(); e.hasMoreElements(); )\n\t\t\t{\n\t\t\t\tXMLObject child = (XMLObject) e.nextElement();\n\n\t\t\t\t//System.out.println(\"child: \" + child.getTag());\n\t\t\t}\n\n\t\t\tif (parent != null)\n\t\t\t{\n\t\t\t\tcreator = new ThmlConverter();\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\tSystem.out.println(\"Error: XML file does not contain OSIS or ThML content: \" + xmlFile.getName());\n\t\t\t\treturn null;\n\t\t\t}\n\t\t}\n\t\t\n\t\tHashMap books = creator.parse(parent);\n\t\t\n\t\treturn books;\n\t}",
"Map<String, String> Read_File(XmlPullParser xmlPullParser, List<Tags_To_Read> tags, String account_Name) throws NullPointerException, XML_Reader_Exception;",
"public boolean loadDictionary(String fileName) throws IOException;",
"private static void loadDictionaryConfig()\r\n\t{\r\n\t\tURL dictionaryConfigURL = null;\r\n\t\ttry \r\n\t\t{\r\n\t\t\tBundle cfmlBundle = Platform.getBundle(CFMLPlugin.PLUGIN_ID);\r\n\t\t\tdictionaryConfigURL = org.eclipse.core.runtime.FileLocator.find(CFMLPlugin.getDefault().getBundle(),\r\n new Path(\"dictionary\"), null);\r\n\t\t\t\r\n\t\t\tDocumentBuilderFactory factory = DocumentBuilderFactory.newInstance();\r\n\t\t\tfactory.setIgnoringComments(true);\r\n\t\t\tfactory.setIgnoringElementContentWhitespace(true);\r\n\t\t\tfactory.setCoalescing(true);\r\n\t\t\tDocumentBuilder builder = factory.newDocumentBuilder();\r\n\t\t\t\r\n\t\t\tURL configurl = FileLocator.LocateURL(dictionaryConfigURL, \"dictionaryconfig.xml\");\r\n\t\t\t\t\t\t\r\n\t\t\tdictionaryConfig = builder.parse(configurl.getFile());\r\n\t\t\tif(dictionaryConfig == null) {\r\n\t\t\t\ttry {\r\n\t\t\t\t\tdictionaryConfig = builder.parse(\"jar:\"\r\n\t\t\t\t\t\t\t+ DictionaryManager.class.getClassLoader()\r\n\t\t\t\t\t\t\t\t\t.getResource(\"org.cfeclipse.cfml/dictionary/dictionaryconfig.xml\").getFile()\r\n\t\t\t\t\t\t\t\t\t.replace(\"dictionaryconfig.xml\", \"\"));\r\n\t\t\t\t} catch (Exception e) {\r\n\t\t\t\t\tdictionaryConfig = builder.parse(\"jar:file:\" + DictionaryManager.class.getResource(\"/dictionaries.zip\").getFile()\r\n\t\t\t\t\t\t\t+ \"!/org.cfeclipse.cfml/dictionary/\");\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t} \r\n\t\tcatch (Exception e) \r\n\t\t{\r\n\t\t\te.printStackTrace(System.err);\r\n\t\t}\r\n\t}",
"private void readFromFile(String path) throws ClassNotFoundException {\n\t\ttry {\n\t\t\tInputStream file = new FileInputStream(path);\n\t\t\tInputStream buffer = new BufferedInputStream(file);\n\t\t\tObjectInput input = new ObjectInputStream(buffer);\n\n\t\t\ttagList = (HashMap<String, Integer>) input.readObject();\n\t\t\tinput.close();\n\t\t} catch (IOException ex) {\n\t\t\tSystem.out.println(\"Cannot read from input.\");\n\t\t}\n\t}",
"@Test\n public void testFromXml() throws Exception\n {\n Element root = XmlBuilder.element(\"http://earth.google.com/kml/2.1\", \"kml\",\n XmlBuilder.element(\"http://earth.google.com/kml/2.1\", \"Folder\",\n XmlBuilder.element(\"http://earth.google.com/kml/2.1\", \"description\", XmlBuilder.text(\"folder description\"))),\n XmlBuilder.element(\"http://earth.google.com/kml/2.1\", \"Document\",\n XmlBuilder.element(\"http://earth.google.com/kml/2.1\", \"description\", XmlBuilder.text(\"document description\"))))\n .toDOM().getDocumentElement();\n\n KmlFile file = KmlFile.fromXml(root.getOwnerDocument());\n\n List<Feature<?>> features = file.getFeatures();\n\n assertEquals(\"number of features\", 2, features.size());\n assertEquals(\"first feature type\", Folder.class, features.get(0).getClass());\n assertEquals(\"first feature attribute\", \"folder description\", features.get(0).getDescription());\n assertEquals(\"second feature type\", Document.class, features.get(1).getClass());\n assertEquals(\"second feature attribute\", \"document description\", features.get(1).getDescription());\n }",
"@SuppressWarnings(\"unchecked\")\n\tprivate void readFromFile() throws IOException, ClassNotFoundException {\n\t\ttry {\n\t\t\tInputStream file = new FileInputStream(pathName);\n\n\t\t\tInputStream buffer = new BufferedInputStream(file);\n\n\t\t\tObjectInput input = new ObjectInputStream(buffer);\n\n\t\t\ttagToImg = (Map<String, HashSet<String>>) input.readObject();\n\n\t\t\tinput.close();\n\t\t\tfile.close();\n\t\t} catch (EOFException e) {\n\t\t\ttagToImg = new HashMap<String, HashSet<String>>();\n\t\t} catch (InvalidClassException e) {\n\t\t\tSystem.out.println(\"file doesnt match the type\");\n\t\t}\n\t}",
"private void loadData(final String filePath)\r\n {\r\n try\r\n {\r\n File fXMLFile = new File(filePath);\r\n DocumentBuilderFactory dbFactory = DocumentBuilderFactory.newInstance();\r\n DocumentBuilder dBuilder = dbFactory.newDocumentBuilder();\r\n Document doc = dBuilder.parse(fXMLFile);\r\n parseXMLDocument(doc);\r\n }\r\n catch (ParserConfigurationException ex)\r\n {\r\n System.err.println(\"\\t ParserConfigurationException caught at XMLReader.loadData\");\r\n ex.printStackTrace();\r\n }\r\n catch (SAXException ex)\r\n {\r\n System.err.println(\"\\t SAXException caught at XMLReader.loadData\");\r\n ex.printStackTrace();\r\n }\r\n catch (IOException ex)\r\n {\r\n System.err.println(\"\\t IOException caught at XMLReader.loadData\");\r\n ex.printStackTrace();\r\n }\r\n }",
"private Map<String, String> parseDictionary(XMLStreamReader parser) throws XMLStreamException {\n\n Map<String, String> map = new HashMap<>();\n\n String key = \"\";\n String value = \"\";\n int event = parser.next();\n while (event != XMLStreamReader.END_DOCUMENT) {\n switch (event) {\n case XMLStreamReader.START_ELEMENT:\n String name = parser.getName().getLocalPart();\n if (Constants.KEY_TAG.equals(name)) {\n key = parser.getElementText();\n } else if (Constants.VALUE_TAG.equals(name)) {\n value = parser.getElementText();\n map.put(key, value);\n }\n break;\n }\n event = parser.next();\n }\n\n return map;\n }",
"public int[] readFeature(String featureDefFile) {\n/* 686 */ if (featureDefFile.isEmpty())\n/* 687 */ return null; \n/* 688 */ return FeatureManager.readFeature(featureDefFile);\n/* */ }",
"public Dictionary(String filename) throws IOException {\r\n\t\tFile dFile = new File(filename);\r\n\t\tFileReader fr = new FileReader(dFile);\r\n\t\tnew BufferedReader(fr).lines().forEach(e -> dict.add(e));\r\n\t\tfr.close();\r\n\t}",
"@SuppressWarnings(\"unchecked\")\r\n\tprivate void readMapFromFile() {\r\n\t\ttry {\r\n\t\t\tType type = new TypeToken<HashMap<String, Country>>() {}.getType();\r\n\t\t\tthis.daoMap = (HashMap<String, Country>) gson.fromJson(new FileReader(path), type);\r\n\t\t} catch (JsonSyntaxException | JsonIOException | FileNotFoundException e) {\r\n\t\t\te.printStackTrace();\r\n\t\t\t\r\n\t\t}\r\n\r\n\t}",
"public FeatureData read(Reader r) throws IOException, DataFormatException;",
"public static Dictionary readInDictionary(String fileName) {\r\n Dictionary d = new Dictionary();\r\n Scanner fileScanner;\r\n\r\n try {\r\n // use a FileInputStream to ensure correct reading end-of-file\r\n fileScanner = new Scanner(new FileInputStream(\"data\" + File.separator +fileName));\r\n\r\n while (fileScanner.hasNextLine()) {\r\n String nextLine = fileScanner.nextLine();\r\n // System.out.println(\"nextLine: \" + nextLine); uncomment if you want to see what is read in\r\n DictionaryData data = new DictionaryData(nextLine);\r\n\r\n // TODO: call insert() here to insert the data object into the dictionary!\r\n d.insert(data.word.toUpperCase(),data);\r\n }\r\n\r\n } catch (FileNotFoundException ex) {\r\n System.out.println(\"could not find the file \" +fileName+ \"in the data directory!\");\r\n return null;\r\n }\r\n\r\n return d;\r\n }",
"public void readXMLFile(File file) {\n\t\treadXMLFile(file, -1, 0);\n\t}",
"public static HashMap readVF(String mapF) throws IOException{\n\t\tBufferedReader input = new BufferedReader(new InputStreamReader(new FileInputStream(mapF)));\n\t\tString line = input.readLine();//pair\n\t\tHashMap map = new HashMap();\n\t\twhile(line!=null){\n\t\t\tString vector = input.readLine();\n\t\t\tmap.put(line.substring(1), vector);\n\t\t\tline = input.readLine();\n\t\t}\n\t\tinput.close();\n\t\treturn map;\n\t}",
"public void read () throws IOException, ClassNotFoundException {\n BufferedReader reader = FileManager.getReader\n (JerboaProperties.getString(\"KeyFeatureContainer.filename\"));\n double kThreshold = JerboaProperties.getDouble(\"KeyFeatureContainer.keyThreshold\",0.0);\n double fThreshold = JerboaProperties.getDouble(\"KeyFeatureContainer.featureThreshold\",0.0);\n\n String line;\n String[] tokens;\n double x;\n line = reader.readLine();\n tokens = line.split(\"\\\\t\");\n \n sf = Double.parseDouble(tokens[2]);\n\n while ((line = reader.readLine()) != null) {\n tokens = line.split(\"\\\\t\");\n if (tokens.length == 2) {\n if ((! filterKeys) || kTable.containsKey(tokens[0])) {\n x = Double.parseDouble(tokens[1]);\n if (x >= kThreshold)\n kTable.put(tokens[0],x);\n else if (filterKeys)\n kTable.remove(tokens[0]);\n }\n } else {\n x = Double.parseDouble(tokens[1]);\n if (x >= fThreshold) {\n kfTable.put(tokens[0],x);\n fTable.put(tokens[0],Double.parseDouble(tokens[2]));\n }\n }\n }\n }",
"private void loadDictionary(String pathDictionary) throws IOException {\n File fileAnnotation = new File(pathDictionary);\n if (!fileAnnotation.exists()) {\n fileAnnotation.createNewFile();\n }\n FileReader fr;\n fr = new FileReader(fileAnnotation);\n BufferedReader br = new BufferedReader(fr);\n String line;\n while ((line = br.readLine()) != null) {\n String[] dic = line.split(\"[ \\t]\");\n String word = line.substring(line.indexOf(\" \") + 1);\n dictionaryTerms.put(word.toLowerCase(), dic[0]);\n System.out.println(\"Loading Dictionary Terms: Word: \" + word + \"\\tTag: \" + dic[0]);\n }\n br.close();\n fr.close();\n System.out.println(\"Dictionary Terms Loaded\");\n }",
"public static void readDictionary()\r\n\t{\r\n\t\t//It trys to read over the file using try-catch in case of an Exception\r\n\t\ttry {\r\n\t\t\tFile file = new File(\"english.0\");\r\n\t\t\tScanner scan = new Scanner(file);\r\n\t\t\t//It reads over the file as long as there are words to read and we insert them into the given storage\r\n\t\t\twhile(scan.hasNext()) {\r\n\t\t\t\tdata.insert(scan.next());\r\n\t\t\t}\r\n\t\t\tscan.close(); \r\n\t\t} catch (FileNotFoundException e) {\r\n\t\t\tSystem.out.println(\"File not found\");\r\n\t\t}\r\n\t}",
"protected void loadFeatureValues(String reposFilename){\n\t\trepos = new THashMap<String, TIntObjectHashMap<TIntDoubleHashMap>>();\n\t\tqidFeatureSpaceSizeMap = new TObjectIntHashMap<String>();\n\t\ttry{\n\t\t\tBufferedReader br = Files.openFileReader(reposFilename);\n\t\t\tString line = null;\n\t\t\twhile ((line=br.readLine())!=null){\n\t\t\t\tString[] segments = line.split(\":\");\n\t\t\t\tif (segments.length<2)\n\t\t\t\t\tcontinue;\n\t\t\t\tString[] tokens = segments[0].trim().split(\" \");\n\t\t\t\tif (tokens.length>2)\n\t\t\t\t\tcontinue;\n\t\t\t\tString qid = tokens[0]; int docid = Integer.parseInt(tokens[1]);\n\t\t\t\tif (!repos.containsKey(qid))\n\t\t\t\t\trepos.put(qid, new TIntObjectHashMap<TIntDoubleHashMap>());\n\t\t\t\tTIntObjectHashMap<TIntDoubleHashMap> qFeatures = repos.get(qid);\n\t\t\t\tif (!qFeatures.containsKey(docid))\n\t\t\t\t\tqFeatures.put(docid, new TIntDoubleHashMap());\n\t\t\t\tTIntDoubleHashMap map = qFeatures.get(docid);\n\t\t\t\tTObjectDoubleHashMap<String> termWeightMap = null;\n\t\t\t\ttry{\n\t\t\t\t\ttermWeightMap = SingleLineTRECQuery.parseQueryStringWithWeights(segments[1]);\n\t\t\t\t}catch(ArrayIndexOutOfBoundsException e){\n\t\t\t\t\tlogger.debug(line);\n\t\t\t\t\te.printStackTrace();\n\t\t\t\t\tSystem.exit(1);\n\t\t\t\t}\n\t\t\t\tString[] terms = termWeightMap.keys(new String[termWeightMap.size()]);\n\t\t\t\tfor (String term : terms){\n\t\t\t\t\tmap.put(Integer.parseInt(term), termWeightMap.get(term));\n\t\t\t\t}\n\t\t\t\tterms = null; termWeightMap.clear(); termWeightMap=null;\n\t\t\t}\n\t\t\tbr.close();\n\t\t}catch(IOException ioe){\n\t\t\tioe.printStackTrace();\n\t\t\tSystem.exit(1);\n\t\t}\n\t\tString[] qids = (String[])repos.keySet().toArray(new String[repos.keySet().size()]);\n\t\tfor (String qid : qids){\n\t\t\tthis.termFeatureMapping(qid, repos.get(qid));\n\t\t}\n\t}",
"public HashMap<String, String[]> readDictionary (){\n\t\tHashMap<String, String[]> hashmap = new HashMap<String, String[]>();\n\t\t\n\t\treturn (HashMap<String, String[]>) readDictionary(hashmap);\n\t}",
"public static Map readMap(String filename)\n throws IOException, ClassNotFoundException\n {\n ObjectInputStream in = null;\n try\n {\n //open the file\n in = new ObjectInputStream(new FileInputStream(filename));\n //read and return the object\n return (Map)in.readObject();\t\n }\n finally\n {\n //close the file\n if(in != null)\n in.close();\n } \n }",
"public void readXMLFile(File file, int dim, int verbose) {\n\n\t\tif(file.exists()) {\n\n\t\t\tDocumentBuilderFactory factory = DocumentBuilderFactory.newInstance();\n\n\t\t\ttry {\n\t\t\t\tDocumentBuilder builder = factory.newDocumentBuilder();\n\t\t\t\tDocument document = builder.parse(file);\n\n\t\t\t\tElement racine = document.getDocumentElement();\n\t\t\t\tNodeList racineNoeuds = racine.getChildNodes();\n\t\t\t\tint nbRacineNoeuds = racineNoeuds.getLength();\n\n\t\t\t\t// Number of instances\n\t\t\t\tint numberOfInstances = -1;\n\n\t\t\t\tfor(int i=0; i<nbRacineNoeuds; i++) {\n\t\t\t\t\tif(racineNoeuds.item(i).getNodeType() == Node.ELEMENT_NODE) {\n\t\t\t\t\t\tElement e = (Element) racineNoeuds.item(i);\n\t\t\t\t\t\tif(verbose > 2) System.out.println(i + \"\\t\" + e + \"\\t\" + e.getTextContent());\n\n\t\t\t\t\t\tif(e.getTagName().compareToIgnoreCase(\"name\") == 0) {\n\t\t\t\t\t\t\t// Read the name of the bag\n\t\t\t\t\t\t\tString name = e.getTextContent();\n\t\t\t\t\t\t\tsetName(name);\n\t\t\t\t\t\t}\n\t\t\t\t\t\telse if(e.getTagName().compareToIgnoreCase(\"numberofinstances\") == 0) {\n\t\t\t\t\t\t\t// Read the number of instances\n\t\t\t\t\t\t\tnumberOfInstances = Integer.parseInt(e.getTextContent());\n\t\t\t\t\t\t}\n\t\t\t\t\t\telse if(e.getTagName().compareToIgnoreCase(\"feature\") == 0) {\n\t\t\t\t\t\t\t// Read the global feature representation of the bag\n\t\t\t\t\t\t\tint featureDim = Integer.parseInt(e.getAttribute(\"dim\"));\n\t\t\t\t\t\t\tif(dim >= 0 && featureDim != dim) {\n\t\t\t\t\t\t\t\tSystem.out.println(\"ERROR - read dimension feature \" + featureDim + \" vs \" + dim);\n\t\t\t\t\t\t\t\tSystem.exit(0);\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\tString stringFeature = e.getTextContent();\n\t\t\t\t\t\t\tsetBagFeature(readFeature(stringFeature, featureDim));\n\t\t\t\t\t\t}\n\t\t\t\t\t\telse if(e.getTagName().compareToIgnoreCase(\"instance\") == 0) {\n\t\t\t\t\t\t\t// Read an instance\n\n\t\t\t\t\t\t\tNodeList childNoeuds = e.getChildNodes();\n\t\t\t\t\t\t\tint nbChildNoeuds = childNoeuds.getLength();\n\n\t\t\t\t\t\t\t// Index of instance\n\t\t\t\t\t\t\tint index = -1;\n\n\t\t\t\t\t\t\t// Instance feature\n\t\t\t\t\t\t\tdouble[] feature = null;\n\n\t\t\t\t\t\t\tfor(int j=0; j<nbChildNoeuds; j++) {\n\t\t\t\t\t\t\t\tif(childNoeuds.item(j).getNodeType() == Node.ELEMENT_NODE) {\n\t\t\t\t\t\t\t\t\tElement childElement = (Element) childNoeuds.item(j);\n\n\t\t\t\t\t\t\t\t\tif(verbose > 2) System.out.println(j + \"\\t\" + childElement);\n\n\t\t\t\t\t\t\t\t\tif(childElement.getTagName().compareToIgnoreCase(\"index\") == 0) {\n\t\t\t\t\t\t\t\t\t\t// Read index of instance\n\t\t\t\t\t\t\t\t\t\tindex = Integer.parseInt(childElement.getTextContent());\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\telse if(childElement.getTagName().compareToIgnoreCase(\"feature\") == 0) {\n\t\t\t\t\t\t\t\t\t\t// Read instance feature\n\t\t\t\t\t\t\t\t\t\tint featureDim = Integer.parseInt(childElement.getAttribute(\"dim\"));\n\t\t\t\t\t\t\t\t\t\tif(dim >= 0 && featureDim != dim) {\n\t\t\t\t\t\t\t\t\t\t\tSystem.out.println(\"ERROR - read dimension feature \" + featureDim + \" vs \" + dim);\n\t\t\t\t\t\t\t\t\t\t\tSystem.exit(0);\n\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\tString stringFeature = childElement.getTextContent();\n\t\t\t\t\t\t\t\t\t\tfeature = readFeature(stringFeature, featureDim);\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t\tif(index != -1) {\n\t\t\t\t\t\t\t\taddInstance(index, feature);\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\telse {\n\t\t\t\t\t\t\t\taddInstance(feature);\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t}\t\t\t\t\n\t\t\t\t}\n\n\t\t\t\tif(numberOfInstances != -1 && numberOfInstances != numberOfInstances()) {\n\t\t\t\t\tSystem.out.println(\"Error in readXMLFile - number of instances incorrect \" + numberOfInstances + \" != \" + numberOfInstances());\n\t\t\t\t}\n\t\t\t}\n\t\t\tcatch (final ParserConfigurationException e) {\n\t\t\t\te.printStackTrace();\n\t\t\t}\n\t\t\tcatch (final SAXException e) {\n\t\t\t\te.printStackTrace();\n\t\t\t}\n\t\t\tcatch (final IOException e) {\n\t\t\t\te.printStackTrace();\n\t\t\t}\n\t\t}\n\t\telse {\n\t\t\tSystem.out.println(\"\\nError file \" + file.getAbsolutePath() + \" does not exist\");\n\t\t\tSystem.exit(0);\n\t\t}\n\t}",
"public boolean readAttributeFile(File file);",
"public static Staff readFromXml() throws JAXBException {\n JAXBContext jaxbContext = JAXBContext.newInstance(Staff.class);\n Unmarshaller jaxbUnmarshaller = jaxbContext.createUnmarshaller();\n return (Staff)jaxbUnmarshaller.unmarshal(new File(\"test.xml\"));\n }",
"public MapDictionary(String filename) {\n\t\ttry {\n\t\t\tScanner scan = new Scanner(new File(filename));\n\t\t\t\n\t\t\t\twhile(scan.hasNextLine()) {\n\t\t\t\t\tString word = scan.nextLine().toLowerCase();\n\t\t\t\t\tString signature = PredictivePrototype.wordToSignature(word);\n\t\t\t\t\tSet <String> wordsSet = new HashSet<String>();\n\t\t\t\t\tif(PredictivePrototype.isValid(signature)==true && word.length() == signature.length()) {\n\t\t\t\t\t\twordsSet.add(word);\n\t\t\t\t\t\tif(dictionary.containsKey(signature)) {\n\t\t\t\t\t\t\tdictionary.get(signature).add(word);\n\t\t\t\t\t\t}else {\n\t\t\t\t\t\t\tdictionary.put(signature, wordsSet);\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tscan.close();\n\t\t\t\t\n\t\t} catch(IOException e){\n\t\t\tSystem.out.println(\"File not found\");\n\t\t}\n\t}",
"private void getDictionary(){\r\n // TODO: read Dictionary\r\n try{\r\n lstDictionary.clear();\r\n for(int i = 0; i < IConfig.LABEL_COUNT; i++){\r\n lstDictionary.add(new HashMap<>());\r\n DictionaryReader dictionaryReader = new DictionaryReader(lstDictionary.get(i), IConfig.DICTIONARY_URL[i]);\r\n dictionaryReader.read();\r\n }\r\n }catch (Exception e){\r\n e.printStackTrace();\r\n }\r\n }",
"public Dictionary(String filename) throws FileNotFoundException, IOException {\n wordlist = loadWordList(filename);\n }",
"public static Dictionary load(Path path) throws IOException {\n try (BufferedReader bufferedReader = Files.newBufferedReader(path)) {\n return load(bufferedReader.lines());\n }\n }",
"Feature loadFeature(Integer id);",
"public HashMap<String,String> readMapFile(String filename) throws IOException {\n\t\tHashMap<String,String> valueMap = new HashMap<String,String>();\t\t\n List<String> cols = new ArrayList<String>(); \n\t\t\n try{\n \t buf = new BufferedReader(new FileReader(filename)); \n\t String strRead; \n\t while ((strRead=buf.readLine())!=null) {\n\t \tcols = Arrays.asList(strRead.split(\"\\t\")); \t\n\t \tif(cols.size() != 2)\n\t \t\tcontinue; \t\n\t \tvalueMap.put(cols.get(0),cols.get(1)); \t\n\t \t }\n\t } catch(IOException e){\n\t e.printStackTrace();\n\t } finally {\n\t \tbuf.close(); \n\t }\n\t\t\t\n\t\treturn valueMap;\n\t}",
"private void readXML() {\n\t\tSAXParserFactory factory = SAXParserFactory.newInstance();\n\t\tXMLReader handler = new XMLReader();\n\t\tSAXParser parser;\n\t\t\n\t\t//Parsing xml file\n\t\ttry {\n\t\t\tparser = factory.newSAXParser();\n\t\t\tparser.parse(\"src/data/users.xml\", handler);\n\t\t\tgroupsList = handler.getGroupNames();\n\t\t} catch(SAXException e) {\n\t\t\te.printStackTrace();\n\t\t} catch (ParserConfigurationException e) {\n\t\t\te.printStackTrace();\n\t\t} catch (IOException e) {\n\t\t\te.printStackTrace();\n\t\t};\n\t}",
"public TiledMap load(String id, String file) throws RuntimeException, SAXException, IOException, ParserConfigurationException {\r\n Document doc = UtilXML.loadDocument(file);\r\n\r\n if (!isTmxMap(doc))\r\n throw new RuntimeException(\"XML file isn't formatted as a TMX map!\");\r\n\r\n TiledMap map = createMap(id, doc);\r\n\r\n readTilesets(map, doc, file);\r\n readMapTileLayers(map, doc, file);\r\n readMapObjects(map, doc, file);\r\n return map;\r\n\r\n }",
"private void load(Path fileName) throws IOException {\n try(BufferedReader reader = Files.newBufferedReader(fileName)) {\n String line = \"\";\n\n // Matches lines with the format:\n // key=value\n // where the key is any sequence of lowercase letters. (a to z)\n // where value may be any letters from a to z (case insensitive) 0 to 9 or the letters '-' and '.'.\n Pattern validLine = Pattern.compile(\"^(?<key>[a-z]+)=(?<value>[a-zA-Z0-9-.]+)$\");\n\n // Read the file line by line\n while((line = reader.readLine()) != null) {\n if(line.startsWith(\";\")) { // Ignore lines that start with ;\n continue;\n }\n\n // Remove any whitespace\n line = line.trim();\n\n // Continue if our line is empty\n if(\"\".equals(line)) {\n continue;\n }\n\n Matcher matcher = validLine.matcher(line);\n\n if(!matcher.matches() || matcher.groupCount() != 2) {\n System.err.println(\"Unable to parse line: \" + line);\n continue;\n }\n\n String key = matcher.group(\"key\");\n String value = matcher.group(\"value\");\n\n map.put(key, value);\n }\n }\n }",
"@SuppressWarnings(\"unchecked\")\n\tprivate void parseMapData(String filename){\n\t\ttry{\n\t\t\tXMLInputFactory inputFactory = XMLInputFactory.newInstance();\n\t\t\tInputStream in = new FileInputStream(filename);\n\t\t\tXMLEventReader eventReader = inputFactory.createXMLEventReader(in);\n\t\t\t\n\t\t\t//Read through the .osm file\n\t\t\twhile(eventReader.hasNext()){\n\n\t\t\t\tXMLEvent event = eventReader.nextEvent();\n\t\t\t\t\n\t\t\t\t//At start of a new tag\n\t\t\t\tif(event.isStartElement()){\n\t\t\t\t\tStartElement startElement = event.asStartElement();\n\t\t\t\t\t\n\t\t\t\t\t//If we have bounds tag\n\t\t\t\t\tif(startElement.getName().getLocalPart() == (BOUNDS)){\n\t\t\t\t\t\tif(Frame.DEBUG)System.out.println(\"Found bounds tag\");\n\t\t\t\t\t\tfloat maxlon = 0,minlat = 0;\n\t\t\t\t\t\tIterator<Attribute> attributes = startElement.getAttributes();\n\t\t\t\t\t\t\n\t\t\t\t\t\t//Go through all bounds attributes\n\t\t\t\t\t\twhile(attributes.hasNext()){\n\t\t\t\t\t\t\tAttribute attribute = attributes.next();\n\t\t\t\t\t\t\tif(attribute.getName().toString().equals(MINLAT)) minlat = Float.parseFloat(attribute.getValue());\n\t\t\t\t\t\t\telse if(attribute.getName().toString().equals(MINLON)) minlon = Float.parseFloat(attribute.getValue());\n\t\t\t\t\t\t\telse if(attribute.getName().toString().equals(MAXLAT)) maxlat = Float.parseFloat(attribute.getValue());\n\t\t\t\t\t\t\telse if(attribute.getName().toString().equals(MAXLON)) maxlon = Float.parseFloat(attribute.getValue());\n\t\t\t\t\t\t}\n\t\t\t\t\t\t\n\t\t\t\t\t\t//Calculate scaling values for lon and lat to screen coordinates\n\t\t\t\t\t\tfloat latDiff = maxlat-minlat;\n\t\t\t\t\t\tfloat lonDiff = maxlon-minlon;\n\t\t\t\t\t\tscaleLonX = Frame.SIM_WINDOW_LENGTH / lonDiff;\n\t\t\t\t\t\tscaleLatY = -Frame.SIM_WINDOW_LENGTH / latDiff;\n\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t\t//If we have a node tag\n\t\t\t\t\telse if(startElement.getName().getLocalPart() == (NODE)){\n\t\t\t\t\t\tString id = \"\";\n\t\t\t\t\t\tfloat lon = 0, lat = 0;\n\t\t\t\t\t\t\n\t\t\t\t\t\tIterator<Attribute> attributes = startElement.getAttributes();\n\t\t\t\t\t\t\n\t\t\t\t\t\t//Go through all node attributes\n\t\t\t\t\t\twhile(attributes.hasNext()){\n\t\t\t\t\t\t\tAttribute attribute = attributes.next();\n\t\t\t\t\t\t\tif(attribute.getName().toString().equals(ID)) id = attribute.getValue();\n\t\t\t\t\t\t\telse if(attribute.getName().toString().equals(LON)) lon = Float.parseFloat(attribute.getValue());\n\t\t\t\t\t\t\telse if(attribute.getName().toString().equals(LAT)) lat = Float.parseFloat(attribute.getValue());\n\t\t\t\t\t\t}\n\t\t\t\t\t\t\n\t\t\t\t\t\tNode node = new Node(Math.round(scaleLonX*(lon-minlon)),Math.round(scaleLatY*(lat-maxlat)));\n\t\t\t\t\t\t\n\t\t\t\t\t\tevent = eventReader.nextEvent();\n\t\t\t\t\t\t\n\t\t\t\t\t\t//Check if node has any tags\n\t\t\t\t\t\twhile(true){\n\n\t\t\t\t\t\t\tif(event.isStartElement()){\n\t\t\t\t\t\t\t\tstartElement = event.asStartElement();\n\t\t\t\t\t\t\t\t//Does this node have any tags?\n\t\t\t\t\t\t\t\tif(startElement.getName().getLocalPart() == (TAG)){\n\t\t\t\t\t\t\t\t\tattributes = startElement.getAttributes();\n\t\t\t\t\t\t\t\t\t//Go through all tag attributes\n\t\t\t\t\t\t\t\t\twhile(attributes.hasNext()){\n\t\t\t\t\t\t\t\t\t\tAttribute attribute = attributes.next();\n\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t\t//K\n\t\t\t\t\t\t\t\t\t\tif(attribute.getName().toString().equals(K)){\n\t\t\t\t\t\t\t\t\t\t\t//SHOP\n\t\t\t\t\t\t\t\t\t\t\tif(attribute.getValue().toString().equals(SHOP)){\n\t\t\t\t\t\t\t\t\t\t\t\tif(Frame.DEBUG)System.out.println(\"Added shop\");\n\t\t\t\t\t\t\t\t\t\t\t\tnode.setTag(SHOP);\n\t\t\t\t\t\t\t\t\t\t\t\ttargets.get(TargetEnums.SHOP_I.ordinal()).add(node);\n\t\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t\t\t\t\t//V\n\t\t\t\t\t\t\t\t\t\telse if(attribute.getName().toString().equals(V)){\n\t\t\t\t\t\t\t\t\t\t\t//CROSSING\n\t\t\t\t\t\t\t\t\t\t\tif(attribute.getValue().toString().equals(CROSSING)){\n\t\t\t\t\t\t\t\t\t\t\t\tif(Frame.DEBUG)System.out.println(\"Added CROSSING\");\n\t\t\t\t\t\t\t\t\t\t\t\tnode.setTag(CROSSING);\n\t\t\t\t\t\t\t\t\t\t\t\tnonTargetNodes.add(node);\n\t\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\t\t//SUBWAY ENTRANCE\n\t\t\t\t\t\t\t\t\t\t\telse if(attribute.getValue().toString().equals(SUBWAY_ENTRANCE)){\n\t\t\t\t\t\t\t\t\t\t\t\tif(Frame.DEBUG)System.out.println(\"Added SUBWAY_ENTRANCE\");\n\t\t\t\t\t\t\t\t\t\t\t\tnode.setTag(SUBWAY_ENTRANCE);\n\t\t\t\t\t\t\t\t\t\t\t\ttargets.get(TargetEnums.PUBLIC_TRANSPORT.ordinal()).add(node);\n\t\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\t\t//BUS STATION\n\t\t\t\t\t\t\t\t\t\t\telse if(attribute.getValue().toString().equals(BUS_STATION)){\n\t\t\t\t\t\t\t\t\t\t\t\tif(Frame.DEBUG)System.out.println(\"Added BUS_STATION\");\n\t\t\t\t\t\t\t\t\t\t\t\tnode.setTag(BUS_STATION);\n\t\t\t\t\t\t\t\t\t\t\t\ttargets.get(TargetEnums.PUBLIC_TRANSPORT.ordinal()).add(node);\n\t\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\t\t//BUS STOP\n\t\t\t\t\t\t\t\t\t\t\telse if(attribute.getValue().equals(BUS_STOP)){\n\t\t\t\t\t\t\t\t\t\t\t\tif(Frame.DEBUG)System.out.println(\"Added BUS_STOP\");\n\t\t\t\t\t\t\t\t\t\t\t\tnode.setTag(BUS_STOP);\n\t\t\t\t\t\t\t\t\t\t\t\ttargets.get(TargetEnums.PUBLIC_TRANSPORT.ordinal()).add(node);\n\t\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\t\t//RESTAURANT\n\t\t\t\t\t\t\t\t\t\t\telse if(attribute.getValue().toString().equals(RESTAURANT)){\n\t\t\t\t\t\t\t\t\t\t\t\tif(Frame.DEBUG)System.out.println(\"Added RESTAURANT\");\n\t\t\t\t\t\t\t\t\t\t\t\tnode.setTag(RESTAURANT);\n\t\t\t\t\t\t\t\t\t\t\t\ttargets.get(TargetEnums.RESTAURANT_I.ordinal()).add(node);\n\t\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\t\t//CAFE\n\t\t\t\t\t\t\t\t\t\t\telse if(attribute.getValue().toString().equals(CAFE)){\n\t\t\t\t\t\t\t\t\t\t\t\tif(Frame.DEBUG)System.out.println(\"Added CAFE\");\n\t\t\t\t\t\t\t\t\t\t\t\tnode.setTag(CAFE);\n\t\t\t\t\t\t\t\t\t\t\t\ttargets.get(TargetEnums.CAFE_I.ordinal()).add(node);\n\t\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\t\t//TOILETS\n\t\t\t\t\t\t\t\t\t\t\telse if(attribute.getValue().toString().equals(TOILETS)){\n\t\t\t\t\t\t\t\t\t\t\t\tif(Frame.DEBUG)System.out.println(\"Added Toilet\");\n\t\t\t\t\t\t\t\t\t\t\t\tnode.setTag(TOILETS);\n\t\t\t\t\t\t\t\t\t\t\t\ttargets.get(TargetEnums.TOILET_I.ordinal()).add(node);\n\t\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\t\t//WASTE BIN\n\t\t\t\t\t\t\t\t\t\t\telse if(attribute.getValue().toString().equals(WASTEBIN)){\n\t\t\t\t\t\t\t\t\t\t\t\tif(Frame.DEBUG)System.out.println(\"Added WASTE BIN\");\n\t\t\t\t\t\t\t\t\t\t\t\tnode.setTag(WASTEBIN);\n\t\t\t\t\t\t\t\t\t\t\t\ttargets.get(TargetEnums.WASTE_I.ordinal()).add(node);\n\t\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\t\t//FAST FOOD\n\t\t\t\t\t\t\t\t\t\t\telse if(attribute.getValue().toString().equals(FAST_FOOD)){\n\t\t\t\t\t\t\t\t\t\t\t\tif(Frame.DEBUG)System.out.println(\"Added FAST_FOOD\");\n\t\t\t\t\t\t\t\t\t\t\t\tnode.setTag(FAST_FOOD);\n\t\t\t\t\t\t\t\t\t\t\t\ttargets.get(TargetEnums.FASTFOOD_I.ordinal()).add(node);\n\t\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\t\t//DOCTORS\n\t\t\t\t\t\t\t\t\t\t\telse if(attribute.getValue().toString().equals(DOCTORS)){\n\t\t\t\t\t\t\t\t\t\t\t\tif(Frame.DEBUG)System.out.println(\"Added DOCTORS\");\n\t\t\t\t\t\t\t\t\t\t\t\tnode.setTag(DOCTORS);\n\t\t\t\t\t\t\t\t\t\t\t\ttargets.get(TargetEnums.HEALTH.ordinal()).add(node);\n\t\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\t\t//HOSPITAL\n\t\t\t\t\t\t\t\t\t\t\telse if(attribute.getValue().toString().equals(HOSPITAL)){\n\t\t\t\t\t\t\t\t\t\t\t\tif(Frame.DEBUG)System.out.println(\"Added HOSPITAL\");\n\t\t\t\t\t\t\t\t\t\t\t\tnode.setTag(HOSPITAL);\n\t\t\t\t\t\t\t\t\t\t\t\ttargets.get(TargetEnums.HEALTH.ordinal()).add(node);\n\t\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\t\t//PHARMACY\n\t\t\t\t\t\t\t\t\t\t\telse if(attribute.getValue().toString().equals(PHARMACY)){\n\t\t\t\t\t\t\t\t\t\t\t\tif(Frame.DEBUG)System.out.println(\"Added PHARMACY\");\n\t\t\t\t\t\t\t\t\t\t\t\tnode.setTag(PHARMACY);\n\t\t\t\t\t\t\t\t\t\t\t\ttargets.get(TargetEnums.HEALTH.ordinal()).add(node);\n\t\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\t\t//LIBRARY\n\t\t\t\t\t\t\t\t\t\t\telse if(attribute.getValue().toString().equals(LIBRARY)){\n\t\t\t\t\t\t\t\t\t\t\t\tif(Frame.DEBUG)System.out.println(\"Added LIBRARY\");\n\t\t\t\t\t\t\t\t\t\t\t\tnode.setTag(LIBRARY);\n\t\t\t\t\t\t\t\t\t\t\t\ttargets.get(TargetEnums.STUDY.ordinal()).add(node);\n\t\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\t\t//BANK\n\t\t\t\t\t\t\t\t\t\t\telse if(attribute.getValue().toString().equals(BANK)){\n\t\t\t\t\t\t\t\t\t\t\t\tif(Frame.DEBUG)System.out.println(\"Added BANK\");\n\t\t\t\t\t\t\t\t\t\t\t\tnode.setTag(BANK);\n\t\t\t\t\t\t\t\t\t\t\t\ttargets.get(TargetEnums.BANK_I.ordinal()).add(node);\n\t\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\t\t//ATM\n\t\t\t\t\t\t\t\t\t\t\telse if(attribute.getValue().toString().equals(ATM)){\n\t\t\t\t\t\t\t\t\t\t\t\tif(Frame.DEBUG)System.out.println(\"Added BANK\");\n\t\t\t\t\t\t\t\t\t\t\t\tnode.setTag(BANK);\n\t\t\t\t\t\t\t\t\t\t\t\ttargets.get(TargetEnums.BANK_I.ordinal()).add(node);\n\t\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\t\t//STATION\n\t\t\t\t\t\t\t\t\t\t\telse if(attribute.getValue().toString().equals(STATION)){\n\t\t\t\t\t\t\t\t\t\t\t\tif(node.getXPos() >= 0 && node.getXPos() < Frame.SIM_WINDOW_LENGTH && \n\t\t\t\t\t\t\t\t\t\t\t\t node.getYPos() >= 0 && node.getYPos() < Frame.SIM_WINDOW_LENGTH)\n\t\t\t\t\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\t\t\t\t\tif(Frame.DEBUG)System.out.println(\"Added STATION\");\n\t\t\t\t\t\t\t\t\t\t\t\t\tnode.setTag(STATION);\n\t\t\t\t\t\t\t\t\t\t\t\t\ttargets.get(TargetEnums.PUBLIC_TRANSPORT.ordinal()).add(node);\n\t\t\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\telse if(event.isEndElement()){\n\t\t\t\t\t\t\t\tEndElement endElement = event.asEndElement();\n\t\t\t\t\t\t\t\t//END NODE\n\t\t\t\t\t\t\t\tif(endElement.getName().getLocalPart() == (NODE)){\n\t\t\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\tevent = eventReader.nextEvent();\n\t\t\t\t\t\t}\n\t\t\t\t\t\t\n\t\t\t\t\t\tnodeMap.put(id, node); //Put our node into the node map\n\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t\t//If we have a way tag\n\t\t\t\t\telse if(startElement.getName().getLocalPart() == (WAY)){\n\t\t\t\t\t\tLinkedList<Node> nodes = new LinkedList<Node>();\n\t\t\t\t\t\tMapObject mapObject = null;\n\t\t\t\t\t\tboolean ignore = false;\n\t\t\t\t\t\t\n\t\t\t\t\t\t//Go through all node references for way\n\t\t\t\t\t\twhile(true){\n\t\t\t\t\t\t\t//Is event a start element?\n\t\t\t\t\t\t\tif(event.isStartElement()){\n\t\t\t\t\t\t\t\tstartElement = event.asStartElement();\n\t\n\t\t\t\t\t\t\t\t//A new node has been detected for the way\n\t\t\t\t\t\t\t\tif(startElement.getName().getLocalPart() == (ND)){\n\t\t\t\t\t\t\t\t\tIterator<Attribute> attributes = startElement.getAttributes();\n\t\t\t\t\t\t\t\t\t//Take the single attribute the node reference\n\t\t\t\t\t\t\t\t\twhile(attributes.hasNext()){\n\t\t\t\t\t\t\t\t\t\tAttribute attribute = attributes.next();\n\t\t\t\t\t\t\t\t\t\tif(attribute.getName().toString().equals(REF)) nodes.add(nodeMap.get(attribute.getValue()));\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//A tag has been detected for the way\n\t\t\t\t\t\t\t\tif(startElement.getName().getLocalPart() == (TAG)){\n\t\t\t\t\t\t\t\t\tIterator<Attribute> attributes = startElement.getAttributes();\n\t\t\t\t\t\t\t\t\t//Take the attribute the tag references\n\t\t\t\t\t\t\t\t\twhile(attributes.hasNext()){\n\t\t\t\t\t\t\t\t\t\tAttribute attribute = attributes.next();\n\t\t\t\t\t\t\t\t\t\t//Value\n\t\t\t\t\t\t\t\t\t\tif(attribute.getName().toString().equals(V)) {\n\t\t\t\t\t\t\t\t\t\t\t//FOOTWAY\n\t\t\t\t\t\t\t\t\t\t\tif(attribute.getValue().toString().equals(FOOTWAY)){\n\t\t\t\t\t\t\t\t\t\t\t\tmapObject = new Way();\n\t\t\t\t\t\t\t\t\t\t\t\tmapObject.setCost(FOOTWAY_COST);\n\t\t\t\t\t\t\t\t\t\t\t\t((Way)mapObject).setWidth(FOOTWAY_WIDTH);\n\t\t\t\t\t\t\t\t\t\t\t\tmapObject.setColor(FOOTWAY_COLOR);\n\t\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\t\t//PEDESTRIAN\n\t\t\t\t\t\t\t\t\t\t\telse if(attribute.getValue().toString().equals(PEDESTRIAN)){\n\t\t\t\t\t\t\t\t\t\t\t\t//AREA\n\t\t\t\t\t\t\t\t\t\t\t\tif(mapObject instanceof Area){\n\t\t\t\t\t\t\t\t\t\t\t\t\tmapObject.setCost(PEDESTRIAN_COST);\n\t\t\t\t\t\t\t\t\t\t\t\t\tmapObject.setColor(PEDESTRIAN_COLOR);\n\t\t\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\t\t\t//WAY\n\t\t\t\t\t\t\t\t\t\t\t\telse{\n\t\t\t\t\t\t\t\t\t\t\t\t\tmapObject = new Way();\n\t\t\t\t\t\t\t\t\t\t\t\t\tmapObject.setCost(PEDESTRIAN_COST);\n\t\t\t\t\t\t\t\t\t\t\t\t\t((Way)mapObject).setWidth(PEDESTRIAN_WIDTH);\n\t\t\t\t\t\t\t\t\t\t\t\t\tmapObject.setColor(PEDESTRIAN_COLOR);\n\t\t\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\t\t//PARK\n\t\t\t\t\t\t\t\t\t\t\telse if(attribute.getValue().toString().equals(PARK)){\n\t\t\t\t\t\t\t\t\t\t\t\tmapObject = new Area();\n\t\t\t\t\t\t\t\t\t\t\t\tmapObject.setCost(PARK_COST);\n\t\t\t\t\t\t\t\t\t\t\t\tmapObject.setColor(PARK_COLOR);\n\t\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\t\t//WOOD\n\t\t\t\t\t\t\t\t\t\t\telse if(attribute.getValue().toString().equals(WOOD)){\n\t\t\t\t\t\t\t\t\t\t\t\tmapObject = new Area();\n\t\t\t\t\t\t\t\t\t\t\t\tmapObject.setCost(WOOD_COST);\n\t\t\t\t\t\t\t\t\t\t\t\tmapObject.setColor(WOOD_COLOR);\n\t\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\t\t//WATER\n\t\t\t\t\t\t\t\t\t\t\telse if(attribute.getValue().toString().equals(WATER)){\n\t\t\t\t\t\t\t\t\t\t\t\tmapObject = new Area();\n\t\t\t\t\t\t\t\t\t\t\t\tmapObject.setCost(WATER_COST);\n\t\t\t\t\t\t\t\t\t\t\t\tmapObject.setColor(WATER_COLOR);\n\t\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\t\t//STEPS\n\t\t\t\t\t\t\t\t\t\t\telse if(attribute.getValue().toString().equals(STEPS)){\n\t\t\t\t\t\t\t\t\t\t\t\tmapObject = new Way();\n\t\t\t\t\t\t\t\t\t\t\t\tmapObject.setCost(FOOTWAY_COST);\n\t\t\t\t\t\t\t\t\t\t\t\t((Way)mapObject).setWidth(FOOTWAY_WIDTH);\n\t\t\t\t\t\t\t\t\t\t\t\tmapObject.setColor(STEPS_COLOR);\n\t\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\t\t//SERVICE\n\t\t\t\t\t\t\t\t\t\t\telse if(attribute.getValue().toString().equals(SERVICE)){\n\t\t\t\t\t\t\t\t\t\t\t\tmapObject = new Way();\n\t\t\t\t\t\t\t\t\t\t\t\tmapObject.setCost(SERVICE_COST);\n\t\t\t\t\t\t\t\t\t\t\t\t((Way)mapObject).setWidth(SERVICE_WIDTH);\n\t\t\t\t\t\t\t\t\t\t\t\tmapObject.setColor(SERVICE_COLOR);\n\t\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\t\t//CYCLE WAY\n\t\t\t\t\t\t\t\t\t\t\telse if(attribute.getValue().toString().equals(CYCLEWAY)){\n\t\t\t\t\t\t\t\t\t\t\t\tmapObject = new Way();\n\t\t\t\t\t\t\t\t\t\t\t\tmapObject.setCost(CYCLEWAY_COST);\n\t\t\t\t\t\t\t\t\t\t\t\t((Way)mapObject).setWidth(CYCLEWAY_WIDTH);\n\t\t\t\t\t\t\t\t\t\t\t\tmapObject.setColor(CYCLEWAY_COLOR);\n\t\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\t\t//PLATFORM\n\t\t\t\t\t\t\t\t\t\t\telse if(attribute.getValue().toString().equals(PLATFORM)){\n\t\t\t\t\t\t\t\t\t\t\t\tmapObject = new Way();\n\t\t\t\t\t\t\t\t\t\t\t\tmapObject.setCost(RAILWAY_PLATFORM_COST);\n\t\t\t\t\t\t\t\t\t\t\t\t((Way)mapObject).setWidth(RAILWAY_PLATFORM_WIDTH);\n\t\t\t\t\t\t\t\t\t\t\t\tmapObject.setColor(RAILWAY_PLATFORM_COLOR);\n\t\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\t\t//NARROW GAUGE (RAILWAY)\n\t\t\t\t\t\t\t\t\t\t\telse if(attribute.getValue().toString().equals(NARROW_GAUGE)){\n\t\t\t\t\t\t\t\t\t\t\t\tmapObject = new Way();\n\t\t\t\t\t\t\t\t\t\t\t\tmapObject.setCost(RAILWAY_COST);\n\t\t\t\t\t\t\t\t\t\t\t\t((Way)mapObject).setWidth(RAILWAY_WIDTH);\n\t\t\t\t\t\t\t\t\t\t\t\tmapObject.setColor(RAILWAY_COLOR);\n\t\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\t\t//SUBWAY\n\t\t\t\t\t\t\t\t\t\t\telse if(attribute.getValue().toString().equals(SUBWAY)){\n\t\t\t\t\t\t\t\t\t\t\t\tignore = true;\n\t\t\t\t\t\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\t\t//EDUCATION\n\t\t\t\t\t\t\t\t\t\t\telse if(attribute.getValue().toString().equals(EDUCATION)){\n\t\t\t\t\t\t\t\t\t\t\t\tmapObject.setTag(EDUCATION);\n\t\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\t//Key\n\t\t\t\t\t\t\t\t\t\telse if(attribute.getName().getLocalPart() == (K)){\n\t\t\t\t\t\t\t\t\t\t\t//BUILDING\n\t\t\t\t\t\t\t\t\t\t\tif(attribute.getValue().toString().equals(BUILDING)){\n\t\t\t\t\t\t\t\t\t\t\t\tmapObject = new Building();\n\t\t\t\t\t\t\t\t\t\t\t\tmapObject.setColor(BUILDING_COLOR);\n\t\t\t\t\t\t\t\t\t\t\t\tmapObject.setCost(BUILDING_COST);\n\t\t\t\t\t\t\t\t\t\t\t\tignore = false;\n\t\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\t\t//WATERWAY\n\t\t\t\t\t\t\t\t\t\t\telse if(attribute.getValue().toString().equals(WATERWAY)){\n\t\t\t\t\t\t\t\t\t\t\t\tmapObject = new Way();\n\t\t\t\t\t\t\t\t\t\t\t\tmapObject.setColor(WATER_COLOR);\n\t\t\t\t\t\t\t\t\t\t\t\tmapObject.setCost(WATER_COST);\n\t\t\t\t\t\t\t\t\t\t\t\t((Way)mapObject).setWidth(WATERWAY_WIDTH);\n\t\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\t\t//AREA\n\t\t\t\t\t\t\t\t\t\t\telse if(attribute.getValue().toString().equals(AREA)){\n\t\t\t\t\t\t\t\t\t\t\t\tmapObject = new Area();\n\t\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\t\t//BARRIER\n\t\t\t\t\t\t\t\t\t\t\telse if(attribute.getValue().toString().equals(BARRIER)){\n\t\t\t\t\t\t\t\t\t\t\t\tmapObject = new Way();\n\t\t\t\t\t\t\t\t\t\t\t\tmapObject.setCost(BARRIER_COST);\n\t\t\t\t\t\t\t\t\t\t\t\t((Way)mapObject).setWidth(BARRIER_WIDTH);\n\t\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\t\t//AMENITY\n\t\t\t\t\t\t\t\t\t\t\telse if(attribute.getValue().toString().equals(AMENITY)){\n\t\t\t\t\t\t\t\t\t\t\t\tignore = true;\n\t\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\t\t//LANDUSE\n\t\t\t\t\t\t\t\t\t\t\telse if(attribute.getValue().toString().equals(LANDUSE)){\n\t\t\t\t\t\t\t\t\t\t\t\tignore = true;\n\t\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\t\t//MAN MADE\n\t\t\t\t\t\t\t\t\t\t\telse if(attribute.getValue().toString().equals(MAN_MADE)){\n\t\t\t\t\t\t\t\t\t\t\t\tignore = true;\n\t\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t//Is event an end element?\n\t\t\t\t\t\t\telse if(event.isEndElement()){\n\t\t\t\t\t\t\t\tEndElement endElement = event.asEndElement();\n\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t//At the end of a Way element? (add way and onwards to next tag)\n\t\t\t\t\t\t\t\tif(endElement.getName().getLocalPart() == (WAY)){\n\t\t\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\tevent = eventReader.nextEvent();\n\t\t\t\t\t\t}\n\t\t\t\t\t\tif(mapObject == null && !ignore){\n\t\t\t\t\t\t\tmapObject = new Way();\n\t\t\t\t\t\t}\n\t\t\t\t\t\tif(mapObject != null && !ignore) {\n\t\t\t\t\t\t\tmapObject.addNodes(nodes);\n\t\t\t\t\t\t\n\t\t\t\t\t\t\t//Calculate collision and add to collection\n\t\t\t\t\t\t\tif(mapObject instanceof Building){\n\t\t\t\t\t\t\t\t((Building)mapObject).checkTargetsInside(targets);\n\t\t\t\t\t\t\t\tbuildings.add((Building)mapObject);\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\telse if(mapObject instanceof Area){\n\t\t\t\t\t\t\t\tareas.add((Area)mapObject);\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\telse if(mapObject instanceof Way){\n\t\t\t\t\t\t\t\tways.add((Way)mapObject);\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\tmapObject.calculateCollision(collisionMatrix);\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\tprogress += 5;\n\t\t\tsetProgress(progress);\n\t\t\tcheckTargetsReachable();\n\t\t\tsetProgress(97);\n\t\t\treadIcons();\n\t\t\tsetProgress(98);\n\t\t\tsetTargetCosts();\n\t\t\tsetProgress(99);\n\t\t}\n\t\tcatch (FileNotFoundException e) {\n\t\t\te.printStackTrace();\n\t\t} \n\t\tcatch (XMLStreamException e) {\n \t \te.printStackTrace();\n\t\t}\n\t}",
"void readMap()\n {\n try {\n FileReader\t\tmapFile = new FileReader(file);\n StringBuffer\tbuf = new StringBuffer();\n int\t\t\t\tread;\n boolean\t\t\tdone = false;\n \n while (!done)\n {\n read = mapFile.read();\n if (read == -1)\n done = true;\n else\n buf.append((char) read);\n }\n \n mapFile.close();\n \n parseMap(buf.toString());\n \n } catch (Exception e) {\n ErrorHandler.displayError(\"Could not read the map file data.\", ErrorHandler.ERR_OPEN_FAIL);\n }\n }",
"public static MobilityMap parseMap( String filename ) throws FileNotFoundException\r\n {\r\n File f = new File( filename );\r\n return parseMap( f );\r\n }",
"@SuppressWarnings(\"unchecked\")\n\t/**\n\t * Read data and store\n\t * @param data\n\t * \t\t\t\tThe map to store data read from ser file\n\t * @return Map<String, T>\n\t * \t\t\ta map of data that has all the ser file data\n\t * @throws ClassNotFoundException\n\t * @throws IOException\n\t */\n\tprotected Map<String, T> readFromFile(Map<String, T> data) throws ClassNotFoundException, IOException {\n\t\t\n\t\tInputStream file = new FileInputStream(filePath);\n\t\tInputStream buffer = new BufferedInputStream(file);\n\t\tObjectInput input = new ObjectInputStream(buffer);\n\n\t\t//deserialize the Map\n\t\tdata = (HashMap<String, T>) input.readObject();\n\t\tinput.close();\n\t\treturn data;\n\t}",
"private static Map<String, Map<String, Double>> readWeights(String fileName) throws IOException {\n\t\tMap<String, Map<String, Double>> weightMap = new HashMap<String, Map<String, Double>>();\n\n\t\tString line;\n\t\tBufferedReader br;\n\t\ttry {\n\t\t\tMap<String, Double> weight = new HashMap<String, Double>();\n\t\t\tString tempCategory = \"\";\n\n\t\t\tbr = new BufferedReader(new FileReader(fileName));\n\t\t\twhile ((line = br.readLine()) != null) {\n\n\t\t\t\tif (line.isEmpty()) {\n\t\t\t\t\tcontinue;\n\t\t\t\t} else if (line.contains(\"------:::::::::::::::::::::::::::::------\")) {\n\t\t\t\t\tString elem[] = line.split(\"------:::::::::::::::::::::::::::::------\");\n\t\t\t\t\ttry {\n\t\t\t\t\t\tweight.put(elem[0], Double.parseDouble(elem[1]));\n\t\t\t\t\t} catch (Exception e) {\n\t\t\t\t\t\tSystem.out.println(line);\n\n\t\t\t\t\t\tSystem.out.println(elem[0] + \"--------\" + elem[1]);\n\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t}\n\t\t\t\t} else if (line.equalsIgnoreCase(\"------------------------------------\")) {\n\t\t\t\t\tweightMap.put(tempCategory, weight);\n\t\t\t\t\tweight = new HashMap<String, Double>();\n\t\t\t\t\ttempCategory = \"\";\n\t\t\t\t} else {\n\t\t\t\t\ttempCategory = line;\n\t\t\t\t}\n\t\t\t}\n\n\t\t} catch (Exception e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t\treturn weightMap;\n\n\t}",
"@SuppressWarnings(\"unchecked\")\r\n\tpublic LinkedHashMap<String, ExplicitRoutingTable> read(String file) {\r\n\t\tLinkedHashMap<String, ExplicitRoutingTable> result = null;\r\n\t\ttry {\r\n\t\t\tFileInputStream fis = new FileInputStream(file);\r\n\t\t\tObjectInputStream ois = new ObjectInputStream(fis);\r\n\t\t\tresult = (LinkedHashMap<String, ExplicitRoutingTable>) ois\r\n\t\t\t\t\t.readObject();\r\n\t\t\tois.close();\r\n\t\t} catch (Exception e) {\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t\treturn result;\r\n\t}",
"public void parse() throws XMLStreamException {\n\t\tInputStream dictStream = ClassLoader.getSystemResourceAsStream(fixFileName);\n\t\tXMLStreamReader reader = factory.createXMLStreamReader(dictStream);\n\t\tString curFieldName = \"\";\n\t\twhile (reader.hasNext()) {\n\t\t\tint event = reader.next();\n\t\t\tswitch (event) {\n\t\t\tcase XMLStreamConstants.START_ELEMENT:\n\t\t\t\tString elementName = reader.getLocalName();\n\t\t\t\telementNames.add(elementName);\n\t\t\t\tif (\"fields\".equals(elementName)) {\n\t\t\t\t\tisFieldsElement = true;\n\t\t\t\t\tcontinue;\n\t\t\t\t}\n\t\t\t\tif (\"field\".equals(elementName) && isFieldsElement) {\n\t\t\t\t\tString num = reader.getAttributeValue(null, \"number\");\n\t\t\t\t\tcurFieldName = reader.getAttributeValue(null, \"name\");\n\t\t\t\t\tFieldParser.logger.info(num + \", \" + curFieldName);\n\t\t\t\t\t// Integer tagNumber = Integer.parseInt(num);\n\t\t\t\t\ttagNameToNumber.put(curFieldName, num);\n\t\t\t\t\ttagNumberToName.put(num, curFieldName);\n\t\t\t\t\tMap<String, String> tagValueToTagValueDesc = tagNameToTagValueDesc.get(curFieldName);\n\t\t\t\t\tif (tagValueToTagValueDesc == null) {\n\t\t\t\t\t\ttagValueToTagValueDesc = new ConcurrentHashMap<>();\n\t\t\t\t\t\ttagNameToTagValueDesc.put(curFieldName, tagValueToTagValueDesc);\n\t\t\t\t\t}\n\t\t\t\t\tcontinue;\n\t\t\t\t}\n\t\t\t\tif (\"value\".equals(elementName) && !\"\".equals(curFieldName)) {\n\t\t\t\t\tMap<String, String> tagValueToTagValueDesc = tagNameToTagValueDesc.get(curFieldName);\n\t\t\t\t\tString enumNum = reader.getAttributeValue(null, \"enum\");\n\t\t\t\t\tString enumDesc = reader.getAttributeValue(null, \"description\");\n\t\t\t\t\ttagValueToTagValueDesc.put(enumNum, enumDesc);\n\t\t\t\t\tcontinue;\n\t\t\t\t}\n\t\t\t\tbreak;\n\t\t\tcase XMLStreamConstants.END_ELEMENT:\n\t\t\t\telementName = reader.getLocalName();\n\t\t\t\tif (\"fields\".equals(elementName)) {\n\t\t\t\t\tisFieldsElement = false;\n\t\t\t\t\tcurFieldName = \"\";\n\t\t\t\t\treturn;\n\t\t\t\t}\n\n\t\t\t\tbreak;\n\t\t\tdefault:\n\t\t\t}\n\t\t}\n\t\treader.close();\n\t}",
"public static void load(Context context) throws IOException {\n // read the file\n String raw = File.readFile(\"vaccine.txt\", context);\n\n // clear the map and load contents of file into the map\n map.clear();\n for (String line : raw.split(\"\\n\")) {\n if (line.equals(\"\")) {\n continue;\n }\n String[] data = line.split(\",\");\n if (data[0].equals(\"\") || data.length != 3) {\n continue;\n }\n map.put(data[0], Boolean.getBoolean(data[1]));\n dateMap.put(data[0], data[2]);\n }\n }",
"protected void loadMap(InputStream xmlStream) throws Exception {\n\t\tLoadMap map = new LoadMap(state,this);\n\t\tGenericXMLParser.load(xmlStream,map);\n\t\tif(!map.isLoadSuccessful()){\n\t\t \n\t\t\tthrow new Exception(\"Map failed to load due to errors!\");\n\t\t}\n\t}",
"@SuppressWarnings(\"unchecked\")\n\tpublic VariableMapReader(String sdgFile) throws IOException {\n\t\tObjectInputStream defStream = new ObjectInputStream(new FileInputStream(new File(sdgFile+\"_def\")));\n\t\tObjectInputStream useStream = new ObjectInputStream(new FileInputStream(new File(sdgFile+\"_use\")));\n\t\tObjectInputStream modStream = new ObjectInputStream(new FileInputStream(new File(sdgFile+\"_mod\")));\n\t\tObjectInputStream refStream = new ObjectInputStream(new FileInputStream(new File(sdgFile+\"_ref\")));\n\t\tObjectInputStream ptoStream = new ObjectInputStream(new FileInputStream(new File(sdgFile+\"_pto\")));\n\n\t\ttry {\n\t\t\tdef = (Map<Integer, Set<Integer>>) defStream.readObject();\n\t\t\tuse = (Map<Integer, Set<Integer>>) useStream.readObject();\n\t\t\tmod = (Map<Integer, Set<Integer>>) modStream.readObject();\n\t\t\tref = (Map<Integer, Set<Integer>>) refStream.readObject();\n\t\t\tpto = (Map<Integer, Set<Integer>>) ptoStream.readObject();\n\n\t\t} catch (ClassNotFoundException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\n\t\tdefStream.close();\n\t\tuseStream.close();\n\t\tmodStream.close();\n\t\trefStream.close();\n\t\tptoStream.close();\n\t}",
"private void parseWSCTaxonomyFile(String fileName) {\n\t\ttry {\n\t \tFile fXmlFile = new File(fileName);\n\t \tDocumentBuilderFactory dbFactory = DocumentBuilderFactory.newInstance();\n\t \tDocumentBuilder dBuilder = dbFactory.newDocumentBuilder();\n\t \tDocument doc = dBuilder.parse(fXmlFile);\n\t \tElement taxonomy = (Element) doc.getChildNodes().item(0);\n\n\t \tprocessTaxonomyChildren(null, taxonomy.getChildNodes());\n\t\t}\n\n\t\tcatch (ParserConfigurationException e) {\n System.out.println(\"Taxonomy file parsing failed...\");\n\t\t}\n\t\tcatch (SAXException e) {\n System.out.println(\"Taxonomy file parsing failed...\");\n\t\t}\n\t\tcatch (IOException e) {\n System.out.println(\"Taxonomy file parsing failed...\");\n\t\t}\n\t}",
"private Hashtable loadFromDoc() {\n\tHashtable tab = new Hashtable();\n\n\tNodeList tree = stateDoc.getDocumentElement().getChildNodes();\n\tfor (int i = 0; tree != null && i < tree.getLength(); i++) {\n\t NamedNodeMap attr = tree.item(i).getAttributes();\n\t if (attr != null) {\n\t\tString name = attr.getNamedItem(\"name\").getNodeValue();\n\t\ttab.put(name, new WeatherUnit(attr));\n\t }\n\t}\n\treturn tab;\n }",
"@Override\r\n\tpublic void initializeFromFile(File inputXmlFile) {\n\t\tDocumentBuilderFactory factory = DocumentBuilderFactory.newInstance();\r\n\t\ttry {\r\n\t\t\tDocumentBuilder builder = factory.newDocumentBuilder();\r\n\t\t\tDocument doc = builder.parse(inputXmlFile);\r\n\t\t\tNodeList xmlNodeList;\r\n\t\t\tNodeList xmlEdgeList;\r\n\t\t\txmlNodeList = doc.getElementsByTagName(\"node\");\r\n\r\n\t\t\tfor(int i=0;i<xmlNodeList.getLength();i++) {\r\n\r\n\t\t\t\tNode p=xmlNodeList.item(i);\r\n\t\t\t\tElement xmlNode =(Element) p;\r\n\t\t\t\tNodeList.add(xmlNode);\r\n\t\t\t\tNodeMap.put(Integer.parseInt(xmlNode.getAttribute(\"id\")),xmlNode);\r\n\r\n\r\n\t\t\t\t}\r\n\t\t\txmlEdgeList = doc.getElementsByTagName(\"edge\");\r\n\r\n\r\n\t\t\tfor(int j=0;j<xmlEdgeList.getLength();j++) {\r\n\t\t\t\tNode p = xmlEdgeList.item(j);\r\n\t\t\t\tElement xmlNode = (Element) p;\r\n\t\t\t\tEdgeList.add(xmlNode);\r\n\r\n\t\t\t}\r\n\r\n\t\t} catch (ParserConfigurationException e) {\r\n\t\t\te.printStackTrace();\r\n\t\t} catch (SAXException e) {\r\n\t\t\te.printStackTrace();\r\n\t\t} catch(IOException e) {\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\r\n\t}",
"public void readXmlFile() {\r\n try {\r\n ClassLoader classLoader = getClass().getClassLoader();\r\n File credentials = new File(classLoader.getResource(\"credentials_example.xml\").getFile());\r\n DocumentBuilderFactory Factory = DocumentBuilderFactory.newInstance();\r\n DocumentBuilder Builder = Factory.newDocumentBuilder();\r\n Document doc = Builder.parse(credentials);\r\n doc.getDocumentElement().normalize();\r\n username = doc.getElementsByTagName(\"username\").item(0).getTextContent();\r\n password = doc.getElementsByTagName(\"password\").item(0).getTextContent();\r\n url = doc.getElementsByTagName(\"url\").item(0).getTextContent();\r\n setUsername(username);\r\n setPassword(password);\r\n setURL(url);\r\n } catch (Exception error) {\r\n System.out.println(\"Error in parssing the given xml file: \" + error.getMessage());\r\n }\r\n }",
"static String readXML(String keyName){\n File fXmlFile = new File(\".\"+ConstantsClass.PATHWAY_TO_AUXILIARY_FILES+\"/configuration.xml\");\n DocumentBuilderFactory dbFactory = DocumentBuilderFactory.newInstance();\n DocumentBuilder dBuilder = null;\n try {\n dBuilder = dbFactory.newDocumentBuilder();\n } catch (ParserConfigurationException e) {\n e.printStackTrace();\n }\n Document doc = null;\n try {\n doc = dBuilder.parse(fXmlFile);\n } catch (SAXException e) {\n e.printStackTrace();\n } catch (IOException e) {\n e.printStackTrace();\n }\n doc.getDocumentElement().normalize();\n return doc.getElementsByTagName(keyName).item(0).getTextContent();\n }",
"private void readFile( String fileName ) throws FileNotFoundException\n\t{\n\t\ttry\n\t\t{\n\t\t\tFile train_file = new File( fileName );\n\t\t\tScanner in;\n\t\t\tin = new Scanner( train_file );\n\n\t\t\tString[] tokens = in.nextLine().trim().split( \"\\\\s+\" ); // Parse the file\n\t\t\tthis.attribute_list.add( new Attribute( 0, \"x0\" ) );\n\n\t\t\tint i = 1;\n\t\t\twhile ( i <= tokens.length )\n\t\t\t{\n\t\t\t\tthis.attribute_list.add( new Attribute( i, tokens[ i - 1 ] ) );\n\t\t\t\ti++;\n\t\t\t}\n\n\t\t\twhile ( in.hasNextLine() )\n\t\t\t{\n\t\t\t\ttokens = in.nextLine().trim().split( \"\\\\s+\" );\n\t\t\t\tif ( tokens.length > 1 )\n\t\t\t\t{\n\t\t\t\t\tthis.addTrainData( 0, 1 );\n\n\t\t\t\t\tfor ( i = 1; i < tokens.length; i++ )\n\t\t\t\t\t\tthis.addTrainData( i, Integer.parseInt( tokens[ i - 1 ] ) );\n\n\t\t\t\t\t// Last column would be the class attribute\n\t\t\t\t\tthis.class_data.add_data( Integer.parseInt( tokens[ i - 1 ] ) );\n\t\t\t\t}\n\t\t\t}\n\n\t\t\tin.close();\n\t\t}\n\t\tcatch ( FileNotFoundException e )\n\t\t{\n\t\t\tSystem.out.println( \"Cannot find train file - \" + fileName );\n\t\t\tthrow e;\n\t\t}\n\t}",
"MainDictionary ( String pathToFile ) {\n WordListReader reader = new WordListReader( pathToFile );\n List<String> wordList = reader.asLowerCaseList();\n \n this.dictionary = new HashSet<>( wordList );\n \n if ( this.dictionary.isEmpty() ) {\n LOGGER.warn( \"Main dictionary is empty\" );\n }\n }",
"public TreeDictionary(String filename) {\n\t\tString entry;\n\t\ttry {\n\t\t\tBufferedReader in = new BufferedReader(new FileReader(filename));\n\t\t\twhile((entry=in.readLine())!=null){\n\t\t\t\tif(MapDictionary.isValidWord(entry)){\n\t\t\t\t\tString signature = wordToSignature(entry.toLowerCase());\n\t\t\t\t\tinsert(entry, signature);\n\t\t\t\t}\n\t\t\t\t\n\t\t}\n\t\t\tin.close();\n\t\t}\n\t\tcatch (Exception e) {\n\t\t\tSystem.out.println(\"File not found\");\n\t\t}\n\t}",
"public static void loadMap(CityMap map)\n\t\t\tthrows ParserConfigurationException, SAXException, IOException, XMLException {\n\t\tCityMap previous = map;\n\t\tFile xml = XMLFileOpener.getInstance().open(true);\n\t\tDocumentBuilder docBuilder = DocumentBuilderFactory.newInstance().newDocumentBuilder();\n\t\tDocument document = docBuilder.parse(xml);\n\t\tElement root = document.getDocumentElement();\n\t\tif (root.getNodeName().equals(\"Reseau\")) {\n\t\t\tmap.clear();\n\t\t\tbuildMapFromDOMXML(root, map);\n\t\t} else {\n\t\t\tmap = previous;\n\t\t\tthrow new XMLException(\"Document non conforme\");\n\t\t}\n\t}",
"public static Document loadXmlFile(String fname) {\r\n try {\r\n Document doc = DocumentBuilderFactory.newInstance()\r\n .newDocumentBuilder().parse(fname);\r\n return doc;\r\n } catch (Exception e) {\r\n logger.log(Level.SEVERE, \"exception\", e);\r\n }\r\n\r\n return null;\r\n }",
"public void readFileToTransitionMap(String fileName){\n\t\ttry {\n\t\t\tBufferedReader reader=new BufferedReader(new InputStreamReader(new FileInputStream(fileName),\"ISO-8859-1\"));\n\t\t\tString line=null;\n\t\t\t//each time we read a line, count its words\n\t\t\twhile((line=reader.readLine())!=null){\n\t\t\t\tparseLineAndCountTransitions(line);\n\t\t\t}\n\t\t\t//close the buffered reader\n\t\t\treader.close();\n\t\t\tupdateTransitionMap();\n\t\t\t\n\t\t}catch(IOException e){\n\t\t\te.printStackTrace();\n\t\t}\n\t\t\n\t}",
"@Override\n\tpublic Map loadMap() {\n\t\ttry {\n\t\t\treturn XMLDeserialiser.loadMap();\n\t\t} catch (XMLException e) {\n\t\t\tPopup.showInformation(\"Le fichier choisi n'est pas un plan valide.\");\n\t\t\treturn null;\n\t\t} catch (NoFileChosenException e) {\n\t\t\treturn null;\n\t\t}\n\t}",
"public void parseXmlFile(String fileName){\n\t\t//get the factory\n\t\tDocumentBuilderFactory dbf = DocumentBuilderFactory.newInstance();\n\t\t\n\t\ttry {\n\t\t\t//Using factory get an instance of document builder\n\t\t\tDocumentBuilder db = dbf.newDocumentBuilder();\n\t\t\t\n\t\t\t//parse using builder to get DOM representation of the XML file\n\t\t\tdoc = db.parse(fileName);\n\t\t} catch(ParserConfigurationException pce) {\n\t\t\tpce.printStackTrace();\n\t\t} catch(SAXException se) {\n\t\t\tSystem.err.println(\"Malformed XML: Make sure to provide a valid XML document.\");\n\t\t} catch(IOException ioe) {\n\t\t\tSystem.err.println(\"File not found: Path to a valid XML file has to be specified.\" );\n\t\t}\n\t}",
"private void loadFromXml(String fileName) throws IOException {\n\t\tElement root = new XmlReader().parse(Gdx.files.internal(fileName));\n\n\t\tthis.name = root.get(\"name\");\n\t\tGdx.app.log(\"Tactic\", \"Loading \" + this.name + \"...\");\n\n\t\tArray<Element> players = root.getChildrenByName(\"player\");\n\t\tint playerIndex = 0;\n\t\tfor (Element player : players) {\n\t\t\t//int shirt = player.getInt(\"shirt\"); // shirt number\n\t\t\t//Gdx.app.log(\"Tactic\", \"Location for player number \" + shirt);\n\n\t\t\t// regions\n\t\t\tArray<Element> regions = player.getChildrenByName(\"region\");\n\t\t\tfor (Element region : regions) {\n\t\t\t\tString regionName = region.get(\"name\"); // region name\n\n\t\t\t\tthis.locations[playerIndex][Location.valueOf(regionName).ordinal()] = new Vector2(region.getFloat(\"x\"), region.getFloat(\"y\"));\n\n\t\t\t\t//Gdx.app.log(\"Tactic\", locationId + \" read\");\n\t\t\t}\n\t\t\tplayerIndex++;\n\t\t}\t\n\t}",
"protected synchronized Hashtable getMappingsFromFile() throws Exception {\n\n \t\n\t\tInputStream path = null;\n\n\t\tpath = getClass().getResourceAsStream(\"../../../config/mappings.txt\");\n\n\t\tSystem.out.println(\"Path is - \" + path);\n\n\t\tBufferedReader reader = new BufferedReader(new InputStreamReader(path));\n/*\t\tStringBuilder sb = new StringBuilder();\n\t\tString line1 = null;\n\t\twhile ((line1 = reader.readLine()) != null) {\n\t\t\tsb.append(line1 + \"\\n\");\n\t\t}\n*/\t\t//System.out.println(\"String is - \" + sb.toString());\n\t\t\n/* \tFile f = new File(\"src/edu/ucsd/crbs/incf/components/services/emage/mappings.txt\");\n System.out.println(\"Mapping - \" + f.getAbsolutePath());\n\n*/ /*if(sb.toString().trim().equals(\"\") || sb.toString() == null ) {\n System.err.println(\"bisel.ReadMappings cannot find mapping file\");\n System.exit(1);\n }*/\n\n Hashtable mappings = new Hashtable(17, new Float(1.25).floatValue());\n\n\n //BufferedReader br = new BufferedReader(new FileReader(f));\n String line = reader.readLine();\n while(line != null) { \n StringTokenizer st = new StringTokenizer(line, \"*\");\n String aba = st.nextToken();\n String emap = st.nextToken();\n mappings.put(aba, emap);\n line = reader.readLine();\n }\n\n reader.close();\n return mappings;\n }",
"public void readxml() throws JAXBException, FileNotFoundException {\n Player loadplayer = xml_methods.load();\n logger.info(\"player name: \" + loadplayer.getName());\n if (!item.isEmpty()) {\n logger.trace(loadplayer.getitem(0).getName());\n }\n tfName.setText(loadplayer.getName());\n isset = true;\n player = loadplayer;\n\n }",
"public void parseXml(String file) {\n\n try {\n\n debug(\"\\n\\nIn the beginning God created the heaven and the world...\\n\\n\");\n\n File fXmlFile = new File(\"./levels/\" + file);\n DocumentBuilderFactory dbFactory = DocumentBuilderFactory.newInstance();\n DocumentBuilder dBuilder = dbFactory.newDocumentBuilder();\n Document doc = dBuilder.parse(fXmlFile);\n\n doc.getDocumentElement().normalize();\n debug(\"Chosen entity: \" + doc.getDocumentElement().getNodeName());\n\n NodeList placeList = doc.getElementsByTagName(\"place\");\n NodeList passageList = doc.getElementsByTagName(\"passage\");\n NodeList furnitureList = doc.getElementsByTagName(\"furniture\");\n NodeList storyList = doc.getElementsByTagName(\"story\");\n\n // Create object arrays\n ArrayList<Place> places = new ArrayList<>();\n ArrayList<Item> items = new ArrayList<>();\n ArrayList<Passage> passages = new ArrayList<>();\n ArrayList<Furniture> furnitures = new ArrayList<Furniture>();\n\n // parse story text\n Node storyNode = storyList.item(0);\n Element storyElement = (Element) storyNode;\n debug(\"Intro: \" + storyElement.getElementsByTagName(\"introduction\").item(0).getTextContent());\n debug(\"Level: \" + storyElement.getElementsByTagName(\"name\").item(0).getTextContent());\n debug(\"Version: \" + storyElement.getElementsByTagName(\"version\").item(0).getTextContent());\n // add story elements to world\n world.setIntroduction(\n storyElement.getElementsByTagName(\"introduction\").item(0).getTextContent());\n world.setLevelName(storyElement.getElementsByTagName(\"name\").item(0).getTextContent());\n world.setLevelVersion(storyElement.getElementsByTagName(\"version\").item(0).getTextContent());\n\n // parse all existing Places\n for (int placeCounter = 0; placeCounter < placeList.getLength(); placeCounter++) {\n Node placeNode = placeList.item(placeCounter);\n\n debug(\"\\nCurrent Element: \" + placeNode.getNodeName());\n\n if (placeNode.getNodeType() == Node.ELEMENT_NODE) {\n Element placeElement = (Element) placeNode;\n\n debug(\"- Ending: \" + placeElement.getAttribute(\"end\"));\n debug(\"- id: \" + placeElement.getAttribute(\"id\"));\n debug(\"- Name: \" + placeElement.getElementsByTagName(\"name\").item(0).getTextContent());\n debug(\"- Description: \"\n + placeElement.getElementsByTagName(\"description\").item(0).getTextContent());\n\n // Create Places.\n places.add(new Place(placeElement.getElementsByTagName(\"name\").item(0).getTextContent(),\n placeElement.getElementsByTagName(\"description\").item(0).getTextContent().replace(\"\\\\n\", \"\\n\")));\n\n // add EndingPlace to World, set endingText to Places' Description\n if (placeElement.getAttribute(\"end\").equals(\"bad\")) {\n world.addBadEnding(places.get(placeCounter),\n places.get(placeCounter).getDescription());\n } else if(placeElement.getAttribute(\"end\").equals(\"good\")) {\n world.addGoodEnding(places.get(placeCounter),\n places.get(placeCounter).getDescription());\n }\n \n // parse all existing Place Items\n NodeList itemList = placeElement.getElementsByTagName(\"item\");\n\n for (int itemCounter = 0; itemCounter < itemList.getLength(); itemCounter++) {\n Node itemNode = itemList.item(itemCounter);\n\n Element itemElement = (Element) itemNode;\n\n debug(\"- Item\" + itemCounter + \":\");\n debug(\"- - Name: \" + itemElement.getElementsByTagName(\"name\").item(0).getTextContent());\n debug(\"- - Description: \"\n + itemElement.getElementsByTagName(\"description\").item(0).getTextContent());\n\n // Create items.\n items.add(new Item(itemElement.getElementsByTagName(\"name\").item(0).getTextContent(),\n itemElement.getElementsByTagName(\"description\").item(0).getTextContent()));\n // Set items in current place.\n places.get(placeCounter).addObjectToPlace(getIncludedItem(itemElement, items));\n\n }\n }\n }\n\n // parse all furniture\n for (int furnitureCounter = 0; furnitureCounter < furnitureList\n .getLength(); furnitureCounter++) {\n Node furnitureNode = furnitureList.item(furnitureCounter);\n\n Element furnitureElement = (Element) furnitureNode;\n\n debug(\"\\nCurrent Element: \" + furnitureNode.getNodeName());\n\n debug(\"- Furniture\" + furnitureCounter);\n debug(\"- - In Place: \"\n + furnitureElement.getElementsByTagName(\"in-place\").item(0).getTextContent());\n debug(\n \"- - Name: \" + furnitureElement.getElementsByTagName(\"name\").item(0).getTextContent());\n debug(\"- - Description: \"\n + furnitureElement.getElementsByTagName(\"description\").item(0).getTextContent());\n\n // Create furniture objects\n furnitures.add(\n new Furniture(furnitureElement.getElementsByTagName(\"name\").item(0).getTextContent(), // name\n furnitureElement.getElementsByTagName(\"description\").item(0).getTextContent(), // description\n furnitureElement.getElementsByTagName(\"in-place\").item(0).getTextContent()));\n\n NodeList furnitureItemList = furnitureElement.getElementsByTagName(\"content-item\");\n\n // parse all Furniture Items\n for (int furnitureItemCounter = 0; furnitureItemCounter < furnitureItemList\n .getLength(); furnitureItemCounter++) {\n Node furnitureItemNode = furnitureItemList.item(furnitureItemCounter);\n\n Element furnitureItemElement = (Element) furnitureItemNode;\n\n debug(\"- - Content Items:\");\n debug(\"- - - Name: \"\n + furnitureItemElement.getElementsByTagName(\"name\").item(0).getTextContent());\n debug(\"- - - Description: \"\n + furnitureItemElement.getElementsByTagName(\"description\").item(0).getTextContent());\n\n addItems(furnitureItemElement, furnitures, items, furnitureCounter);\n\n }\n\n NodeList furnitureObstacleList = furnitureElement.getElementsByTagName(\"obstacle\");\n\n // parse all Furniture Obstacles\n for (int furnitureObstacleCounter = 0; furnitureObstacleCounter < furnitureObstacleList\n .getLength(); furnitureObstacleCounter++) {\n Node furnitureObstacleNode = furnitureObstacleList.item(furnitureObstacleCounter);\n\n Element furnitureObstacleElement = (Element) furnitureObstacleNode;\n\n debug(\"- - Obstacle:\");\n debug(\"- - - Description: \" + furnitureObstacleElement.getElementsByTagName(\"description\")\n .item(0).getTextContent());\n debug(\"- - - Resolution: \" + furnitureObstacleElement.getElementsByTagName(\"resolution\")\n .item(0).getTextContent());\n // debug(\"- - - Requirement: \" +\n // furnitureObstacleElement.getElementsByTagName(\"requiredItem\").item(0).getTextContent());\n\n // create furniture obstacle\n if (furnitureObstacleElement.getAttribute(\"type\").equals(\"double\")) {\n // double Item obstacle\n furnitures.get(furnitureCounter)\n .setObstalce(new DoubleItemObstacle(\"\",\n furnitureObstacleElement.getElementsByTagName(\"description\").item(0)\n .getTextContent(),\n furnitureObstacleElement.getElementsByTagName(\"resolution\").item(0)\n .getTextContent(),\n getRequiredItem(items,\n furnitureObstacleElement.getElementsByTagName(\"requiredItem\").item(0)\n .getTextContent()),\n getRequiredItem(items, furnitureObstacleElement\n .getElementsByTagName(\"additionalItem\").item(0).getTextContent())));\n\n } else if (furnitureObstacleElement.getAttribute(\"type\").equals(\"riddle\")) {\n // riddle Obstacle\n furnitures.get(furnitureCounter)\n .setObstalce(new RiddleObstacle(\"\",\n furnitureObstacleElement.getElementsByTagName(\"description\").item(0)\n .getTextContent(),\n furnitureObstacleElement.getElementsByTagName(\"resolution\").item(0)\n .getTextContent(),\n furnitureObstacleElement.getElementsByTagName(\"requiredAnswer\").item(0)\n .getTextContent()));\n\n } else {\n // normal Obstacle\n furnitures.get(furnitureCounter)\n .setObstalce(new ItemObstacle(\"\",\n furnitureObstacleElement.getElementsByTagName(\"description\").item(0)\n .getTextContent(),\n furnitureObstacleElement.getElementsByTagName(\"resolution\").item(0)\n .getTextContent(),\n getRequiredItem(items, furnitureObstacleElement\n .getElementsByTagName(\"requiredItem\").item(0).getTextContent())));\n }\n // add damage points to obstacle\n if (!furnitureObstacleElement.getAttribute(\"damage\").equals(\"\")) {\n passages.get(furnitureCounter).getObstacle()\n .setDamagepoints(Integer.parseInt(furnitureObstacleElement.getAttribute(\"damage\")));\n }\n\n }\n\n }\n\n // Add current furniture to its containing Place\n setFurnitureInPlace(furnitures, places);\n\n // parse all existing passages\n for (int passageCounter = 0; passageCounter < passageList.getLength(); passageCounter++) {\n Node passageNode = passageList.item(passageCounter);\n\n debug(\"\\nCurrent Element: \" + passageNode.getNodeName());\n\n if (passageNode.getNodeType() == Node.ELEMENT_NODE) {\n Element passageElement = (Element) passageNode;\n\n debug(\"- id: \" + passageElement.getAttribute(\"id\"));\n debug(\"- Name: \" + passageElement.getElementsByTagName(\"name\").item(0).getTextContent());\n debug(\"- Description: \"\n + passageElement.getElementsByTagName(\"description\").item(0).getTextContent());\n debug(\"- Comes from: \"\n + passageElement.getElementsByTagName(\"comeFrom\").item(0).getTextContent());\n debug(\"- Connects to: \"\n + passageElement.getElementsByTagName(\"connectTo\").item(0).getTextContent());\n\n // Create Passage with connected Places.\n passages\n .add(new Passage(passageElement.getElementsByTagName(\"name\").item(0).getTextContent(),\n passageElement.getElementsByTagName(\"description\").item(0).getTextContent(),\n getFromPlace(passageElement, places), // from this Place\n getFollowPlace(passageElement, places)) // to that Place\n );\n\n // parse all existing Passage Obstacles\n NodeList obstacleList = passageElement.getElementsByTagName(\"obstacle\");\n\n for (int obstacleCounter = 0; obstacleCounter < obstacleList\n .getLength(); obstacleCounter++) {\n Node obstacleNode = obstacleList.item(obstacleCounter);\n\n Element obstacleElement = (Element) obstacleNode;\n\n debug(\"- Obstacle\" + passageCounter + \":\");\n debug(\"- - Description: \"\n + obstacleElement.getElementsByTagName(\"description\").item(0).getTextContent());\n debug(\"- - Resolution: \"\n + obstacleElement.getElementsByTagName(\"resolution\").item(0).getTextContent());\n // debug(\"- - Required Item: \" +\n // obstacleElement.getElementsByTagName(\"requiredItem\").item(0).getTextContent());\n\n // Create the obstacle for each passage.\n if (obstacleElement.getAttribute(\"type\").equals(\"double\")) {\n // double Item obstacle\n passages.get(passageCounter)\n .setObstacle(new DoubleItemObstacle(\"\",\n obstacleElement.getElementsByTagName(\"description\").item(0).getTextContent(),\n obstacleElement.getElementsByTagName(\"resolution\").item(0).getTextContent(),\n getRequiredItem(items,\n obstacleElement.getElementsByTagName(\"requiredItem\").item(0)\n .getTextContent()),\n getRequiredItem(items, obstacleElement.getElementsByTagName(\"additionalItem\")\n .item(0).getTextContent())));\n\n } else if (obstacleElement.getAttribute(\"type\").equals(\"riddle\")) {\n // riddle Obstacle\n passages.get(passageCounter).setObstacle(new RiddleObstacle(\"\",\n obstacleElement.getElementsByTagName(\"description\").item(0).getTextContent(),\n obstacleElement.getElementsByTagName(\"resolution\").item(0).getTextContent(),\n obstacleElement.getElementsByTagName(\"requiredAnswer\").item(0).getTextContent()));\n\n } else {\n // normal Obstacle\n passages.get(passageCounter)\n .setObstacle(new ItemObstacle(\"\",\n obstacleElement.getElementsByTagName(\"description\").item(0).getTextContent(),\n obstacleElement.getElementsByTagName(\"resolution\").item(0).getTextContent(),\n getRequiredItem(items, obstacleElement.getElementsByTagName(\"requiredItem\")\n .item(0).getTextContent())));\n }\n\n // add damage points to obstacle\n if (!obstacleElement.getAttribute(\"damage\").equals(\"\")) {\n passages.get(passageCounter).getObstacle()\n .setDamagepoints(Integer.parseInt(obstacleElement.getAttribute(\"damage\")));\n }\n\n\n }\n }\n }\n\n startingPlace = places.get(0);\n\n // Add Places to GameWorld\n addPlacesToWorld(places, world);\n\n // set starting Place in GameWorld\n if (world.getStartingPlace() == null) {\n world.setStartingPlace(startingPlace);\n }\n\n debug(\"\\n\\n\");\n debug(\"World has successfully been created! God saw all that he had made, and it was good.\");\n debug(\"\\n\\n\\n\\n\");\n\n } catch (Exception e) {\n e.printStackTrace();\n }\n\n }",
"private void populateDictionary() {\n Scanner scanner = null;\n try {\n scanner = new Scanner(new FileInputStream(filePath));\n while(scanner.hasNextLine()) {\n String word = scanner.nextLine();\n rwDictionary.put(reducedWord(word), word);\n lcDictionary.put(word.toLowerCase(), word);\n }\n } catch(IOException e) {\n System.err.println(e.toString());\n e.printStackTrace();\n } finally {\n if(scanner != null) {\n scanner.close();\n }\n }\n }",
"public void loadDictionary() {\r\n\t\r\n\t\t\r\n\t\ttry {\r\n\t\t\r\n\t\t\tFileReader fr = new FileReader( \"rsc/English.txt\" );\r\n\t\t BufferedReader br = new BufferedReader(fr);\r\n\t \tString word ;\r\n\t \twhile (( word = br .readLine()) != null ) {\r\n\t\t// Aggiungere parola alla struttura dati\r\n\t \t\t\r\n\t \t\tthis.dictionary.add(word);\r\n\t \t\t\r\n\t\t}\r\n\t\tbr .close();\r\n\t\t} catch (IOException e ){\r\n\t\tSystem. out .println( \"Errore nella lettura del file\" );\r\n\t\t}\r\n\t\t\t\t\r\n\t\t\t\r\n\t try {\r\n\t\t\t\r\n\t\t\tFileReader fr = new FileReader( \"rsc/Italian.txt\" );\r\n\t\t BufferedReader br = new BufferedReader(fr);\r\n\t \tString word ;\r\n\t \twhile (( word = br .readLine()) != null ) {\r\n\t\t\t// Aggiungere parola alla struttura dati\r\n\t\t \t\t\r\n\t\t \t\tthis.dizionario.add(word);\r\n\t\t \t\t\r\n\t\t\t}\r\n\t\t\tbr .close();\r\n\t\t\t} catch (IOException e ){\r\n\t\t\tSystem. out .println( \"Errore nella lettura del file\" );\r\n\t\t\t}\r\n\t\t\t\r\n\t\t}",
"public void initialize (String tagTableFile, String featureFile) {\n\t\tmene.resetForTraining(featureFile);\n\t\tannotator.readTagTable (tagTableFile);\n\t}",
"public Map<String, Set<String>> loadDictionary(File dictionaryFile) throws IOException {\n // iterate through the input file lines\n try (Stream<String> lines = Files.lines(dictionaryFile.toPath())) {\n // create resulting map as per javadoc\n Map<String, Set<String>> result = new HashMap<>();\n // for each line in the input file\n lines.forEach(line -> {\n // convert to lower case and remove all non-mappable characters\n String filtered = filter(line);\n // get number that is result of decoding of the word in current line\n String decodedNumber = decode(filtered);\n // create empty set if there are no entries for the current decoded number\n if (!result.containsKey(decodedNumber)) {\n result.put(decodedNumber, new HashSet<>());\n }\n // put original word mapped to the decoded number\n result.get(decodedNumber).add(line);\n });\n return result;\n }\n }",
"public void loadFromXml(File configFile) throws XMLQroxyConfigException {\n try {\n SAXParserFactory factory = SAXParserFactory.newInstance();\n SAXParser saxParser = factory.newSAXParser();\n saxParser.parse(configFile, this);\n } catch (ParserConfigurationException | SAXException | IOException e) {\n throw new XMLQroxyConfigException(\"Error while parsing the config file: \" + e.getMessage(), e);\n }\n }",
"public void load(final String model_file) throws Exception {\n\t\ttry {\n\t\t\tFileInputStream in = new FileInputStream(model_file);\n\t\t\tGZIPInputStream gin = new GZIPInputStream(in);\n\n\t\t\tObjectInputStream s = new ObjectInputStream(gin);\n\n\t\t\ts.readObject(); //this is the id\n\n\t\t\tsetFeature((String) s.readObject());\n\t\t\tsetInfo((String) s.readObject());\n\n\t\t\tprobs = (HashMap[][]) s.readObject();\n\t\t\t//classnum = s.readInt();\n\t\t\t//classnames = (ArrayList) s.readObject();\n\t\t\tint b, a = s.readInt();\n\t\t\tclassCounts = new double[a];\n\n\t\t\tfor (int i = 0; i < a; i++)\n\t\t\t\tclassCounts[i] = s.readDouble();\n\t\t\ttotalExamplesSeen = s.readDouble();\n\t\t\t//a = s.readInt();\n\t\t\t//header = new int[a];\n\t\t\t//for (int i = 0; i < header.length; i++)\n\t\t\t//\theader[i] = s.readInt();\n\t\t\t//read in saved numbers\n\t\t\ta = s.readInt();\n\t\t\tm_seenNumbers = new double[a][];\n\t\t\tfor (int i = 0; i < a; i++) {\n\t\t\t\tb = s.readInt();\n\t\t\t\tm_seenNumbers[i] = new double[b];\n\t\t\t\tfor (int j = 0; j < b; j++)\n\t\t\t\t\tm_seenNumbers[i][j] = s.readDouble();\n\t\t\t}\n\t\t\t//now for weights\n\t\t\ta = s.readInt();\n\t\t\tm_Weights = new double[a][];\n\t\t\tfor (int i = 0; i < a; i++) {\n\t\t\t\tb = s.readInt();\n\t\t\t\tm_Weights[i] = new double[b];\n\t\t\t\tfor (int j = 0; j < b; j++)\n\t\t\t\t\tm_Weights[i][j] = s.readDouble();\n\t\t\t}\n\n\t\t\ta = s.readInt();\n\t\t\tm_NumValues = new int[a];\n\t\t\tfor (int i = 0; i < a; i++)\n\t\t\t\tm_NumValues[i] = s.readInt();\n\n\t\t\ta = s.readInt();\n\t\t\tm_SumOfWeights = new double[a];\n\t\t\tfor (int i = 0; i < a; i++)\n\t\t\t\tm_SumOfWeights[i] = s.readDouble();\n\n\n\t\t\tm_StandardDev = s.readDouble();\n\t\t\tsetThreshold(s.readDouble());\n\t\t\tisOneClass(s.readBoolean());\n\t\t\tint len = s.readInt();\n\t\t\tfeatureArray = new boolean[len];\n\t\t\tfor (int i = 0; i < featureArray.length; i++) {\n\t\t\t\tfeatureArray[i] = s.readBoolean();\n\t\t\t}\n\t\t\tlen = s.readInt();\n\t\t\tfeatureTotals = new int[len];\n\t\t\tfor (int i = 0; i < featureTotals.length; i++) {\n\t\t\t\tfeatureTotals[i] = s.readInt();\n\t\t\t}\n\n\t\t\tinTraining = s.readBoolean();\n\n\n\t\t\t//read in ngram model\n\t\t\tString name = (String) s.readObject();\n\t\t\t//need to see which type of txt class it is.\n\t\t\ttry {\n\t\t\t\t//need to fix\n\t\t\t\tFileInputStream in2 = new FileInputStream(name);\n\t\t\t\tObjectInputStream s2 = new ObjectInputStream(in2);\n\t\t\t\tString modeltype = new String((String) s2.readObject());\n\t\t\t\ts2.close();\n\t\t\t\tif (modeltype.startsWith(\"NGram\"))\n\t\t\t\t\ttxtclass = new NGram();\n\t\t\t\telse\n\t\t\t\t\ttxtclass = new TextClassifier();\n\n\t\t\t\ttxtclass.setProgress(false);//we dont want to show subclass\n\t\t\t\t// progresses.\n\t\t\t} catch (Exception e2) {\n\t\t\t\ttxtclass = new NGram();\n\t\t\t\ttxtclass.setProgress(false);//we dont want to show subclass\n\t\t\t\t// progresses.\n\t\t\t}\n\n\t\t\ttxtclass.load(name);\n\n\n\n\t\t\tin.close();\n\t\t} catch (Exception e) {\n\t\t\tSystem.out.println(\"Error in nbayes read file:\" + e);\n\t\t}\n\t\t//now that we've loaded, its time to set the flag to true.\n\t\t//hasModel = true;\n\t\t/*for(int i=0;i<MLearner.NUMBER_CLASSES;i++)\n\t\t{\t\n\t\t\tif(classCounts[i]<3)\n\t\t\t\tcontinue;\n\t\t\tfor(int j=0;j<featureArray.length;j++)\n\t\t\t{\n\t\t\t\tif(featureArray[j])\n\t\t\t\t\tSystem.out.println(i+\" \"+j+\" \"+probs[i][j]);\n\t\t\t}\n\t\t}*/\n\t\tRealprobs = new HashMap[MLearner.NUMBER_CLASSES][featureArray.length];\n\t\tsetFeatureBoolean(featureArray);\n\t\tinTraining = true;//easier than saving the work (although should check size fisrt\n\t}",
"@SuppressWarnings({ \"unchecked\", \"rawtypes\" })\n public static Map<String, String>loadPropertiesAsMap(final String filePath)\n throws FileNotFoundException, IOException {\n final Properties properties = loadProperties(filePath);\n return new HashMap<String, String>((Map) properties);\n }",
"XMLIn(String legendFile, RFO r)\n\t\t{\n\t\t\tsuper();\n\t\t\trfo = r;\n\t\t\telement = \"\";\n\t\t\tlocation = \"\";\n\t\t\tfiletype = \"\";\n\t\t\tmaterial = \"\";\n\t\t\tmElements = new double[16];\n\t\t\tsetMToIdentity();\t\t\t\n\t\t\t\n\t\t\tXMLReader xr = null;\n\t\t\ttry\n\t\t\t{\n\t\t\t\txr = XMLReaderFactory.createXMLReader();\n\t\t\t} catch (Exception e)\n\t\t\t{\n\t\t\t\tDebug.e(\"XMLIn() 1: \" + e);\n\t\t\t}\n\t\t\t\n\t\t\txr.setContentHandler(this);\n\t\t\txr.setErrorHandler(this);\n\t\t\ttry\n\t\t\t{\n\t\t\t\txr.parse(new InputSource(legendFile));\n\t\t\t} catch (Exception e)\n\t\t\t{\n\t\t\t\tDebug.e(\"XMLIn() 2: \" + e);\n\t\t\t}\n\n\t\t}",
"private void loadDescriptor(File descriptorFile) throws IOException, InvalidXMLException,\n ResourceInitializationException {\n XMLInputSource in = new XMLInputSource(descriptorFile);\n ResourceSpecifier specifier = UIMAFramework.getXMLParser().parseResourceSpecifier(in);\n ResourceManager manager = UIMAFramework.newDefaultResourceManager();\n\n this.ae = UIMAFramework.produceAnalysisEngine(specifier, manager, null);\n this.cas = this.ae.newCAS();\n\n }",
"public abstract void readFromFile(String key, String value);",
"private GameModel load(String xmlFilePath) throws Exception {\r\n\t\ttry {\r\n\t\t\t// Load Game from XML\r\n\t\t\tJAXBContext context = JAXBContext.newInstance(GameModel.class);\r\n\t\t\tSystem.out.println(\"instance passed \");\r\n\t\t\tUnmarshaller unmarshaller = context.createUnmarshaller();\r\n\t\t\tSystem.out.println(\"marshaller created\");\r\n\t\t\treturn (GameModel) unmarshaller.unmarshal(new File(xmlFilePath));\r\n\r\n\t\t} catch (Exception ex) {\r\n\t\t\t// log the exception, show the error message on UI\r\n\t\t\tSystem.out.println(ex.getMessage());\r\n\t\t\tthrow ex;\r\n\t\t}\r\n\t}",
"@Override\n public void loadMap(String fileName) throws ParserConfigurationException, SAXException, IOException {\n resetMap();\n //Test extension of XML file name\n String[] words = fileName.split(\"\\\\.\");\n if(!(words[(words.length)-1].equals(\"XML\")) && !(words[(words.length)-1].equals(\"xml\"))){\n this.setChanged();\n this.notifyObservers(\"Filename extension is not correct\");\n throw new IOException();\n }else{\n DocumentBuilderFactory dbf = DocumentBuilderFactory.newInstance();\n\n try {\n // parse XML file\n DocumentBuilder db = dbf.newDocumentBuilder();\n Document doc = db.parse(new File(fileName));\n doc.getDocumentElement().normalize();\n\n // Check the document root name\n Element root = doc.getDocumentElement();\n if(!root.getNodeName().equals(\"map\")){\n throw new NumberFormatException();\n }\n\n // get all nodes <intersection>\n NodeList nodeListIntersection = doc.getElementsByTagName(\"intersection\");\n\n for (int temp = 0; temp < nodeListIntersection.getLength(); temp++) {\n Node node = nodeListIntersection.item(temp);\n if (node.getNodeType() == Node.ELEMENT_NODE) {\n Element element = (Element) node;\n\n // get intersection's attribute\n long id = Long.parseLong(element.getAttribute(\"id\"));\n double latitude = Double.parseDouble(element.getAttribute(\"latitude\"));\n double longitude = Double.parseDouble(element.getAttribute(\"longitude\"));\n // if the intersection doesn't exist in the list\n if(checkUniqueIntersection(id,latitude,longitude)){\n intersectionList.add(new Intersection(id,latitude,longitude));\n }\n }\n }\n\n // get all nodes <Segment>\n NodeList nodeListSegment = doc.getElementsByTagName(\"segment\");\n\n for (int temp = 0; temp < nodeListSegment.getLength(); temp++) {\n Node node = nodeListSegment.item(temp);\n\n if (node.getNodeType() == Node.ELEMENT_NODE) {\n Element element = (Element) node;\n\n // get intersection's attribute\n long destinationId = Long.parseLong(element.getAttribute(\"destination\"));\n long originId = Long.parseLong(element.getAttribute(\"origin\"));\n double length = Double.parseDouble(element.getAttribute(\"length\"));\n String name = element.getAttribute(\"name\");\n\n Intersection origin = getIntersectionById(originId);\n Intersection destination = getIntersectionById(destinationId);\n if ((origin != null) && (destination != null)) {\n segmentList.add(new Segment(origin, destination, name, length));\n } else {\n // System.out.println(\"segment creation is impossible\");\n }\n }\n }\n\n } catch (ParserConfigurationException |SAXException err){\n this.setChanged();\n this.notifyObservers(\"Parsing XML file failed. Please choose another XML file.\");\n throw err;\n }catch( IOException err) {\n this.setChanged();\n this.notifyObservers(\"Opening XML file failed. Please choose another XML file.\");\n throw err;\n }catch (NumberFormatException err){}\n\n if((intersectionList.isEmpty()) || (segmentList.isEmpty())){\n resetMap();\n this.setChanged();\n this.notifyObservers(\"Map is empty. Check your XML file.\");\n throw new IOException();\n }\n mapLoaded = true;\n extremIntersection = getExtremIntersection();\n this.createGraph();\n this.setChanged();\n this.notifyObservers();\n }\n }",
"public static FeatureSetView LoadFeatureSetViewFromFile(BufferedReader reader) throws IOException\n\t{\n\t\tString strFeatureSetInfo = reader.readLine();\n\t\tFeatureSetInfo featureSet = createFeatureSetFromString(strFeatureSetInfo);\n\t\tFeatureSetView featureSetView = new FeatureSetView(featureSet);\n\t\t//必须严格按照写入顺序读取\n\t\tfeatureSetView.ItemCount = (int) GetPropertyValue(reader.readLine());\n\t\tfeatureSetView.MaxFeatureId = GetPropertyValue(reader.readLine());\n\t\tfeatureSetView.MaxFeatureValue = (int) GetPropertyValue(reader.readLine());\n\t\tfeatureSetView.MinFeatureId = GetPropertyValue(reader.readLine());\n\t\tfeatureSetView.MinFeatureValue = (int) GetPropertyValue(reader.readLine());\n\t\tfeatureSetView.TotalFeatureCount = (int) GetPropertyValue(reader.readLine());\n\t\treader.readLine();\n\t\twhile(true)\n\t\t{\n\t\t\tString line = reader.readLine();\n\t\t\tif(line == null || line.trim() == _featureSetSplitLine)\n\t\t\t{\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\tString[] fields = line.split(\":\");\n\t\t\tif (fields.length < 2) {\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\tlong featureId = Long.parseLong(fields[0]);\n\t\t\tint featureImp = Integer.parseInt(fields[1]);\n\t\t\tfeatureSetView.FeatureCount.put(featureId, new FeatureImpInfo(featureId,featureImp));\n\t\t}\n\t\treturn featureSetView;\n\t\t\n\t}",
"public final void loadDict() {\r\n try {\r\n FileInputStream inf = new FileInputStream(dictionary);\r\n char let;\r\n String str = \"\";\r\n int n = 0;\r\n while ((n = inf.read()) != -1) {\r\n let = (char) n;\r\n if (Character.isLetter(let)) {\r\n str += Character.toLowerCase(let);\r\n }\r\n if ((Character.isWhitespace(let) || let == '-') && !str.isEmpty()) { \r\n dictList[str.charAt(0) - 97].add(str);\r\n str = \"\";\r\n\r\n }\r\n\r\n }\r\n inf.close();\r\n\r\n } catch (IOException e) {\r\n\r\n e.printStackTrace();\r\n\r\n }\r\n }",
"public void readTrainingFile() {\n\t\ttry {\n\t\t\tFile file = new File(trainingFile);\n\t\t\tBufferedReader reader = new BufferedReader(new FileReader(file));\n\t\t\tSystem.out.print(\"Read training data >>>\\t\");\n\t\t\t// read first line to get attribute names\n\t\t\tString line = reader.readLine();\n\t\t\t// find delimiter\n\t\t\tdelimiter = findDelimiter(line);\n\t\t\t// get all attributes\n\t\t\tallAttributes = line.split(delimiter);\n\t\t\t// target attribute is at the last position\n\t\t\tint targetIndex = allAttributes.length - 1;\n\t\t\t\n\t\t\ttrainingTuples = new ArrayList<String[]>();\n\t\t\tclassLabels = new HashSet<String>();\n\t\t\tmapAttrValue = new HashMap<String, Set<String>>();\n\t\t\twhile((line = reader.readLine()) != null) {\n\t\t\t\tif(line.isEmpty() == true) {\n\t\t\t\t\t//if the line is empty\n\t\t\t\t\tcontinue;\n\t\t\t\t}\t\t\t\t\n\t\t\t\t// read one tuple\n\t\t\t\tString[] tuple = line.split(delimiter);\n\t\t\t\ttrainingTuples.add(tuple);\n\t\t\t\t// add attribute value to mapAttrValue\n\t\t\t\tfor(int i = 0; i < targetIndex; i++) {\n\t\t\t\t\tString attribute = allAttributes[i];\n\t\t\t\t\tString value = tuple[i];\n\t\t\t\t\tSet<String> valueSet = mapAttrValue.get(attribute);\n\t\t\t\t\tif(valueSet == null) {\n\t\t\t\t\t\tvalueSet = new HashSet<String>();\n\t\t\t\t\t\tmapAttrValue.put(attribute, valueSet);\n\t\t\t\t\t}\n\t\t\t\t\tvalueSet.add(value);\n\t\t\t\t}\n\t\t\t\t// get class label\n\t\t\t\tclassLabels.add(tuple[targetIndex]);\n\t\t\t}\t\t\t\n\t\t\treader.close();\n\t\t\tSystem.out.println(\"Complete!\");\t\n\t\t} catch(FileNotFoundException e) {\n\t\t\tSystem.out.println(\"No such file!\");\n\t\t\te.printStackTrace();\n\t\t} catch(IOException e) {\n\t\t\te.printStackTrace();\n\t\t}\t\t\n\t}",
"Map<String, String> readAttrs(Map<String, Object> pRqVs,\n Reader pReader) throws Exception;",
"public HashMap<String, Occurrence> loadKeyWords(String docFile)\n throws FileNotFoundException {\n // COMPLETE THIS METHOD\n if (docFile == null) {\n throw new FileNotFoundException();\n }\n HashMap<String, Occurrence> keys = new HashMap<String, Occurrence>();\n BufferedReader reader = new BufferedReader(new FileReader(docFile));\n String line = null;\n\n try {\n while ((line = reader.readLine()) != null) {\n StringTokenizer st = new StringTokenizer(line);\n while (st.hasMoreTokens()) {\n String phrase = getKeyWord(st.nextToken());\n if (phrase != null) {\n if (phrase.contains(phrase)) {\n keys.put(phrase, new Occurrence(docFile, 1));\n } else {\n keys.get(phrase).frequency++;\n }\n }\n }\n }\n } catch (IOException e) {\n e.printStackTrace();\n }\n return keys;\n }",
"private void parseWSCTaxonomyFile(String fileName) {\n\t\ttry {\n\t\t\tFile fXmlFile = new File(fileName);\n\t\t\tDocumentBuilderFactory dbFactory = DocumentBuilderFactory.newInstance();\n\t\t\tDocumentBuilder dBuilder = dbFactory.newDocumentBuilder();\n\t\t\tDocument doc = dBuilder.parse(fXmlFile);\n\t\t\tNodeList taxonomyRoots = doc.getChildNodes();\n\n\t\t\tprocessTaxonomyChildren(null, taxonomyRoots);\n\t\t}\n\n\t\tcatch (ParserConfigurationException e) {\n\t\t\tSystem.err.println(\"Taxonomy file parsing failed...\");\n\t\t}\n\t\tcatch (SAXException e) {\n\t\t\tSystem.err.println(\"Taxonomy file parsing failed...\");\n\t\t}\n\t\tcatch (IOException e) {\n\t\t\tSystem.err.println(\"Taxonomy file parsing failed...\");\n\t\t}\n\t}",
"private void loadFromFile() {\n try {\n FileInputStream fis = openFileInput(FILENAME);\n InputStreamReader isr = new InputStreamReader(fis);\n BufferedReader reader = new BufferedReader(isr);\n Gson gson = new Gson();\n Type listFeelingType = new TypeToken<ArrayList<Feeling>>(){}.getType();\n recordedFeelings.clear();\n ArrayList<Feeling> tmp = gson.fromJson(reader, listFeelingType);\n recordedFeelings.addAll(tmp);\n fis.close();\n\n } catch (FileNotFoundException e) {\n // TODO Auto-generated catch block\n recordedFeelings = new ArrayList<Feeling>();\n e.printStackTrace();\n } catch (IOException e) {\n // TODO Auto-generated catch block\n e.printStackTrace();\n }\n }",
"public void load(String filename) {\n\t\tsetup();\n\t\tparseOBJ(getBufferedReader(filename));\n\t}",
"private static Map<String, String> readMappingFromXML(List<String> args, String XMLDocument)\n\t\t\tthrows ParserConfigurationException, SAXException, IOException, UnkownOrInvalidDOIException {\n\t\tMap<String, String> mapping = new HashMap<>();\n\n\t\tDocumentBuilderFactory dbFactory = DocumentBuilderFactory.newInstance();\n\t\tDocumentBuilder dBuilder = dbFactory.newDocumentBuilder();\n\t\tDocument doc = dBuilder.parse(new StringBufferInputStream(XMLDocument));\n\n\t\tdoc.getDocumentElement().normalize();\n\n\t\tif (!doc.getDocumentElement().getAttribute(\"status\").equals(\"ok\"))\n\t\t\tthrow new UnkownOrInvalidDOIException(\"One or more of the requested IDs are not valid:\" + args);\n\n\t\tNodeList nList = doc.getElementsByTagName(\"record\");\n\t\tfor (int temp = 0; temp < nList.getLength(); temp++) {\n\n\t\t\tNode nNode = nList.item(temp);\n\n\t\t\tif (nNode.getNodeType() == Node.ELEMENT_NODE) {\n\n\t\t\t\tElement eElement = (Element) nNode;\n\n\t\t\t\tfinal String DOI = eElement.getAttribute(\"requested-id\");\n\t\t\t\tfinal String PMCID = eElement.getAttribute(\"pmcid\");\n\n\t\t\t\tmapping.put(DOI, PMCID);\n\t\t\t}\n\t\t}\n\t\treturn mapping;\n\t}",
"public void restoreFromFile(String fileName) throws KVException {\n this.resetStore();\n \n File f = new File(fileName);\n\t\tDocumentBuilderFactory docFactory = DocumentBuilderFactory.newInstance();\n\t\tDocumentBuilder docBuilder;\n\t\ttry {\n\t\t\tdocBuilder = docFactory.newDocumentBuilder();\n\t\t} catch (ParserConfigurationException e1) {\n\t\t\tKVMessage exceptionMessage = new KVMessage(\"resp\", \"Unknown Error: Parser Configuration Exception\");\n\t\t\tKVException exception = new KVException(exceptionMessage);\n\t\t\tthrow exception;\n\t\t}\n\t\tDocument doc;\n\t\ttry {\n\t\t\tdoc = docBuilder.parse(f);\n\t\t} catch (SAXException e1) {\n\t\t\tKVMessage exceptionMessage = new KVMessage(\"resp\", \"Unknown Error: SAX Exception\");\n\t\t\tKVException exception = new KVException(exceptionMessage);\n\t\t\tthrow exception;\n\t\t} catch (IOException e1) {\n\t\t\tKVMessage exceptionMessage = new KVMessage(\"resp\", \"IO Error\");\n\t\t\tKVException exception = new KVException(exceptionMessage);\n\t\t\tthrow exception;\n\t\t}\n\t\tdoc.getDocumentElement().normalize();\n\t\t\n\t\tNodeList nList = doc.getElementsByTagName(\"KVPair\");\n\t\t\n\t\tfor (int i = 0; i < nList.getLength(); i++) {\n\t\t\tNode curNode = nList.item(i);\n\t\t\t\n\t\t\tif (curNode.getNodeType() == Node.ELEMENT_NODE) {\n\t\t\t\tElement e = (Element) curNode;\n\t\t\t\tString key = e.getElementsByTagName(\"Key\").item(0).getTextContent();\n\t\t\t\tString val = e.getElementsByTagName(\"Value\").item(0).getTextContent();\n\t\t\t\tstore.put(key, val);\n\t\t\t}\n\t\t}\n }",
"static void loadDictionary() throws IOException {\r\n URL oracle = new URL(urlEndPoint);\r\n BufferedReader br = new BufferedReader(new InputStreamReader(oracle.openStream()));\r\n\r\n String st;\r\n while ((st = br.readLine()) != null) {\r\n localDictionary.add(st);\r\n }\r\n }",
"public void load(String path) throws IOException, ClassNotFoundException {\n FileInputStream inputFile = new FileInputStream(path);\n ObjectInputStream objectInput = new ObjectInputStream(inputFile);\n\n map = (String[]) objectInput.readObject();\n\n objectInput.close();\n inputFile.close();\n }",
"private void loadDictWords(String dictFile) {\n try {\n BufferedReader reader = new BufferedReader(new FileReader(dictFile));\n\n String word = reader.readLine();\n while (word != null) {\n word = word.trim().toLowerCase();\n wordsList.add(word);\n\n word = reader.readLine();\n }\n reader.close();\n } catch (FileNotFoundException e) {\n System.out.println(\"Error: Cannot find dictionary file at location: \" + dictFile);\n } catch (IOException e) {\n System.out.println(\"Error: Failed to open and read dictionary file at location: \" + dictFile);\n }\n }",
"@Override\r\n public Map getData(String fileName) {\r\n Map<String, Integer> map = new HashMap<>();\r\n \r\n File file = new File(fileName);\r\n \r\n try (BufferedReader bufferedReader =\r\n new BufferedReader(new FileReader(file))) {\r\n \r\n String line;\r\n while ((line = bufferedReader.readLine()) != null) {\r\n \r\n //if the word have already been in the map,\r\n //increases the number of occurances,\r\n //otherwise sets this number to 1\r\n //and puts a new value to the map\r\n String[] words = line.split(\" \");\r\n for (String word : words) {\r\n Integer value = map.get(word);\r\n if (value == null) {\r\n value = 1;\r\n } else {\r\n value++;\r\n }\r\n map.put(word, value);\r\n }\r\n }\r\n } catch(IOException e) {\r\n System.out.println(e.getMessage());\r\n return null;\r\n }\r\n \r\n return map;\r\n }",
"private Map<String, Object> parseDict(List<XmlElement> elements) throws Exception\n {\n Iterator<XmlElement> element = elements.iterator();\n HashMap<String, Object> dict = new HashMap<String, Object>();\n while (element.hasNext())\n {\n XmlElement key = element.next();\n if (!\"key\".equals(key.getName())) throw new Exception(\"Expected key but was \" + key.getName());\n Object o = parseElementRaw(element.next());\n dict.put(key.getValue(), o);\n }\n return dict;\n }",
"public static HashMap<String, Object> parseZwoptex(String filename)\n throws Exception {\n\n System.setProperty(\"org.xml.sax.driver\", \"org.xmlpull.v1.sax2.Driver\");\n\n XMLReader xr = XMLReaderFactory.createXMLReader();\n ZwoptexParser handler = new ZwoptexParser();\n xr.setContentHandler(handler);\n xr.setErrorHandler(handler);\n\n try {\n InputStream in = CCDirector.theApp.getAssets().open(filename);\n BufferedReader reader =\n new BufferedReader(new InputStreamReader(in), 8192);\n xr.parse(new InputSource(reader));\n return handler.getResults();\n } catch (Exception e) {\n ccMacros.CCLOGERROR(\"ZwoptexParser\", \"Unable to parse plist file.\");\n }\n return null;\n\n }",
"private HashMap<String, double[]> readFeature(String featurePath, int currCount){\n HashMap<String, double[]> fList = new HashMap<>();\n try{\n FileReader fr = new FileReader(featurePath);\n BufferedReader br = new BufferedReader(fr);\n\n String line = br.readLine();\n while(line != null){\n\n String[] split = line.trim().split(\"\\t\");\n if (split.length < 2)\n continue;\n double[] fs = new double[split.length - 1];\n for (int i = 1; i < split.length; i ++){\n fs[i-1] = Double.valueOf(split[i]);\n }\n\n fList.put(split[0], fs);\n \n // Update ProgressBar\n SoundEffectDemo.s_progressBar.setValue(currCount);\n \t\tdouble currPercentage = ((double) currCount / ((double) s_numTrainingData * 4.0)) * 100.0;\n \t\tSoundEffectDemo.s_progressBar.setString(String.format(\"%.2f\", currPercentage) + \"%\");\n \t\tcurrCount++;\n \t\t\n line = br.readLine();\n }\n br.close();\n\n }catch (Exception e){\n e.printStackTrace();\n }\n\n return fList;\n }",
"public Object fromXML(File xmlFile) throws XMLUtilityException {\r\n\t\tObject beanObject = null;\r\n\t\tbeanObject = unmarshaller.fromXML(xmlFile);\r\n\t\treturn beanObject;\r\n\t}",
"private void loadFrAfinnLibrary() throws FileNotFoundException, IOException{\n \n BufferedReader reader = new BufferedReader(new FileReader(\"src/language_libraries/AFINN-fr-165.txt\"));\n String line;\n \n while ((line = reader.readLine()) != null) \n {\n String[] parts = line.split(\"\t\", 2); //split each line into 2 parts separated by whitespace\n \n if(parts.length == 2){\n \n String key = parts[0].replaceAll(\"[\\\\s+|\\\\p{P}\\\\p{S}]\" ,\"\"); // part 1 is the words. replace any symbols or punctuation marks \"\"\n int value = Integer.parseInt(parts[1]); // part 2 is the word score\n afinnFrenchLibrary.put(key,value);//store in hashmap\n }\n }\n reader.close();\n }",
"public void read(String filename) throws IOException {\n // open the file\n BufferedReader r = new BufferedReader(new FileReader(filename));\n\n // load the number of terms\n int size = Integer.parseInt(r.readLine());\n\n // must divide by load factor (0.75) to not need to rehash\n index = new HashMap((int) (size / .75) + 1);\n\n // temporary variables\n String line;\n StringTokenizer tokens;\n String word;\n HashMap docList;\n String docid;\n int[] fArray;\n int lineNumber = 1;\n\n // while there are more lines in the document\n while ((line = r.readLine()) != null) {\n // increment the line number\n lineNumber++;\n\n // the word is the only thing on the line\n word = line;\n\n // load all documents containign this term\n docList = new HashMap();\n index.put(word, docList);\n\n line = r.readLine();\n while (line != null && !line.equals(\"\")) {\n fArray = new int[1];\n\n docid = line;\n fArray[0] = Integer.parseInt(r.readLine());\n\n docList.put(docid, fArray);\n line = r.readLine();\n }\n }\n\n // close the file\n r.close();\n }",
"public static Map<String, String> loadKeyValuePairs(String confPath) {\r\n\t\treturn loadKeyValuePairs(getRelativeFileStream(confPath));\r\n\t}",
"@Override\n public void load(String keyWord, String fileName){\n FileReader loadDetails;\n String record;\n try{\n loadDetails=new FileReader(fileName);\n BufferedReader bin=new BufferedReader(loadDetails);\n while (((record=bin.readLine()) != null)){\n if ((record).contentEquals(keyWord)){\n setUsername(record);\n setPassword(bin.readLine());\n setFirstname(bin.readLine());\n setLastname(bin.readLine());\n setDoB((Date)DMY.parse(bin.readLine()));\n setContactNumber(bin.readLine());\n setEmail(bin.readLine());\n setSalary(Float.valueOf(bin.readLine()));\n setPositionStatus(bin.readLine());\n homeAddress.load(bin);\n }//end if\n }//end while\n bin.close();\n }//end try\n catch (IOException ioe){}//end catch\n catch (ParseException ex) {\n Logger.getLogger(Product.class.getName()).log(Level.SEVERE, null, ex);\n }\n }",
"public EStructuralFeature getFeatureByXMLElementName(String namespace, String xmlElementName) {\n \t\t\t// try to find the EStructural feature locally\n \t\t\t// TODO: consider namespace\n \t\t\tEStructuralFeature result = xmlNameToEStructuralFeatureMap.get(xmlElementName);\n \t\t\tif (null == result) {\n \t\t\t\tIterator<EStructuralFeature> allFeaturesIter = eClass.getEAllStructuralFeatures().iterator();\n \t\t\t\tList<EStructuralFeature> results = new ArrayList<EStructuralFeature>();\n \t\t\t\twhile (allFeaturesIter.hasNext()) {\n \t\t\t\t\tEStructuralFeature feature = allFeaturesIter.next();\n \t\t\t\t\tString xmlWrapperName = getRMFExtendedMetaData(feature).getXMLWrapperName();\n \n \t\t\t\t\t// search by feature wrapper\n \t\t\t\t\tif (xmlWrapperName.equals(xmlElementName)) {\n \t\t\t\t\t\tif (isIdentifiedByFeatureWrapper(feature)) {\n \t\t\t\t\t\t\tresults.add(feature);\n \t\t\t\t\t\t} else {\n \t\t\t\t\t\t\t// not found, continue with next feature\n \t\t\t\t\t\t}\n \t\t\t\t\t} else {\n \t\t\t\t\t\t// search by feature name\n \t\t\t\t\t\tString xmlName = getRMFExtendedMetaData(feature).getXMLName();\n \t\t\t\t\t\tif (xmlName.equals(xmlElementName)) {\n \t\t\t\t\t\t\tif (isIdentifiedByFeature(feature)) {\n \t\t\t\t\t\t\t\tresults.add(feature);\n \t\t\t\t\t\t\t} else {\n \t\t\t\t\t\t\t\t// not found, continue with next feature\n \t\t\t\t\t\t\t}\n \t\t\t\t\t\t} else {\n \t\t\t\t\t\t\t// search by type wrapper (assuming type is type of feature)\n \t\t\t\t\t\t\tString classifierWrapperXMLName = getRMFExtendedMetaData(feature.getEType()).getXMLWrapperName();\n \t\t\t\t\t\t\tif (classifierWrapperXMLName.equals(xmlElementName)) {\n \t\t\t\t\t\t\t\tif (isIdentifiedByClassifierWrapper(feature)) {\n \t\t\t\t\t\t\t\t\tresults.add(feature);\n \t\t\t\t\t\t\t\t} else {\n \t\t\t\t\t\t\t\t\t// not found, continue with next feature\n \t\t\t\t\t\t\t\t}\n \t\t\t\t\t\t\t} else {\n \t\t\t\t\t\t\t\t// search by type wrapper name (assuming type not type of feature)\n \t\t\t\t\t\t\t\tEClassifier classifier = getTypeByXMLWrapperName(namespace, xmlElementName);\n \t\t\t\t\t\t\t\tif (null != classifier) {\n \t\t\t\t\t\t\t\t\tif (feature.getEType().equals(classifier)) {\n \t\t\t\t\t\t\t\t\t\tif (isIdentifiedByClassifierWrapper(feature)) {\n \t\t\t\t\t\t\t\t\t\t\tresults.add(feature);\n \t\t\t\t\t\t\t\t\t\t} else {\n \t\t\t\t\t\t\t\t\t\t\t// not found, continue with next feature\n \t\t\t\t\t\t\t\t\t\t}\n \t\t\t\t\t\t\t\t\t} else if (classifier instanceof EClass) {\n \t\t\t\t\t\t\t\t\t\tEClass eClass = (EClass) classifier;\n \t\t\t\t\t\t\t\t\t\tif (eClass.getEAllSuperTypes().contains(feature.getEType())) {\n \t\t\t\t\t\t\t\t\t\t\tif (isIdentifiedByClassifierWrapper(feature)) {\n \t\t\t\t\t\t\t\t\t\t\t\tresults.add(feature);\n \t\t\t\t\t\t\t\t\t\t\t} else {\n \t\t\t\t\t\t\t\t\t\t\t\t// not found, continue with next feature\n \t\t\t\t\t\t\t\t\t\t\t}\n \t\t\t\t\t\t\t\t\t\t} else {\n \t\t\t\t\t\t\t\t\t\t\t// not found, continue with next feature\n \t\t\t\t\t\t\t\t\t\t}\n \t\t\t\t\t\t\t\t\t} else {\n \t\t\t\t\t\t\t\t\t\t// not found, continue with next feature\n \t\t\t\t\t\t\t\t\t}\n \t\t\t\t\t\t\t\t} else {\n \t\t\t\t\t\t\t\t\t// search by type name (assuming type not type of feature)\n \t\t\t\t\t\t\t\t\tclassifier = getTypeByXMLName(namespace, xmlElementName);\n \t\t\t\t\t\t\t\t\tif (null != classifier) {\n \t\t\t\t\t\t\t\t\t\tif (feature.getEType().equals(classifier)) {\n \t\t\t\t\t\t\t\t\t\t\tif (isIdentifiedByClassifier(feature)) {\n \t\t\t\t\t\t\t\t\t\t\t\tresults.add(feature);\n \t\t\t\t\t\t\t\t\t\t\t} else if (isNone(feature)) {\n \t\t\t\t\t\t\t\t\t\t\t\tresults.add(feature);\n \t\t\t\t\t\t\t\t\t\t\t} else {\n \t\t\t\t\t\t\t\t\t\t\t\t// not found, continue with next feature\n \t\t\t\t\t\t\t\t\t\t\t}\n \t\t\t\t\t\t\t\t\t\t} else if (classifier instanceof EClass) {\n \t\t\t\t\t\t\t\t\t\t\tif (eClass.getEAllSuperTypes().contains(feature.getEType())) {\n \t\t\t\t\t\t\t\t\t\t\t\tif (isIdentifiedByClassifier(feature)) {\n \t\t\t\t\t\t\t\t\t\t\t\t\tresults.add(feature);\n \t\t\t\t\t\t\t\t\t\t\t\t} else if (isNone(feature)) {\n \t\t\t\t\t\t\t\t\t\t\t\t\tresults.add(feature);\n \t\t\t\t\t\t\t\t\t\t\t\t} else {\n \t\t\t\t\t\t\t\t\t\t\t\t\t// not found, continue with next feature\n \t\t\t\t\t\t\t\t\t\t\t\t}\n \t\t\t\t\t\t\t\t\t\t\t} else if (isNone(feature)) {\n \t\t\t\t\t\t\t\t\t\t\t\tresults.add(feature);\n \t\t\t\t\t\t\t\t\t\t\t} else {\n \t\t\t\t\t\t\t\t\t\t\t\t// not found, continue with next feature\n \t\t\t\t\t\t\t\t\t\t\t}\n \t\t\t\t\t\t\t\t\t\t} else if (isNone(feature)) {\n \t\t\t\t\t\t\t\t\t\t\tresults.add(feature);\n \t\t\t\t\t\t\t\t\t\t} else {\n \t\t\t\t\t\t\t\t\t\t\t// not found, continue with next feature\n \t\t\t\t\t\t\t\t\t\t}\n \t\t\t\t\t\t\t\t\t} else if (isNone(feature)) {\n \t\t\t\t\t\t\t\t\t\tresults.add(feature);\n \t\t\t\t\t\t\t\t\t} else {\n \t\t\t\t\t\t\t\t\t\t// not found, continue with next feature\n \t\t\t\t\t\t\t\t\t}\n \t\t\t\t\t\t\t\t} // if (null != classifier && classifier instanceof EClass)\n \t\t\t\t\t\t\t} // if (classifierXMLName.equals(xmlElementName))\n \t\t\t\t\t\t} // if (xmlName.equals(xmlElementName))\n \t\t\t\t\t} // if (xmlWrapperName.equals(xmlElementName))\n \t\t\t\t} // while\n \n \t\t\t\t// if there are multiple valid features, we prefer the feature that is many and is not NONE\n \t\t\t\tint size = results.size();\n \t\t\t\tif (1 == size) {\n \t\t\t\t\tresult = results.get(0);\n \t\t\t\t} else if (0 < size) {\n \t\t\t\t\t// rule 1 we like the features that are explicitly selected\n \t\t\t\t\tList<EStructuralFeature> identifiedFeatures = new ArrayList<EStructuralFeature>();\n \t\t\t\t\tList<EStructuralFeature> noneFeatures = new ArrayList<EStructuralFeature>();\n \t\t\t\t\tfor (int i = 0; i < size; i++) {\n \t\t\t\t\t\tEStructuralFeature feature = results.get(i);\n \t\t\t\t\t\tif (isNone(feature)) {\n \t\t\t\t\t\t\tnoneFeatures.add(feature);\n \t\t\t\t\t\t} else {\n \t\t\t\t\t\t\tidentifiedFeatures.add(feature);\n \t\t\t\t\t\t}\n \t\t\t\t\t}\n \n \t\t\t\t\tif (identifiedFeatures.isEmpty()) {\n \t\t\t\t\t\t// there are none Features only\n \t\t\t\t\t\tresults = noneFeatures;\n \t\t\t\t\t} else {\n \t\t\t\t\t\tresults = identifiedFeatures;\n \t\t\t\t\t}\n \n \t\t\t\t\tresult = results.get(0);\n \n \t\t\t\t\t// try to find a better features that is many\n \t\t\t\t\tfor (EStructuralFeature feature : results) {\n \t\t\t\t\t\tif (feature.isMany()) {\n \t\t\t\t\t\t\tresult = feature;\n \t\t\t\t\t\t\tbreak;\n \t\t\t\t\t\t}\n \t\t\t\t\t}\n \t\t\t\t}\n\t\t\t}\n \n \t\t\t// TODO: fall back to standard serialization?\n \n \t\t\treturn result;\n \t\t}",
"private HashMap<String, SubsetElement> LoadFile(String fileName) {\n final HashMap<String, SubsetElement> tempMap = new HashMap<String, SubsetElement>();\r\n try {\r\n final Scanner input = new Scanner(new File(fileName));\r\n String line = input.nextLine();\r\n final String[] headers = line.split(\"\\t\");\r\n\r\n Integer i = 1;\r\n while (input.hasNext()) {\r\n line = input.nextLine();\r\n final String[] values = line.split(\"\\t\");\r\n // if(values.length!=headers.length){\r\n // System.out.println(\"Missing values in data row \"+ i);\r\n // break;\r\n // }\r\n\r\n final SubsetElement element = new SubsetElement(headers,\r\n values, this.subsetIdName, this.conceptIdName);\r\n tempMap.put(element.getHash(), element);\r\n i++;\r\n }\r\n input.close();\r\n\r\n } catch (final FileNotFoundException e) {\r\n System.err.println(\"Unable to open and parse file \" + fileName);\r\n e.printStackTrace();\r\n }\r\n\r\n return tempMap;\r\n }",
"protected XmlLoader(@NotNull File xmlFile, @Nullable DataContext context, Key<?>... keys) throws XmlParseException {\n\t\tcheckParams(context, keys);\n\t\tthis.dataContext = context;\n\t\tthis.document = getDocumentFromFile(xmlFile);\n\t}",
"public void unMarshall(File xmlDocument) {\n\t\ttry {\n\n\t\t\tJAXBContext jaxbContext = JAXBContext.newInstance(\"peoplestore.generated\");\n\n\t\t\tUnmarshaller unMarshaller = jaxbContext.createUnmarshaller();\n\t\t\tSchemaFactory schemaFactory = SchemaFactory\n\t\t\t\t\t.newInstance(\"http://www.w3.org/2001/XMLSchema\");\n\t\t\tSchema schema = schemaFactory.newSchema(new File(\n\t\t\t\t\t\"people.xsd\"));\n\t\t\tunMarshaller.setSchema(schema);\n\t\t\tCustomValidationEventHandler validationEventHandler = new CustomValidationEventHandler();\n\t\t\tunMarshaller.setEventHandler(validationEventHandler);\n\n\t\t\t@SuppressWarnings(\"unchecked\")\n\t\t\tJAXBElement<PeopleType> peopleElement = (JAXBElement<PeopleType>) unMarshaller\n\t\t\t\t\t.unmarshal(xmlDocument);\n\n\t\t\tPeopleType people = peopleElement.getValue();\n\n\t\t\tList<PersonType> personList = people.getPerson();\n\t\t\tfor (int i = 0; i < personList.size(); i++) {\n\t\t\t\t\n\t\t\t\t/**\n\t\t\t\t * Inside the for loop are printed\n\t\t\t\t * all the values of the person, calling \n\t\t\t\t * the accessor method get.\n\t\t\t\t * \n\t\t\t\t * Example:\n\t\t\t\t * \t\t\tperson.getFirstname()\n\t\t\t\t * \t\t\tget the firstname of the person at index i\n\t\t\t\t */\n\t\t\t\tPersonType person = (PersonType) personList.get(i);\n\t\t\t\tSystem.out.println(\"Id: \"+ person.getId());\n\t\t\t\tSystem.out.println(\"Firstname: \"+ person.getFirstname());\n\t\t\t\tSystem.out.println(\"Lastname: \"+ person.getLastname());\n\t\t\t\tSystem.out.println(\"Birthday: \"+ person.getBirthdate());\n\t\t\t\tHealthDataType hp = person.getHealthprofile();\n\t\t\t\tSystem.out.println(\" HealthProfile: \");\n\t\t\t\tSystem.out.println(\" Lastupdate: \"+ hp.getLastupdate());\n\t\t\t\tSystem.out.println(\" Weight: \"+ hp.getWeight());\n\t\t\t\tSystem.out.println(\" Height: \" + hp.getHeight());\n\t\t\t\tSystem.out.println(\" BMI: \" + hp.getBmi());\n\t\t\t\tSystem.out.println(\"=======================\");\n\n\t\t\t}\n\t\t} catch (JAXBException e) {\n\t\t\tSystem.out.println(e.toString());\n\t\t} catch (SAXException e) {\n\t\t\tSystem.out.println(e.toString());\n\t\t}\n\t}"
] |
[
"0.6218081",
"0.56283766",
"0.55765384",
"0.5490385",
"0.54159945",
"0.5415591",
"0.5390528",
"0.53499645",
"0.53454673",
"0.5267191",
"0.52648383",
"0.5232804",
"0.51854134",
"0.5150098",
"0.51436555",
"0.513898",
"0.51297617",
"0.50803393",
"0.50780195",
"0.5055929",
"0.5049134",
"0.50206244",
"0.5005645",
"0.49850452",
"0.49575934",
"0.4948094",
"0.49328986",
"0.49179143",
"0.49058756",
"0.48872286",
"0.48716873",
"0.4853588",
"0.48514998",
"0.48452854",
"0.4839103",
"0.48350924",
"0.4828554",
"0.4827991",
"0.48209953",
"0.48107967",
"0.48106855",
"0.48083782",
"0.48002076",
"0.47949678",
"0.47797662",
"0.47687382",
"0.47642174",
"0.47512498",
"0.47503635",
"0.4724653",
"0.47194123",
"0.47183624",
"0.47169134",
"0.4716898",
"0.47063917",
"0.47011924",
"0.4684442",
"0.466768",
"0.4659872",
"0.46586317",
"0.46340102",
"0.4627376",
"0.46181464",
"0.4610757",
"0.46068406",
"0.45920837",
"0.45799875",
"0.4579572",
"0.45771804",
"0.45612526",
"0.45506096",
"0.4549491",
"0.45459837",
"0.4545256",
"0.45408788",
"0.4540319",
"0.45296812",
"0.45209357",
"0.45079774",
"0.4504034",
"0.4495707",
"0.44911647",
"0.44858095",
"0.4471987",
"0.4469868",
"0.44628796",
"0.4461605",
"0.44519117",
"0.44512853",
"0.44505712",
"0.4446249",
"0.44438586",
"0.4443476",
"0.44375017",
"0.44369894",
"0.4428898",
"0.4424663",
"0.44243845",
"0.4424041",
"0.44212055"
] |
0.6455725
|
0
|
Creates a new Feature Dictionary and loads it with the feature list from an XML element that may have been produced by createFeaturesElement().
|
public FeatureDictionary(Element e) throws BoxerXMLException {
if (!e.getTagName().equals(XML.FEATURES)) {
throw new BoxerXMLException("FeatureDictionary can only be deserialized from an XML element named `" + XML.FEATURES + "'");
}
for(Node n = e.getFirstChild(); n!=null; n = n.getNextSibling()) {
int type = n.getNodeType();
//System.out.println("Node Name = " + n.getNodeName()+ ", type=" + type + ", val= " + val);
boolean found = false;
if (type == Node.COMMENT_NODE) { // skip
} else if (type == Node.TEXT_NODE) {
String val = n.getNodeValue().trim();
if (val.length()==0) { //skip
} else {
if (found) throw new BoxerXMLException("FeatureDictionary deserializer expects only one non-empty TEXT element in the XML element being parsed");
found = true;
String[] tokens = val.split("\\s+");
if (ADD_DUMMY_COMPONENT &&
(tokens.length==0 || !tokens[0].equals(DUMMY_LABEL))) {
throw new BoxerXMLException("FeatureDictionary deserializer: ADD_DUMMY_COMPONENT flag is on, but the feature list in the XML element does not start with " + DUMMY_LABEL);
}
id2label.setSize(tokens.length);
for(int i=0; i<tokens.length; i++) {
if (!IDValidation.validateFeatureName(tokens[i])) {
throw new BoxerXMLException("Can't add feature with the name '"+ tokens[i]+"' to the feature dictionary, because this is not a legal name");
}
id2label.set( i, tokens[i]);
label2id.put( tokens[i], i);
}
}
} else {
throw new IllegalArgumentException("FeatureDictionary deserializer: encountered unexpected node type " + type);
}
}
}
|
{
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
}
|
[
"public org.w3c.dom.Element createFeaturesElement(Document xmldoc) {\n\tElement e = xmldoc.createElement(XML.FEATURES);\n\tStringBuffer b=new StringBuffer();\n\tfor(int i=0; i< id2label.size();i++) {\n\t if (b.length()>0) b.append(\" \");\n\t b.append(getLabel(i));\n\t}\n\tText textNode = xmldoc.createTextNode(b.toString());\n\te.appendChild(textNode);\n\treturn e;\n }",
"@Test\n public void testFromXml() throws Exception\n {\n Element root = XmlBuilder.element(\"http://earth.google.com/kml/2.1\", \"kml\",\n XmlBuilder.element(\"http://earth.google.com/kml/2.1\", \"Folder\",\n XmlBuilder.element(\"http://earth.google.com/kml/2.1\", \"description\", XmlBuilder.text(\"folder description\"))),\n XmlBuilder.element(\"http://earth.google.com/kml/2.1\", \"Document\",\n XmlBuilder.element(\"http://earth.google.com/kml/2.1\", \"description\", XmlBuilder.text(\"document description\"))))\n .toDOM().getDocumentElement();\n\n KmlFile file = KmlFile.fromXml(root.getOwnerDocument());\n\n List<Feature<?>> features = file.getFeatures();\n\n assertEquals(\"number of features\", 2, features.size());\n assertEquals(\"first feature type\", Folder.class, features.get(0).getClass());\n assertEquals(\"first feature attribute\", \"folder description\", features.get(0).getDescription());\n assertEquals(\"second feature type\", Document.class, features.get(1).getClass());\n assertEquals(\"second feature attribute\", \"document description\", features.get(1).getDescription());\n }",
"org.landxml.schema.landXML11.FeatureDocument.Feature addNewFeature();",
"org.landxml.schema.landXML11.FeatureDocument.Feature addNewFeature();",
"public FeatureDictionary(File f) \n\t\tthrows IOException, SAXException, BoxerXMLException {\n\tthis(ParseXML.readFileToElement(f));\n }",
"java.util.List<org.landxml.schema.landXML11.FeatureDocument.Feature> getFeatureList();",
"java.util.List<org.landxml.schema.landXML11.FeatureDocument.Feature> getFeatureList();",
"private static List<IFeature> parseFeatures(WMElement features) {\n List<IFeature> trainingFeatures = new ArrayList<>();\n for (int i = 0; i < features.ConvertToIdentifier().GetNumberChildren(); i++) {\n IFeature res;\n WMElement curFeatureType = features.ConvertToIdentifier().GetChild(i);\n WMElement curFeature = curFeatureType.ConvertToIdentifier().GetChild(0);\n String featureName = curFeature.GetAttribute();\n String featureVal = curFeature.GetValueAsString();\n double featureValNumerical = -1.0;\n try {\n featureValNumerical = Double.parseDouble(featureVal);\n } catch (Exception e) {\n if (featureVal.equalsIgnoreCase(\"true\")) {\n featureValNumerical = 1.0;\n } else if (featureVal.equalsIgnoreCase(\"false\")) {\n featureValNumerical = 0.0;\n }\n }\n\n switch (curFeatureType.GetAttribute()) {\n case \"boolean\":\n res = new BooleanFeature(featureName, featureValNumerical);\n break;\n case \"numerical\":\n res = new NumericalFeature(featureName, featureValNumerical);\n break;\n case \"categorical\":\n res = new CategoricalFeature(featureName, featureVal);\n break;\n default:\n throw new IllegalArgumentException(\"Given feature type is not supported.\");\n }\n\n trainingFeatures.add(res);\n }\n return trainingFeatures;\n }",
"private static Map<String, FeatureType> buildAvailableFeatureMap(List<FeatureType> features){\r\n\t\tMap<String, FeatureType> featureMap = new HashMap<String, FeatureType>();\r\n\t\tfor(FeatureType feature : features){\r\n\t\t\tfeatureMap.put(feature.getExternalId(), feature);\r\n\t\t}\r\n\t\treturn featureMap;\r\n\t}",
"Feature loadFeature(Integer id);",
"Feature createFeature();",
"org.landxml.schema.landXML11.FeatureDocument.Feature insertNewFeature(int i);",
"org.landxml.schema.landXML11.FeatureDocument.Feature insertNewFeature(int i);",
"public FeatureDictionary() {\n\tif (ADD_DUMMY_COMPONENT) {\n\t id2label.add( DUMMY_LABEL );\n\t label2id.put( DUMMY_LABEL, new Integer(0));\n\t}\n }",
"void addFeatures(Features features);",
"private List<XmlElementNameAndContents> encodeFeatures(TOP fs, AttributesImpl attrs,\n boolean insideListNode) throws SAXException {\n List<XmlElementNameAndContents> childElements = new ArrayList<>();\n // int heapValue = cds.cas.getHeapValue(addr);\n // int[] feats = cds.tsi.ll_getAppropriateFeatures(heapValue);\n\n String attrValue;\n // boolean isSofa = false;\n // if (sofaTypeCode == heapValue)\n // {\n // // set isSofa flag to apply SofaID mapping and to store sofaNum->xmi:id mapping\n // isSofa = true;\n // }\n for (final FeatureImpl fi : fs._getTypeImpl().getFeatureImpls()) {\n\n if (cds.isFiltering) {\n // skip features that aren't in the target type system\n String fullFeatName = fi.getName();\n if (cds.filterTypeSystem_inner.getFeatureByFullName(fullFeatName) == null) {\n continue;\n }\n }\n\n final String featName = fi.getShortName();\n final int featureValueClass = fi.rangeTypeClass;\n\n switch (featureValueClass) {\n\n case LowLevelCAS.TYPE_CLASS_BYTE:\n case LowLevelCAS.TYPE_CLASS_SHORT:\n case LowLevelCAS.TYPE_CLASS_INT:\n case LowLevelCAS.TYPE_CLASS_LONG:\n case LowLevelCAS.TYPE_CLASS_FLOAT:\n case LowLevelCAS.TYPE_CLASS_DOUBLE:\n case LowLevelCAS.TYPE_CLASS_BOOLEAN:\n attrValue = fs.getFeatureValueAsString(fi);\n break;\n\n case LowLevelCAS.TYPE_CLASS_STRING:\n attrValue = fs.getFeatureValueAsString(fi);\n break;\n\n // Arrays\n case LowLevelCAS.TYPE_CLASS_INTARRAY:\n case LowLevelCAS.TYPE_CLASS_FLOATARRAY:\n case LowLevelCAS.TYPE_CLASS_BOOLEANARRAY:\n case LowLevelCAS.TYPE_CLASS_BYTEARRAY:\n case LowLevelCAS.TYPE_CLASS_SHORTARRAY:\n case LowLevelCAS.TYPE_CLASS_LONGARRAY:\n case LowLevelCAS.TYPE_CLASS_DOUBLEARRAY:\n case LowLevelCAS.TYPE_CLASS_FSARRAY:\n if (cds.isStaticMultiRef(fi)) {\n attrValue = cds.getXmiId(fs.getFeatureValue(fi));\n } else {\n attrValue = arrayToString(fs.getFeatureValue(fi), featureValueClass);\n }\n break;\n\n // special case for StringArrays, which stored values as child elements rather\n // than attributes.\n case LowLevelCAS.TYPE_CLASS_STRINGARRAY:\n StringArray stringArray = (StringArray) fs.getFeatureValue(fi);\n if (cds.isStaticMultiRef(fi)) {\n attrValue = cds.getXmiId(stringArray);\n } else if (stringArray != null && stringArray.size() == 0) {\n attrValue = \"\"; // https://issues.apache.org/jira/browse/UIMA-5558\n } else {\n stringArrayToElementList(featName, (StringArray) fs.getFeatureValue(fi),\n childElements);\n attrValue = null;\n }\n break;\n\n // Lists\n case CasSerializerSupport.TYPE_CLASS_INTLIST:\n case CasSerializerSupport.TYPE_CLASS_FLOATLIST:\n case CasSerializerSupport.TYPE_CLASS_FSLIST:\n TOP startNode = fs.getFeatureValue(fi);\n if (insideListNode || cds.isStaticMultiRef(fi)) {\n // If the feature has multipleReferencesAllowed = true OR if we're already\n // inside another list node (i.e. this is the \"tail\" feature), serialize as a normal\n // FS.\n // Otherwise, serialize as a multi-valued property.\n // if (cds.isStaticMultRef(feats[i]) ||\n // cds.embeddingNotAllowed.contains(featVal) ||\n // insideListNode) {\n\n attrValue = cds.getXmiId(startNode);\n } else {\n attrValue = listToString((CommonList) fs.getFeatureValue(fi));\n }\n break;\n\n // special case for StringLists, which stored values as child elements rather\n // than attributes.\n case CasSerializerSupport.TYPE_CLASS_STRINGLIST:\n if (insideListNode || cds.isStaticMultiRef(fi)) {\n attrValue = cds.getXmiId(fs.getFeatureValue(fi));\n } else {\n // it is not safe to use a space-separated attribute, which would\n // break for strings containing spaces. So use child elements instead.\n StringList stringList = (StringList) fs.getFeatureValue(fi);\n if (stringList == null) {\n attrValue = null;\n } else {\n if (stringList instanceof EmptyStringList) {\n attrValue = \"\";\n } else {\n List<String> listOfStrings = stringList.anyListToStringList(null, cds);\n // if (array.length > 0 && !arrayAndListFSs.put(featVal, featVal)) {\n // reportWarning(\"Warning: multiple references to a ListFS. Reference identity\n // will not be preserved.\");\n // }\n for (String string : listOfStrings) {\n childElements.add(new XmlElementNameAndContents(\n new XmlElementName(\"\", featName, featName), string));\n }\n attrValue = null;\n }\n }\n }\n break;\n\n default: // Anything that's not a primitive type, array, or list.\n attrValue = cds.getXmiId(fs.getFeatureValue(fi));\n break;\n\n } // end of switch\n\n if (attrValue != null && featName != null) {\n addAttribute(attrs, featName, attrValue, \"\");\n }\n } // end of for loop over all features\n\n // add out-of-typesystem features, if any\n if (cds.sharedData != null) {\n OotsElementData oed = cds.sharedData.getOutOfTypeSystemFeatures(fs);\n if (oed != null) {\n // attributes\n Iterator<XmlAttribute> attrIter = oed.attributes.iterator();\n while (attrIter.hasNext()) {\n XmlAttribute attr = attrIter.next();\n addAttribute(workAttrs, attr.name, attr.value);\n }\n // child elements\n childElements.addAll(oed.childElements);\n }\n }\n return childElements;\n }",
"public EStructuralFeature getFeatureByXMLElementName(String namespace, String xmlElementName) {\n \t\t\t// try to find the EStructural feature locally\n \t\t\t// TODO: consider namespace\n \t\t\tEStructuralFeature result = xmlNameToEStructuralFeatureMap.get(xmlElementName);\n \t\t\tif (null == result) {\n \t\t\t\tIterator<EStructuralFeature> allFeaturesIter = eClass.getEAllStructuralFeatures().iterator();\n \t\t\t\tList<EStructuralFeature> results = new ArrayList<EStructuralFeature>();\n \t\t\t\twhile (allFeaturesIter.hasNext()) {\n \t\t\t\t\tEStructuralFeature feature = allFeaturesIter.next();\n \t\t\t\t\tString xmlWrapperName = getRMFExtendedMetaData(feature).getXMLWrapperName();\n \n \t\t\t\t\t// search by feature wrapper\n \t\t\t\t\tif (xmlWrapperName.equals(xmlElementName)) {\n \t\t\t\t\t\tif (isIdentifiedByFeatureWrapper(feature)) {\n \t\t\t\t\t\t\tresults.add(feature);\n \t\t\t\t\t\t} else {\n \t\t\t\t\t\t\t// not found, continue with next feature\n \t\t\t\t\t\t}\n \t\t\t\t\t} else {\n \t\t\t\t\t\t// search by feature name\n \t\t\t\t\t\tString xmlName = getRMFExtendedMetaData(feature).getXMLName();\n \t\t\t\t\t\tif (xmlName.equals(xmlElementName)) {\n \t\t\t\t\t\t\tif (isIdentifiedByFeature(feature)) {\n \t\t\t\t\t\t\t\tresults.add(feature);\n \t\t\t\t\t\t\t} else {\n \t\t\t\t\t\t\t\t// not found, continue with next feature\n \t\t\t\t\t\t\t}\n \t\t\t\t\t\t} else {\n \t\t\t\t\t\t\t// search by type wrapper (assuming type is type of feature)\n \t\t\t\t\t\t\tString classifierWrapperXMLName = getRMFExtendedMetaData(feature.getEType()).getXMLWrapperName();\n \t\t\t\t\t\t\tif (classifierWrapperXMLName.equals(xmlElementName)) {\n \t\t\t\t\t\t\t\tif (isIdentifiedByClassifierWrapper(feature)) {\n \t\t\t\t\t\t\t\t\tresults.add(feature);\n \t\t\t\t\t\t\t\t} else {\n \t\t\t\t\t\t\t\t\t// not found, continue with next feature\n \t\t\t\t\t\t\t\t}\n \t\t\t\t\t\t\t} else {\n \t\t\t\t\t\t\t\t// search by type wrapper name (assuming type not type of feature)\n \t\t\t\t\t\t\t\tEClassifier classifier = getTypeByXMLWrapperName(namespace, xmlElementName);\n \t\t\t\t\t\t\t\tif (null != classifier) {\n \t\t\t\t\t\t\t\t\tif (feature.getEType().equals(classifier)) {\n \t\t\t\t\t\t\t\t\t\tif (isIdentifiedByClassifierWrapper(feature)) {\n \t\t\t\t\t\t\t\t\t\t\tresults.add(feature);\n \t\t\t\t\t\t\t\t\t\t} else {\n \t\t\t\t\t\t\t\t\t\t\t// not found, continue with next feature\n \t\t\t\t\t\t\t\t\t\t}\n \t\t\t\t\t\t\t\t\t} else if (classifier instanceof EClass) {\n \t\t\t\t\t\t\t\t\t\tEClass eClass = (EClass) classifier;\n \t\t\t\t\t\t\t\t\t\tif (eClass.getEAllSuperTypes().contains(feature.getEType())) {\n \t\t\t\t\t\t\t\t\t\t\tif (isIdentifiedByClassifierWrapper(feature)) {\n \t\t\t\t\t\t\t\t\t\t\t\tresults.add(feature);\n \t\t\t\t\t\t\t\t\t\t\t} else {\n \t\t\t\t\t\t\t\t\t\t\t\t// not found, continue with next feature\n \t\t\t\t\t\t\t\t\t\t\t}\n \t\t\t\t\t\t\t\t\t\t} else {\n \t\t\t\t\t\t\t\t\t\t\t// not found, continue with next feature\n \t\t\t\t\t\t\t\t\t\t}\n \t\t\t\t\t\t\t\t\t} else {\n \t\t\t\t\t\t\t\t\t\t// not found, continue with next feature\n \t\t\t\t\t\t\t\t\t}\n \t\t\t\t\t\t\t\t} else {\n \t\t\t\t\t\t\t\t\t// search by type name (assuming type not type of feature)\n \t\t\t\t\t\t\t\t\tclassifier = getTypeByXMLName(namespace, xmlElementName);\n \t\t\t\t\t\t\t\t\tif (null != classifier) {\n \t\t\t\t\t\t\t\t\t\tif (feature.getEType().equals(classifier)) {\n \t\t\t\t\t\t\t\t\t\t\tif (isIdentifiedByClassifier(feature)) {\n \t\t\t\t\t\t\t\t\t\t\t\tresults.add(feature);\n \t\t\t\t\t\t\t\t\t\t\t} else if (isNone(feature)) {\n \t\t\t\t\t\t\t\t\t\t\t\tresults.add(feature);\n \t\t\t\t\t\t\t\t\t\t\t} else {\n \t\t\t\t\t\t\t\t\t\t\t\t// not found, continue with next feature\n \t\t\t\t\t\t\t\t\t\t\t}\n \t\t\t\t\t\t\t\t\t\t} else if (classifier instanceof EClass) {\n \t\t\t\t\t\t\t\t\t\t\tif (eClass.getEAllSuperTypes().contains(feature.getEType())) {\n \t\t\t\t\t\t\t\t\t\t\t\tif (isIdentifiedByClassifier(feature)) {\n \t\t\t\t\t\t\t\t\t\t\t\t\tresults.add(feature);\n \t\t\t\t\t\t\t\t\t\t\t\t} else if (isNone(feature)) {\n \t\t\t\t\t\t\t\t\t\t\t\t\tresults.add(feature);\n \t\t\t\t\t\t\t\t\t\t\t\t} else {\n \t\t\t\t\t\t\t\t\t\t\t\t\t// not found, continue with next feature\n \t\t\t\t\t\t\t\t\t\t\t\t}\n \t\t\t\t\t\t\t\t\t\t\t} else if (isNone(feature)) {\n \t\t\t\t\t\t\t\t\t\t\t\tresults.add(feature);\n \t\t\t\t\t\t\t\t\t\t\t} else {\n \t\t\t\t\t\t\t\t\t\t\t\t// not found, continue with next feature\n \t\t\t\t\t\t\t\t\t\t\t}\n \t\t\t\t\t\t\t\t\t\t} else if (isNone(feature)) {\n \t\t\t\t\t\t\t\t\t\t\tresults.add(feature);\n \t\t\t\t\t\t\t\t\t\t} else {\n \t\t\t\t\t\t\t\t\t\t\t// not found, continue with next feature\n \t\t\t\t\t\t\t\t\t\t}\n \t\t\t\t\t\t\t\t\t} else if (isNone(feature)) {\n \t\t\t\t\t\t\t\t\t\tresults.add(feature);\n \t\t\t\t\t\t\t\t\t} else {\n \t\t\t\t\t\t\t\t\t\t// not found, continue with next feature\n \t\t\t\t\t\t\t\t\t}\n \t\t\t\t\t\t\t\t} // if (null != classifier && classifier instanceof EClass)\n \t\t\t\t\t\t\t} // if (classifierXMLName.equals(xmlElementName))\n \t\t\t\t\t\t} // if (xmlName.equals(xmlElementName))\n \t\t\t\t\t} // if (xmlWrapperName.equals(xmlElementName))\n \t\t\t\t} // while\n \n \t\t\t\t// if there are multiple valid features, we prefer the feature that is many and is not NONE\n \t\t\t\tint size = results.size();\n \t\t\t\tif (1 == size) {\n \t\t\t\t\tresult = results.get(0);\n \t\t\t\t} else if (0 < size) {\n \t\t\t\t\t// rule 1 we like the features that are explicitly selected\n \t\t\t\t\tList<EStructuralFeature> identifiedFeatures = new ArrayList<EStructuralFeature>();\n \t\t\t\t\tList<EStructuralFeature> noneFeatures = new ArrayList<EStructuralFeature>();\n \t\t\t\t\tfor (int i = 0; i < size; i++) {\n \t\t\t\t\t\tEStructuralFeature feature = results.get(i);\n \t\t\t\t\t\tif (isNone(feature)) {\n \t\t\t\t\t\t\tnoneFeatures.add(feature);\n \t\t\t\t\t\t} else {\n \t\t\t\t\t\t\tidentifiedFeatures.add(feature);\n \t\t\t\t\t\t}\n \t\t\t\t\t}\n \n \t\t\t\t\tif (identifiedFeatures.isEmpty()) {\n \t\t\t\t\t\t// there are none Features only\n \t\t\t\t\t\tresults = noneFeatures;\n \t\t\t\t\t} else {\n \t\t\t\t\t\tresults = identifiedFeatures;\n \t\t\t\t\t}\n \n \t\t\t\t\tresult = results.get(0);\n \n \t\t\t\t\t// try to find a better features that is many\n \t\t\t\t\tfor (EStructuralFeature feature : results) {\n \t\t\t\t\t\tif (feature.isMany()) {\n \t\t\t\t\t\t\tresult = feature;\n \t\t\t\t\t\t\tbreak;\n \t\t\t\t\t\t}\n \t\t\t\t\t}\n \t\t\t\t}\n\t\t\t}\n \n \t\t\t// TODO: fall back to standard serialization?\n \n \t\t\treturn result;\n \t\t}",
"void addFeature(Feature feature);",
"private void loadInitializationAttributes() {\n \t\tURL url = BootLoader.getInstallURL();\n \n \t\t// load any initialization attributes. These are the default settings for\n \t\t// key attributes (eg. default primary feature) supplied by the packaging team.\n \t\t// They are always reloaded on startup to pick up any changes due to\n \t\t// \"native\" updates.\n \t\tProperties initProps = new Properties();\n \t\tInputStream is = null;\n \t\ttry {\n \t\t\tURL initURL = new URL(url, CONFIG_FILE_INIT);\n \t\t\tis = initURL.openStream();\n \t\t\tinitProps.load(is);\n \t\t\tif (DEBUG)\n \t\t\t\tdebug(\"Defaults from \" + initURL.toExternalForm()); //$NON-NLS-1$\n \t\t} catch (IOException e) {\n \t\t\treturn; // could not load default settings\n \t\t} finally {\n \t\t\tif (is != null) {\n \t\t\t\ttry {\n \t\t\t\t\tis.close();\n \t\t\t\t} catch (IOException e) {\n \t\t\t\t\t// ignore ...\n \t\t\t\t}\n \t\t\t}\n \t\t}\n \n \t\t// use default settings if supplied\n \t\tString initId = loadAttribute(initProps, INIT_DEFAULT_FEATURE_ID, null);\n \t\tif (initId != null) {\n \t\t\tString application = loadAttribute(initProps, INIT_DEFAULT_FEATURE_APPLICATION, null);\n \t\t\tString initPluginId = loadAttribute(initProps, INIT_DEFAULT_PLUGIN_ID, null);\n \t\t\tif (initPluginId==null)\n \t\t\t\tinitPluginId = initId;\n \t\t\tIFeatureEntry fe = findConfiguredFeatureEntry(initId);\n \n \t\t\tif (fe == null) {\n \t\t\t\t// bug 26896 : setup optimistic reconciliation if the primary feature has changed or is new\n \t\t\t\tcmdFirstUse = true;\n \t\t\t\t// create entry if not exists\n \t\t\t\tfe = createFeatureEntry(initId, null, initPluginId, null, true, application, null);\n \t\t\t} else\n \t\t\t\t// update existing entry with new info\n \t\t\t\tfe = createFeatureEntry(initId, fe.getFeatureVersion(), fe.getFeaturePluginIdentifier(), fe.getFeaturePluginVersion(), fe.canBePrimary(), application, fe.getFeatureRootURLs());\n \t\t\tconfigureFeatureEntry(fe);\n \t\t\tdefaultFeature = initId;\n \t\t\tif (DEBUG) {\n \t\t\t\tdebug(\" Default primary feature: \" + defaultFeature); //$NON-NLS-1$\n \t\t\t\tif (application != null)\n \t\t\t\t\tdebug(\" Default application : \" + application); //$NON-NLS-1$\n \t\t\t}\n \t\t}\n \t}",
"public org.landxml.schema.landXML11.FeatureDocument.Feature addNewFeature()\r\n {\r\n synchronized (monitor())\r\n {\r\n check_orphaned();\r\n org.landxml.schema.landXML11.FeatureDocument.Feature target = null;\r\n target = (org.landxml.schema.landXML11.FeatureDocument.Feature)get_store().add_element_user(FEATURE$6);\r\n return target;\r\n }\r\n }",
"public org.landxml.schema.landXML11.FeatureDocument.Feature addNewFeature()\r\n {\r\n synchronized (monitor())\r\n {\r\n check_orphaned();\r\n org.landxml.schema.landXML11.FeatureDocument.Feature target = null;\r\n target = (org.landxml.schema.landXML11.FeatureDocument.Feature)get_store().add_element_user(FEATURE$6);\r\n return target;\r\n }\r\n }",
"public java.util.List<org.landxml.schema.landXML11.FeatureDocument.Feature> getFeatureList()\r\n {\r\n final class FeatureList extends java.util.AbstractList<org.landxml.schema.landXML11.FeatureDocument.Feature>\r\n {\r\n public org.landxml.schema.landXML11.FeatureDocument.Feature get(int i)\r\n { return SurfaceImpl.this.getFeatureArray(i); }\r\n \r\n public org.landxml.schema.landXML11.FeatureDocument.Feature set(int i, org.landxml.schema.landXML11.FeatureDocument.Feature o)\r\n {\r\n org.landxml.schema.landXML11.FeatureDocument.Feature old = SurfaceImpl.this.getFeatureArray(i);\r\n SurfaceImpl.this.setFeatureArray(i, o);\r\n return old;\r\n }\r\n \r\n public void add(int i, org.landxml.schema.landXML11.FeatureDocument.Feature o)\r\n { SurfaceImpl.this.insertNewFeature(i).set(o); }\r\n \r\n public org.landxml.schema.landXML11.FeatureDocument.Feature remove(int i)\r\n {\r\n org.landxml.schema.landXML11.FeatureDocument.Feature old = SurfaceImpl.this.getFeatureArray(i);\r\n SurfaceImpl.this.removeFeature(i);\r\n return old;\r\n }\r\n \r\n public int size()\r\n { return SurfaceImpl.this.sizeOfFeatureArray(); }\r\n \r\n }\r\n \r\n synchronized (monitor())\r\n {\r\n check_orphaned();\r\n return new FeatureList();\r\n }\r\n }",
"public void addElement(final FeatureElement newElement)\n\t{\n\t\tfeatureElements.add(newElement);\n\t}",
"public void addFeatures(IFeature feature);",
"public Map<Feature,Feature> setAttributes(Collection<Feature> features, String layerName) throws Exception {\r\n // map original feature to modified features\r\n Map<Feature,Feature> map = new HashMap();\r\n\r\n for (Feature feature : features) {\r\n FeatureSchema schema = feature.getSchema();\r\n Feature newFeature = feature.clone(false);\r\n try {\r\n for (SetAttribute setAtt : attributes) {\r\n String name = setAtt.getName();\r\n String value = setAtt.getValue();\r\n\r\n if (!schema.hasAttribute(name)) {\r\n if (isAtomic()) {\r\n throw new Exception(I18N.getMessage(\"set_attributes\",\r\n \"SetAttributesPlugIn.not-consistent-with-schema\",\r\n new Object[]{name, layerName, feature.getID()}));\r\n } else {\r\n continue;\r\n }\r\n }\r\n // This attribute value has not the prerequisite, don't change it\r\n if (!setAtt.checkPrerequisite(feature.getAttribute(name))) {\r\n continue;\r\n }\r\n if (!checkDimension(feature)) {\r\n continue;\r\n }\r\n AttributeType type = schema.getAttributeType(name);\r\n if (value == null) {\r\n newFeature.setAttribute(name, null);\r\n }\r\n else if (type == AttributeType.STRING) {\r\n newFeature.setAttribute(name, value);\r\n }\r\n else if (type == AttributeType.INTEGER) {\r\n newFeature.setAttribute(name, Integer.parseInt(value));\r\n }\r\n else if (type == AttributeType.DOUBLE) {\r\n newFeature.setAttribute(name, Double.parseDouble(value));\r\n }\r\n else if (type == AttributeType.DATE) {\r\n newFeature.setAttribute(name, dateParser.parse(value, false));\r\n }\r\n else if (type == AttributeType.OBJECT) {\r\n newFeature.setAttribute(name, value);\r\n }\r\n else if (AttributeType.class.getField(\"BOOLEAN\") != null && type == AttributeType.BOOLEAN) {\r\n newFeature.setAttribute(name, Boolean.parseBoolean(value));\r\n }\r\n else if (AttributeType.class.getField(\"LONG\") != null && type == AttributeType.LONG) {\r\n newFeature.setAttribute(name, Long.parseLong(value));\r\n }\r\n }\r\n map.put(feature,newFeature);\r\n } catch(Exception e) {\r\n LOG.warn(e.getMessage());\r\n throw e;\r\n }\r\n\r\n }\r\n return map;\r\n }",
"public org.landxml.schema.landXML11.FeatureDocument.Feature addNewFeature()\r\n {\r\n synchronized (monitor())\r\n {\r\n check_orphaned();\r\n org.landxml.schema.landXML11.FeatureDocument.Feature target = null;\r\n target = (org.landxml.schema.landXML11.FeatureDocument.Feature)get_store().add_element_user(FEATURE$14);\r\n return target;\r\n }\r\n }",
"private Hashtable loadFromDoc() {\n\tHashtable tab = new Hashtable();\n\n\tNodeList tree = stateDoc.getDocumentElement().getChildNodes();\n\tfor (int i = 0; tree != null && i < tree.getLength(); i++) {\n\t NamedNodeMap attr = tree.item(i).getAttributes();\n\t if (attr != null) {\n\t\tString name = attr.getNamedItem(\"name\").getNodeValue();\n\t\ttab.put(name, new WeatherUnit(attr));\n\t }\n\t}\n\treturn tab;\n }",
"List<Feature> getFeatures();",
"org.landxml.schema.landXML11.FeatureDocument.Feature getFeatureArray(int i);",
"org.landxml.schema.landXML11.FeatureDocument.Feature getFeatureArray(int i);",
"@Override\r\n\tpublic void initializeFromFile(File inputXmlFile) {\n\t\tDocumentBuilderFactory factory = DocumentBuilderFactory.newInstance();\r\n\t\ttry {\r\n\t\t\tDocumentBuilder builder = factory.newDocumentBuilder();\r\n\t\t\tDocument doc = builder.parse(inputXmlFile);\r\n\t\t\tNodeList xmlNodeList;\r\n\t\t\tNodeList xmlEdgeList;\r\n\t\t\txmlNodeList = doc.getElementsByTagName(\"node\");\r\n\r\n\t\t\tfor(int i=0;i<xmlNodeList.getLength();i++) {\r\n\r\n\t\t\t\tNode p=xmlNodeList.item(i);\r\n\t\t\t\tElement xmlNode =(Element) p;\r\n\t\t\t\tNodeList.add(xmlNode);\r\n\t\t\t\tNodeMap.put(Integer.parseInt(xmlNode.getAttribute(\"id\")),xmlNode);\r\n\r\n\r\n\t\t\t\t}\r\n\t\t\txmlEdgeList = doc.getElementsByTagName(\"edge\");\r\n\r\n\r\n\t\t\tfor(int j=0;j<xmlEdgeList.getLength();j++) {\r\n\t\t\t\tNode p = xmlEdgeList.item(j);\r\n\t\t\t\tElement xmlNode = (Element) p;\r\n\t\t\t\tEdgeList.add(xmlNode);\r\n\r\n\t\t\t}\r\n\r\n\t\t} catch (ParserConfigurationException e) {\r\n\t\t\te.printStackTrace();\r\n\t\t} catch (SAXException e) {\r\n\t\t\te.printStackTrace();\r\n\t\t} catch(IOException e) {\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\r\n\t}",
"private void addFeature()\r\n {\r\n MapGeometrySupport mgs = myCurrentGeometryHandler.getGeometry();\r\n MetaDataProvider mdp = myMetaDataHandler.getMetaDataProvider();\r\n TimeSpan span = buildTimeSpan(mdp);\r\n mgs.setTimeSpan(span);\r\n MapDataElement element = new DefaultMapDataElement(myFeatureId, span, myType, mdp, mgs);\r\n Color typeColor = myType.getBasicVisualizationInfo().getTypeColor().equals(DEFAULT_FEATURE_COLOR) ? myFeatureColor\r\n : myType.getBasicVisualizationInfo().getTypeColor();\r\n element.getVisualizationState().setColor(typeColor);\r\n myConsumer.addFeature(element);\r\n myFeatureCount++;\r\n }",
"public java.util.List<org.landxml.schema.landXML11.FeatureDocument.Feature> getFeatureList()\r\n {\r\n final class FeatureList extends java.util.AbstractList<org.landxml.schema.landXML11.FeatureDocument.Feature>\r\n {\r\n public org.landxml.schema.landXML11.FeatureDocument.Feature get(int i)\r\n { return GPSSetupImpl.this.getFeatureArray(i); }\r\n \r\n public org.landxml.schema.landXML11.FeatureDocument.Feature set(int i, org.landxml.schema.landXML11.FeatureDocument.Feature o)\r\n {\r\n org.landxml.schema.landXML11.FeatureDocument.Feature old = GPSSetupImpl.this.getFeatureArray(i);\r\n GPSSetupImpl.this.setFeatureArray(i, o);\r\n return old;\r\n }\r\n \r\n public void add(int i, org.landxml.schema.landXML11.FeatureDocument.Feature o)\r\n { GPSSetupImpl.this.insertNewFeature(i).set(o); }\r\n \r\n public org.landxml.schema.landXML11.FeatureDocument.Feature remove(int i)\r\n {\r\n org.landxml.schema.landXML11.FeatureDocument.Feature old = GPSSetupImpl.this.getFeatureArray(i);\r\n GPSSetupImpl.this.removeFeature(i);\r\n return old;\r\n }\r\n \r\n public int size()\r\n { return GPSSetupImpl.this.sizeOfFeatureArray(); }\r\n \r\n }\r\n \r\n synchronized (monitor())\r\n {\r\n check_orphaned();\r\n return new FeatureList();\r\n }\r\n }",
"private void createFeatures() {\n\t\tfeatures = new Feature[NUM_FEATURES];\n\n\t\t// Create dummy feature\n\t\tfeatures[0] = new DummyFeature(width, height, 0, 0 - THRESHOLD);\n\n\t\t// Create the rest of the features\n\t\tfor (int i = 1; i < NUM_FEATURES; i++) {\n\t\t\tfeatures[i] = new Feature(width, height, i);\n\t\t}\n\t}",
"public java.util.List<org.landxml.schema.landXML11.FeatureDocument.Feature> getFeatureList()\r\n {\r\n final class FeatureList extends java.util.AbstractList<org.landxml.schema.landXML11.FeatureDocument.Feature>\r\n {\r\n public org.landxml.schema.landXML11.FeatureDocument.Feature get(int i)\r\n { return IntersectionImpl.this.getFeatureArray(i); }\r\n \r\n public org.landxml.schema.landXML11.FeatureDocument.Feature set(int i, org.landxml.schema.landXML11.FeatureDocument.Feature o)\r\n {\r\n org.landxml.schema.landXML11.FeatureDocument.Feature old = IntersectionImpl.this.getFeatureArray(i);\r\n IntersectionImpl.this.setFeatureArray(i, o);\r\n return old;\r\n }\r\n \r\n public void add(int i, org.landxml.schema.landXML11.FeatureDocument.Feature o)\r\n { IntersectionImpl.this.insertNewFeature(i).set(o); }\r\n \r\n public org.landxml.schema.landXML11.FeatureDocument.Feature remove(int i)\r\n {\r\n org.landxml.schema.landXML11.FeatureDocument.Feature old = IntersectionImpl.this.getFeatureArray(i);\r\n IntersectionImpl.this.removeFeature(i);\r\n return old;\r\n }\r\n \r\n public int size()\r\n { return IntersectionImpl.this.sizeOfFeatureArray(); }\r\n \r\n }\r\n \r\n synchronized (monitor())\r\n {\r\n check_orphaned();\r\n return new FeatureList();\r\n }\r\n }",
"public Features() {\n\t\tsuper();\n\t\t// TODO Auto-generated constructor stub\n\t}",
"org.landxml.schema.landXML11.FeatureDocument.Feature[] getFeatureArray();",
"org.landxml.schema.landXML11.FeatureDocument.Feature[] getFeatureArray();",
"@Override\n protected SimpleFeature buildFeature() {\n synchronized(EDGE_FEATURE_BUILDER) {\n EDGE_FEATURE_BUILDER.add(getId());\n EDGE_FEATURE_BUILDER.add(displayName);\n EDGE_FEATURE_BUILDER.add(url);\n EDGE_FEATURE_BUILDER.add(selected);\n EDGE_FEATURE_BUILDER.add(lineString);\n return EDGE_FEATURE_BUILDER.buildFeature(null);\n }\n }",
"public FeatureCollection() {\n//\t\tif (featureTypes!=null) {\n//\t\t\tavailableFeatureTypes = featureTypes;\n//\t\t}\n\t}",
"java.util.List<java.lang.String> getFeaturesList();",
"protected static Map<String, Service> createServices( Element elem, String webinfPath )\n throws XMLParsingException, IOException {\n\n Map<String, Service> tmpServices = new HashMap<String, Service>();\n List<Element> list = XMLTools.getElements( elem, StringTools.concat( 100, \"./\", dotPrefix, \"Service\" ), cnxt );\n for ( Element child : list ) {\n String serviceName = XMLTools.getAttrValue( child, null, \"type\", null );\n\n String[] tokens = null;\n if ( ( tokens = serviceName.split( \":\" ) ).length == 2 ) {\n serviceName = tokens[1];\n }\n ServiceVersion serviceVersion = createServiceVersion( child, webinfPath );\n if ( !tmpServices.containsKey( serviceName ) ) {\n tmpServices.put( serviceName, new Service( serviceName ) );\n }\n tmpServices.get( serviceName ).getServiceVersions().put( serviceVersion.getVersion(), serviceVersion );\n }\n return tmpServices;\n }",
"void addFeature(int index, Feature feature);",
"org.landxml.schema.landXML11.PlanFeatureDocument.PlanFeature addNewPlanFeature();",
"public void addFeature() throws UMUserManagementException {\n UMFeature uMFeature = convertFeatureDataBeanToFeatureModel(featureDataBean);\n featureService.createFeature(uMFeature);\n clearFeatureData();\n }",
"private void loadData() throws Exception {\n List<Student> listOfStudents = new ArrayList<>();\n DocumentBuilderFactory documentBuilderFactory =\n DocumentBuilderFactory.newInstance();\n\n DocumentBuilder documentBuilder =\n documentBuilderFactory.newDocumentBuilder();\n Document document = documentBuilder.parse(XMLfile);\n Element root = document.getDocumentElement();\n\n NodeList nodes = root.getChildNodes();\n int len = nodes.getLength();\n for (int i = 0; i < len; i++) {\n Node studentNode = nodes.item(i);\n if (studentNode instanceof Element) {\n Student b = createStudent((Element) studentNode);\n listOfStudents.add(b);\n }\n }\n Map<Long, Student> map= new HashMap<>();\n for (Student s : listOfStudents){\n map.putIfAbsent(s.getId(),s);\n }\n this.setEntities(map);\n }",
"void setFeatures(Features f) throws Exception;",
"public void setFeatures(List<String> features) {\n this.features = features;\n }",
"List<IFeature> getFeatureList();",
"public void init() {\n try{\n\t//products = new HashMap<String,ArrayList<String>>();\n\n\t//String productXmlFileName = \"C:/apache-tomcat-7.0.34/webapps/BestDeal/WEB-INF/classes/ProductCatalog.xml\";\n\t//SaxParser4BestDealProducts sx = new SaxParser4BestDealProducts(productXmlFileName);\n\n\t }\n\tcatch(Exception e){ e.printStackTrace();}\n\n }",
"public DasFeature getNextFeature() {\n String feature = iXml.substring(iXml.indexOf(\"<FEATURE\", lastFeatureEndPosition + 9), iXml.indexOf(\"</FEATURE>\", lastFeatureEndPosition + 9) + 10);\n lastFeatureEndPosition = iXml.indexOf(\"</FEATURE>\", lastFeatureEndPosition + 9);\n DasFeature f = new DasFeature(feature);\n return f;\n }",
"public void fromXML ( Element element )\r\n {\n String name = element.getAttribute( \"name\" );\r\n if ( name.compareTo( gadgetclass.getName() ) == 0 )\r\n {\r\n // load each user preference\r\n NodeList userPrefs = element.getElementsByTagName( \"UserPref\" );\r\n for ( int i = 0; i < userPrefs.getLength(); i++ )\r\n {\r\n Element prefElement = (Element) userPrefs.item( i );\r\n String prefName = prefElement.getAttribute( \"name\" );\r\n Text prefValue = (Text) prefElement.getChildNodes().item( 0 );\r\n for ( int j = 0; j < gadgetclass.getUserPrefsCount(); j++ )\r\n {\r\n UserPref up = gadgetclass.getUserPref( i );\r\n if ( prefName.compareTo( up.getName() ) == 0 )\r\n {\r\n setUserPrefValue( up, prefValue.getNodeValue() );\r\n j = gadgetclass.getUserPrefsCount();\r\n }\r\n }\r\n }\r\n }\r\n }",
"java.util.List<iet.distributed.telemetry.Feature> \n getFeatureList();",
"public KmlGeometryFeature(){\r\n }",
"public DefaultFeatureTable() {\n }",
"@Override\n\tpublic void startElement(String uri, String localName, String qName,\n\t\t\tAttributes attributes) throws SAXException {\n\t\tString locID;\n\t\t\n\t\tif(qName.equals(\"location\")){\n\t\t\ttempListForObject=new ArrayList<Thing>();\n\t\t\tcharacters=new ArrayList<RealCharacters>();\n\t\t\texits = new ArrayList<Location>();\n\t\t\t\n\t\t\t\n\t\t\tlocation=true;\n\t\t\t\n\t\t\ttry {\n\t\t\t\tlocationEntity=(Location) Class.forName(\"ie.gmit.computing.Location\").newInstance();\n\t\t\t\tlocationEntity.setName(attributes.getValue(\"name\"));\n\t\t\t\tlocationEntity.setId(attributes.getValue(\"id\"));\n\t\t\t\tlocationEntity.setDanger(attributes.getValue(\"danger\"));\n\t\t\t\tlocationEntity.setGoalDistance(attributes.getValue(\"goalRouteDistance\"));\n\t\t\t\t\n\t\t\t\tif(attributes.getValue(\"name\").equals(\"Cyprus\")){\n\t\t\t\t\tlocationEntity.setGoalLoc(true);\n\t\t\t\t}\n\t\t\t\tmaps.put(locationEntity.getName(), locationEntity);\n\t\t\t} catch (InstantiationException e) {\n\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\te.printStackTrace();\n\t\t\t} catch (IllegalAccessException e) {\n\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\te.printStackTrace();\n\t\t\t} catch (ClassNotFoundException 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}else if(qName.equals(\"Description\")){\n\t\t\tdescription=true;\n\t\t \n\t\t}else if(qName.equals(\"Object\")){\n\t\t\tString type=attributes.getValue(\"type\");\n\t\t\tString life=attributes.getValue(\"life\");\n\t\t\tString power=attributes.getValue(\"power\");\n\t\t\tString speed=attributes.getValue(\"speed\");\n\n\t\t\tthing=new Thing(type, life);\n\t\t\t\n\t\t\tif (power!=null) {\n\t\t\t\tthing.setPower(power);\n\t\t\t}\n\t\t\tif(speed!=null){\n\t\t\t\tthing.setHasSpeed(true);\n\t\t\t}\n\t\t\ttempListForObject.add(thing);\n\t\t\t//locationEntity.setObjects(tempListForObject);// update\n\t\t\t//tempListForObject.remove(0);// remove all the element after set the value to location\n\t\t\t\n\t\t\t\n\t\t}else if(qName.equals(\"game_character\")){\n\t\t\t//the following four parts are not attr, so cant be found\n\t\t\tString type=attributes.getValue(\"type\");\n\t\t\tString name=attributes.getValue(\"name\");\n\t\t\tString inventory=attributes.getValue(\"inventory\");\n\t\t\tString behaviour=attributes.getValue(\"behaviour\");\n\t\t\tString strength=attributes.getValue(\"strength\");\n\t\t\t\n\t\t\trealCharacterEntity=new RealCharacters(type, name,new Thing(inventory), behaviour,strength);\n\t\t\trealCharacterEntity.setLoc(locationEntity);\n\t\t\tcharacters.add(realCharacterEntity);// put the element in the list\n\t\t}\n\t\telse if (qName.equals(\"edge\")) {\n\t\t\tString name=attributes.getValue(\"from\");\n\t\t\tLocation locName=maps.get(name);\n\t\t\tif(locName!=null){\n\t\t\t\tLocation subloc=maps.get(attributes.getValue(\"to\"));\n\t\t\t\tString direction=attributes.getValue(\"direction\");\n\t\t\t\tString distance=attributes.getValue(\"distance\");\n\t\t\t\tString difficulty=attributes.getValue(\"difficulty\");\n\t\t\t\tlocName.setLocationAttr(direction, difficulty, distance, subloc);\n\t\t\t\tmaps.put(name, locName);// update the map\n\t\t\t}\n\t\t}\n\t\ttag=qName;\n\t}",
"private HashMap<String, Element> construireCacheDefElement() {\n cacheDefElement = new HashMap<String, Element>();\n cacheNomsElements = new HashMap<Element, String>();\n final NodeList lelements = racine_schema.getElementsByTagName(\"ELEMENT\");\n for (int i=0; i<lelements.getLength(); i++) {\n final Element el = (Element)lelements.item(i);\n final String nom = el.getAttribute(\"nom\");\n cacheDefElement.put(nom, el);\n cacheNomsElements.put(el, nom);\n }\n return(cacheDefElement);\n }",
"List<String> getFeatures();",
"public Document saveAsXML() {\n\tDocument xmldoc= new DocumentImpl();\n\tElement root = createFeaturesElement(xmldoc);\n\txmldoc.appendChild(root);\n\treturn xmldoc;\n }",
"private static void loadDictionaryConfig()\r\n\t{\r\n\t\tURL dictionaryConfigURL = null;\r\n\t\ttry \r\n\t\t{\r\n\t\t\tBundle cfmlBundle = Platform.getBundle(CFMLPlugin.PLUGIN_ID);\r\n\t\t\tdictionaryConfigURL = org.eclipse.core.runtime.FileLocator.find(CFMLPlugin.getDefault().getBundle(),\r\n new Path(\"dictionary\"), null);\r\n\t\t\t\r\n\t\t\tDocumentBuilderFactory factory = DocumentBuilderFactory.newInstance();\r\n\t\t\tfactory.setIgnoringComments(true);\r\n\t\t\tfactory.setIgnoringElementContentWhitespace(true);\r\n\t\t\tfactory.setCoalescing(true);\r\n\t\t\tDocumentBuilder builder = factory.newDocumentBuilder();\r\n\t\t\t\r\n\t\t\tURL configurl = FileLocator.LocateURL(dictionaryConfigURL, \"dictionaryconfig.xml\");\r\n\t\t\t\t\t\t\r\n\t\t\tdictionaryConfig = builder.parse(configurl.getFile());\r\n\t\t\tif(dictionaryConfig == null) {\r\n\t\t\t\ttry {\r\n\t\t\t\t\tdictionaryConfig = builder.parse(\"jar:\"\r\n\t\t\t\t\t\t\t+ DictionaryManager.class.getClassLoader()\r\n\t\t\t\t\t\t\t\t\t.getResource(\"org.cfeclipse.cfml/dictionary/dictionaryconfig.xml\").getFile()\r\n\t\t\t\t\t\t\t\t\t.replace(\"dictionaryconfig.xml\", \"\"));\r\n\t\t\t\t} catch (Exception e) {\r\n\t\t\t\t\tdictionaryConfig = builder.parse(\"jar:file:\" + DictionaryManager.class.getResource(\"/dictionaries.zip\").getFile()\r\n\t\t\t\t\t\t\t+ \"!/org.cfeclipse.cfml/dictionary/\");\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t} \r\n\t\tcatch (Exception e) \r\n\t\t{\r\n\t\t\te.printStackTrace(System.err);\r\n\t\t}\r\n\t}",
"public FeatureTypeSchema_Impl() {\r\n schema = XMLTools.create();\r\n }",
"public IDataSet extractFeatures(String featureType);",
"void setFeatureArray(org.landxml.schema.landXML11.FeatureDocument.Feature[] featureArray);",
"void setFeatureArray(org.landxml.schema.landXML11.FeatureDocument.Feature[] featureArray);",
"protected FeatureListReference[] parseFeatureListReferences( Element datasetElement )\n throws XMLParsingException,\n InvalidCapabilitiesException {\n\n List<Node> featureList = XMLTools.getNodes( datasetElement, PRE_WPVS + \"FeatureListReference\", nsContext );\n if ( featureList.size() == 0 ) {\n return null;\n }\n FeatureListReference[] featureRefs = new FeatureListReference[featureList.size()];\n for ( int i = 0; i < featureRefs.length; i++ ) {\n\n Element featureRefElement = (Element) featureList.get( i );\n\n String format = XMLTools.getRequiredNodeAsString( featureRefElement, PRE_WPVS + \"Format/text()\", nsContext );\n\n URI onlineResourceURI = XMLTools.getNodeAsURI( featureRefElement,\n PRE_WPVS + \"OnlineResource/@xlink:href\",\n nsContext,\n null );\n URL onlineResource = null;\n if ( onlineResourceURI != null ) {\n try {\n onlineResource = onlineResourceURI.toURL();\n } catch ( MalformedURLException e ) {\n throw new InvalidCapabilitiesException( onlineResourceURI + \" does not represent a valid URL: \"\n + e.getMessage() );\n }\n }\n featureRefs[i] = new FeatureListReference( format, onlineResource );\n }\n return featureRefs;\n }",
"private void loadFromFile() {\n try {\n FileInputStream fis = openFileInput(FILENAME);\n InputStreamReader isr = new InputStreamReader(fis);\n BufferedReader reader = new BufferedReader(isr);\n Gson gson = new Gson();\n Type listFeelingType = new TypeToken<ArrayList<Feeling>>(){}.getType();\n recordedFeelings.clear();\n ArrayList<Feeling> tmp = gson.fromJson(reader, listFeelingType);\n recordedFeelings.addAll(tmp);\n fis.close();\n\n } catch (FileNotFoundException e) {\n // TODO Auto-generated catch block\n recordedFeelings = new ArrayList<Feeling>();\n e.printStackTrace();\n } catch (IOException e) {\n // TODO Auto-generated catch block\n e.printStackTrace();\n }\n }",
"public static void main(String[] args) {\n JSONParser jsonParser = new JSONParser();\n\n try (FileReader reader = new FileReader(\"countries.geojson\")) {\n // lecture du fichier\n Object obj = jsonParser.parse(reader);\n JSONObject feature = (JSONObject) obj;\n\n JSONArray jsonArray = (JSONArray) feature.get(\"features\");\n\n final DocumentBuilderFactory factory = DocumentBuilderFactory.newInstance();\n final DocumentBuilder builder = factory.newDocumentBuilder();\n\n final Document document = builder.newDocument();\n\n final Element kmlTag = document.createElement(\"kml\");\n kmlTag.setAttribute(\"xmlns\", \"http://www.opengis.net/kml/2.2\");\n document.appendChild(kmlTag);\n\n final Element documentTag = document.createElement(\"Document\");\n kmlTag.appendChild(documentTag);\n\n for (Object feat : jsonArray) {\n final Element placeMark = document.createElement(\"Placemark\");\n documentTag.appendChild(placeMark);\n\n JSONObject featJ = (JSONObject) feat;\n\n JSONObject featJSON = (JSONObject) featJ.get(\"properties\");\n Properties properties = new Properties((String) featJSON.get(\"ADMIN\"), (String) featJSON.get(\"ISO_A3\"));\n JSONObject coordJSON = (JSONObject) featJ.get(\"geometry\");\n String type = (String) coordJSON.get(\"type\");\n String titre = \"(\" + properties.getIsoA3() + \") \" + properties.getAdmin();\n\n Element extData = document.createElement(\"ExtendedData\");\n placeMark.appendChild(extData);\n\n Element dataAdmin = document.createElement(\"Data\");\n dataAdmin.setAttribute(\"name\", \"ADMIN\");\n extData.appendChild(dataAdmin);\n\n Element dataISO = document.createElement(\"Data\");\n dataISO.setAttribute(\"name\", \"ISO_A3\");\n extData.appendChild(dataISO);\n\n Element valueAdmin = document.createElement(\"value\");\n valueAdmin.appendChild(document.createTextNode(properties.getAdmin()));\n dataAdmin.appendChild(valueAdmin);\n\n Element valueISO = document.createElement(\"value\");\n valueISO.appendChild(document.createTextNode(properties.getIsoA3()));\n dataISO.appendChild(valueISO);\n\n System.out.println(titre);\n if (type.equals(\"Polygon\")){\n Element polygon = document.createElement(\"Polygon\");\n placeMark.appendChild(polygon);\n\n Element outerBoundaryIs = document.createElement(\"outerBoundaryIs\");\n polygon.appendChild(outerBoundaryIs);\n\n Element linearRing = document.createElement(\"LinearRing\");\n outerBoundaryIs.appendChild(linearRing);\n\n Element coordinates = document.createElement(\"coordinates\");\n\n JSONArray coords = (JSONArray) coordJSON.get(\"coordinates\");\n for (Object coord: coords){\n JSONArray coordJ = (JSONArray) coord;\n for (Object o : coordJ) {\n StringBuilder sb = new StringBuilder(o.toString());\n sb.deleteCharAt(0);\n sb.deleteCharAt(sb.length() - 1);\n sb.append(\" \");\n coordinates.appendChild(document.createTextNode(sb.toString()));\n }\n linearRing.appendChild(coordinates);\n\n String nbCoord = \"\\t - \" + coordJ.size() + \" coordinates\";\n System.out.println(nbCoord);\n\n }\n } else if (type.equals(\"MultiPolygon\")){\n Element multiGeometry = document.createElement(\"MultiGeometry\");\n placeMark.appendChild(multiGeometry);\n\n Element polygon = document.createElement(\"Polygon\");\n multiGeometry.appendChild(polygon);\n\n Element outerBoundaryIs = document.createElement(\"outerBoundaryIs\");\n polygon.appendChild(outerBoundaryIs);\n\n Element linearRing = document.createElement(\"LinearRing\");\n outerBoundaryIs.appendChild(linearRing);\n\n Element coordinates = document.createElement(\"coordinates\");\n\n JSONArray coords = (JSONArray) coordJSON.get(\"coordinates\");\n for (Object coord : coords) {\n JSONArray coordJ = (JSONArray) coord;\n for (Object c : coordJ){\n JSONArray c1 = (JSONArray) c;\n for (Object o : c1){\n StringBuilder sb = new StringBuilder(o.toString());\n sb.deleteCharAt(0);\n sb.deleteCharAt(sb.length() - 1);\n sb.append(\" \");\n coordinates.appendChild(document.createTextNode(sb.toString()));\n }\n linearRing.appendChild(coordinates);\n\n String nbCoord = \"\\t - \" + c1.size() + \" coordinates\";\n System.out.println(nbCoord);\n }\n }\n } else {\n throw new Error(\"Type mal forme !\");\n }\n }\n\n // Etape 7 : finalisation\n final TransformerFactory transformerFactory = TransformerFactory.newInstance();\n final Transformer transformer = transformerFactory.newTransformer();\n final DOMSource source = new DOMSource(document);\n final StreamResult sortie = new StreamResult(new File(\"src/output.kml\"));\n\n //prologue\n document.setXmlStandalone(true);\n document.setXmlVersion(\"1.0\");\n transformer.setOutputProperty(OutputKeys.ENCODING, \"UTF-8\");\n\n //formatage\n transformer.setOutputProperty(OutputKeys.INDENT, \"yes\");\n transformer.setOutputProperty(\"{http://xml.apache.org/xslt}indent-amount\", \"2\");\n\n //sortie\n transformer.transform(source, sortie);\n\n } catch (IOException | ParseException | ParserConfigurationException | TransformerException e) {\n e.printStackTrace();\n }\n }",
"public void initialize(String name, Element element) throws Exception {\r\n\t\tsuper.initialize(name, element);\r\n\t\t\r\n\t\tif (log.isDebugEnabled()) {\r\n\t\t\tlog.debug(\"Initialising SVM classifier\");\r\n\t\t}\r\n\t\t\r\n\t\tNodeList elements = element.getElementsByTagName(\"vocabulary\");\r\n\t\tif (elements.getLength() != 1) {\r\n\t\t\tthrow new Exception(\"Found invalid vocabulary elements for concept: \" + name);\r\n\t\t}\r\n\t\tvocabulary = ((Element) elements.item(0)).getTextContent();\r\n\t\t\r\n\t\tif (log.isDebugEnabled()) {\r\n\t\t\tlog.debug(\"Found vocabulary: \" + vocabulary);\r\n\t\t}\r\n\t\t\r\n\t\telements = element.getElementsByTagName(\"include\");\r\n\t\tint docId = 0;\r\n\t\tfor(int i = 0; i < elements.getLength(); i++) {\r\n\t\t\tElement e = (Element) elements.item(i);\r\n\t\t\tConcept c = getConcept(e.getTextContent(), \"class\");\r\n\t\t\tc.setId(String.valueOf(docId++));\r\n\t\t\tuniverse.add(c);\r\n\t\t}\r\n\t\telements = element.getElementsByTagName(\"exclude\");\r\n\t\tfor(int i = 0; i < elements.getLength(); i++) {\r\n\t\t\tElement e = (Element) elements.item(i);\r\n\t\t\tConcept c = getConcept(e.getTextContent(), \"other\");\r\n\t\t\tc.setId(String.valueOf(docId++));\r\n\t\t\tuniverse.add(c);\r\n\t\t}\r\n\t\t\r\n\t\tString label = \"class\";\r\n\t\t/* Use null as value for the VectorSpace parameter forcing a new\r\n\t\t * VectorSpace instance to be created. Subsequently new Vectors are\r\n\t\t * added to the space. Note that each Modeller can be associated with\r\n\t\t * a single Concept. If more than one concept needs to be identified,\r\n\t\t * use a Modeller instance for each concept (label) and share\r\n\t\t * the space between them. */\r\n\t\tsvm = new Modeller(new GaussianKernel(5), label, new VectorSpace());\r\n\t\t// create a vector for each document in the universe\r\n\t\tfor(Iterator<String> i = universe.getCategorySet().iterator(); i.hasNext(); ) {\r\n\t\t\tString documentId = i.next();\r\n\t\t\tint n = 0;\r\n\t\t\tdouble[] x = new double[universe.getTermCount()];\r\n\t\t\tfor(String j : universe.getTerms())\r\n\t\t\t\tx[n++] = universe.getConceptTermFrequency(j, documentId);\r\n\t\t\t// normalise support vectors\r\n\t\t\tXY sv = new XY(x, universe.getConcept(documentId).getLabel(), true);\r\n\t\t\tsvm.addVector(sv);\r\n\t\t}\r\n\t\tif (log.isDebugEnabled()) {\r\n\t\t\tlog.debug(\"Starting training...\");\r\n\t\t}\r\n\t\tsvm.train();\r\n\t\tif (log.isDebugEnabled()) {\r\n\t\t\tlog.debug(\"Done training...\");\r\n\t\t}\r\n\t}",
"public MdnFeatures()\n {\n }",
"public JAXPParser(Map<String, Boolean> parserFeatures) {\n this();\n loadDocumentBuilderFactory();\n try {\n if(null != parserFeatures) {\n for(Entry<String, Boolean> entry : parserFeatures.entrySet()) {\n documentBuilderFactory.setFeature(entry.getKey(), entry.getValue());\n }\n }\n } catch(Exception e) {\n throw XMLPlatformException.xmlPlatformParseException(e);\n }\n }",
"public Feature createFeature(Feature.Template ft)\n throws BioException, ChangeVetoException;",
"abstract Feature createFeature(boolean enabled, int count);",
"private GameModel load(String xmlFilePath) throws Exception {\r\n\t\ttry {\r\n\t\t\t// Load Game from XML\r\n\t\t\tJAXBContext context = JAXBContext.newInstance(GameModel.class);\r\n\t\t\tSystem.out.println(\"instance passed \");\r\n\t\t\tUnmarshaller unmarshaller = context.createUnmarshaller();\r\n\t\t\tSystem.out.println(\"marshaller created\");\r\n\t\t\treturn (GameModel) unmarshaller.unmarshal(new File(xmlFilePath));\r\n\r\n\t\t} catch (Exception ex) {\r\n\t\t\t// log the exception, show the error message on UI\r\n\t\t\tSystem.out.println(ex.getMessage());\r\n\t\t\tthrow ex;\r\n\t\t}\r\n\t}",
"private void loadData()\r\n\t{\r\n\t\taddProduct(\"Area\", \"Education\");\r\n\t\taddProduct(\"Area\", \"Environment\");\r\n\t\taddProduct(\"Area\", \"Health\");\r\n\r\n\t\taddProduct(\"Domain\", \"Documentation\");\r\n\t\taddProduct(\"Domain\", \"Project Activity\");\r\n\t\taddProduct(\"Domain\", \"Technology\");\r\n\r\n\t\taddProduct(\"City\", \"Bangalore\");\r\n\t\taddProduct(\"City\", \"Hyderabad\");\r\n\t\taddProduct(\"City\", \"Lucknow\");\r\n\r\n\t\taddProduct(\"Activity_Type\", \"Onsite\");\r\n\t\taddProduct(\"Activity_Type\", \"Offsite\");\r\n\r\n\t}",
"ShipmentItemFeature createShipmentItemFeature();",
"public void createFeatures(List<String> features, String[] tokens, int index, String[] previousOutcomes) {\n if (currentSentence != tokens) {\n currentSentence = tokens;\n if (isBilou) {\n currentEntities = dictionary.getBilouDictionaryMatch(tokens);\n } else {\n currentEntities = dictionary.getBioDictionaryMatch(tokens);\n }\n }\n \n String currentEntity = currentEntities.get(index);\n \n features.add(attributes.get(\"dict\") + \"=\" + currentEntity);\n features.add(attributes.get(\"dict\") + \",\" + \"w=\" + currentEntity + \",\" + tokens[index]);\n features.add(attributes.get(\"dict\") + \",w=dict\");\n if (Flags.DEBUG) {\n System.err.println(\"-> \" + tokens[index] + \": \" + attributes.get(\"dict\") + \",\" + \"w=\" + currentEntity + \",\" + tokens[index]);\n }\n }",
"public <LabelType> void loadFeaturesID(Model<T, LabelType> model) {\n\t\tfeaturesID.clear();// remove all elements before\n\t\tfor (T feature : features) {\n\t\t\tfeaturesID.add(model.getDictionary().indexOf(feature));\n\t\t}\n\t\tfeaturesIdLoaded = true;\n\t}",
"Feature getFeature();",
"Feature getFeature();",
"public void parseXml(String file) {\n\n try {\n\n debug(\"\\n\\nIn the beginning God created the heaven and the world...\\n\\n\");\n\n File fXmlFile = new File(\"./levels/\" + file);\n DocumentBuilderFactory dbFactory = DocumentBuilderFactory.newInstance();\n DocumentBuilder dBuilder = dbFactory.newDocumentBuilder();\n Document doc = dBuilder.parse(fXmlFile);\n\n doc.getDocumentElement().normalize();\n debug(\"Chosen entity: \" + doc.getDocumentElement().getNodeName());\n\n NodeList placeList = doc.getElementsByTagName(\"place\");\n NodeList passageList = doc.getElementsByTagName(\"passage\");\n NodeList furnitureList = doc.getElementsByTagName(\"furniture\");\n NodeList storyList = doc.getElementsByTagName(\"story\");\n\n // Create object arrays\n ArrayList<Place> places = new ArrayList<>();\n ArrayList<Item> items = new ArrayList<>();\n ArrayList<Passage> passages = new ArrayList<>();\n ArrayList<Furniture> furnitures = new ArrayList<Furniture>();\n\n // parse story text\n Node storyNode = storyList.item(0);\n Element storyElement = (Element) storyNode;\n debug(\"Intro: \" + storyElement.getElementsByTagName(\"introduction\").item(0).getTextContent());\n debug(\"Level: \" + storyElement.getElementsByTagName(\"name\").item(0).getTextContent());\n debug(\"Version: \" + storyElement.getElementsByTagName(\"version\").item(0).getTextContent());\n // add story elements to world\n world.setIntroduction(\n storyElement.getElementsByTagName(\"introduction\").item(0).getTextContent());\n world.setLevelName(storyElement.getElementsByTagName(\"name\").item(0).getTextContent());\n world.setLevelVersion(storyElement.getElementsByTagName(\"version\").item(0).getTextContent());\n\n // parse all existing Places\n for (int placeCounter = 0; placeCounter < placeList.getLength(); placeCounter++) {\n Node placeNode = placeList.item(placeCounter);\n\n debug(\"\\nCurrent Element: \" + placeNode.getNodeName());\n\n if (placeNode.getNodeType() == Node.ELEMENT_NODE) {\n Element placeElement = (Element) placeNode;\n\n debug(\"- Ending: \" + placeElement.getAttribute(\"end\"));\n debug(\"- id: \" + placeElement.getAttribute(\"id\"));\n debug(\"- Name: \" + placeElement.getElementsByTagName(\"name\").item(0).getTextContent());\n debug(\"- Description: \"\n + placeElement.getElementsByTagName(\"description\").item(0).getTextContent());\n\n // Create Places.\n places.add(new Place(placeElement.getElementsByTagName(\"name\").item(0).getTextContent(),\n placeElement.getElementsByTagName(\"description\").item(0).getTextContent().replace(\"\\\\n\", \"\\n\")));\n\n // add EndingPlace to World, set endingText to Places' Description\n if (placeElement.getAttribute(\"end\").equals(\"bad\")) {\n world.addBadEnding(places.get(placeCounter),\n places.get(placeCounter).getDescription());\n } else if(placeElement.getAttribute(\"end\").equals(\"good\")) {\n world.addGoodEnding(places.get(placeCounter),\n places.get(placeCounter).getDescription());\n }\n \n // parse all existing Place Items\n NodeList itemList = placeElement.getElementsByTagName(\"item\");\n\n for (int itemCounter = 0; itemCounter < itemList.getLength(); itemCounter++) {\n Node itemNode = itemList.item(itemCounter);\n\n Element itemElement = (Element) itemNode;\n\n debug(\"- Item\" + itemCounter + \":\");\n debug(\"- - Name: \" + itemElement.getElementsByTagName(\"name\").item(0).getTextContent());\n debug(\"- - Description: \"\n + itemElement.getElementsByTagName(\"description\").item(0).getTextContent());\n\n // Create items.\n items.add(new Item(itemElement.getElementsByTagName(\"name\").item(0).getTextContent(),\n itemElement.getElementsByTagName(\"description\").item(0).getTextContent()));\n // Set items in current place.\n places.get(placeCounter).addObjectToPlace(getIncludedItem(itemElement, items));\n\n }\n }\n }\n\n // parse all furniture\n for (int furnitureCounter = 0; furnitureCounter < furnitureList\n .getLength(); furnitureCounter++) {\n Node furnitureNode = furnitureList.item(furnitureCounter);\n\n Element furnitureElement = (Element) furnitureNode;\n\n debug(\"\\nCurrent Element: \" + furnitureNode.getNodeName());\n\n debug(\"- Furniture\" + furnitureCounter);\n debug(\"- - In Place: \"\n + furnitureElement.getElementsByTagName(\"in-place\").item(0).getTextContent());\n debug(\n \"- - Name: \" + furnitureElement.getElementsByTagName(\"name\").item(0).getTextContent());\n debug(\"- - Description: \"\n + furnitureElement.getElementsByTagName(\"description\").item(0).getTextContent());\n\n // Create furniture objects\n furnitures.add(\n new Furniture(furnitureElement.getElementsByTagName(\"name\").item(0).getTextContent(), // name\n furnitureElement.getElementsByTagName(\"description\").item(0).getTextContent(), // description\n furnitureElement.getElementsByTagName(\"in-place\").item(0).getTextContent()));\n\n NodeList furnitureItemList = furnitureElement.getElementsByTagName(\"content-item\");\n\n // parse all Furniture Items\n for (int furnitureItemCounter = 0; furnitureItemCounter < furnitureItemList\n .getLength(); furnitureItemCounter++) {\n Node furnitureItemNode = furnitureItemList.item(furnitureItemCounter);\n\n Element furnitureItemElement = (Element) furnitureItemNode;\n\n debug(\"- - Content Items:\");\n debug(\"- - - Name: \"\n + furnitureItemElement.getElementsByTagName(\"name\").item(0).getTextContent());\n debug(\"- - - Description: \"\n + furnitureItemElement.getElementsByTagName(\"description\").item(0).getTextContent());\n\n addItems(furnitureItemElement, furnitures, items, furnitureCounter);\n\n }\n\n NodeList furnitureObstacleList = furnitureElement.getElementsByTagName(\"obstacle\");\n\n // parse all Furniture Obstacles\n for (int furnitureObstacleCounter = 0; furnitureObstacleCounter < furnitureObstacleList\n .getLength(); furnitureObstacleCounter++) {\n Node furnitureObstacleNode = furnitureObstacleList.item(furnitureObstacleCounter);\n\n Element furnitureObstacleElement = (Element) furnitureObstacleNode;\n\n debug(\"- - Obstacle:\");\n debug(\"- - - Description: \" + furnitureObstacleElement.getElementsByTagName(\"description\")\n .item(0).getTextContent());\n debug(\"- - - Resolution: \" + furnitureObstacleElement.getElementsByTagName(\"resolution\")\n .item(0).getTextContent());\n // debug(\"- - - Requirement: \" +\n // furnitureObstacleElement.getElementsByTagName(\"requiredItem\").item(0).getTextContent());\n\n // create furniture obstacle\n if (furnitureObstacleElement.getAttribute(\"type\").equals(\"double\")) {\n // double Item obstacle\n furnitures.get(furnitureCounter)\n .setObstalce(new DoubleItemObstacle(\"\",\n furnitureObstacleElement.getElementsByTagName(\"description\").item(0)\n .getTextContent(),\n furnitureObstacleElement.getElementsByTagName(\"resolution\").item(0)\n .getTextContent(),\n getRequiredItem(items,\n furnitureObstacleElement.getElementsByTagName(\"requiredItem\").item(0)\n .getTextContent()),\n getRequiredItem(items, furnitureObstacleElement\n .getElementsByTagName(\"additionalItem\").item(0).getTextContent())));\n\n } else if (furnitureObstacleElement.getAttribute(\"type\").equals(\"riddle\")) {\n // riddle Obstacle\n furnitures.get(furnitureCounter)\n .setObstalce(new RiddleObstacle(\"\",\n furnitureObstacleElement.getElementsByTagName(\"description\").item(0)\n .getTextContent(),\n furnitureObstacleElement.getElementsByTagName(\"resolution\").item(0)\n .getTextContent(),\n furnitureObstacleElement.getElementsByTagName(\"requiredAnswer\").item(0)\n .getTextContent()));\n\n } else {\n // normal Obstacle\n furnitures.get(furnitureCounter)\n .setObstalce(new ItemObstacle(\"\",\n furnitureObstacleElement.getElementsByTagName(\"description\").item(0)\n .getTextContent(),\n furnitureObstacleElement.getElementsByTagName(\"resolution\").item(0)\n .getTextContent(),\n getRequiredItem(items, furnitureObstacleElement\n .getElementsByTagName(\"requiredItem\").item(0).getTextContent())));\n }\n // add damage points to obstacle\n if (!furnitureObstacleElement.getAttribute(\"damage\").equals(\"\")) {\n passages.get(furnitureCounter).getObstacle()\n .setDamagepoints(Integer.parseInt(furnitureObstacleElement.getAttribute(\"damage\")));\n }\n\n }\n\n }\n\n // Add current furniture to its containing Place\n setFurnitureInPlace(furnitures, places);\n\n // parse all existing passages\n for (int passageCounter = 0; passageCounter < passageList.getLength(); passageCounter++) {\n Node passageNode = passageList.item(passageCounter);\n\n debug(\"\\nCurrent Element: \" + passageNode.getNodeName());\n\n if (passageNode.getNodeType() == Node.ELEMENT_NODE) {\n Element passageElement = (Element) passageNode;\n\n debug(\"- id: \" + passageElement.getAttribute(\"id\"));\n debug(\"- Name: \" + passageElement.getElementsByTagName(\"name\").item(0).getTextContent());\n debug(\"- Description: \"\n + passageElement.getElementsByTagName(\"description\").item(0).getTextContent());\n debug(\"- Comes from: \"\n + passageElement.getElementsByTagName(\"comeFrom\").item(0).getTextContent());\n debug(\"- Connects to: \"\n + passageElement.getElementsByTagName(\"connectTo\").item(0).getTextContent());\n\n // Create Passage with connected Places.\n passages\n .add(new Passage(passageElement.getElementsByTagName(\"name\").item(0).getTextContent(),\n passageElement.getElementsByTagName(\"description\").item(0).getTextContent(),\n getFromPlace(passageElement, places), // from this Place\n getFollowPlace(passageElement, places)) // to that Place\n );\n\n // parse all existing Passage Obstacles\n NodeList obstacleList = passageElement.getElementsByTagName(\"obstacle\");\n\n for (int obstacleCounter = 0; obstacleCounter < obstacleList\n .getLength(); obstacleCounter++) {\n Node obstacleNode = obstacleList.item(obstacleCounter);\n\n Element obstacleElement = (Element) obstacleNode;\n\n debug(\"- Obstacle\" + passageCounter + \":\");\n debug(\"- - Description: \"\n + obstacleElement.getElementsByTagName(\"description\").item(0).getTextContent());\n debug(\"- - Resolution: \"\n + obstacleElement.getElementsByTagName(\"resolution\").item(0).getTextContent());\n // debug(\"- - Required Item: \" +\n // obstacleElement.getElementsByTagName(\"requiredItem\").item(0).getTextContent());\n\n // Create the obstacle for each passage.\n if (obstacleElement.getAttribute(\"type\").equals(\"double\")) {\n // double Item obstacle\n passages.get(passageCounter)\n .setObstacle(new DoubleItemObstacle(\"\",\n obstacleElement.getElementsByTagName(\"description\").item(0).getTextContent(),\n obstacleElement.getElementsByTagName(\"resolution\").item(0).getTextContent(),\n getRequiredItem(items,\n obstacleElement.getElementsByTagName(\"requiredItem\").item(0)\n .getTextContent()),\n getRequiredItem(items, obstacleElement.getElementsByTagName(\"additionalItem\")\n .item(0).getTextContent())));\n\n } else if (obstacleElement.getAttribute(\"type\").equals(\"riddle\")) {\n // riddle Obstacle\n passages.get(passageCounter).setObstacle(new RiddleObstacle(\"\",\n obstacleElement.getElementsByTagName(\"description\").item(0).getTextContent(),\n obstacleElement.getElementsByTagName(\"resolution\").item(0).getTextContent(),\n obstacleElement.getElementsByTagName(\"requiredAnswer\").item(0).getTextContent()));\n\n } else {\n // normal Obstacle\n passages.get(passageCounter)\n .setObstacle(new ItemObstacle(\"\",\n obstacleElement.getElementsByTagName(\"description\").item(0).getTextContent(),\n obstacleElement.getElementsByTagName(\"resolution\").item(0).getTextContent(),\n getRequiredItem(items, obstacleElement.getElementsByTagName(\"requiredItem\")\n .item(0).getTextContent())));\n }\n\n // add damage points to obstacle\n if (!obstacleElement.getAttribute(\"damage\").equals(\"\")) {\n passages.get(passageCounter).getObstacle()\n .setDamagepoints(Integer.parseInt(obstacleElement.getAttribute(\"damage\")));\n }\n\n\n }\n }\n }\n\n startingPlace = places.get(0);\n\n // Add Places to GameWorld\n addPlacesToWorld(places, world);\n\n // set starting Place in GameWorld\n if (world.getStartingPlace() == null) {\n world.setStartingPlace(startingPlace);\n }\n\n debug(\"\\n\\n\");\n debug(\"World has successfully been created! God saw all that he had made, and it was good.\");\n debug(\"\\n\\n\\n\\n\");\n\n } catch (Exception e) {\n e.printStackTrace();\n }\n\n }",
"private Map<String, Feature> initializeFeatures(GameState state) {\n // initializes the features (values will be set within getFeatures)\n Map<String, Feature> features = new HashMap<>();\n\n // adds the 'global' features\n features.put(FeatureNames.RESOURCES_OWN, new Feature(FeatureNames.RESOURCES_OWN, 0, 0, 20));\n features.put(FeatureNames.RESOURCES_OPP, new Feature(FeatureNames.RESOURCES_OPP, 0, 0, 20));\n features.put(FeatureNames.GAME_TIME, new Feature(FeatureNames.GAME_TIME, 0, 0, 12000));\n features.put(FeatureNames.BIAS, new Feature(FeatureNames.BIAS, 1, 0, 1));\n\n // adds the 'per-quadrant' features\n int horizQuadLength = state.getPhysicalGameState().getWidth() / numQuadrants;\n int vertQuadLength = state.getPhysicalGameState().getHeight() / numQuadrants;\n\n int tilesPerQuadrant = horizQuadLength * vertQuadLength;\n\n // FIXME hardcoded to the HP of the base (which is the highest in microRTS)\n int maxHitPoints = 10;\n\n // the first two for traverse the quadrants\n for (int horizQuad = 0; horizQuad < numQuadrants; horizQuad++) {\n for (int vertQuad = 0; vertQuad < numQuadrants; vertQuad++) {\n\n // the third for traverses the players\n for (int player = 0; player < 2; player++) {\n String healthFeatName = FeatureNames.avgHealthPerQuad(horizQuad, vertQuad, player);\n\n features.put(healthFeatName, new Feature(healthFeatName, 0, 0, tilesPerQuadrant * maxHitPoints));\n\n // the fourth for traverses the unit types\n for (UnitType type : state.getUnitTypeTable().getUnitTypes()) {\n if (type.isResource)\n continue; // ignores resources\n String countFeatName = FeatureNames.unitsOfTypePerQuad(horizQuad, vertQuad, player, type);\n features.put(countFeatName, new Feature(countFeatName, 0, 0, tilesPerQuadrant));\n }\n }\n }\n }\n\n return features;\n }",
"private TagListSingleton() {\n\t\t// The file is always going to have same pathname\n\t\tFile f = new File(pathName);\n\t\ttry {\n\t\t\tif (f.exists()) {\n\t\t\t\treadFromFile();\n\t\t\t} else {\n\t\t\t\t// If file does not exist, create new map\n\t\t\t\tf.createNewFile();\n\t\t\t\ttagToImg = new HashMap<String, HashSet<String>>();\n\t\t\t}\n\t\t} catch (IOException | ClassNotFoundException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t\t// Initialize the other map\n\t\tmakeImgToTag();\n\t}",
"public Map<String, Map<String, String>> getAllInstanceFeatures(String params)\n {\n Map<String, Map<String, String>> feats = new HashMap<String, Map<String, String>>();\n List<String> instanceNames = getAllInstanceStrings(params);\n for(String name: instanceNames)\n {\n feats.put(name, new HashMap<String, String>());\n }\n return feats;\n }",
"public FeatureExtraction() {\n\t}",
"void loadFeatured();",
"public abstract Object create(ElementMapping elementMapping, ReadContext context);",
"void setFeatureArray(int i, org.landxml.schema.landXML11.FeatureDocument.Feature feature);",
"void setFeatureArray(int i, org.landxml.schema.landXML11.FeatureDocument.Feature feature);",
"protected Map<String, String> getFeatureAttrs(Map<String, Object> data) {\n\t\treturn null;\n\t}",
"public FeatureSet getFeatures() {\n\treturn features;\n }",
"private static List<Feature> getFeatures(List<String> row) {\n\t\tString sex = row.get(0);\n\t\tdouble length = Double.parseDouble(row.get(1));\n double diameter = Double.parseDouble(row.get(2));\n double height = Double.parseDouble(row.get(3));\n// double whole_height = Double.parseDouble(row.get(4));\n// double shucked_height = Double.parseDouble(row.get(5));\n double viscera_weight = Double.parseDouble(row.get(6));\n double shell_weight = Double.parseDouble(row.get(7));\n\t\tList<Feature> features = new ArrayList<Feature>();\n\t\tfeatures.add(new NominalFeature(sex));\n\t\tfeatures.add(new ContinuousFeature(length));\n\t\tfeatures.add(new ContinuousFeature(diameter));\n\t\tfeatures.add(new ContinuousFeature(height));\n//\t\tfeatures.add(new ContinuousFeature(whole_height));\n//\t\tfeatures.add(new ContinuousFeature(shucked_height));\n\t\tfeatures.add(new ContinuousFeature(viscera_weight));\n\t\tfeatures.add(new ContinuousFeature(shell_weight));\n\t\treturn features;\n\t}",
"private void getDictionary(){\r\n // TODO: read Dictionary\r\n try{\r\n lstDictionary.clear();\r\n for(int i = 0; i < IConfig.LABEL_COUNT; i++){\r\n lstDictionary.add(new HashMap<>());\r\n DictionaryReader dictionaryReader = new DictionaryReader(lstDictionary.get(i), IConfig.DICTIONARY_URL[i]);\r\n dictionaryReader.read();\r\n }\r\n }catch (Exception e){\r\n e.printStackTrace();\r\n }\r\n }",
"public Object parse(IXmlStreamReader parser,GPEDefaultGmlParser handler, Object feature, Object parentElement, IXSElementDeclaration parentType) throws XmlStreamException, IOException {\n\t\tboolean endFeature = false;\n\t\tboolean isGeometryTag = false;\n\t\tint currentTag;\t\t\n\t\tObject element = null;\t\n\t\tObject value = null;\n\t\tObject geometry = null;\n\t\tboolean isInitialized = false;\n\t\t//Used to finish to parse the current element\n\t\tQName elementRootType = parser.getName();\n\t\tString type = null;\t\n\t\t\n\t\tXMLAttributesIterator attributesIterator = new XMLAttributesIterator(parser);\n\t\t\n\t\t//Find the element type\n\t\tIXSElementDeclaration elementType = null;\n\t\tif (parentType != null){\n\t\t\telementType = parentType.getSubElementByName(elementRootType.getLocalPart());\n\t\t\tif (elementType == null){\n\t\t\t\ttype = TypeUtils.getXSType(String.class);\n\t\t\t}else{\n\t\t\t\ttype = elementType.getTypeName();\n\t\t\t}\n\t\t}else{\n\t\t\ttype = TypeUtils.getXSType(String.class);\n\t\t}\n\t\t\n\t\tQName tag = parser.getName();\n\t\tcurrentTag = parser.getEventType();\n\n\t\twhile (!endFeature){\n\t\t\tswitch(currentTag){\n\t\t\tcase IXmlStreamReader.START_ELEMENT:\n\t\t\t\tif (!(CompareUtils.compareWithNamespace(tag,elementRootType))){\n\t\t\t\t\t//If is a geometry\n\t\t\t\t\tif (GMLGeometries.isGML(tag)){\n\t\t\t\t\t\tgeometry = handler.getProfile().getGeometryBinding().\n\t\t\t\t\t\t\t\tparse(parser, handler);\n\t\t\t\t\t\thandler.getContentHandler().addGeometryToFeature(geometry, feature);\n\t\t\t\t\t\tif (geometry==null){\n\t\t\t\t\t\t\tSystem.out.println(\"\\t\\t\\tGEOMETRIA VACIA\");\n\t\t\t\t\t\t\t//Warning geometria vacia\n\t\t\t\t\t\t}\n\t\t\t\t\t\tisGeometryTag=true;\n\t\t\t\t\t}else {\n\t\t\t\t\t\t//If is not a geometry could be a complex feature\n\t\t\t\t\t\tif (!isInitialized){\n\t\t\t\t\t\t\telement = handler.getContentHandler().startElement(elementRootType.getNamespaceURI(),\n\t\t\t\t\t\t\t\t\tGMLUtilsParser.removeBlancSymbol(elementRootType.getLocalPart()),\n\t\t\t\t\t\t\t\t\tnull,\n\t\t\t\t\t\t\t\t\tattributesIterator,\n\t\t\t\t\t\t\t\t\tparentElement);\n\t\t\t\t\t\t\tisInitialized = true;\n\t\t\t\t\t\t}\n\t\t\t\t\t\thandler.getProfile().getElementTypeBinding().\n\t\t\t\t\t\t\tparse(parser, handler, feature, element, null);\n\t\t\t\t\t}\t\t\t\t\n\t\t\t\t}\n\t\t\t\tbreak;\n\t\t\tcase IXmlStreamReader.END_ELEMENT:\n\t\t\t\tif (CompareUtils.compareWithNamespace(tag,elementRootType)){\t\t\t\t\t\t\n\t\t\t\t\tendFeature = true;\n\t\t\t\t\t//If not is complex the element has not been created yet\n\t\t\t\t\tif (!isInitialized){\n\t\t\t\t\t\telement = handler.getContentHandler().startElement(\n\t\t\t\t\t\t\t\telementRootType.getNamespaceURI(),\n\t\t\t\t\t\t\t\tGMLUtilsParser.removeBlancSymbol(elementRootType.getLocalPart()), \n\t\t\t\t\t\t\t\tvalue,\t\n\t\t\t\t\t\t\t\tattributesIterator,\n\t\t\t\t\t\t\t\tparentElement);\n\t\t\t\t\t\tisInitialized = true;\n\t\t\t\t\t}\n\t\t\t\t\thandler.getContentHandler().endElement(element);\n\t\t\t\t}\n\t\t\t\tbreak;\n\t\t\tcase IXmlStreamReader.CHARACTERS:\t\t\t\t\t\n\t\t\t\tif (geometry == null){\n\t\t\t\t\tvalue = TypeUtils.getValue(elementType, parser.getText());\n\t\t\t\t}\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\tif (!endFeature){\t\t\t\t\t\n\t\t\t\tcurrentTag = parser.next();\n\t\t\t\ttag = parser.getName();\n\t\t\t}\n\t\t}\t\t\t\n\t\treturn element;\t\t\n\t}",
"public HashMap<String, HashMap<String, String>> getFeatureInfoHashMap() {\n return featureInfoHashMap;\n }",
"private static Map<String, FeatureGroupType> buildAvailableFeatureGroupMap(List<FeatureGroupType> featureGroups){\r\n\t\tMap<String, FeatureGroupType> featureMap = new HashMap<String, FeatureGroupType>();\r\n\t\tfor(FeatureGroupType feature : featureGroups){\r\n\t\t\tfeatureMap.put(feature.getExternalId(), feature);\r\n\t\t}\r\n\t\treturn featureMap;\r\n\t}",
"public boolean getFeature(String featureId)\n throws SAXNotRecognizedException, SAXNotSupportedException\n {\n if ((FEATURE + \"validation\").equals(featureId))\n {\n return false;\n }\n \n // external entities (both types) are optionally included\n if ((FEATURE + \"external-general-entities\").equals(featureId))\n {\n return extGE;\n }\n if ((FEATURE + \"external-parameter-entities\").equals(featureId))\n {\n return extPE;\n }\n \n // element/attribute names are as written in document; no mangling\n if ((FEATURE + \"namespace-prefixes\").equals(featureId))\n {\n return xmlNames;\n }\n \n // report element/attribute namespaces?\n if ((FEATURE + \"namespaces\").equals(featureId))\n {\n return namespaces;\n }\n \n // all PEs and GEs are reported\n if ((FEATURE + \"lexical-handler/parameter-entities\").equals(featureId))\n {\n return true;\n }\n \n // default is true\n if ((FEATURE + \"string-interning\").equals(featureId))\n {\n return stringInterning;\n }\n \n // EXTENSIONS 1.1\n \n // always returns isSpecified info\n if ((FEATURE + \"use-attributes2\").equals(featureId))\n {\n return true;\n }\n \n // meaningful between startDocument/endDocument\n if ((FEATURE + \"is-standalone\").equals(featureId))\n {\n if (parser == null)\n {\n throw new SAXNotSupportedException(featureId);\n }\n return parser.isStandalone();\n }\n \n // optionally don't absolutize URIs in declarations\n if ((FEATURE + \"resolve-dtd-uris\").equals(featureId))\n {\n return resolveAll;\n }\n \n // optionally use resolver2 interface methods, if possible\n if ((FEATURE + \"use-entity-resolver2\").equals(featureId))\n {\n return useResolver2;\n }\n \n throw new SAXNotRecognizedException(featureId);\n }",
"private NamedFeature getUnigeneTestFeature(){\n BasicFeature testFeat = new BasicFeature(\"chr2\", 179908392, 179909870);\n testFeat.setName(\"hs.516555\");\n return testFeat;\n }",
"@Override\n public void loadMap(String fileName) throws ParserConfigurationException, SAXException, IOException {\n resetMap();\n //Test extension of XML file name\n String[] words = fileName.split(\"\\\\.\");\n if(!(words[(words.length)-1].equals(\"XML\")) && !(words[(words.length)-1].equals(\"xml\"))){\n this.setChanged();\n this.notifyObservers(\"Filename extension is not correct\");\n throw new IOException();\n }else{\n DocumentBuilderFactory dbf = DocumentBuilderFactory.newInstance();\n\n try {\n // parse XML file\n DocumentBuilder db = dbf.newDocumentBuilder();\n Document doc = db.parse(new File(fileName));\n doc.getDocumentElement().normalize();\n\n // Check the document root name\n Element root = doc.getDocumentElement();\n if(!root.getNodeName().equals(\"map\")){\n throw new NumberFormatException();\n }\n\n // get all nodes <intersection>\n NodeList nodeListIntersection = doc.getElementsByTagName(\"intersection\");\n\n for (int temp = 0; temp < nodeListIntersection.getLength(); temp++) {\n Node node = nodeListIntersection.item(temp);\n if (node.getNodeType() == Node.ELEMENT_NODE) {\n Element element = (Element) node;\n\n // get intersection's attribute\n long id = Long.parseLong(element.getAttribute(\"id\"));\n double latitude = Double.parseDouble(element.getAttribute(\"latitude\"));\n double longitude = Double.parseDouble(element.getAttribute(\"longitude\"));\n // if the intersection doesn't exist in the list\n if(checkUniqueIntersection(id,latitude,longitude)){\n intersectionList.add(new Intersection(id,latitude,longitude));\n }\n }\n }\n\n // get all nodes <Segment>\n NodeList nodeListSegment = doc.getElementsByTagName(\"segment\");\n\n for (int temp = 0; temp < nodeListSegment.getLength(); temp++) {\n Node node = nodeListSegment.item(temp);\n\n if (node.getNodeType() == Node.ELEMENT_NODE) {\n Element element = (Element) node;\n\n // get intersection's attribute\n long destinationId = Long.parseLong(element.getAttribute(\"destination\"));\n long originId = Long.parseLong(element.getAttribute(\"origin\"));\n double length = Double.parseDouble(element.getAttribute(\"length\"));\n String name = element.getAttribute(\"name\");\n\n Intersection origin = getIntersectionById(originId);\n Intersection destination = getIntersectionById(destinationId);\n if ((origin != null) && (destination != null)) {\n segmentList.add(new Segment(origin, destination, name, length));\n } else {\n // System.out.println(\"segment creation is impossible\");\n }\n }\n }\n\n } catch (ParserConfigurationException |SAXException err){\n this.setChanged();\n this.notifyObservers(\"Parsing XML file failed. Please choose another XML file.\");\n throw err;\n }catch( IOException err) {\n this.setChanged();\n this.notifyObservers(\"Opening XML file failed. Please choose another XML file.\");\n throw err;\n }catch (NumberFormatException err){}\n\n if((intersectionList.isEmpty()) || (segmentList.isEmpty())){\n resetMap();\n this.setChanged();\n this.notifyObservers(\"Map is empty. Check your XML file.\");\n throw new IOException();\n }\n mapLoaded = true;\n extremIntersection = getExtremIntersection();\n this.createGraph();\n this.setChanged();\n this.notifyObservers();\n }\n }",
"static Map<String, String> getSourceFeatures (String sourceURL) throws IOException {\n\t\tfinal Map<String, String> features = new HashMap<String, String>();\n\t\tfinal String siteString = \"http://www.alexa.com/siteinfo/\";\n\t\tfinal String urlString = siteString + sourceURL;\n\t\tURL url = new URL(urlString);\n\t\tURLConnection uc = url.openConnection();\n\t\tInputStreamReader input = new InputStreamReader(uc.getInputStream());\n\t BufferedReader in = new BufferedReader(input);\n\t\tString inputLine;\n\t while ((inputLine = in.readLine()) != null) {\n\t \t\n\t \t// Rank\n\t \tif (inputLine.indexOf(\"Global rank icon\") != -1) {\n\t \t\tfor (int i = 0; i < 2; i++) {\n\t \t\t\tinputLine = in.readLine();\n\t \t\t}\n\t \t\tString rank = inputLine.substring(0, inputLine.indexOf('<'));\n\t \t\trank = rank.replaceAll(\",\", \"\");\n\t \t\tfeatures.put(\"Rank\", rank);\n\t \t}\n\n\t \t// Rank in Country\n\t \tif (inputLine.indexOf(\"The rank by country is calculated using a combination\") != -1) {\n\t \t\tfor (int i = 0; i < 9; i++) {\n\t \t\t\tinputLine = in.readLine();\n\t \t\t}\n\t \t\tString cRank = inputLine.substring(0, inputLine.indexOf('<'));\n\t \t\tcRank = cRank.replaceAll(\",\", \"\");\n\t \t\tfeatures.put(\"Country Rank\", cRank);\n\t \t}\n\n\t \t// Country\n\t \tif (inputLine.indexOf(\"<strong>Estimated Pageviews</strong>\") != -1) {\n\t \t\tfor (int i = 0; i < 8; i++) {\n\t \t\t\tinputLine = in.readLine();\n\t \t\t}\n\t \t\tString country = inputLine.substring(inputLine.indexOf(\"<span class='text-inline'>\") + \"<span class='text-inline'>\".length(), inputLine.indexOf(\"</span></span></td>\"));\n\t \t\tfeatures.put(\"Country\", country);\n\t \t}\n\n\t \t// Bounce Rate\n\t \tif (inputLine.indexOf(\"Bounce Rate</h4>\") != -1) {\n\t \t\tfor (int i = 0; i < 3; i++) {\n\t \t\t\tinputLine = in.readLine();\n\t \t\t}\n\t \t\tString bounceRate = inputLine.substring(0, inputLine.indexOf('%'));\n\t \t\tbounceRate = bounceRate.replaceAll(\",\", \"\");\n\t \t\tfeatures.put(\"Bounce Rate\", bounceRate);\n\t \t}\n\n\t \t// Daily Pageviews per visitor\n\t \tif (inputLine.indexOf(\"Daily Pageviews per Visitor</h4>\") != -1) {\n\t \t\tfor (int i = 0; i < 3; i++) {\n\t \t\t\tinputLine = in.readLine();\n\t \t\t}\n\t \t\tString pageViews = inputLine.substring(0, inputLine.indexOf('<'));\n\t \t\tpageViews = pageViews.replaceAll(\",\", \"\");\n\t \t\tfeatures.put(\"Daily Page Views Per Visitor\", pageViews);\n\t \t}\n\n\t \t// Daily Time on Site per visitor\n\t \tif (inputLine.indexOf(\"Daily Time on Site</h4>\") != -1) {\n\t \t\tfor (int i = 0; i < 3; i++) {\n\t \t\t\tinputLine = in.readLine();\n\t \t\t}\n\t \t\tString time = inputLine.substring(0, inputLine.indexOf('<'));\n\t \t\ttime = time.replaceAll(\",\", \"\");\n\t \t\tfeatures.put(\"Daily Time On Site\", time);\n\t \t}\n\n\t \t// Search Visits\n\t \tif (inputLine.indexOf(\"Search Visits</h4>\") != -1) {\n\t \t\tfor (int i = 0; i < 3; i++) {\n\t \t\t\tinputLine = in.readLine();\n\t \t\t}\n\t \t\tString visits = inputLine.substring(0, inputLine.indexOf(\"%\"));\n\t \t\tvisits = visits.replaceAll(\",\", \"\");\n\t \t\tfeatures.put(\"Search Visits\", visits);\n\t \t}\n\n\t \t// Total Sites Linking In\n\t \tif (inputLine.indexOf(\"Total Sites Linking In</h5>\") != -1) {\n\t \t\tfor (int i = 0; i < 1; i++) {\n\t \t\t\tinputLine = in.readLine();\n\t \t\t}\n\t \t\tString links = inputLine.substring(inputLine.indexOf(\">\") + 1, inputLine.indexOf(\"</span>\"));\n\t \t\tlinks = links.replaceAll(\",\", \"\");\n\t \t\tfeatures.put(\"Total Sites Linking In\", links);\n\t \t}\t \t\n\t }\n\t\tin.close();\n\t\t\n\t return features;\n\t}",
"public DasFeature[] getAllFeatures() {\n Vector feats = new Vector();\n while (iXml.indexOf(\"<FEATURE\", lastFeatureEndPosition + 9) != -1) {\n String feature = iXml.substring(iXml.indexOf(\"<FEATURE\", lastFeatureEndPosition + 9), iXml.indexOf(\"</FEATURE>\", lastFeatureEndPosition + 9) + 10);\n lastFeatureEndPosition = iXml.indexOf(\"</FEATURE>\", lastFeatureEndPosition + 9);\n if (feature.indexOf(\"<NOTE>No features found for the segment</NOTE>\") < 0) {\n DasFeature f = new DasFeature(feature);\n feats.add(f);\n }\n }\n DasFeature[] features = new DasFeature[feats.size()];\n feats.toArray(features);\n return features;\n }"
] |
[
"0.624992",
"0.5953728",
"0.58241224",
"0.58241224",
"0.5728118",
"0.5600755",
"0.5600755",
"0.5594813",
"0.557801",
"0.5560329",
"0.55287695",
"0.5491148",
"0.5491148",
"0.54167444",
"0.53984034",
"0.5332785",
"0.53191197",
"0.52905595",
"0.5214474",
"0.5142754",
"0.5142754",
"0.5139371",
"0.51269144",
"0.51236576",
"0.5117556",
"0.511565",
"0.51043624",
"0.50966734",
"0.509391",
"0.509391",
"0.5060238",
"0.50558805",
"0.50542593",
"0.50498044",
"0.50372434",
"0.500924",
"0.50001425",
"0.50001425",
"0.4966954",
"0.48926258",
"0.4880547",
"0.48246175",
"0.48235792",
"0.482252",
"0.48094827",
"0.4800976",
"0.47929448",
"0.47726816",
"0.47716862",
"0.4760553",
"0.47589853",
"0.47518325",
"0.47291848",
"0.4728753",
"0.4699772",
"0.46890634",
"0.46843126",
"0.46741658",
"0.46463102",
"0.46445584",
"0.46283045",
"0.46034083",
"0.46005997",
"0.46005997",
"0.4598759",
"0.4596882",
"0.457411",
"0.45689285",
"0.456882",
"0.45611426",
"0.45510253",
"0.4549149",
"0.45469204",
"0.45456013",
"0.4531853",
"0.45290497",
"0.4526811",
"0.45252934",
"0.45252934",
"0.45252898",
"0.45146525",
"0.4513404",
"0.45088091",
"0.45069557",
"0.45064223",
"0.450493",
"0.44902954",
"0.44902954",
"0.44821903",
"0.44799986",
"0.4475147",
"0.4472107",
"0.447048",
"0.4469732",
"0.4469475",
"0.44655943",
"0.44651002",
"0.4462805",
"0.44607696",
"0.44576085"
] |
0.7359265
|
0
|
Returns String value of the selected radio button
|
private String getSelectedRadio()
{
if (InOrderRadio.isSelected())
{
return InOrderRadio.getText();
} else if (AlmostOrderRadio.isSelected())
{
return AlmostOrderRadio.getText();
} else if (ReverseOrderRadio.isSelected())
{
return ReverseOrderRadio.getText();
} else
{
return RandomOrderRadio.getText();
}
}
|
{
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
}
|
[
"public String getRadioButtonText() {\n\n String radioButtonText=radio.getText();\n System.out.println(radioButtonText );\n\n return radioButtonText;\n }",
"public String getDistribuidorSeleccionado(){\n RadioGroup rbGroup=(RadioGroup) findViewById( R.id.rbGroup);\n return ((RadioButton) findViewById(rbGroup.getCheckedRadioButtonId())).getText().toString();\n }",
"private String getSelected(List<JRadioButton> buttons) {\n for (JRadioButton button : buttons) {\n if (button.isSelected()) {\n return button.getText();\n }\n }\n return \"\";\n }",
"public String haeValittuAlgoritmi() {\n RadioButton valittu = (RadioButton) algoritmiNapit.getSelectedToggle();\n\n if (valittu == null) {\n return \"Et ole valinnut algoritmia!\";\n } else {\n return valittu.getText();\n }\n }",
"private String getSelectedGender() {\n int radioButtonID = rgGender.getCheckedRadioButtonId();\n RadioButton radioButton = rgGender.findViewById(radioButtonID);\n return radioButton.getText().toString();\n }",
"public String getChoice() {\r\n\t\ttype(ConfigurationItemType.CHOICE);\r\n\t\treturn stringValue;\r\n\t}",
"public String getSelectedAnswer() {\n\t\tList<Integer> selected = getSelectedIndexes();\n\t\treturn this.value.get(selected.get(0));\n\t}",
"public String findSelected(JRadioButtonMenuItem items[]) {\n for (int i=0;i<items.length;i++) if (items[i].isSelected()) return items[i].getText();\n return items[0].getText();\n }",
"public String getAnswerText()\r\n\t {\r\n\t return spinner.getValue().toString();\r\n\t }",
"public String selectedAnswer()\n {\n \n if(jrbOption1.isSelected())\n \n return\"Answer1\";\n else if(jrbOption2.isSelected())\n return\"Answer2\";\n else if(jrbOption3.isSelected())\n return\"Answer3\";\n else if(jrbOption4.isSelected())\n return\"Answer4\";\n else return null;\n}",
"@Override\n public void onCheckedChanged(RadioGroup group, int checkedId) {\n int childCount = group.getChildCount();\n for (int x = 0; x < childCount; x++) {\n RadioButton btn = (RadioButton) group.getChildAt(x);\n\n if (btn.getId() == checkedId) {\n\n persongender = btn.getText().toString();\n\n }\n\n }\n\n Log.e(\"Gender\", persongender);\n System.out.println(\"gender::\" + persongender);\n }",
"public String toString()\r\n\t{\r\n\t\tString asString = \"radiobuttons:\";\r\n\t\t\r\n\t\tasString += getOptionsString();\r\n\t\t\r\n\t\treturn asString;\r\n\t}",
"@Override\n\t\t\tpublic void onClick(View v) {\n\t\t\t\tradioOptionGrp = (RadioGroup) findViewById(R.id.radioOpt);\n\t\t\t\t\n\t\t\t\t//Get id of selected radioButton\n\t\t\t\tint selectOptId = radioOptionGrp.getCheckedRadioButtonId();\n\t\t\t\t\n\t\t\t\t//Get Reference to the Selected RadioButton\n\t\t\t\tradioOptBtn = (RadioButton) findViewById(selectOptId);\n\t\t\t\t\n\t\t\t\t//Display value of the selected RadioButton\n\t\t\t\tToast.makeText(getApplicationContext(), radioOptBtn.getText(), Toast.LENGTH_SHORT).show();\n\t\t\t\t\n\t\t\t}",
"public int getRadio() {\n return radio;\n }",
"public String getValue_txt_Fuel_Rewards_Page_Button(){\r\n\t\treturn txt_Fuel_Rewards_Page_Button.getAttribute(\"value\");\r\n\t}",
"public T getSelection() {\n ButtonModel selected = buttonGroup.getSelection();\n if (selected == null) {\n return null;\n }\n T key = modelToKeyMap.get(selected);\n if (key == null) {\n throw new IllegalArgumentException(\"Key not found for selected radio button: \" + selected);\n }\n return (key != NULL ? key : null);\n }",
"private String getChoice() {\n return searchChoiceBox.getValue();\n }",
"public void checkBtn(View v){\n int id = radioGroup.getCheckedRadioButtonId();\n\n radioButton= findViewById(id);\n estatSTR=radioButton.getText().toString();\n //Toast.makeText(this, \"select: \"+ radioButton.getText(),Toast.LENGTH_SHORT).show();\n txtEstat.setText(\"Estat com a \"+estatSTR);\n }",
"public String getValue_txt_Pick_Up_Text(){\r\n\t\treturn txt_Pick_Up_Text.getAttribute(\"value\");\r\n\t}",
"public double getRadio() {\n return radio;\n }",
"public double getRadio() {\n return radio;\n }",
"public Object getCheckedValue();",
"public String getValue() {\n return selectElement.getFirstSelectedOption().getText();\n }",
"public String getValue_click_Digital_coupons_button(){\r\n\t\treturn click_Digital_coupons_button.getAttribute(\"value\");\r\n\t}",
"public String getSelectedValue() {\r\n\t\treturn selectedValue;\r\n\t}",
"public double getradio() {\n return radio;\n }",
"public java.lang.Object getChoiceValue() {\n return this._choiceValue;\n }",
"public String getValue_click_CloseModal_Button(){\r\n\t\treturn click_CloseModal_Button.getAttribute(\"value\");\r\n\t}",
"private void checkSingleChoice(){\n \t\t\t\n \t\t\t// get selected radio button from radioGroup\n \t\t\tint selectedId = radioGroup.getCheckedRadioButtonId();\n \t\t\t\n \t\t\tRadioButton selectedButton = (RadioButton)getView().findViewById(selectedId);\n \t\t\t\n \t\t\tif(selectedButton!=null){\n \t\t\t\t\n \t\t\t\tString choice = selectedButton.getTag().toString();\n \t\t\t\tString choiceText = selectedButton.getText().toString();\n \t\t\t\t\n \t\t\t\t// TESTING ONLY\n \t\t\t\tint qid = eventbean.getQid();\n \t\t\t\tLog.v(\"schoice\",\"QID=\"+qid+\"/Choice=\"+choice);\n \t\t\t\t\n \t\t\t\t//setting the response for that survey question\n \t\t\t\teventbean.setChoiceResponse(choice+\".\"+choiceText);\n \t\t\t\t\n \t\t\t}\n \t\t\t\n \t\t}",
"public String getValue() {\n return super.getAttributeValue();\n }",
"public void radioClicked(View v) {\n //Avoid non-RadioButton call\n if (!v.getClass().getSimpleName().equals(\"RadioButton\")) {\n Log.w(TAG, \"radioClicked: non-RadioButton \" + v.getClass().getSimpleName() + \"clicked!\");\n }\n\n String textSelected = ((RadioButton) v).getText().toString();\n Toast.makeText(this, \"Function selected: \" + textSelected, Toast.LENGTH_SHORT).show();\n\n inputLabel.setText(textSelected.split(\"-\")[0] + \": \");\n outputLabel.setText(textSelected.split(\"-\")[2] + \": \");\n\n //Clear the input and output field\n input.setText(\"\");\n output.setText(\"\");\n\n }",
"public int questionOne() {\n RadioButton answerOne = findViewById ( R.id.q1_a1 );\n\n if (answerOne.isChecked ()) {\n score = 1;\n } else score = 0;\n return score;\n }",
"private String getGender() {\n\t\tswitch (rgGender.getCheckedRadioButtonId()) {\n\t\tcase R.id.rdAddMale:\n\t\t\taGender = \"Мужчина\";\n\t\t\tbreak;\n\t\tcase R.id.rdAddFemale:\n\t\t\taGender = \"Женщина\";\n\t\t\tbreak;\n\t\tdefault:\n\t\t\tbreak;\n\t\t}\n\t\treturn aGender;\n\t}",
"@Override\n public void onCheckedChanged(RadioGroup group, int checkedId) {\n int selectedId = group.getCheckedRadioButtonId();\n\n if (selectedId != -1) {\n // find the radiobutton by returned id\n rbGender = view.findViewById(selectedId);\n\n strGender = rbGender.getText().toString();\n }\n }",
"@Override\n public void onCheckedChanged(RadioGroup group, int checkedId) {\n RadioButton rEnCours=(RadioButton)findViewById(checkedId);\n\n Toast.makeText(Circonstance_Activity.this,rEnCours.getText(), Toast.LENGTH_SHORT).show();\n }",
"public String getChoice(int choiceNum) {\r\n\t\treturn choices[choiceNum].getChoice();\r\n\t}",
"public void onRadioButtonClicked(View view) {\n // Is the button now checked?\n boolean checked = ((RadioButton) view).isChecked();\n\n // Check which radio button was clicked\n switch(view.getId()) {\n case R.id.radio_male:\n if (checked) {\n gender=0;\n break;\n }\n case R.id.radio_female:\n if (checked) {\n gender = 1;\n break;\n }\n }\n\n Context context = getApplicationContext();\n CharSequence text = \"\"+gender+\"\";\n int duration = Toast.LENGTH_SHORT;\n\n Toast toast = Toast.makeText(context, text, duration);\n toast.show();\n }",
"public CharSequence getSelectedLabel()\n\t{\n\t\treturn _current.label.getText();\n\t}",
"public String getValue_click_ActivateCoupon_Button(){\r\n\t\treturn click_ActivateCoupon_Button.getAttribute(\"value\");\r\n\t}",
"String getValueText();",
"public E getSelected() {\n ButtonModel selection = selectedModelRef.get();\n //noinspection UseOfSystemOutOrSystemErr\n final String actionCommand = selection.getActionCommand();\n //noinspection HardCodedStringLiteral,UseOfSystemOutOrSystemErr\n return Objects.requireNonNull(textMap.get(actionCommand));\n }",
"public void radioSelect(ActionEvent e)\n\t{\n\t\tString rep=\"\";\n\t\tif(rdoOui.isSelected())\n\t\t\trep=\"Oui\";\n\t\telse if(rdoNon.isSelected())\n\t\t\trep=\"Non\";\n\t\telse\n\t\t\trep=\"Peut être\";\n\t\tlblRadio.setText(rep);\n\t}",
"private String getSelectedString() {\n\t\treturn menuItem[selectedIndex];\r\n\t}",
"public int getValue(){\n return selectedValue;\n }",
"public String getValue() {\n return getMethodValue(\"value\");\n }",
"@Override\n public void onRadioButtonChoice(int choice) {\n mRadioButtonChoice = choice;\n Toast.makeText(this, \"Choice is:\"+\n Integer.toString(choice), Toast.LENGTH_SHORT).show();\n }",
"String getTextValue();",
"public void onRadioButtonClicked(View view) {\n boolean checked = ((RadioButton) view).isChecked();\n\n // Check which radio button was clicked\n switch (view.getId()) {\n case R.id.radioButton2:\n if (checked)\n cause = \"struct_fire\";\n break;\n case R.id.radioButton3:\n if (checked)\n\n cause = \"hazmat\";\n break;\n case R.id.radioButton4:\n if (checked)\n // Ninjas rule\n cause = \"grass_fire\";\n break;\n case R.id.radioButton5:\n if (checked)\n // Ninjas rule\n cause = \"trash_fire\";\n break;\n case R.id.radioButton6:\n if (checked)\n // Ninjas rule\n cause = \"false_alarm\";\n break;\n case R.id.radioButton7:\n if (checked)\n // Ninjas rule\n cause = \"other_fire\";\n break;\n\n\n\n\n\n }\n }",
"public void onClick(View arg0) {\n // change the text to state that radio button one was clicked\n tv_display.setText(R.string.tv_display_rb1);\n }",
"public String getOperator() {\n return m_operatorBox.getSelectedItem().toString();\n }",
"public String getSelected ()\n {\n return ((GroupItem)gbox.getSelectedItem()).getSelected();\n }",
"public String getSelectedButtonText(ButtonGroup buttonGroup) {\n for (Enumeration<AbstractButton> buttons = buttonGroup.getElements(); buttons.hasMoreElements();) {\n AbstractButton button = buttons.nextElement();\n if (button.isSelected()) {\n return button.getText();\n }\n }\n return null;\n }",
"String getValue();",
"String getValue();",
"String getValue();",
"String getValue();",
"String getValue();",
"String getValue();",
"String getValue();",
"String getValue();",
"String getValue();",
"String getValue();",
"public int getChoice()\n {\n super.setVisible(true);\n return this.choice;\n }",
"public String getValue_click_Fuel_Rewards_Link(){\r\n\t\treturn click_Fuel_Rewards_Link.getAttribute(\"value\");\r\n\t}",
"public String getCol7radio() {\n return col7radio;\n }",
"java.lang.String getValue();",
"java.lang.String getValue();",
"java.lang.String getValue();",
"java.lang.String getValue();",
"java.lang.String getValue();",
"java.lang.String getValue();",
"public String getStringValue()\n {\n return this.getValue();\n }",
"public void onRadioButtonClicked(View view) {\n // Is the button now checked?\n boolean checked = ((RadioButton) view).isChecked();\n\n // Check which radio button was clicked\n switch (view.getId()) {\n case R.id.radioNeo:\n if (checked)\n crust = \"Neapolitan\";\n break;\n case R.id.radioNY:\n if (checked)\n crust = \"New York Style\";\n break;\n case R.id.radioPan:\n if (checked)\n crust = \"Pan\";\n break;\n case R.id.radioDeep:\n if (checked)\n crust = \"Deep Dish\";\n break;\n }\n }",
"public String handleClick(View view, String value) {\n\t\tboolean checked = ((RadioButton)view).isChecked();\n\t\tdouble weight = Double.parseDouble(value);\n\t\tString converted = \"\";\n\t\tswitch(view.getId()) {\n\t\tcase R.id.radioWeight0:\n\t\t\tif(checked) {\n\t\t\t\tconverted = kgToLb(weight);\n\t\t\t}\n\t\t\tbreak;\n\t\tcase R.id.radioWeight1:\n\t\t\tif(checked) {\n\t\t\t\tconverted = lbToKm(weight);\n\t\t\t}\n\t\t\tbreak;\n\t\t}\n\t\treturn converted;\n\t}",
"public void onRadioButtonClicked(View view) {\n boolean checked = ((RadioButton) view).isChecked();\n TextView textView=(TextView)findViewById(R.id.textView3);\n // Check which radio button was clicked\u000b\n switch(view.getId()) {\n case R.id.radioButton:\n if (checked)\n textView.setText(\"你的性别为男\");\n break;\n case R.id.radioButton1:\n if (checked)\n textView.setText(\"你的性别为女\");\n break;\n }\n }",
"private String getOptionsString()\r\n\t{\r\n\t\tString options = \"\";\r\n\t\t\r\n\t\tfor (JRadioButton button : buttons)\r\n\t\t{\r\n\t\t\toptions += (StringEscaper.escape(button.getText()) + \";\" + button.isSelected() + \".\");\r\n\t\t}\r\n\t\t\r\n\t\toptions = options.substring(0, options.length() - 1); // Trim off the trailing ,\r\n\t\t\r\n\t\treturn options;\r\n\t}",
"@Override\n\t\t\tpublic String getValue() {\n\t\t\t\treturn value;\n\t\t\t}",
"public String getValue() {\n\t\t\treturn this.val; // to be replaced by student code\n\t\t}",
"public String getValue();",
"public String getValue();",
"public String getValue();",
"public String getValue();",
"public String getValue();",
"public String getValue();",
"public String getValue();",
"public String getValue();",
"public String getValue();",
"public java.lang.String getChoice_num() {\n return choice_num;\n }",
"private JRadioButton getDistanceBufferRadioButton() {\n\t\tif (distanceBufferRadioButton == null) {\n\t\t\tdistanceBufferRadioButton = new JRadioButton();\n\t\t\tdistanceBufferRadioButton.setText(PluginServices.getText(this,\n\t\t\t\t\t\"Area_de_influencia_definida_por_una_distancia\") + \":\");\n\t\t\tdistanceBufferRadioButton.setBounds(new java.awt.Rectangle(2, 10,\n\t\t\t\t\t303, 24));\n\t\t\tdistanceBufferRadioButton\n\t\t\t\t\t.addActionListener(new java.awt.event.ActionListener() {\n\t\t\t\t\t\tpublic void actionPerformed(java.awt.event.ActionEvent e) {\n\t\t\t\t\t\t\tconstantDistanceSelected();\n\t\t\t\t\t\t}\n\t\t\t\t\t});\n\t\t}\n\t\treturn distanceBufferRadioButton;\n\t}",
"public void onRadioButtonClicked(View view) {\n boolean checked = ((RadioButton) view).isChecked();\n\n // Check which radio button was clicked\n switch(view.getId()) {\n case R.id.decimal1:\n if (checked)\n selected1=\"decimal1\";\n toDecimal();\n Log.i(\"check\",\"checking decimal1\");\n break;\n case R.id.binary1:\n if (checked)\n selected1=\"binary1\";\n toDecimal();\n break;\n case R.id.useless1:\n if (checked)\n selected1=\"none\";\n toDecimal();\n break;\n }\n }",
"public String getSelectedItem() {\n return (String) itsCombo.getSelectedItem();\n }",
"public String productTypeSelected() {\n String productType = \"\";\n rbListAddElement();\n for (int i = 0; i < rbProductType.size(); i++) {\n if (rbProductType.get(i).isSelected()) {\n productType += (rbProductType.get(i).getText());\n System.out.println(\"Selected product type :\" + productType);\n }\n }\n return productType;\n }",
"private void ans1Option() {\n RadioButton radioButtonA = (RadioButton) findViewById(R.id.radio_button_A);\n RadioButton radioButtonB = (RadioButton) findViewById(R.id.radio_button_B);\n RadioButton radioButtonC = (RadioButton) findViewById(R.id.radio_Button_C);\n RadioButton radioButtonD = (RadioButton) findViewById(R.id.radio_Button_D);\n radioButtonA.setText(R.string.que1Opt1);\n radioButtonB.setText(R.string.que1Opt2);\n radioButtonC.setText(R.string.que1Opt3);\n radioButtonD.setText(R.string.que1Opt4);\n }",
"public String getSelectedButtonText(ButtonGroup buttonGroup) {\n\t\tfor (Enumeration<AbstractButton> buttons = buttonGroup.getElements(); buttons.hasMoreElements();) {\n\t\t\tAbstractButton button = buttons.nextElement();\n\n\t\t\tif (button.isSelected()) {\n\t\t\t\treturn button.getText();\n\t\t\t}\n\t\t}\n\t\treturn null;\n\t}",
"public String getValue()\r\n\t{\r\n\t\treturn value;\r\n\t}",
"public String modeOfChoice() {\r\n try {\r\n return choice.take();\r\n } catch (Exception e){\r\n return \"\";\r\n }\r\n }",
"public String getValue()\r\n\t{\r\n\t\tString value = textField.getText();\r\n\t\treturn value==null || value.length()==0 ? null : value;\r\n\t}",
"public final String getCheckedAttribute() {\n return getAttributeValue(\"checked\");\n }",
"protected String getChoiceName() {\n\t\treturn choiceOption.getOptionName();\n\t}",
"public java.lang.String getValue() {\n return value;\n }"
] |
[
"0.7718098",
"0.7531009",
"0.7342076",
"0.69783276",
"0.6946251",
"0.664794",
"0.6610206",
"0.652914",
"0.6485932",
"0.6481216",
"0.64271384",
"0.6363244",
"0.6343426",
"0.63236445",
"0.63186735",
"0.62691927",
"0.6237225",
"0.6235595",
"0.6188041",
"0.616107",
"0.616107",
"0.6138614",
"0.61107934",
"0.6095608",
"0.6073161",
"0.6055337",
"0.6047728",
"0.59286493",
"0.5893629",
"0.5874593",
"0.58639365",
"0.58484",
"0.58331674",
"0.5816263",
"0.57927203",
"0.57825583",
"0.5782052",
"0.577207",
"0.57698655",
"0.576542",
"0.5755994",
"0.5751114",
"0.5738411",
"0.57375443",
"0.5729669",
"0.5719659",
"0.5719554",
"0.5704639",
"0.56993073",
"0.5699246",
"0.56986916",
"0.56966853",
"0.5692598",
"0.5692598",
"0.5692598",
"0.5692598",
"0.5692598",
"0.5692598",
"0.5692598",
"0.5692598",
"0.5692598",
"0.5692598",
"0.5681784",
"0.56777394",
"0.56773716",
"0.5676357",
"0.5676357",
"0.5676357",
"0.5676357",
"0.5676357",
"0.5676357",
"0.5674104",
"0.5665098",
"0.56537205",
"0.56485623",
"0.56466585",
"0.5644402",
"0.56435573",
"0.5643256",
"0.5643256",
"0.5643256",
"0.5643256",
"0.5643256",
"0.5643256",
"0.5643256",
"0.5643256",
"0.5643256",
"0.5637288",
"0.5629184",
"0.56270367",
"0.56266326",
"0.56262404",
"0.56245846",
"0.5609091",
"0.56085324",
"0.56062406",
"0.5601935",
"0.5600464",
"0.5600431",
"0.55939597"
] |
0.7387646
|
2
|
Create list based on list property
|
private void getArr()
{
// Create array of '0'
Random rand = new Random();
arr = new int[Integer.parseInt(SizeField.getText())];
// InOrder creates a list in ascending order
if (InOrderRadio.isSelected())
{
for (int i = 0; i < arr.length; i++)
{
arr[i] = i;
}
// AlmostOrder creates a list which is 50% sorted and 50% unsorted
} else if (AlmostOrderRadio.isSelected())
{
for (int i = 0; i < arr.length / 2; i++)
{
arr[i] = i;
}
for (int i = arr.length / 2; i < arr.length; i++)
{
arr[i] = rand.nextInt(arr.length);
}
// ReverseOrder creates list in descending order
} else if (ReverseOrderRadio.isSelected())
{
for (int i = arr.length, j = 0; i > 0; i--, j++)
{
arr[j] = i;
}
// RandomOrder creates 100% unsorted list
} else
{
for (int i = 0; i < arr.length; i++)
{
arr[i] = rand.nextInt(arr.length);
}
}
}
|
{
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
}
|
[
"ListType createListType();",
"ListValue createListValue();",
"public static <T, U> List<?> copyListOfProperties(List<T> list, U u) {\n\t\tType listType = new TypeToken<List<U>>() {\n\t\t}.getType();\n\t\treturn modelMapper.map(list, listType);\n\t}",
"protected PropertyList createPropertyList(PropertyList parent, \n FOEventHandler foEventHandler) throws FOPException {\n return foEventHandler.getPropertyListMaker().make(this, parent);\n }",
"List<Object> toList() {\n List<Object> results = new ArrayList<>(this.myArrayList.size());\n for (Object element : this.myArrayList) {\n if (element == null || PropertyObject.NULL.equals(element)) {\n results.add(null);\n } else if (element instanceof PropertyArray) {\n results.add(((PropertyArray) element).toList());\n } else if (element instanceof PropertyObject) {\n results.add(((PropertyObject) element).toMap());\n } else {\n results.add(element);\n }\n }\n return results;\n }",
"abstract void makeList();",
"void setListProperty(Object name, List<Object> list) throws JMSException;",
"public RDFList createRDFList(List<Expression> list, int arobase) {\r\n RDFList rlist = new RDFList(newBlankNode(), list); \r\n if (arobase == L_DEFAULT){\r\n arobase = listType;\r\n }\r\n switch (arobase){\r\n \r\n case L_LIST: \r\n rlist = complete(rlist);\r\n break;\r\n \r\n case L_PATH:\r\n rlist = path(rlist);\r\n break;\r\n }\r\n return rlist;\r\n }",
"private ArrayList<String> createList(JList aListComponent) {\n ArrayList<String> aList = new ArrayList<>();\n if (aListComponent.getModel().getSize() > 0) {\n for (int i=0; i < aListComponent.getModel().getSize();i++) {\n aList.add(aListComponent.getModel().getElementAt(i).toString());\n }\n }\n return aList;\n }",
"public abstract List toNameValueList();",
"Object getTolist();",
"@Test\n public void testGetPropertyAsList() {\n System.out.println(\"getPropertyAsList\");\n Properties props = new Properties();\n String key = \"testProp\";\n props.setProperty(key, \"alpha, beta, gamma\");\n List<String> expResult = Arrays.asList(\"alpha\", \"beta\", \"gamma\");\n List<String> result = EngineConfiguration.getPropertyAsList(props, key);\n assertEquals(expResult, result);\n }",
"public static PropertyDescriptionBuilder<List<String>> listOfStringsProperty(String name) {\n // Trick to work-around type erasure\n // https://stackoverflow.com/a/30754982/2535153\n @SuppressWarnings(\"unchecked\")\n Class<List<String>> clazz = (Class<List<String>>)(Class<?>)List.class;\n return PropertyDescriptionBuilder.start(name, clazz, Parsers.parseList(Parsers::parseString));\n }",
"public void addListProperty(final ConfigListDTO property) {\n \t\tlistProperties.put(property.getPropertyName(), property);\n \t}",
"public List<MessageListItem> makeList(List<BMessage> list){\n return MessageListItem.makeList(mActivity, userID, list, customDateFormat);\n }",
"private final Properties parseProperties(List<?> list) {\r\n\t\tProperties properties = new Properties();\r\n\t\tfor (Object o : list) {\r\n\t\t\tElement element = (Element) o;\r\n\t\t\tproperties.put(element.attributeValue(\"name\"), element.attributeValue(\"value\"));\r\n\t\t}\r\n\t\treturn properties;\r\n\t}",
"List <JAVATYPE> convertList(List<JAVATYPE> oldList, final METATYPE meta);",
"private List<String> buildList() {\n List<String> list = new ArrayList<>();\n list.add(\"Traveled Meters by Day\");\n list.add(\"Sensor Coverage\");\n list.add(\"No Movement Detection\");\n return list;\n }",
"@Test\r\n public void testListProperty() {\r\n ObservableList<String> list = createObservableList(true);\r\n ListProperty<String> property = new SimpleListProperty<>(list);\r\n ChangeReport report = new ChangeReport(property);\r\n property.set(createObservableList(true));\r\n assertEquals(\"listProperty must fire on not-same list\", 1, report.getEventCount());\r\n }",
"@NotNull\n private static List<P> list(P... ps) {\n List<P> result = new ArrayList<>();\n Collections.addAll(result, ps);\n return result;\n }",
"public void setListProperty(List<Integer> t) {\n\n\t\t}",
"public abstract java.util.List extractListItems (Object obj, String countProp, String itemProp) \n\t throws SAFSException;",
"List<Property> givePropList(Kingdom kingdom) throws Exception;",
"final List internalGetChildListProperty(ChildListPropertyDescriptor property) {\r\n\t\tif (property == NEW_ARGUMENTS_PROPERTY) {\r\n\t\t\treturn newArguments();\r\n\t\t}\r\n\t\tif (property == CONSTRUCTOR_ARGUMENTS_PROPERTY) {\r\n\t\t\treturn constructorArguments();\r\n\t\t}\r\n\t\tif (property == BASE_CLASSES_PROPERTY) {\r\n\t\t\treturn baseClasses();\r\n\t\t}\r\n\t\tif (property == DECLARATIONS_PROPERTY) {\r\n\t\t\treturn declarations();\r\n\t\t}\r\n\t\t// allow default implementation to flag the error\r\n\t\treturn super.internalGetChildListProperty(property);\r\n\t}",
"ListString createListString();",
"public Properties getProperties(Properties getList);",
"public static List<CustomFields> createCustomFieldsList() {\r\n List<CustomFields> customFields = new ArrayList<CustomFields>();\r\n\r\n customFields.add(createCustomFields(2, 15472, \"COMPANY\", \"1\", \"c1\", \"CORRELATION_ID\", \"0\"));\r\n customFields.add(createCustomFields(3, 15472, \"COMPANY\", \"2\", \"c2\", \"GROUP_ID\", \"0\"));\r\n return customFields;\r\n }",
"@Nullable\n @Generated\n @Selector(\"propertyList\")\n @MappedReturn(ObjCObjectMapper.class)\n public native Object propertyList();",
"protected static ParameterDef createListParameter(final String param) {\n return new ParameterDef(new Variable(param), ParameterType.LIST);\n }",
"ProductPropertyExecution addProductPropertyList(List<PropertyValue> propertyValueList,PPManage ppManage);",
"Listof<X> toList();",
"public BookList(ObservableList<Book> oList){\r\n //Instantiate the bookList attribute\r\n bookList = new ArrayList<Book>();\r\n //if the parameter oList is not null, then loop through it and create a new Book object from each element,\r\n //using the getters. The enhanced for-loop works great here See Chapter 7.13. Add the new Book to the attribute\r\n //called bookList\r\n if(oList != null){\r\n for(Book bk: oList){\r\n bookList.add(new Book(bk.getTitle(), bk.getPrice()));\r\n }\r\n }\r\n\r\n }",
"public static List<String> createCompetencyList() {\n List<String> list = new ArrayList<String>();\n list.add(\"Line number 1\");\n list.add(\"Line number 2\");\n return list;\n }",
"private void createFieldList(List<FieldDelimiterHolder> list) {\n for (FieldDelimiterHolder holder : list) {\n Field field = FieldFactory.create(holder.name, holder.previous, holder.next);\n fields.add(field);\n if (field.saveable()) {\n saveableFields.add(field);\n }\n }\n\n // the saveableFields List is fields List minus the Skip fields\n // sorted so AppendFields are last\n Collections.sort(saveableFields, new FieldComparator());\n }",
"final List internalGetChildListProperty(ChildListPropertyDescriptor property) {\n if (property == TYPE_ARGUMENTS_PROPERTY) {\n return typeArguments();\n }\n // allow default implementation to flag the error\n return super.internalGetChildListProperty(property);\n }",
"private static Element createExtendedItemListProp(ReportDesigner reportDesigner){\r\n\t\tElement listPropertyNode = doc.createElement(\"list-property\");\r\n\t\tlistPropertyNode.setAttribute(ReportDesigner.ATTRIBUTE_NAME_NAME,\"boundDataColumns\");\r\n\r\n\t\tList<ReportColumn> reportColumns = reportDesigner.getReportColumns();\r\n\r\n\t\tfor(ReportColumn col : reportColumns){\r\n\t\t\tElement structureNode = doc.createElement(ReportDesigner.NODE_NAME_STRUCTURE);\r\n\t\t\tlistPropertyNode.appendChild(structureNode);\r\n\r\n\t\t\tElement propertyNode = doc.createElement(ReportDesigner.NODE_NAME_PROPERTY);\r\n\t\t\tpropertyNode.setAttribute(ReportDesigner.ATTRIBUTE_NAME_NAME,ReportDesigner.ATTRIBUTE_VALUE_NAME);\r\n\t\t\tpropertyNode.appendChild(doc.createTextNode(col.getName()));\r\n\t\t\tstructureNode.appendChild(propertyNode);\r\n\r\n\t\t\tElement expressionNode = doc.createElement(ReportDesigner.NODE_NAME_EXPRESSION);\r\n\t\t\texpressionNode.setAttribute(ReportDesigner.ATTRIBUTE_NAME_NAME,ReportDesigner.ATTRIBUTE_VALUE_EXPRESSION);\r\n\t\t\texpressionNode.appendChild(doc.createTextNode(\"dataSetRow[\\\"\"+col.getName()+\"\\\"]\"));\r\n\t\t\tstructureNode.appendChild(expressionNode);\r\n\r\n\t\t\tpropertyNode = doc.createElement(ReportDesigner.NODE_NAME_PROPERTY);\r\n\t\t\tpropertyNode.setAttribute(ReportDesigner.ATTRIBUTE_NAME_NAME,\"dataType\");\r\n\t\t\tpropertyNode.appendChild(doc.createTextNode(ReportDesigner.fromXsd2ReportType(col.getDataType())));\r\n\t\t\tstructureNode.appendChild(propertyNode);\r\n\t\t}\r\n\r\n\t\treturn listPropertyNode;\r\n\t}",
"ArrayList<String> createList(String finalInput);",
"public List<V> transformList(List<E> list) {\n \tList<V> result = new ArrayList<>(list.size());\n if (list != null) {\n for (E entity : list) {\n result.add(getCachedVO(entity));\n }\n }\n \treturn result;\n }",
"private void initList() {\n\n }",
"@Test\n\tpublic void createListFromList() {\n\t\tList<String> list = new ArrayList<>();\n\t\tlist.add(\"AAPL\");\n\t\tlist.add(\"MSFT\");\n\n\t\t// Create a copy using constructor of ArrayList\n\t\tList<String> copy = new ArrayList<>(list);\n\n\t\tassertTrue(list.equals(copy));\n\t}",
"List<H> generateSections(List<T> listItems);",
"PropertyArray(Collection<?> collection) {\n if (collection == null) {\n this.myArrayList = new ArrayList<>();\n } else {\n this.myArrayList = new ArrayList<>(collection.size());\n for (Object o : collection) {\n this.myArrayList.add(PropertyObject.wrap(o));\n }\n }\n }",
"private static boolean isListProperty(String prop) {\n prop = prop.intern();\n for (int i = 0; i < listProperties.length; i++) {\n if (prop == listProperties[i]) {\n return true;\n }\n }\n return false;\n }",
"public List<Fruit> generate(int listType) {\r\n return Collections.unmodifiableList(innerGenerate(listType));\r\n }",
"static public Vector getPropertyValues (Properties props, String propName)\n{\n String propertyDelimiterName = \"property.token.delimiter\";\n String delimiter = props.getProperty (propertyDelimiterName, \"::\");\n\n String listStartTokenName = \"list.startToken\";\n String listStartToken = props.getProperty (listStartTokenName, \"(\");\n\n String listEndTokenName = \"list.endToken\";\n String listEndToken = props.getProperty (listEndTokenName, \")\");\n\n Vector result = new Vector ();\n String propString = props.getProperty (propName);\n if (propString == null)\n return result;\n String propStringTrimmed = propString.trim ();\n String [] tokens = Misc.parseList (propStringTrimmed, listStartToken, listEndToken, delimiter);\n\n for (int i=0; i < tokens.length; i++)\n result.add (tokens [i]);\n\n return result;\n\n}",
"public ConfigListDTO getListProperty(final String name) {\n \t\treturn listProperties.get(name);\n \t}",
"private static List<Article> createArticleList() {\n List<Article> articles = new ArrayList();\n articles.add(new Article(1l, \"Ball\", new Double(5.5), Type.TOY));\n articles.add(new Article(2l, \"Hammer\", new Double(250.0), Type.TOOL));\n articles.add(new Article(3l, \"Doll\", new Double(12.75), Type.TOY));\n return articles;\n }",
"java.util.List<org.apache.calcite.avatica.proto.Responses.DatabasePropertyElement> \n getPropsList();",
"@SuppressWarnings(\"unchecked\")\r\n public void createList() {\r\n items = new int[MAX_LIST];\r\n NumItems = 0;\r\n }",
"public static <T> List<T> createList() {\n\t\treturn Collections.emptyList();\n\t}",
"private void createList(String[] toAdd) {\n FixData fixedList;\n for (int i = 0; i < toAdd.length; ++i) {\n fixedList = new FixData(toAdd[i]);\n if (pickAdjacent(fixedList))\n this.head = createListWrap(this.head, fixedList);\n else\n fixedList = null;\n }\n }",
"public List toList() throws TemplateModelException {\n if (unwrappedList == null) {\n Class listClass = list.getClass();\n List result = null;\n try {\n result = (List) listClass.newInstance();\n } catch (Exception e) {\n throw new TemplateModelException(\"Error instantiating an object of type \" + listClass.getName() + \"\\n\" + e.getMessage());\n }\n BeansWrapper bw = BeansWrapper.getDefaultInstance();\n for (int i=0; i<list.size(); i++) {\n Object elem = list.get(i);\n if (elem instanceof TemplateModel) {\n elem = bw.unwrap((TemplateModel) elem);\n }\n result.add(elem);\n }\n unwrappedList = result;\n }\n return unwrappedList;\n }",
"@Test\r\n public void testListPropertyBindingToListProperty() {\r\n ObservableList<String> list = createObservableList(true);\r\n ListProperty<String> p1 = new SimpleListProperty<>(list);\r\n ListProperty<String> p2 = new SimpleListProperty<>(list);\r\n p2.bind(p1);\r\n assertSame(\"sanity, same list bidi-bound\", list, p2.get());\r\n ObservableList<String> other = createObservableList(true);\r\n ChangeReport report = new ChangeReport(p2);\r\n p1.set(other);\r\n assertEquals(\"RT-38770 - bind 2 ListProperties\", 1, report.getEventCount());\r\n }",
"private List<RouteInfo> createList() {\r\n\r\n List<RouteInfo> results = new ArrayList<>();\r\n\r\n for (String temp [] : stops) {\r\n\r\n RouteInfo info = new RouteInfo();\r\n info.setTitle(temp[0]);\r\n info.setRouteName(\"Stop ID: \" + temp[1]);\r\n info.setRouteDescription(\"Next bus at: \");\r\n results.add(info);\r\n }\r\n\r\n return results;\r\n }",
"private <TKey extends Comparable<TKey>, TValue> List<TValue> createValues(List<IKeyValueNode<TKey, TValue>> data) {\n List<TValue> values = new ArrayList<>();\n\n for (IKeyValueNode<TKey, TValue> node : data) {\n values.add(node.getValue());\n }\n\n return values;\n }",
"public void genLists() {\n\t}",
"List<Object> getListProperty(Object name) throws JMSException;",
"public List getList1(List<String> list,String a) {\n\t\tlist.add(a);\r\n\t\treturn list;\r\n\t}",
"private void createQualificationsList(){\n\t\tlistedQualList.clear();\n\t\tlistedQuals=jdbc.get_qualifications();\n\t\tfor(Qualification q: listedQuals){\n\t\t\tlistedQualList.addElement(q.getQualName());\n\t\t}\n\t}",
"static List<Property> getMCProperty(List<MCProperty> properties) {\n\n\t\tif (properties == null) {\n\t\t\treturn null;\n\t\t} else {\n\t\t\tList<Property> list = new ArrayList<Property>(properties.size());\n\t\t\tfor (MCProperty property : properties) {\n\t\t\t\tlist.add(new Property(property.getName(), property.getValue()));\n\t\t\t}\n\t\t\treturn list;\n\t\t}\n\t}",
"String createListItem(String list, int accountId);",
"@BeforeEach\n public void createList() {\n myListOfInts = new ArrayListDIY<>(LIST_SIZE);\n listOfInts = new ArrayList<>(LIST_SIZE);\n\n getRandomIntStream(0,10).limit(LIST_SIZE)\n .forEach(elem -> {\n listOfInts.add(elem);\n myListOfInts.add(elem);\n });\n }",
"@Before(value = \"@createList\", order = 1)\n public void createList() {\n String endpoint = EnvironmentTrello.getInstance().getBaseUrl() + \"/lists/\";\n JSONObject json = new JSONObject();\n json.put(\"name\", \"testList\");\n json.put(\"idBoard\", context.getDataCollection(\"board\").get(\"id\"));\n RequestManager.setRequestSpec(AuthenticationUtils.getLoggedReqSpec());\n Response response = RequestManager.post(endpoint, json.toString());\n context.saveDataCollection(\"list\", response.jsonPath().getMap(\"\"));\n }",
"protected List getList() {\n/* 88 */ return (List)getCollection();\n/* */ }",
"SectionList createSectionList();",
"public List<New> list();",
"private ArrayList<String> initList(String[] vastitems){\n return new ArrayList<>(Arrays.asList(vastitems));\n }",
"public static <T extends Entidad> List<Object> buildValueList(T... entityList) {\r\n\t\tList<Object> values = new ArrayList<Object>();\r\n\t\tif (!ObjectUtils.isEmpty(entityList)) {\r\n\t\t\tfor (T entity: entityList) {\r\n\t\t\t\tvalues.add(entity.getValue());\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn values;\r\n\t}",
"List<?> getList();",
"public List getList();",
"public static List getPropertyList(String pPropertyList,Logger pLogger)\n\t{\n\t\tArrayList propList=null;\n\t\tStringTokenizer tokenizer = new StringTokenizer(pPropertyList,Constants.DELIMITER);\n\t\tint tokens = tokenizer.countTokens();\n\t\tpLogger.log(Level.INFO,\"Value to parse:\"+pPropertyList);\n\t\tpLogger.log(Level.INFO,\"Num tokens:\"+tokens);\n\t\t\n\t\tif(pPropertyList!=null)\t\t\t\n\t\t{\n\t\t\tpropList = new ArrayList();\n\t\t\t\n\t\t\t\t\twhile(tokenizer.hasMoreTokens())\n\t\t\t\t\t{\n\t\t\t\t\t\tString token = tokenizer.nextToken();\n\t\t\t\t\t\tpropList.add(token);\n\t\t\t\t\t}\n\t\t\t\t\n\t\t}\n\t\treturn propList;\n\t\t\n\t}",
"public static <T> List<T> clone(List<T> list, PropertyFilter propertyFilter) {\n\t\tList<T> clonedList = new ArrayList<T>(list.size());\n\t\tcloneCollection(list, clonedList, propertyFilter);\n\t\treturn clonedList;\n\t}",
"StringList createStringList();",
"public static <T> List<T> createList (T... args) {\n\tif (args == null) { return new ArrayList<T>(); };\n\treturn new ArrayList<T>(Arrays.asList(args));\n }",
"public static <T> List<T> createList(T item1) {\n\t\tList<T> list = new ArrayList<T>();\n\t\tlist.add(item1);\n\t\treturn list;\n\t}",
"ExprListRule createExprListRule();",
"@SuppressWarnings(\"unchecked\")\n private List createLeagueList() {\n ArrayList result = new ArrayList();\n for( int i = 0 ; i < leagues_array.size() ; ++i ) {\n HashMap m = new HashMap();\n m.put( \"League\", leagues_array.get(i)); // the key and it's value.\n result.add( m );\n }\n return (List)result;\n }",
"static List<MCProperty> getProperty(List<Property> properties) {\n\n\t\tif (properties == null) {\n\t\t\treturn null;\n\t\t} else {\n\t\t\tList<MCProperty> list = new ArrayList<MCProperty>(properties.size());\n\t\t\tfor (Property property : properties) {\n\t\t\t\tMCProperty p = new MCProperty();\n\t\t\t\tp.setName(property.getName());\n\t\t\t\tp.setValue(property.getValue());\n\t\t\t\tlist.add(p);\n\t\t\t}\n\t\t\treturn list;\n\t\t}\n\t}",
"public Properties getPropertyInfo(Properties list);",
"public List<IConfigProperty> getConfigPropertiesList(boolean listCategoriesFirst);",
"private List<PhotoAlbumDetailDTO> listEntity2DTO(List<PhotoAlbumEntity> entityList){\n List<PhotoAlbumDetailDTO> list = new ArrayList<>();\n for (PhotoAlbumEntity entity : entityList) {\n list.add(new PhotoAlbumDetailDTO(entity));\n }\n return list;\n }",
"private ArrayList<String> simpleFormList(ArrayList<String> list){\n\t\tArrayList<String> simpleFormList = new ArrayList<String>();\n\t\tfor(String s : list){\n\t\t\tString pos = posMap.get(s);\n\t\t\tsimpleFormList.add(simpleForm(s,pos));\n\t\t}\n\t\treturn simpleFormList;\n\t}",
"public abstract List<V> makeRowData();",
"public List getList() {\n return Arrays.asList(toJavaArray()); \n }",
"public static <T> List<T> getOrCreateList(List<T> list) {\n return list == null ? new ArrayList<>() : list;\n }",
"List<? extends T> getProperties();",
"public static List<Tag> createEmployeeList(List<Employee> list) {\n return list.stream().map(employee ->\n div().withClass(\"employee\").with(\n h2(employee.getName()),\n img().withSrc(employee.getImgPath()),\n p(employee.getTitle())\n )\n ).collect(Collectors.toList());\n }",
"public List hardList() {\r\n List result = new ArrayList();\r\n\r\n for (int i=0; i < size(); i++) {\r\n Object tmp = get(i);\r\n\r\n if (tmp != null)\r\n result.add(tmp);\r\n }\r\n\r\n return result;\r\n }",
"public MyList(String name) {\n nameList = name;\n }",
"ListOfValuesType createListOfValuesType();",
"private ArrayList<String> createArrayListFromSelectionList(JList aListComponent) {\n ArrayList<String> aList= new ArrayList<>();\n int[] selectedIndices = aListComponent.getSelectedIndices();\n if (selectedIndices.length > 0) {\n for (int i=0; i < selectedIndices.length;i++) {\n aList.add(aListComponent.getModel().getElementAt(selectedIndices[i]).toString());\n }\n }\n return aList;\n }",
"Plist()\n {\n m_dateFormat = new SimpleDateFormat(\"yyyy-MM-dd'T'HH:mm:ss'Z'\");\n m_dateFormat.setTimeZone(TimeZone.getTimeZone(\"Z\"));\n m_simpleTypes = new HashMap<Class<?>, ElementType>();\n m_simpleTypes.put(Integer.class, ElementType.INTEGER);\n m_simpleTypes.put(Byte.class, ElementType.INTEGER);\n m_simpleTypes.put(Short.class, ElementType.INTEGER);\n m_simpleTypes.put(Short.class, ElementType.INTEGER);\n m_simpleTypes.put(Long.class, ElementType.INTEGER);\n m_simpleTypes.put(String.class, ElementType.STRING);\n m_simpleTypes.put(Float.class, ElementType.REAL);\n m_simpleTypes.put(Double.class, ElementType.REAL);\n m_simpleTypes.put(byte[].class, ElementType.DATA);\n m_simpleTypes.put(Boolean.class, ElementType.TRUE);\n m_simpleTypes.put(Date.class, ElementType.DATE);\n }",
"private List<RestauranteDetailDTO> restauranteListEntity2DTO(List<RestauranteEntity> entityList){\n List<RestauranteDetailDTO> list = new ArrayList<>();\n for (RestauranteEntity entity : entityList) {\n list.add(new RestauranteDetailDTO(entity));\n }\n return list;\n }",
"java.util.List<java.lang.String> getValuesList();",
"public final List<l> apply(List<j> list) {\n kotlin.jvm.internal.h.e(list, \"it\");\n boolean a = this.dlr.a(this.dls, list);\n Iterable<j> iterable = list;\n Collection arrayList = new ArrayList(n.e(iterable, 10));\n for (j jVar : iterable) {\n kotlin.jvm.internal.h.d(jVar, \"it\");\n arrayList.add(new l(jVar, a ^ 1));\n }\n return (List) arrayList;\n }",
"@Before\n public void createSimpleList() {\n testList = new SimpleList();\n }",
"public PropList(Context context) {\n props = new ArrayList<>(Arrays.asList(\n new Prop(context, 12, (float) 4.5, (float) 3.5, R.drawable.tree_brown, true),\n new Prop(context, 30, 6, (float) 4.5, R.drawable.twigs_brown, false),\n new Prop(context, 12, (float) 3.5, (float) 11.5, R.drawable.tree_brown, true),\n new Prop(context, 30, 5, (float) 12.5, R.drawable.twigs_brown, false),\n new Prop(context, 12, (float) 9.5, 8, R.drawable.tree_brown, true),\n new Prop(context, 56, (float) 11.5, (float) 3.2, R.drawable.fence_red_vertical, true)\n ));\n }",
"private MyIntegerList generatedPopulatedList() {\n final MyIntegerList mil = new MyIntegerList();\n\n mil.push(1);\n mil.push(2);\n mil.push(1);\n mil.push(6);\n mil.push(6);\n mil.push(7);\n mil.push(2);\n mil.push(2);\n mil.push(0);\n mil.push(5);\n\n return mil;\n }",
"List<PersonaDTO> PersonaListToPersonaDTOList(List<Persona> personaList);",
"public ArrayList<Item> createItemList() {\n return itemLines\n .stream()\n .map(this::writeLineItemNumber)\n .map(this::createItem)\n .collect(Collectors.toCollection(ArrayList::new));\n }",
"public void creatList()\n\t{\n\t\tbowlers.add(new Bowler(\"A\",44));\n\t\tbowlers.add(new Bowler(\"B\",25));\n\t\tbowlers.add(new Bowler(\"C\",2));\n\t\tbowlers.add(new Bowler(\"D\",10));\n\t\tbowlers.add(new Bowler(\"E\",6));\n\t}"
] |
[
"0.65156674",
"0.6399372",
"0.63301116",
"0.6329461",
"0.6258186",
"0.6242744",
"0.6176163",
"0.61351734",
"0.60937357",
"0.60772496",
"0.6076654",
"0.59794474",
"0.595499",
"0.5952742",
"0.5942655",
"0.59345275",
"0.59178114",
"0.5905522",
"0.5902329",
"0.5897733",
"0.5897614",
"0.5876779",
"0.5863774",
"0.5855762",
"0.58342904",
"0.5794371",
"0.57915425",
"0.57609946",
"0.57598937",
"0.57322425",
"0.57275873",
"0.5719815",
"0.570977",
"0.57071203",
"0.5688944",
"0.5673676",
"0.56519854",
"0.56356996",
"0.5615865",
"0.56103224",
"0.56041557",
"0.5600801",
"0.5590925",
"0.5588587",
"0.5580083",
"0.5548275",
"0.55482614",
"0.5544762",
"0.55445695",
"0.5539978",
"0.55394626",
"0.55384016",
"0.5530298",
"0.552647",
"0.5524793",
"0.5524612",
"0.5519832",
"0.5519561",
"0.5514768",
"0.55056375",
"0.5494917",
"0.5494786",
"0.5489625",
"0.5487514",
"0.54846966",
"0.5482447",
"0.54799455",
"0.54783326",
"0.54745406",
"0.5468062",
"0.5467739",
"0.5466978",
"0.54581434",
"0.54549855",
"0.5450341",
"0.54481184",
"0.5444875",
"0.54411954",
"0.5435857",
"0.5432843",
"0.5420903",
"0.54202193",
"0.54132354",
"0.54039174",
"0.5403278",
"0.53983665",
"0.5394012",
"0.53902197",
"0.5381818",
"0.5371807",
"0.53706855",
"0.5368986",
"0.5357646",
"0.53570503",
"0.53527576",
"0.5347215",
"0.5342615",
"0.5341863",
"0.53371453",
"0.5334065",
"0.5332558"
] |
0.0
|
-1
|
This function will run the selected algorithm and also fill in the remaining textboxes. It uses a switch statement to check what algorithm to use.
|
private void Sort(int[] list)
{
switch (SortField.getText())
{
case "Insertion Sort":
{
InsertionSort insertionSort = new InsertionSort();
long startTime = System.currentTimeMillis();
insertionSort.insertionSort(list);
long endTime = System.currentTimeMillis();
CompareField.setText(String.valueOf(insertionSort.getComparisons()));
MovementField.setText(String.valueOf(insertionSort.getMovements()));
TimeField.setText((endTime - startTime + " milliseconds"));
TimeComField.setText("O(n*2)");
break;
}
case "Selection Sort":
{
SelectionSort selectionSort = new SelectionSort();
long startTime = System.currentTimeMillis();
selectionSort.selectionSort(list);
long endTime = System.currentTimeMillis();
CompareField.setText(String.valueOf(selectionSort.getComparisons()));
MovementField.setText(String.valueOf(selectionSort.getMovements()));
TimeField.setText((endTime - startTime + " milliseconds"));
TimeComField.setText("O(n2)");
break;
}
case "Quick Sort":
{
QuickSort quickSort = new QuickSort();
long startTime = System.currentTimeMillis();
quickSort.quickSort(list);
long endTime = System.currentTimeMillis();
CompareField.setText(String.valueOf(quickSort.getComparisons()));
MovementField.setText(String.valueOf(quickSort.getMovements()));
TimeField.setText((endTime - startTime + " milliseconds"));
TimeComField.setText("O(n log n)");
break;
}
case "Merge Sort":
{
MergeSort mergeSort = new MergeSort();
long startTime = System.currentTimeMillis();
mergeSort.mergeSort(list);
long endTime = System.currentTimeMillis();
CompareField.setText(String.valueOf(mergeSort.getComparisons()));
MovementField.setText(String.valueOf(mergeSort.getMovements()));
TimeField.setText((endTime - startTime + " milliseconds"));
TimeComField.setText("T(n) = 2T(n/2) + θ(n)");
break;
}
case "Heap Sort":
{
HeapSort heapSort = new HeapSort();
long startTime = System.currentTimeMillis();
heapSort.heapSort(list);
long endTime = System.currentTimeMillis();
CompareField.setText(String.valueOf(heapSort.getComparisons()));
MovementField.setText(String.valueOf(heapSort.getMovements()));
TimeField.setText((endTime - startTime + " milliseconds"));
TimeComField.setText("O(nLogn)");
break;
}
case "Radix Sort":
{
RadixSort radixSort = new RadixSort();
long startTime = System.currentTimeMillis();
radixSort.radixSort(list, Integer.parseInt(SizeField.getText()));
long endTime = System.currentTimeMillis();
CompareField.setText("Radix Sort has 0 comparisons");
MovementField.setText(String.valueOf(radixSort.getMovements()));
TimeField.setText((endTime - startTime + " milliseconds"));
TimeComField.setText("O(kn)");
break;
}
case "Bubble Sort":
{
BubbleSort bubbleSort = new BubbleSort();
long startTime = System.currentTimeMillis();
bubbleSort.bubbleSort(list);
long endTime = System.currentTimeMillis();
CompareField.setText(String.valueOf(bubbleSort.getComparisons()));
MovementField.setText(String.valueOf(bubbleSort.getMovements()));
TimeField.setText((endTime - startTime + " milliseconds"));
TimeComField.setText("O(n*n)");
break;
}
}
}
|
{
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
}
|
[
"public void chooseAlgorithm() {\n boolean runloop = true;\n CustomArrayList<Integer>[] graph = null;\n graph = util.initializeCNF(statement);\n while (runloop) {\n io.println(\"Which algorithm do you want to use to solve this?\");\n io.println(\"1: Tarjan algorithm\\n2: Kosaraju algorithm\\n3: Brute force method\\n4: Print the truth distribution that solves the CNF\\n5: return\");\n String selection = io.nextLine();\n switch (selection) {\n case (\"1\"):\n tarjan = new TarjanAlgorithm(graph, numVariables);\n TarjanPrint();\n break;\n case (\"2\"):\n kosaraju = new KosarajuAlgorithm(graph, numVariables);\n KosarajuPrint();\n break;\n case (\"3\"):\n io.println(\"Warning! Brute force method has an exponential time complexity. Using this with CNF with more than 20 variables will take a really long time. \");\n io.println(\"Continue? y/n\");\n String affirmate = io.nextLine();\n switch (affirmate) {\n case (\"y\"):\n bruteForcePrint();\n break;\n case (\"n\"):\n break;\n }\n break;\n case (\"4\"):\n tarjan = new TarjanAlgorithm(graph, numVariables);\n if (tarjan.checkSatisfiability()) {\n printTruthAssesment();\n } else {\n io.println(\"Not satisfiable\");\n }\n break;\n case (\"5\"):\n io.println(\"Returning to main menu...\");\n runloop = false;\n break;\n }\n }\n }",
"public static void mainMenu() {\n\t\tSystem.out.println(\"1. Train the autocomplete algorithm with input text\");\r\n\t\tSystem.out.println(\"2. Test the algorithm by entering a word fragment\");\r\n\t\tSystem.out.println(\"3. Exit (The algorithm will be reset on subsequent runs of the program)\");\r\n\t\tint choice = getValidInt(1, 3); // get the user's selection\r\n\t\tSystem.out.println(\"\"); // for appearances\r\n\t\tScanner scan = new Scanner(System.in);\r\n\t\t\r\n\t\t//evaluate the user's choice\r\n\t\tswitch (choice) {\r\n\t\tcase CONSTANTS.TRAIN:\r\n\t\t\t\r\n\t\t\tSystem.out.print(\"Enter a passage to train the algorithm (press enter to end the passage): \");\r\n\t\t\tString passage = scan.nextLine();\r\n\t\t\tprovider.train(passage);\r\n\t\t\tbreak;\r\n\t\t\r\n\t\tcase CONSTANTS.TEST:\r\n\t\t\t\r\n\t\t\tString prefix;\r\n\t\t\tdo { // keep asking for input until a valid alphabetical string is given\r\n\t\t\t\tSystem.out.print(\"Enter a prefix to test autocomplete (alphabetic characters only): \");\r\n\t\t\t\tprefix = scan.nextLine();\r\n\t\t\t} while (!prefix.matches(\"[a-zA-z]+\"));\r\n\t\t\tSystem.out.println(\"\"); // for appearances\r\n\t\t\tshowResults(provider.getWords(prefix.toLowerCase()));\r\n\t\t\tbreak;\r\n\t\t\t\r\n\t\tcase CONSTANTS.EXIT:\r\n\t\t\t\r\n\t\t\tSystem.exit(0);\r\n\t\t\tbreak;\r\n\t\t}\r\n\t\tmainMenu();\r\n\t}",
"private void optionsSelect() {\n switch (currentQueNum) {\n case 1:\n ans1Option();\n break;\n case 2:\n ans2Option();\n break;\n case 3:\n ans3Option();\n break;\n case 4:\n ans4Option();\n break;\n case 5:\n ans5Option();\n break;\n case 6:\n ans6Option();\n break;\n case 7:\n ans7Option();\n break;\n case 8:\n ans8Option();\n break;\n case 9:\n ans9Option();\n break;\n case 10:\n ans10Option();\n break;\n }\n }",
"private void run()\r\n\t{\r\n\t\tboolean programLoop = true;\r\n\t\t\r\n\t\twhile(programLoop)\r\n\t\t{\r\n\t\t\tmenu();\r\n\t\t\tSystem.out.print(\"Selection: \");\r\n\t\t\tString userInput = input.nextLine();\r\n\t\t\t\r\n\t\t\tint validInput = -1;\r\n\t\t\t\r\n\t\t\ttry\r\n\t\t\t{\r\n\t\t\t\tvalidInput = Integer.parseInt(userInput);\r\n\t\t\t}\r\n\t\t\tcatch(NumberFormatException e)\r\n\t\t\t{\r\n\t\t\t\tSystem.out.println(\"Please enter a valid selection.\");\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\tSystem.out.println();\r\n\t\t\t\r\n\t\t\t\r\n\t\t\tswitch(validInput)\r\n\t\t\t{\r\n\t\t\t\tcase 0: forInstructor();\r\n\t\t\t\t\t\tbreak;\r\n\t\t\t\tcase 1: addSeedURL();\r\n\t\t\t\t\t\tbreak;\r\n\t\t\t\tcase 2: addConsumer();\r\n\t\t\t\t\t\tbreak;\r\n\t\t\t\tcase 3: addProducer();\r\n\t\t\t\t\t\tbreak;\r\n\t\t\t\tcase 4: addKeywordSearch();\r\n\t\t\t\t\t\tbreak;\r\n\t\t\t\tcase 5: printStats();\r\n\t\t\t\t\t\tbreak;\r\n\t\t\t\t//case 10: debug(); //Not synchronized and will most likely cause a ConcurrentModificationException\r\n\t\t\t\t\t\t //break;\t//if multiple Producer and Consumer Threads are running.\r\n\t\t\t\tdefault: break;\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\tSystem.out.println();\r\n\t\t}\r\n\t}",
"public static void userSelection(){\n\t\tint selection;\n\t\tScanner input = new Scanner(System.in);\n\t\tSystem.out.println(\"Which program would you like to run?\");\n\t\tselection=input.nextInt();\n\n\t\tif(selection == 1)\n\t\t\tmazeUnion();\n\t\tif(selection == 2)\n\t\t\tunionPathCompression();\n\t\tif(selection == 3)\n\t\t\tmazeHeight();\n\t\tif(selection == 4)\n\t\t\tmazeSize();\n\t\tif(selection == 5)\n\t\t\tsizePathCompression();\n\t}",
"private void handeComparisonMenuCommands() throws Exception {\n printOptionsMessage();\n\n while (true) {\n String command = scanner.nextLine();\n\n\n\n if (command.equals(\"1\")) {\n toggleSelectedAlgorithm(0);\n } else if (command.equals(\"2\")) {\n toggleSelectedAlgorithm(1);\n } else if (command.equals(\"3\")) {\n toggleSelectedAlgorithm(2);\n } else if (command.equals(\"s\")) {\n intSelect.start();\n startComparison(selected);\n return;\n } else if (command.equals(\"r\")) {\n startComparison(selected);\n return;\n } else if (command.equals(\"x\")) {\n break;\n }\n\n comparisonMenuOptions();\n printOptionsMessage();\n }\n }",
"public static void getInput() {\n\t\tselectOption();\n\t\tsc = new Scanner(System.in);\n\t userInput2 = sc.nextInt();\n\t \n\t switch (userInput2) {\n\t \tcase 1: System.out.print(\"Enter the number for the factorial function: \");\n\t \t\t\tsc = new Scanner(System.in);\n\t\t\t\t userInput2 = sc.nextInt();\n\t\t\t\t System.out.println(\"The factorial of \" + userInput2 + \" is \" + factorial(userInput2));\n\t\t\t\t getInput();\n\t\t \t\tbreak;\n\t \tcase 2: System.out.print(\"Enter the Fibonacci position: \");\n\t\t\t\t\tsc = new Scanner(System.in);\n\t\t\t\t userInput2 = sc.nextInt();\n\t\t\t\t System.out.println(\"The fibonacci number at position \" + userInput2 + \" is \" + fib(userInput2));\n\t\t\t\t getInput();\n\t\t \t\tbreak;\n\t \tcase 3: System.out.print(\"Enter the first number: \");\n\t\t\t\t\tsc = new Scanner(System.in);\n\t\t\t\t userInput2 = sc.nextInt();\n\t\t\t\t System.out.print(\"Enter the second number: \");\n\t\t\t\t sc = new Scanner(System.in);\n\t\t\t\t userInput3 = sc.nextInt();\n\t\t\t\t System.out.println(\"The GCD of the numbers \" + userInput2 + \" and \" + userInput3 + \" is \" + GCD(userInput2, userInput3));\n\t\t\t\t getInput();\n\t\t \t\tbreak;\n\t \tcase 4: System.out.print(\"Enter n: \");\n\t\t\t\t\tsc = new Scanner(System.in);\n\t\t\t\t userInput2 = sc.nextInt();\n\t\t\t\t System.out.print(\"Enter r: \");\n\t\t\t\t sc = new Scanner(System.in);\n\t\t\t\t userInput3 = sc.nextInt();\n\t\t\t\t System.out.println(userInput2 + \" choose \" + userInput3 + \" is \" + choose(userInput2, userInput3));\n\t\t\t\t getInput();\n\t\t \t\tbreak;\n\t \tcase 5: System.out.print(\"Enter n: \");\n\t\t\t\t\tsc = new Scanner(System.in);\n\t\t\t\t userInput2 = sc.nextInt();\n\t\t\t\t System.out.print(\"Enter k: \");\n\t\t\t\t sc = new Scanner(System.in);\n\t\t\t\t userInput3 = sc.nextInt();\n\t\t\t\t System.out.println(\"The Josephus of \" + userInput2 + \" and \" + userInput3 + \" is \" + josephus(userInput2, userInput3));\n\t\t\t\t getInput();\n\t\t \t\tbreak;\n\t \tcase 6: System.out.println(\"Ending program...\");\n \t\t\t\tSystem.exit(0);\n \t\t\t\tbreak;\n \t\tdefault: System.out.println(\"\\nPlease enter number between 1 and 6\\n\");\n\t \t\t\tgetInput();\n\t \t\t\tbreak;\n\t }\t\n\t}",
"private void setResultText(){\r\n\r\n\t double gravity = 0,initialSpeed = 0,maxHeight = 0,maxHeightTime =0,reach = 0;\r\n\t int angle = 0;\r\n \r\n\t switch (this.situation){\r\n\t\t//########################## First Situation ##########################\r\n\t\t case 0:{\r\n\t\t\t\t if (speedField.getText().equals(\"\")){\r\n\t\t\t\t\t this.errorOccorred = true;\r\n\t\t\t\t\t JOptionPane.showMessageDialog(this,\"O valor da velocidade inicial deve ser informado!\",\"Valor de entrada faltando!\",JOptionPane.ERROR_MESSAGE);\r\n\t\t\t\t }else\r\n\t\t\t\t if (angleSlider.text.getText().equals(\"\")){\r\n\t\t\t\t\t this.errorOccorred = true;\r\n\t\t\t\t\t JOptionPane.showMessageDialog(this,\"O valor do ângulo deve ser informado!\",\"Valor de entrada faltando!\",JOptionPane.ERROR_MESSAGE);\r\n\t\t\t\t }else\r\n\t\t\t\t if (gravityField.getText().equals(\"\")){\r\n\t\t\t\t\t this.errorOccorred = true;\r\n\t\t\t\t\t JOptionPane.showMessageDialog(this,\"O valor da gravidade deve ser informado!\",\"Valor de entrada faltando!\",JOptionPane.ERROR_MESSAGE);\r\n\t\t\t\t } else {\r\n\t\t\t\t \r\n\t \t\t\t\t\tgravity = Double.parseDouble(gravityField.getText());\r\n \t\t\t\t\tinitialSpeed = Double.parseDouble(speedField.getText());\r\n \t\t\t\t\tangle = Integer.parseInt(angleSlider.text.getText());\r\n\r\n \t\t\t \t\tthis.setObliqueLaunchValues(initialSpeed, angle, gravity);\r\n \r\n \t\t\t\t\tmaxHeight = this.world.getMaxHeight(this.cannon, this.ball);\r\n \t\t\t\t\tmaxHeightTime = this.world.getMaxHeightTime(this.ball);\r\n \t\t\t\t\treach = this.world.getReach(this.cannon, this.ball);\r\n\t\t\t\t }\r\n\t\t\t\t\t \r\n\t\t} break;\r\n\t\t\r\n\t\t//########################## Second Situation ##########################\r\n\t\tcase 1:{\r\n\t\t\t\tif (speedField.getText().equals(\"\")){\r\n\t\t\t\t\tthis.errorOccorred = true;\r\n\t\t\t\t\tJOptionPane.showMessageDialog(this,\"O valor da velocidade inicial deve ser informado!\",\"Valor de entrada faltando!\",JOptionPane.ERROR_MESSAGE);\r\n\t\t\t\t}else\r\n\t\t\t\tif (gravityField.getText().equals(\"\")){\r\n\t\t\t\t\tthis.errorOccorred = true;\r\n\t\t\t\t\tJOptionPane.showMessageDialog(this,\"O valor da gravidade deve ser informado!\",\"Valor de entrada faltando!\",JOptionPane.ERROR_MESSAGE);\r\n\t\t\t\t}else\r\n\t\t\t\tif (reachField.getText().equals(\"\")){\r\n\t\t\t\t\tthis.errorOccorred = true;\r\n\t\t\t\t\tJOptionPane.showMessageDialog(this,\"O valor do alcance deve ser informado!\",\"Valor de entrada faltando!\",JOptionPane.ERROR_MESSAGE);\r\n\t\t\t\t} else {\r\n\t\t\t\t\tgravity = Double.parseDouble(gravityField.getText());\r\n\t\t\t\t\tinitialSpeed = Double.parseDouble(speedField.getText());\r\n\t\t\t\t\treach = Double.parseDouble(reachField.getText());\r\n\t\t\t\r\n\t\t\t\t\tthis.setObliqueLaunchValues(initialSpeed,gravity,reach);\r\n\t\t\t\t\tangle = this.ball.getAngle(reach);\r\n\t\t\t\r\n\t\t\t\t\tthis.angleSlider.text.setText(String.valueOf(angle));\r\n \r\n\t\t \t\tmaxHeight = this.world.getMaxHeight(this.ball);\r\n \t\t\t\tmaxHeightTime = this.world.getMaxHeightTime(this.ball);\r\n\t\t\t\t}\r\n\t\t} break;\r\n\t\t\r\n\t\t//########################## Second Situation ##########################\r\n\t\tcase 2:{\r\n\t\t\t\tif (angleSlider.text.getText().equals(\"\")){\r\n\t\t\t\t\t this.errorOccorred = true;\r\n\t\t\t\t\t JOptionPane.showMessageDialog(this,\"O valor do ângulo deve ser informado!\",\"Valor de entrada faltando!\",JOptionPane.ERROR_MESSAGE);\r\n\t\t\t\t}else\r\n\t\t\t\tif (gravityField.getText().equals(\"\")){\r\n\t\t\t\t\tthis.errorOccorred = true;\r\n\t\t\t\t\tJOptionPane.showMessageDialog(this,\"O valor da gravidade deve ser informado!\",\"Valor de entrada faltando!\",JOptionPane.ERROR_MESSAGE);\r\n\t\t\t\t}else\r\n\t\t\t\tif (reachField.getText().equals(\"\")){\r\n\t\t\t\t\tthis.errorOccorred = true;\r\n\t\t\t\t\tJOptionPane.showMessageDialog(this,\"O valor do alcance deve ser informado!\",\"Valor de entrada faltando!\",JOptionPane.ERROR_MESSAGE);\r\n\t\t\t\t} else {\r\n\t\t\t\t\r\n\t \t\t\t\tgravity = Double.parseDouble(gravityField.getText());\r\n \t\t\t\treach = Double.parseDouble(reachField.getText());\r\n \t\t\t\tangle = Integer.parseInt(angleSlider.text.getText());\r\n\t\t\t\r\n\t\t\t\t\tinitialSpeed = this.ball.getInitialSpeed(angle,reach,gravity);\r\n \t\t\r\n\t\t\t\t\tthis.setObliqueLaunchValues(initialSpeed, angle, gravity);\r\n \r\n \t\t\t\tmaxHeight = this.world.getMaxHeight(this.cannon, this.ball);\r\n \t\t\t\tmaxHeightTime = this.world.getMaxHeightTime(this.ball);\r\n \t\t\t\t//reach = this.world.getReach(this.cannon, this.ball);\r\n\t\t\t\t}\r\n\t\t} break;\r\n\t\t\r\n\t\t//########################## Fourth Situation ##########################\r\n\t\tcase 3:{\r\n\t\t\t\tif (gravityField.getText().equals(\"\")){\r\n\t\t\t\t\tthis.errorOccorred = true;\r\n\t\t\t\t\tJOptionPane.showMessageDialog(this,\"O valor da gravidade deve ser informado!\",\"Valor de entrada faltando!\",JOptionPane.ERROR_MESSAGE);\r\n\t\t\t\t}else\r\n\t\t\t\tif (reachField.getText().equals(\"\")){\r\n\t\t\t\t\tthis.errorOccorred = true;\r\n\t\t\t\t\tJOptionPane.showMessageDialog(this,\"O valor do alcance deve ser informado!\",\"Valor de entrada faltando!\",JOptionPane.ERROR_MESSAGE);\r\n\t\t\t\t}else\r\n\t\t\t\tif (mHeightField.getText().equals(\"\")){\r\n\t\t\t\t\tthis.errorOccorred = true;\r\n\t\t\t\t\tJOptionPane.showMessageDialog(this,\"O valor da altura máxima deve ser informado!\",\"Valor de entrada faltando!\",JOptionPane.ERROR_MESSAGE);\r\n\t\t\t\t} else {\r\n\t\t\t\t\r\n\t \t\t\t\tgravity = Double.parseDouble(gravityField.getText());\r\n \t\t\t\tmaxHeight = Double.parseDouble(mHeightField.getText());\r\n \t\t\t\treach = Double.parseDouble(reachField.getText());\r\n\t\t\t\r\n\t\t\t\t\tangle = this.ball.getAngle(reach,maxHeight);\r\n\t\t\t\t\tinitialSpeed = this.ball.getInitialSpeed(angle,reach,gravity);\r\n \t\t\r\n\t\t\t\t\tthis.setObliqueLaunchValues(initialSpeed, angle, gravity);\r\n \t\t\r\n \t\t\t\tmaxHeightTime = this.world.getMaxHeightTime(this.ball);\r\n\t\t\t\t}\r\n\t\t} break;\r\n\t }\r\n\t if (!this.errorOccorred){\r\n\t \tthis.completeSimulation(gravity,initialSpeed,angle,maxHeight,maxHeightTime,reach);\r\n\t } else {\r\n\t\tthis.errorOccorred = false;\r\n\t }\r\n }",
"public void refresh()\n\t{\n\t\tnum1 = -1;\n\t\tnum2 = -1;\n\t\tnum3 = -1;\n\t\tnum1Label.setText(\"\");\n\t\tnum2Label.setText(\"\");\n\t\tnum3Label.setText(\"\");\n\t\t\n\t\tcheckEquationButton.setEnabled(false);\n\t\t\n\t\toperationSign = getOperation(levelChosen);\n\t\t\n\t\t//Choosing the number range for each level\n\t\tfor(int i = 0; i < 9; i++)\n\t\t{\n\t\t\tif(levelChosen == 0 || levelChosen == 1 || levelChosen == 3)\n\t\t\t{\n\t\t\t\trandomNumList[i] = getRandomNum(1,9);\n\t\t\t}// end if\n\t\t\telse if(levelChosen == 2)\n\t\t\t{\n\t\t\t\trandomNumList[i] = getRandomNum(1,12);\n\t\t\t}// end else if\n\t\t}\n\t\t\n\t\toperationLabel.setText(\"\"+operationSign (operationSign));\n\t\t\n\t\t//Randomly picks three numbers that are different from each other to use to make a viable equation\n\t\tint temp = getRandomNum(0,8);\n\t\tint temp2 = getRandomNum(0,8);\n\t\tint temp3 = getRandomNum(0,8);\n\t\twhile(temp == temp2)\n\t\t{\n\t\t\ttemp2 = getRandomNum(0,8);\n\t\t}// end while loop\n\t\t\n\t\twhile(temp2 == temp3)\n\t\t{\n\t\t\ttemp3 = getRandomNum(0,8);\n\t\t}// end while loop\n\t\t\n\t\t// will make sure there will be at least one viable equation\n\t\tswitch (operationSign)\n\t\t{\n\t\t\tcase 1:\n\t\t\tcase 2:\n\t\t\trandomNumList[temp] = randomNumList[temp2] + randomNumList[temp3];\n\t\t\tbreak;\n\t\t\tcase 3:\n\t\t\tcase 4:\n\t\t\trandomNumList[temp] = randomNumList[temp2] * randomNumList[temp3];\n\t\t}// end case statements\n\t\t\n\t\tfor(int i = 0; i < 9; i++)\n\t\t{\n\t\t\tinitButton(i);\n\t\t}//end for \n\t}",
"public void run() {\r\n\t\tSystem.out.println(\"\\nFind all sum combinations using 1 through 9\\n\");\r\n\t\tint value = 0;\r\n\t\tString answer = \"\";\r\n\t\tdo {\r\n\t\t\tvalue = Prompt.getInt(\"Input a number\", 1, (LARGEST_NUMBER * 2));\r\n\t\t\t\r\n\t\t\t// iterative version\r\n\t\t\tSystem.out.println(\"\\nPrinting iterative solution:\");\r\n\t\t\tprintCombinations(value);\r\n\t\t\t\r\n\t\t\t// recursive version\r\n\t\t\tSystem.out.println(\"\\nPrinting recursive solution:\");\r\n\t\t\tprintCombinationsRecurse(value);\r\n\t\t\t\r\n\t\t\tanswer = Prompt.getString(\"\\nInput another number? y or n\");\r\n\t\t} while (answer.toLowerCase().equals(\"y\"));\r\n\t\tSystem.out.println(\"\\nThanks for playing!\\n\");\r\n\t}",
"public void runAlgorithm()\n\t{\n\t\tboolean done = false;\n while (!done)\n {\n switch (step)\n {\n case 1:\n step=stepOne(step);\n break;\n case 2:\n step=stepTwo(step);\n break;\n case 3:\n step=stepThree(step);\n break;\n case 4:\n step=stepFour(step);\n break;\n case 5:\n step=stepFive(step);\n break;\n case 6:\n step=stepSix(step);\n break;\n case 7:\n stepSeven(step);\n done = true;\n break;\n }\n }\n\t}",
"public void doOperations(){\n try {\n UtilityMethods.print(\"Let's create some mammals.! Please choose the mammal to create.\\n1. Labrador\\n2. Golden Retriver\\n3. Bat\");\n Scanner reader = new Scanner(System.in);\n String text = reader.nextLine();\n switch (text) {\n case \"1\":\n UtilityMethods.print(\"You can call him \" + createLabrador().getName());\n break;\n case \"2\":\n UtilityMethods.print(\"You can call him \" + createGolderRetriver().getName());\n break;\n case \"3\":\n UtilityMethods.print(\"You can call him \" + createBat().getName());\n break;\n default:\n break;\n }\n reader.close();\n } catch (Exception e) {\n UtilityMethods.print(e.getMessage());\n }\n }",
"public void switchTrigFunctions(){\r\n //Three classes Objects for three diff modes\r\n IntegralAngle IA=new IntegralAngle();\r\n NthPower NP=new NthPower();\r\n AngleSum AS=new AngleSum();\r\n //CALCULATIONS ARE BASED ON FACTORIAL AND DOESN'T SUPPORT MORE THAN 20!\r\n \r\n //When SIN is selected\r\n if(trig_combo.getValue().equals(\"SIN\")){\r\n \r\n //Limit Exceeded\r\n if(angleMultiple.get(0)>21){\r\n //Showing error message\r\n type.setTextFill(Color.RED);\r\n type.setText(\"INVALID ANGLE INTEGRAL\");\r\n type.setText(type.getText()+\"\\nIntegral should be less than 20 because of your PC limitations\");\r\n }\r\n //Outputting result on the screen\r\n else {\r\n type.setTextFill(Color.GREEN);\r\n type.setText(\"Your Sine Expansion -->\");\r\n \r\n //For Sin(nx) mode\r\n if(switch_modes()==-1)\r\n IA.SinnXExpansion(hbox1,upon);\r\n \r\n //For Sin(x) Raise to the power n\r\n else if(switch_modes()==-2)\r\n NP.sinPower(power_combo,hbox1,hbox2,upon);\r\n \r\n //For Sin(x1+x2+...)\r\n else if(switch_modes()==-3)\r\n AS.sinSum(trig_combo,hbox1,upon);\r\n }\r\n \r\n }\r\n //When Cos is Selected\r\n else if(trig_combo.getValue().equals(\"COS\")){\r\n //Limit Exceeded\r\n if(angleMultiple.get(0)>21){\r\n //Showing error message\r\n type.setTextFill(Color.RED);\r\n type.setText(\"INVALID ANGLE INTEGRAL\");\r\n type.setText(type.getText()+\"\\nIntegral should be less than 20 because of your PC limitations\");\r\n }\r\n else {\r\n type.setTextFill(Color.GREEN);\r\n type.setText(\"Your Cosine Expansion -->\");\r\n \r\n //For Cos(nx) mode\r\n if(switch_modes()==-1)\r\n IA.CosnXExpansion(hbox1,upon);\r\n \r\n //For Cos(x) Raise to the power n\r\n else if(switch_modes()==-2)\r\n NP.cosPower(power_combo,hbox1,hbox2,upon);\r\n \r\n //For Cos(x1+x2+...)\r\n else if(switch_modes()==-3)\r\n AS.cosSum(trig_combo,hbox2,upon);\r\n }\r\n }\r\n //When Tan is Selected\r\n else if(trig_combo.getValue().equals(\"TAN\")){\r\n //Limit Exceeded\r\n if(angleMultiple.get(0)>21){\r\n //Showing error message\r\n type.setTextFill(Color.RED);\r\n type.setText(\"INVALID ANGLE INTEGRAL\");\r\n type.setText(type.getText()+\"\\nIntegral should be less than 20 because of your PC limitations\");\r\n //Resetting Upon Length\r\n upon.setEndX(0);\r\n }\r\n else {\r\n type.setTextFill(Color.GREEN);\r\n type.setText(\"Your Tangent Expansion -->\");\r\n //For Tan(nx) mode\r\n if(switch_modes()==-1)\r\n IA.TannXExpansion(hbox1,hbox2,upon);\r\n \r\n //For Tan(x) Raise to the power n\r\n else if(switch_modes()==-2)\r\n NP.tanPower(power_combo,hbox1,hbox2,upon);\r\n \r\n //For Tan(x1+x2+...)\r\n else if(switch_modes()==-3)\r\n AS.tanSum(trig_combo,hbox1,hbox2,upon);\r\n }\r\n }\r\n }",
"private void fantasySelection() {\n\t\tlowFantasy.addActionListener(new ActionListener() {\n\n\t\t\t@Override\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\tfantasyPoints = 10;\n\t\t\t\ttotalPoints = 0;\n\t\t\t\tfantasyPointsLabel.setText(\"<html>\" + String.valueOf(fantasyPoints) + \"points<br>remaining</html>\");\n\t\t\t\tstrengthSpinner.setValue(10);\n\t\t\t\tdexteritySpinner.setValue(10);\n\t\t\t\tconstitutionSpinner.setValue(10);\n\t\t\t\tintelligenceSpinner.setValue(10);\n\t\t\t\twisdomSpinner.setValue(10);\n\t\t\t\tcharismaSpinner.setValue(10);\n\t\t\t}\n\t\t});\n\n\t\tstandardFantasy.addActionListener(new ActionListener() {\n\n\t\t\t@Override\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\tfantasyPoints = 15;\n\t\t\t\ttotalPoints = 0;\n\t\t\t\tfantasyPointsLabel.setText(\"<html>\" + String.valueOf(fantasyPoints) + \"points<br>remaining</html>\");\n\t\t\t\tstrengthSpinner.setValue(10);\n\t\t\t\tdexteritySpinner.setValue(10);\n\t\t\t\tconstitutionSpinner.setValue(10);\n\t\t\t\tintelligenceSpinner.setValue(10);\n\t\t\t\twisdomSpinner.setValue(10);\n\t\t\t\tcharismaSpinner.setValue(10);\n\t\t\t}\n\t\t});\n\n\t\thighFantasy.addActionListener(new ActionListener() {\n\n\t\t\t@Override\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\tfantasyPoints = 20;\n\t\t\t\ttotalPoints = 0;\n\t\t\t\tfantasyPointsLabel.setText(\"<html>\" + String.valueOf(fantasyPoints) + \"points<br>remaining</html>\");\n\t\t\t\tstrengthSpinner.setValue(10);\n\t\t\t\tdexteritySpinner.setValue(10);\n\t\t\t\tconstitutionSpinner.setValue(10);\n\t\t\t\tintelligenceSpinner.setValue(10);\n\t\t\t\twisdomSpinner.setValue(10);\n\t\t\t\tcharismaSpinner.setValue(10);\n\t\t\t}\n\t\t});\n\n\t\tepicFantasy.addActionListener(new ActionListener() {\n\n\t\t\t@Override\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\tfantasyPoints = 25;\n\t\t\t\ttotalPoints = 0;\n\t\t\t\tfantasyPointsLabel.setText(\"<html>\" + String.valueOf(fantasyPoints) + \"points<br>remaining</html>\");\n\t\t\t\tstrengthSpinner.setValue(10);\n\t\t\t\tdexteritySpinner.setValue(10);\n\t\t\t\tconstitutionSpinner.setValue(10);\n\t\t\t\tintelligenceSpinner.setValue(10);\n\t\t\t\twisdomSpinner.setValue(10);\n\t\t\t\tcharismaSpinner.setValue(10);\n\t\t\t}\n\t\t});\n\n\t}",
"public void actionPerformed(ActionEvent e){\r\n\t\tif(e.getActionCommand().equals(\"Start\")){\r\n\t\t\ttitleImage();\r\n\t\t}\r\n\t\tif(e.getActionCommand().equals(\"Hint\")){\r\n\t\t\t//guessed = false, the user did not guess all values\r\n\t\t\tguessed = false;\r\n\t\t\t//executed = true, the hint was used\r\n\t\t\texecuted = true;\r\n\t\t\trandom();\r\n\t\t\thint(a,b,c,d,f,g);\r\n\t\t}\r\n\t\tif (e.getSource() == numberField){\r\n\t\t\t//guessed = true, the user guessed all values\r\n\t\t\tguessed = true;\r\n\t\t\tcanvas.add(matrix);\r\n\t\t\tscanTicket();\r\n\t\t\tprintArray(a,b,c,d,f,g);\r\n\t\t\tcompareArray(chArray, randArray);\r\n\t\t\tpointsImage(points);\r\n\t\t\tnumberImage();\r\n\t\t\tstringImage(ch1,ch2,ch3,ch4,ch5,ch6);\r\n\t\t\t//executed = false, the hint was not used\r\n\t\t\texecuted = false;\r\n\t\t\tmatch1 = false;\r\n\t\t\tmatch2 = false;\r\n\t\t\tmatch3 = false;\r\n\t\t\tmatch4 = false;\r\n\t\t\tmatch5 = false;\r\n\t\t\tmatch6 = false;\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 jLabel1 = new javax.swing.JLabel();\n jLabel2 = new javax.swing.JLabel();\n jComboBox1 = new javax.swing.JComboBox<>();\n jButton1 = new javax.swing.JButton();\n jTextField1 = new javax.swing.JTextField();\n jButton2 = new javax.swing.JButton();\n jLabel3 = new javax.swing.JLabel();\n jLabel4 = new javax.swing.JLabel();\n\n setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE);\n\n jLabel1.setFont(new java.awt.Font(\"Arial Black\", 2, 36)); // NOI18N\n jLabel1.setText(\"Cyclomatic Complexity\");\n\n jLabel2.setFont(new java.awt.Font(\"Arial\", 2, 24)); // NOI18N\n jLabel2.setText(\"Choose language for your program\");\n\n jComboBox1.setFont(new java.awt.Font(\"Arial\", 2, 24)); // NOI18N\n jComboBox1.setModel(new javax.swing.DefaultComboBoxModel<>(new String[] { \"C\", \"C++\", \"Java\", \"Python\" }));\n\n jButton1.setFont(new java.awt.Font(\"Arial\", 2, 24)); // NOI18N\n jButton1.setText(\"Upload Program\");\n jButton1.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n jButton1ActionPerformed(evt);\n }\n });\n\n jTextField1.setFont(new java.awt.Font(\"Arial Black\", 2, 24)); // NOI18N\n\n jButton2.setFont(new java.awt.Font(\"Arial\", 2, 24)); // NOI18N\n jButton2.setText(\"Click to check complexity\");\n jButton2.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n jButton2ActionPerformed(evt);\n }\n });\n\n jLabel3.setFont(new java.awt.Font(\"Arial\", 2, 24)); // NOI18N\n jLabel3.setText(\"The Cyclomatic Complexity of your program is\");\n\n jLabel4.setFont(new java.awt.Font(\"Arial Black\", 3, 20)); // NOI18N\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 .addGap(37, 37, 37)\n .addComponent(jLabel3, javax.swing.GroupLayout.DEFAULT_SIZE, 580, Short.MAX_VALUE)\n .addGap(18, 18, 18)\n .addComponent(jTextField1, javax.swing.GroupLayout.PREFERRED_SIZE, 191, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGap(31, 31, 31))\n .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, layout.createSequentialGroup()\n .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addComponent(jLabel4, javax.swing.GroupLayout.PREFERRED_SIZE, 355, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGap(196, 196, 196))\n .addGroup(layout.createSequentialGroup()\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(layout.createSequentialGroup()\n .addGap(208, 208, 208)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(jButton2)\n .addComponent(jButton1, javax.swing.GroupLayout.PREFERRED_SIZE, 303, javax.swing.GroupLayout.PREFERRED_SIZE)))\n .addGroup(layout.createSequentialGroup()\n .addGap(143, 143, 143)\n .addComponent(jLabel1, javax.swing.GroupLayout.PREFERRED_SIZE, 476, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGroup(layout.createSequentialGroup()\n .addGap(47, 47, 47)\n .addComponent(jLabel2, javax.swing.GroupLayout.PREFERRED_SIZE, 399, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGap(101, 101, 101)\n .addComponent(jComboBox1, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, 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 .addGap(29, 29, 29)\n .addComponent(jLabel1)\n .addGap(50, 50, 50)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(jLabel2, javax.swing.GroupLayout.PREFERRED_SIZE, 48, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(jComboBox1, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGap(48, 48, 48)\n .addComponent(jButton1)\n .addGap(27, 27, 27)\n .addComponent(jButton2, javax.swing.GroupLayout.PREFERRED_SIZE, 40, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGap(34, 34, 34)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(jLabel3, javax.swing.GroupLayout.PREFERRED_SIZE, 31, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(jTextField1, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGap(36, 36, 36)\n .addComponent(jLabel4, javax.swing.GroupLayout.DEFAULT_SIZE, 145, Short.MAX_VALUE)\n .addContainerGap())\n );\n\n pack();\n setLocationRelativeTo(null);\n }",
"public static void main( String[] args )\n {\n Scanner kbd = new Scanner( System.in );\n boolean done = false;\n\n Ch12Ex1to9 exercise = new Ch12Ex1to9();\n\n do\n {\n System.out.println();\n System.out.println();\n System.out.println( \"Make a selection\" );\n System.out.println();\n System.out.println( \" (1) Discount Prices\" );\n System.out.println( \" (2) Order Checker\" );\n System.out.println( \" (3) Last Chance Gas\" );\n System.out.println( \" (4) Ground Beef Value Calculator\" );\n System.out.println( \" (5) Y2K Problem Detector\" );\n System.out.println( \" (6) Wind Chill Index\" );\n System.out.println( \" (7) Your Age in Seconds\" );\n System.out.println( \" (8) Matinee Movie Tickets\" );\n System.out.println( \" (9) Midnight Madness\" );\n System.out.println( \" (Q) Quit\" );\n System.out.println();\n System.out.print( \"Enter a choice: \" );\n String response = kbd.nextLine();\n\n if ( response.length() > 0 )\n {\n System.out.println();\n\n switch ( response.charAt( 0 ) )\n {\n case '1':\n exercise.discountPrices();\n break;\n case '2':\n exercise.orderChecker();\n break;\n case '3':\n exercise.lastChanceGas();\n break;\n case '4':\n exercise.groundBeefValueCalc();\n break;\n case '5':\n exercise.y2KProblemDetector();\n break;\n case '6':\n exercise.windChillIndex();\n break;\n case '7':\n exercise.yourAgeInSeconds();\n break;\n case '8':\n exercise.matineeMovieTickets();\n break;\n case '9':\n exercise.midnightMadness();\n break;\n default:\n if ( response.toLowerCase().charAt( 0 ) == 'q' )\n {\n done = true;\n }\n else\n {\n System.out.print( \"Invalid Choice\" );\n }\n break;\n }\n }\n } while ( !done );\n System.out.println( \"Goodbye!\" );\n }",
"public void runProgram() {\n\t\tJTextPane code = ((MinLFile) tabbedPane.getSelectedComponent()).CodeArea;\n\t\tminc.consolearea.setText(\"\");\n\t\tinterpretorMainMethod(code.getText(), 0);\n\t\tdouble_variables.clear();\n\t\tstring_variables.clear();\n\t\tfunctions.clear();\n\t}",
"@SuppressWarnings(\"deprecation\")\n\t\t\t@Override\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\tswitch(cbAlgorithm.getSelectedItem().toString()) {\n\t\t\t\tcase \"DES\":\n\t\t\t\t\ttxtEnter.enable();\n\t\t\t\t\ttxtKeyHex.setVisible(true);\n\t\t\t\t\tpanelSelectKey.setVisible(false);\n\t\t\t\t\tcbKeyLength.setModel(new DefaultComboBoxModel(DESKeyLength));\n\t\t\t\t\tbreak;\n\t\t\t\tcase \"AES\":\n\t\t\t\t\ttxtEnter.enable();\n\t\t\t\t\ttxtKeyHex.setVisible(true);\n\t\t\t\t\tpanelSelectKey.setVisible(false);\n\t\t\t\t\tcbKeyLength.setModel(new DefaultComboBoxModel(AESKeyLength));\n\t\t\t\t\tbreak;\n\t\t\t\tcase \"RSA\":\n\t\t\t\t\ttxtEnter.disable();\n\t\t\t\t\ttxtKeyHex.setVisible(false);\n\t\t\t\t\tpanelSelectKey.setVisible(true);\n\t\t\t\t\tcbKeyLength.setModel(new DefaultComboBoxModel(RSAKeyLength));\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t}",
"private void initActionListeners(){\n\n// button.addActionListener(new ActionListener() {\n// @Override\n// public void actionPerformed(ActionEvent e) {\n// createMatchesFrame();\n// }\n// });\n\n littlesRankingsBox.addActionListener(new ActionListener() {\n @Override\n public void actionPerformed(ActionEvent e) {\n JComboBox littlebox = (JComboBox) e.getSource();\n Object selected = littlebox.getSelectedItem();\n if (selected.toString().equals(\"Clear\")){\n setLinedText(littlesRankingsResultsLabel, new ArrayList<String>());\n return;\n }\n ArrayList<String> prefBigs = matching.littlesPreferences.get(selected);\n// infoPanel.littlesRankingsResultsLabel.setText(prefBigs.toString());\n setLinedText(littlesRankingsResultsLabel, prefBigs);\n\n\n }\n });\n bigsRankingsBox.addActionListener(new ActionListener() {\n @Override\n public void actionPerformed(ActionEvent e) {\n JComboBox bigbox = (JComboBox) e.getSource();\n Object selected = bigbox.getSelectedItem();\n if (selected.toString().equals(\"Clear\")){\n setLinedText(bigsRankingsResultsLabel, new ArrayList<String>());\n return;\n }\n ArrayList<String> prefLittles = matching.bigsPreferences.get(selected);\n// infoPanel.bigsRankingsResultsLabel.setText(prefLittles.toString());\n setLinedText(bigsRankingsResultsLabel, prefLittles);\n\n }\n });\n\n whoRanksLittleBox.addActionListener(new ActionListener() {\n @Override\n public void actionPerformed(ActionEvent e) {\n JComboBox littlebox = (JComboBox) e.getSource();\n Object selected = littlebox.getSelectedItem();\n String selectedLittle = selected.toString();\n if (selected.toString().equals(\"Clear\")){\n setLinedText(whoRanksLittleResultsLabel, new ArrayList<String>());\n return;\n }\n findBigsWhoRankedLittle(selectedLittle);\n\n }\n });\n whoRanksBigBox.addActionListener(new ActionListener() {\n @Override\n public void actionPerformed(ActionEvent e) {\n JComboBox bigbox = (JComboBox) e.getSource();\n Object selected = bigbox.getSelectedItem();\n String selectedBig = selected.toString();\n if (selected.toString().equals(\"Clear\")){\n setLinedText(whoRanksBigResultsLabel, new ArrayList<String>());\n return;\n }\n findLittlesWhoRankedBig(selectedBig);\n\n }\n });\n }",
"public void calculateMethod() {\n\n if (counter != 16) {\n ifElseCalculation();\n } else {\n ifElseCalculation();\n\n //saves final Points for 2nd Activity\n shareData();\n //opens 2nd Activity for Result\n Intent intent = new Intent(this, EditTextActivity.class);\n startActivity(intent);\n }\n\n /**\n * Set back all Buttons\n */\n checkedA = false;\n checkedB = false;\n checkedC = false;\n checkedD = false;\n\n /**\n * Set up all included Views for the next Question\n */\n nextQuestion();\n }",
"public static void main(String[] args) {\n //Instantiate all variables\n\t\tRandom rand = new Random();\n\t\tscan = new Scanner(System.in);\n\t\ttype = new String[]{\"Modus Ponens\", \"Modus Tollens\", \"Process of Elimination\", \"Chain Rule\", \"Affirming the Consequent\", \"Denying the Antecedent\", \"Begging the Question\"}; \n\t\tpremise = new String[]{\"I study hard\", \"you have a current password\", \"it is raining\", \"it is after 10PM\", \"the weather is nice\", \"the dog is barking\", \"the house is on fire\", \"you work hard\", \"you stay inside all day\", \"you participate in the race\", \"you take the new position\"};\n\t\tconclusion = new String[]{\"I will get an A\", \"you can log on to the network\", \"the road will get wet\", \"the store will be closed\", \"Joe will take a walk\", \"the neighbors will get mad\", \"everything is ruined\", \"you will pass the test\", \"you will get the job\", \"long distance space travel is possibe\", \"the stock market will crash\"};\n auth = new String[]{\"The boss says\", \"My father told me that\", \"According to the news\", \"According to the internet\", \"Scientists agree that\", \"Elon Musk assures us that\", \"It has been proven that\"};\n\n\t\t\n\t\n\t\twhile(running) { // Main loop\n\t\t\ttry {\n mode = \"\";\n menu();\n\t\t\t\tSystem.out.print(\"\\nSelect argument: \");\n\t\t\t\tString selection = scan.next();\n System.out.print(\"\\033[H\\033[2J\"); \n System.out.flush(); // clear the console\n \n\t\t\t\tif(Integer.parseInt(selection) < 1 || Integer.parseInt(selection) > 8)\n\t\t\t\t{\n\t\t\t\t\tSystem.err.println(\"\\nSelection must be within range\\n\");\n\t\t\t\t}\n\t\t\t\telse if(Integer.parseInt(selection) >= 1 && Integer.parseInt(selection) <= 7){\n\t\t\t\t\t \n while(mode == \"\"){ // inner loop to ensure that proper input was entered\n System.out.println(\"\\nYou have selected: \"+type[Integer.parseInt(selection)-1]);\n System.out.print(\"\\n1. Automatic:\\n2. User input:\\n\\nSelect mode: \");\n\t\t\t\t mode = scan.next();\n if(Integer.parseInt(mode) != 1 && Integer.parseInt(mode) != 2) {\n System.err.println(\"\\nSelection must be within range\\n\");\n mode = \"\";\n end();\n continue;\n }\n }\n \n scan.nextLine(); // Clear the scanner for next input\n }\n\t\t\t\telse if(Integer.parseInt(selection) == 8) { // Quit\n\t\t\t\t\tSystem.out.println(\"Goodbye\");\n\t\t\t\t\tSystem.exit(1);\n\t\t\t\t}\n\t\t\t\telse\n\t\t\t\t\tSystem.err.println(\"You entered invalid input, please try again\");\n \n String autho = auth[rand.nextInt(auth.length)];\n if(Integer.parseInt(mode) == 1)\n auto = true; \n else\n auto = false;\n\t\t\t\tif(Integer.parseInt(selection) == 1) { // Modus Ponens\n String prem = \"\";\n\t\t\t\t\tString conc = \"\";\n if(auto){ // if Auto was selected\n prem = premise[rand.nextInt(premise.length)];\n\t\t\t\t\t conc = conclusion[rand.nextInt(conclusion.length)];\n }else{ // if Manual was selected\n System.out.print(\"\\nEnter a premise: \");\n prem = scan.nextLine();\n System.out.print(\"\\nEnter a conclusion: \");\n\t\t\t\t\t conc = scan.nextLine();\n }\n System.out.println(\"\\nGenerated argument: \");\n\t\t\t\t\tSystem.out.println(\"\\n\\\"\"+auth[rand.nextInt(auth.length)]+\", if \"+prem+\", then \"+conc+\". \" +prem+\", therefore, \"+conc+\".\\\"\");\n end();\n\t\t\t\t}\n if(Integer.parseInt(selection) == 2){ // Modus Tollens\n String prem = \"\";\n\t\t\t\t\tString conc = \"\";\n if(auto){ // if Auto was selected\n prem = premise[rand.nextInt(premise.length)];\n\t\t\t\t\t conc = conclusion[rand.nextInt(conclusion.length)];\n }else{ // if Manual was selected\n System.out.print(\"\\nEnter a premise: \");\n prem = scan.nextLine();\n System.out.print(\"\\nEnter a conclusion: \");\n\t\t\t\t\t conc = scan.nextLine();\n }\n System.out.println(\"\\nGenerated argument: \");\n\t\t\t\t\tSystem.out.println(\"\\n\\\"\"+auth[rand.nextInt(auth.length)]+\", if \"+prem+\", then \"+conc+\". It is not the case that \" +prem+\", therefore, it is not the case that \"+conc+\".\\\"\");\n end();\n }\n if(Integer.parseInt(selection) == 3){ // Process of Elimination\n int prem1int = rand.nextInt(premise.length);\n int prem2int = rand.nextInt(premise.length);\n String prem = \"\";\n String prem2 = \"\";\n if(auto){ // if Auto was selected\n while(prem1int == prem2int){\n prem2int = rand.nextInt(premise.length);\n }\n prem = premise[prem1int];\n prem2 = premise[prem2int];\n }else{ // if Manual was selected\n System.out.print(\"\\nEnter a premise: \");\n prem = scan.nextLine();\n System.out.print(\"\\nEnter another premise: \");\n prem2 = scan.nextLine();\n }\n System.out.println(\"\\nGenerated argument: \");\n \n int flip = rand.nextInt(2);\n if(flip == 1){\n System.out.println(\"\\n\\\"\"+auth[rand.nextInt(auth.length)]+\", it is either the case that \"+prem+\" or, \"+prem2+\". It is not the case that \" +prem+\", therefore, \"+prem2+\".\\\"\");\n }\n else{\n System.out.println(\"\\\"\\n\"+auth[rand.nextInt(auth.length)]+\", it is either the case that \"+prem+\" or, \"+prem2+\". It is not the case that \" +prem2+\", therefore, \"+prem+\".\\\"\");\n }\n end();\n }\n if(Integer.parseInt(selection) == 4){ // Chain rule\n int prem1int = rand.nextInt(premise.length);\n int prem2int = rand.nextInt(premise.length);\n int prem3int = rand.nextInt(premise.length);\n String prem = \"\";\n String prem2 = \"\";\n String prem3 = \"\";\n if(auto){ // if Auto was selected\n while(prem1int == prem3int){\n prem2int = rand.nextInt(premise.length);\n prem3int = rand.nextInt(premise.length);\n }\n prem = premise[prem1int];\n prem2 = conclusion[prem2int];\n prem3 = premise[prem3int];\n }else{ // if Manual was selected\n System.out.print(\"\\nEnter a premise: \");\n prem = scan.nextLine();\n System.out.print(\"\\nEnter another premise: \");\n prem2 = scan.nextLine();\n System.out.print(\"\\nEnter one more premise: \");\n prem3 = scan.nextLine();\n }\n System.out.println(\"\\nGenerated argument: \");\n System.out.println(\"\\n\\\"\"+auth[rand.nextInt(auth.length)]+\", if \"+prem+\", then \"+prem2+\". If \"+prem2+\", then \"+prem3+\". \"+prem+\", therefore, \"+prem3+\".\\\"\");\n end();\n }\n if(Integer.parseInt(selection) == 5){ // Affirming the Consequent\n String prem = \"\";\n\t\t\t\t\tString conc = \"\";\n if(auto){ // if Auto was selected\n prem = premise[rand.nextInt(premise.length)];\n\t\t\t\t\t conc = conclusion[rand.nextInt(conclusion.length)];\n }else{ // if Manual was selected\n System.out.print(\"\\nEnter a premise: \");\n prem = scan.nextLine();\n System.out.print(\"\\nEnter a conclusion: \");\n\t\t\t\t\t conc = scan.nextLine();\n }\n System.out.println(\"\\nGenerated argument: \");\n\t\t\t\t\tSystem.out.println(\"\\n\\\"\"+auth[rand.nextInt(auth.length)]+\", if \"+prem+\", then \"+conc+\". \" +conc+\", therefore, \"+prem+\".\\\"\");\n end();\n }\n if(Integer.parseInt(selection) == 6){ //Denying the Antecedent\n String prem = \"\";\n\t\t\t\t\tString conc = \"\";\n if(auto){ // if Auto was selected\n prem = premise[rand.nextInt(premise.length)];\n\t\t\t\t\t conc = conclusion[rand.nextInt(conclusion.length)];\n }else{ // if Manual was selected\n System.out.print(\"\\nEnter a premise: \");\n prem = scan.nextLine();\n System.out.print(\"\\nEnter a conclusion: \");\n\t\t\t\t\t conc = scan.nextLine();\n }\n System.out.println(\"\\nGenerated argument: \");\n\t\t\t\t\tSystem.out.println(\"\\n\\\"\"+auth[rand.nextInt(auth.length)]+\", if \"+prem+\", then \"+conc+\". It is not the case that \" +conc+\", therefore, it is not the case that \"+prem+\".\\\"\");\n end();\n }\n if(Integer.parseInt(selection) == 7){ // Begging the Question\n String prem = \"\";\n if(auto){ // if Auto was selected\n prem = premise[rand.nextInt(premise.length)];\n }else{ // if Manual was selected\n System.out.print(\"\\nEnter a premise: \");\n prem = scan.nextLine();\n }\n System.out.println(\"\\nGenerated argument: \");\n\t\t\t\t\tSystem.out.println(\"\\n\\\"\"+prem+\", therefore, \"+prem+\".\\\"\");\n end();\n }\n\t\t\t}catch(Exception e) { // Handle any input errors here\n\t\t\t\tSystem.err.println(\"\\nPlease select a valid argument\\n\" + e.getMessage());\n\t\t\t}\n\t\t\t\n\t\t}\n\t\t\n\t}",
"@Override\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\tString set1input = textField.getText();\n\t\t\t\tString set2input = textField_1.getText();\n\t\t\t\t\n\t\t\t\tArrayList<String> list1 = new ArrayList<String>(Arrays.asList(set1input.split(\",\")));\n\t\t\t\t\n\t\t\t\tArrayList<String> list2 = new ArrayList<String>(Arrays.asList(set2input.split(\",\")));\n\t\t\t\t\n\t\t\t\t//Let this be the array where the members from both sets will be added as a result\n\t\t\t\tArrayList<String> result = new ArrayList<String>();\n\t\t\t\t\n\t\t\t\tswitch(comboBox.getSelectedItem().toString())\n\t\t\t\t{\n\t\t\t\tcase \"Union\":\n\t\t\t\t\tunion(list1, list2, result, textArea);\n\t\t\t\t\tbreak;\n\t\t\t\t\n\t\t\t\tcase \"Intersection\":\n\t\t\t\t\tintersection(list1, list2, result, textArea);\n\t\t\t\t\tbreak;\n\t\t\t\t\n\t\t\t\tcase \"Subtraction\":\n\t\t\t\t\tsubtraction(list1, list2, result, textArea);\n\t\t\t\t\tbreak;\n\t\t\t\t\n\t\t\t\tcase \"Product\":\n\t\t\t\t\tproduct(list1, list2, result, textArea);\n\t\t\t\t\tbreak;\n\t\t\t\t\n\t\t\t\tcase \"Complement\":\n\t\t\t\t\tcomplement(list1, list2, result, textArea);\n\t\t\t\t\tbreak;\n\t\t\t\t\t\n\t\t\t\tcase \"Power Set\":\n\t\t\t\t\tpowerset(list1, list2, textArea);\n\t\t\t\t\tbreak;\n\t\t\t\t\n\t\t\t\tcase \"Sequence Concatenation\":\n\t\t\t\t\tseqconcat(list1, list2, result, textArea);\n\t\t\t\t\tbreak;\n\t\t\t\t\n\t\t\t\tcase \"Sequence Filter Operation\":\n\t\t\t\t\tseqfilter(list1, list2, result, textArea);\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t}",
"@Override\r\n public void actionPerformed(ActionEvent e) {\r\n if (e.getActionCommand().equals(\"tableOpen\")) {\r\n TablePlotting tp = new TablePlotting();\r\n System.out.println(\"Table Panel is opened.\");\r\n }\r\n \r\n if (e.getActionCommand().equals(\"Bisection\")) {\r\n if (method3.isSelected()) {\r\n xValueUserText.setEditable(false);\r\n xLeftBisectionB.setEditable(true);\r\n xRightBisectionB.setEditable(true);\r\n } else {\r\n xValueUserText.setEditable(true);\r\n xLeftBisectionB.setEditable(false);\r\n xRightBisectionB.setEditable(false);\r\n }\r\n }\r\n\r\n if (e.getActionCommand().equals(\"Secant\")) {\r\n if (method2.isSelected()) {\r\n xValueUserText.setEditable(true);\r\n xLeftBisectionB.setEditable(false);\r\n xRightBisectionB.setEditable(false);\r\n }\r\n }\r\n \r\n if (e.getActionCommand().equals(\"Newton-Raphson\")) {\r\n if (method1.isSelected()) {\r\n xValueUserText.setEditable(true);\r\n xLeftBisectionB.setEditable(false);\r\n xRightBisectionB.setEditable(false);\r\n }\r\n }\r\n \r\n//<editor-fold defaultstate=\"collapsed\" desc=\"FirstFunction\">\r\n if (e.getActionCommand().equals(\"FirstFunction\")) {\r\n if (!method3.isSelected() && iterations.getText().equals(\"\")) {\r\n JOptionPane.showMessageDialog(this, \"Please enter a number of iterations. \");\r\n } else if (method3.isSelected() && iterations.getText().equals(\"\")) {\r\n JOptionPane.showMessageDialog(this, \"Please enter a number of iterations. \");\r\n } else {\r\n FunctionPlotting.First();\r\n if (method1.isSelected()) {\r\n if (xValueUserText.getText().equals(\"\") && iterations.getText().equals(\"\")) {\r\n JOptionPane.showMessageDialog(this, \"Please enter a value for X and number of iterations. \");\r\n } else if (xValueUserText.getText().equals(\"\") && !iterations.getText().equals(\"\")) {\r\n JOptionPane.showMessageDialog(this, \"Please enter a value for X. \");\r\n } else if (!xValueUserText.getText().equals(\"\") && iterations.getText().equals(\"\")) {\r\n JOptionPane.showMessageDialog(this, \"Please enter a number of iterations. \");\r\n } else {\r\n NewtonRaphsonMethod.FirstF();\r\n }\r\n } else if (method2.isSelected()) {\r\n if (xValueUserText.getText().equals(\"\") && iterations.getText().equals(\"\")) {\r\n JOptionPane.showMessageDialog(this, \"Please enter a value for X and number of iterations. \");\r\n } else if (xValueUserText.getText().equals(\"\") && !iterations.getText().equals(\"\")) {\r\n JOptionPane.showMessageDialog(this, \"Please enter a value for X. \");\r\n } else if (!xValueUserText.getText().equals(\"\") && iterations.getText().equals(\"\")) {\r\n JOptionPane.showMessageDialog(this, \"Please enter a number of iterations. \");\r\n } else {\r\n SecantMethod.FirstF();\r\n }\r\n } else if (method3.isSelected()) {\r\n if (iterations.getText().equals(\"\")) {\r\n JOptionPane.showMessageDialog(this, \"Please enter a number of iterations. \");\r\n } else if (xLeftBisectionB.getText().equals(\"\") && xRightBisectionB.getText().equals(\"\")) {\r\n JOptionPane.showMessageDialog(this, \"Please enter lower and upper bounds for Bisection method! \");\r\n } else if (xLeftBisectionB.getText().equals(\"\")) {\r\n JOptionPane.showMessageDialog(this, \"Please enter lower bound for Bisection method! \");\r\n } else if (xRightBisectionB.getText().equals(\"\")) {\r\n JOptionPane.showMessageDialog(this, \"Please enter upper bound for Bisection method! \");\r\n } else {\r\n BisectionMethod.FirstF();\r\n }\r\n }\r\n }\r\n }\r\n//</editor-fold>\r\n\r\n//<editor-fold defaultstate=\"collapsed\" desc=\"SecondFunction\">\r\n if (e.getActionCommand().equals(\"SecondFunction\")) {\r\n if (!method3.isSelected() && iterations.getText().equals(\"\")) {\r\n JOptionPane.showMessageDialog(this, \"Please enter a number of iterations. \");\r\n } else if (method3.isSelected() && iterations.getText().equals(\"\")) {\r\n JOptionPane.showMessageDialog(this, \"Please enter a number of iterations. \");\r\n } else {\r\n FunctionPlotting.Second();\r\n if (method1.isSelected()) {\r\n if (xValueUserText.getText().equals(\"\") && iterations.getText().equals(\"\")) {\r\n JOptionPane.showMessageDialog(this, \"Please enter a value for X and number of iterations. \");\r\n } else if (xValueUserText.getText().equals(\"\") && !iterations.getText().equals(\"\")) {\r\n JOptionPane.showMessageDialog(this, \"Please enter a value for X. \");\r\n } else if (!xValueUserText.getText().equals(\"\") && iterations.getText().equals(\"\")) {\r\n JOptionPane.showMessageDialog(this, \"Please enter a number of iterations. \");\r\n } else {\r\n NewtonRaphsonMethod.SecondF(); \r\n }\r\n } else if (method2.isSelected()) {\r\n if (xValueUserText.getText().equals(\"\") && iterations.getText().equals(\"\")) {\r\n JOptionPane.showMessageDialog(this, \"Please enter a value for X and number of iterations. \");\r\n } else if (xValueUserText.getText().equals(\"\") && !iterations.getText().equals(\"\")) {\r\n JOptionPane.showMessageDialog(this, \"Please enter a value for X. \");\r\n } else if (!xValueUserText.getText().equals(\"\") && iterations.getText().equals(\"\")) {\r\n JOptionPane.showMessageDialog(this, \"Please enter a number of iterations. \");\r\n } else {\r\n SecantMethod.SecondF();\r\n }\r\n } else if (method3.isSelected()) {\r\n if (iterations.getText().equals(\"\")) {\r\n JOptionPane.showMessageDialog(this, \"Please enter a number of iterations. \");\r\n } else if (xLeftBisectionB.getText().equals(\"\") && xRightBisectionB.getText().equals(\"\")) {\r\n JOptionPane.showMessageDialog(this, \"Please enter lower and upper bounds for Bisection method! \");\r\n } else if (xLeftBisectionB.getText().equals(\"\")) {\r\n JOptionPane.showMessageDialog(this, \"Please enter lower bound for Bisection method! \");\r\n } else if (xRightBisectionB.getText().equals(\"\")) {\r\n JOptionPane.showMessageDialog(this, \"Please enter upper bound for Bisection method! \");\r\n } else {\r\n BisectionMethod.SecondF();\r\n }\r\n }\r\n }\r\n }\r\n//</editor-fold>\r\n\r\n//<editor-fold defaultstate=\"collapsed\" desc=\"ThirdFunction\">\r\n if (e.getActionCommand().equals(\"ThirdFunction\")) {\r\n if (!method3.isSelected() && iterations.getText().equals(\"\")) {\r\n JOptionPane.showMessageDialog(this, \"Please enter a number of iterations. \");\r\n } else if (method3.isSelected() && iterations.getText().equals(\"\")) {\r\n JOptionPane.showMessageDialog(this, \"Please enter a number of iterations. \");\r\n } else {\r\n FunctionPlotting.Third();\r\n if (method1.isSelected()) {\r\n if (xValueUserText.getText().equals(\"\") && iterations.getText().equals(\"\")) {\r\n JOptionPane.showMessageDialog(this, \"Please enter a value for X and number of iterations. \");\r\n } else if (xValueUserText.getText().equals(\"\") && !iterations.getText().equals(\"\")) {\r\n JOptionPane.showMessageDialog(this, \"Please enter a value for X. \");\r\n } else if (!xValueUserText.getText().equals(\"\") && iterations.getText().equals(\"\")) {\r\n JOptionPane.showMessageDialog(this, \"Please enter a number of iterations. \");\r\n } else {\r\n NewtonRaphsonMethod.ThirdF();\r\n }\r\n } else if (method2.isSelected()) {\r\n if (xValueUserText.getText().equals(\"\") && iterations.getText().equals(\"\")) {\r\n JOptionPane.showMessageDialog(this, \"Please enter a value for X and number of iterations. \");\r\n } else if (xValueUserText.getText().equals(\"\") && !iterations.getText().equals(\"\")) {\r\n JOptionPane.showMessageDialog(this, \"Please enter a value for X. \");\r\n } else if (!xValueUserText.getText().equals(\"\") && iterations.getText().equals(\"\")) {\r\n JOptionPane.showMessageDialog(this, \"Please enter a number of iterations. \");\r\n } else {\r\n SecantMethod.ThirdF();\r\n }\r\n } else if (method3.isSelected()) {\r\n if (iterations.getText().equals(\"\")) {\r\n JOptionPane.showMessageDialog(this, \"Please enter a number of iterations. \");\r\n } else if (xLeftBisectionB.getText().equals(\"\") && xRightBisectionB.getText().equals(\"\")) {\r\n JOptionPane.showMessageDialog(this, \"Please enter lower and upper bounds for Bisection method! \");\r\n } else if (xLeftBisectionB.getText().equals(\"\")) {\r\n JOptionPane.showMessageDialog(this, \"Please enter lower bound for Bisection method! \");\r\n } else if (xRightBisectionB.getText().equals(\"\")) {\r\n JOptionPane.showMessageDialog(this, \"Please enter upper bound for Bisection method! \");\r\n } else {\r\n BisectionMethod.ThirdF();\r\n }\r\n }\r\n }\r\n }\r\n//</editor-fold>\r\n }",
"public static void main(String[] args) throws Exception {\n\n String[] options=new String[2];\n options[0]=\"Smart\";\n options[1]=\"Dummy\";\n String choice=\"\";\n String availableChars[] = {\"5x5maze.txt\",\"7x7maze.txt\",\"8x8maze.txt\",\"9x9maze.txt\",\"10x10maze.txt\",\"12x12maze.txt\"};\n\n int choiceG = JOptionPane.showOptionDialog(JOptionPane.getRootFrame(),\n \"Would you like to use the smart or dummy solution?\",\n \"Flow Free solver\",0,\n JOptionPane.INFORMATION_MESSAGE,null,options,null\n );\n if(choiceG==0){\n choice = (String) JOptionPane.showInputDialog(JOptionPane.getRootFrame(),\n \"Which puzzle size would you like to solve?\",\n \"Choose puzzle\",\n JOptionPane.PLAIN_MESSAGE,\n null,\n availableChars,\n 2);\n try{\n int[][] numberedMap=loadMap(choice);\n Node[] map=linkNodes(numberedMap);\n height=numberedMap.length;\n width=numberedMap[0].length;\n\n FlowDrawer.getInstance();\n FlowDrawer.setBoard(numberedMap);\n FlowFinder f=new FlowFinder(numberedMap,map,false);\n }\n catch(Exception e){System.out.println(e+\" \"+e.getStackTrace()[0].getLineNumber());}\n }\n else{\n choice = (String) JOptionPane.showInputDialog(JOptionPane.getRootFrame(),\n \"Which puzzle size would you like to solve?\",\n \"Choose puzzle\",\n JOptionPane.PLAIN_MESSAGE,\n null,\n availableChars,\n 2);\n try{\n int[][] numberedMap=loadMap(choice);\n Node[] map=linkNodes(numberedMap);\n height=numberedMap.length;\n width=numberedMap[0].length;\n\n FlowDrawer.getInstance();\n FlowDrawer.setBoard(numberedMap);\n FlowFinder f=new FlowFinder(numberedMap,map,true);\n }\n catch(Exception e){System.out.println(e+\" \"+e.getStackTrace()[0].getLineNumber());}\n }\n\n\n\n }",
"private void initSelectedAlgoVisuals()\r\n\t{\r\n\t String searchText = useKDTreeToSearch ? \"Using KDTree for Nearest Neighbour Search\" : \"Using Linear Search for Nearest Neighbour Search\";\r\n\t String hullText = useConcaveHull ? \"Using Concave Hull with digDecider=\"+ConcaveHull.decision : \"Using Convex Hull\";\r\n\t \r\n\t usedAlgorithms.addCodeLine(searchText, null, 0, null);\r\n\t usedAlgorithms.addCodeLine(hullText, null, 0, null);\r\n\t \r\n\t RectProperties rectProps = new RectProperties();\r\n\t rectProps.set(AnimationPropertiesKeys.FILLED_PROPERTY, true);\r\n\t rectProps.set(AnimationPropertiesKeys.FILL_PROPERTY, new Color(100, 200, 100));\r\n\t rectProps.set(AnimationPropertiesKeys.DEPTH_PROPERTY, 2);\r\n\t\tusingRect = lang.newRect(new Offset(-5, -5, \"usedAlgorithmsSourceCode\", AnimalScript.DIRECTION_NW), new Offset(10, 5, \"usedAlgorithmsSourceCode\", AnimalScript.DIRECTION_SE), \"usingInfoBackground\", null, rectProps);\r\n\t}",
"private void demoMenu() {\n System.out.println(\"\\nChoose an algorithm\");\n boolean backCommandIsNotGiven = true;\n\n while (backCommandIsNotGiven) {\n System.out.println(\"1: Merge sort\");\n System.out.println(\"2: Heapsort\");\n System.out.println(\"3: Quicksort\");\n System.out.println(\"x: Back\\n\");\n\n String command = scanner.nextLine();\n backCommandIsNotGiven = handleDemoMenuCommands(command, backCommandIsNotGiven);\n\n if (intSelect.ArrayWasInitializedProperly()) {\n runDemo(command);\n }\n }\n }",
"public void run() {\n List<Node> selNodes = new ArrayList<Node>(selectedPaths.size());\n\n for (Object path : selectedPaths) {\n selNodes.add(findPath(root, (String[]) path));\n }\n\n // set the selection\n Node[] newSelection = selNodes.toArray(new Node[selNodes.size()]);\n\n if (exploredCtx != null) {\n setExploredContext(findPath(root, exploredCtx), newSelection);\n } else {\n setSelectedNodes0(newSelection);\n }\n }",
"void filledOperation() {\r\n String selStr; // variable to store the selected string\r\n\r\n repaint(); // repaint\r\n selStr = (String)cb3.getSelectedItem();\r\n // store the string of the selected item\r\n if (selStr == strFill[0]) { // if \"No\" selected\r\n System.out.println(\"No of menu Filled is selected.\");\r\n System.out.println(\"calling method notFilled().\");\r\n ge.notFilled(gra); // call method notFilled() of class PaintTool\r\n System.out.println(\"method notFilled() executed.\");\r\n } else if (selStr == strFill[1]) { // if \"Yes\" seleted\r\n System.out.println(\"Yes of menu Filled is selected.\");\r\n System.out.println(\"calling method filled().\");\r\n ge.filled(gra); // call method filled() of class PaintTool\r\n System.out.println(\"method filled() executed.\");\r\n }\r\n }",
"public static void main(String[]args) {\n\t\n\t \n\tArgsHandler handler = new ArgsHandler(args);\n if (!handler.empty()) {\n handler.execute();\n }\n \n final int exit = 0;\n final int setValues = 1;\n final int getValues = 2;\n final int execute2 = 3;\n final int printResult = 4;\n String word = null;\n \n /**\n * Our dialog menu with checking of input argumet's of program \n */\n do {\n UI.mainMenu();\n UI.enterChoice();\n switch (UI.getChoice()) {\n case exit:\n if (ArgsHandler.isDebug()) {\n System.out.println(\"\\nYou chosen 0. Exiting...\");\n System.out.format(\"%n############################################################### DEBUG #############################################################\");\n }\n break;\n case setValues:\n if (ArgsHandler.isDebug()) {\n \tSystem.out.format(\"%n############################################################### DEBUG #############################################################\");\n System.out.println(\"\\nYou chosen 1. Setting values...\");\n }\n word = UI.enterValues();\n break;\n case getValues:\n if (ArgsHandler.isDebug()) {\n \tSystem.out.format(\"%n############################################################### DEBUG #############################################################\");\n System.out.println(\"\\nYou chosen 2. Getting values...\");\n }\n if (word != null ) {\n UI.printText(word);\n } else {\n System.out.format(\"%nFirst you need to add values.\");\n }\n break; \n case execute2:\n if (ArgsHandler.isDebug()) {\n \tSystem.out.format(\"%n############################################################### DEBUG #############################################################\");\n System.out.println(\"\\nYou chosen 3. Executing task...\");\n }\n if (word != null) {\n \t final String []lines = NewHelper.DivString(word);\n \t System.out.println(\"\\nTask done...\");\n \t if (ArgsHandler.isDebug()) {\n \t System.out.format(\"%n############################################################### DEBUG #############################################################\");\n \t }\n } else {\n System.out.format(\"%nFirst you need to add values.\");\n }\n break;\n case printResult:\n if (ArgsHandler.isDebug()) {\n \tSystem.out.format(\"%n############################################################### DEBUG #############################################################\");\n System.out.format(\"%nYou chosen 4. \"\n + \"Printing out result...%n\");\n }\n if (word != null) {\n \tfinal String[] lines2 = NewHelper.DivString(word);\n \tfor (final String line2 : lines2) {\n NewHelper.printSymbols(line2);\n NewHelper.printSymbolNumbers(line2);\n \t}\n \tif(ArgsHandler.isDebug()) {\n \tSystem.out.format(\"%n############################################################### DEBUG #############################################################\");\n } \n \telse {\n System.out.format(\"%nFirst you need to add values.\"); \n }\n break;\n }\n default:\n System.out.println(\"\\nEnter correct number.\");\n }\n } while (UI.getChoice() != 0);\n}",
"@SuppressWarnings(\"unchecked\")\n // <editor-fold defaultstate=\"collapsed\" desc=\"Generated Code\">//GEN-BEGIN:initComponents\n private void initComponents() {\n\n dataSetCount = new javax.swing.JTextField();\n dataSetGenerate = new javax.swing.JToggleButton();\n jLabel1 = new javax.swing.JLabel();\n jScrollPane1 = new javax.swing.JScrollPane();\n dataSet = new javax.swing.JTextArea();\n linearSearch = new javax.swing.JButton();\n binarySearch = new javax.swing.JButton();\n jumpSearch = new javax.swing.JButton();\n linearSortedSearch = new javax.swing.JButton();\n binarySortedSearch = new javax.swing.JButton();\n jumpSortedSearch = new javax.swing.JButton();\n sortButton = new javax.swing.JButton();\n interpolationSearch = new javax.swing.JButton();\n interpolationSortedSearch = new javax.swing.JButton();\n jPanel1 = new javax.swing.JPanel();\n jSeparator1 = new javax.swing.JSeparator();\n jPanel2 = new javax.swing.JPanel();\n linearResult = new javax.swing.JTextField();\n binaryResult = new javax.swing.JTextField();\n interpolationResult = new javax.swing.JTextField();\n jumpResult = new javax.swing.JTextField();\n linearSortedResult = new javax.swing.JTextField();\n binarySortedResult = new javax.swing.JTextField();\n interpolationSortedResult = new javax.swing.JTextField();\n jumpSortedResult = new javax.swing.JTextField();\n jLabel3 = new javax.swing.JLabel();\n jPanel3 = new javax.swing.JPanel();\n searchingElement = new javax.swing.JTextField();\n jLabel2 = new javax.swing.JLabel();\n jLabel4 = new javax.swing.JLabel();\n jButton1 = new javax.swing.JButton();\n jLabel5 = new javax.swing.JLabel();\n finalResult = new javax.swing.JLabel();\n bestIs = new javax.swing.JLabel();\n\n setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE);\n setBackground(new java.awt.Color(2, 70, 114));\n getContentPane().setLayout(new org.netbeans.lib.awtextra.AbsoluteLayout());\n getContentPane().add(dataSetCount, new org.netbeans.lib.awtextra.AbsoluteConstraints(10, 50, 97, 35));\n\n dataSetGenerate.setBackground(new java.awt.Color(187, 253, 176));\n dataSetGenerate.setText(\"Generate Random Number set\");\n dataSetGenerate.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n dataSetGenerateActionPerformed(evt);\n }\n });\n getContentPane().add(dataSetGenerate, new org.netbeans.lib.awtextra.AbsoluteConstraints(190, 20, 248, 122));\n\n jLabel1.setText(\"Count of the dataset\");\n getContentPane().add(jLabel1, new org.netbeans.lib.awtextra.AbsoluteConstraints(10, 20, -1, -1));\n\n dataSet.setColumns(20);\n dataSet.setLineWrap(true);\n dataSet.setRows(5);\n dataSet.setEnabled(false);\n jScrollPane1.setViewportView(dataSet);\n\n getContentPane().add(jScrollPane1, new org.netbeans.lib.awtextra.AbsoluteConstraints(450, 20, 590, 120));\n\n linearSearch.setText(\"Linear Search\");\n linearSearch.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n linearSearchActionPerformed(evt);\n }\n });\n getContentPane().add(linearSearch, new org.netbeans.lib.awtextra.AbsoluteConstraints(370, 240, 220, -1));\n\n binarySearch.setText(\"Binary Search\");\n binarySearch.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n binarySearchActionPerformed(evt);\n }\n });\n getContentPane().add(binarySearch, new org.netbeans.lib.awtextra.AbsoluteConstraints(370, 280, 220, -1));\n\n jumpSearch.setText(\"Jump Search\");\n jumpSearch.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n jumpSearchActionPerformed(evt);\n }\n });\n getContentPane().add(jumpSearch, new org.netbeans.lib.awtextra.AbsoluteConstraints(370, 360, 220, -1));\n\n linearSortedSearch.setText(\"Sorted Linear Search\");\n linearSortedSearch.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n linearSortedSearchActionPerformed(evt);\n }\n });\n getContentPane().add(linearSortedSearch, new org.netbeans.lib.awtextra.AbsoluteConstraints(370, 400, 220, -1));\n\n binarySortedSearch.setText(\"Sorted Binary Search\");\n binarySortedSearch.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n binarySortedSearchActionPerformed(evt);\n }\n });\n getContentPane().add(binarySortedSearch, new org.netbeans.lib.awtextra.AbsoluteConstraints(370, 440, 220, -1));\n\n jumpSortedSearch.setText(\"Sorted Jump Search\");\n jumpSortedSearch.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n jumpSortedSearchActionPerformed(evt);\n }\n });\n getContentPane().add(jumpSortedSearch, new org.netbeans.lib.awtextra.AbsoluteConstraints(370, 520, 220, -1));\n\n sortButton.setText(\"Sort the dataset\");\n sortButton.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n sortButtonActionPerformed(evt);\n }\n });\n getContentPane().add(sortButton, new org.netbeans.lib.awtextra.AbsoluteConstraints(10, 100, 160, 40));\n\n interpolationSearch.setText(\"Interpolation Search\");\n interpolationSearch.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n interpolationSearchActionPerformed(evt);\n }\n });\n getContentPane().add(interpolationSearch, new org.netbeans.lib.awtextra.AbsoluteConstraints(370, 320, 220, -1));\n\n interpolationSortedSearch.setText(\"Sorted Interpolation Search\");\n interpolationSortedSearch.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n interpolationSortedSearchActionPerformed(evt);\n }\n });\n getContentPane().add(interpolationSortedSearch, new org.netbeans.lib.awtextra.AbsoluteConstraints(370, 480, 220, -1));\n\n jPanel1.setBackground(new java.awt.Color(237, 255, 135));\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 .addComponent(jSeparator1, javax.swing.GroupLayout.PREFERRED_SIZE, 580, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGap(0, 0, Short.MAX_VALUE))\n );\n jPanel1Layout.setVerticalGroup(\n jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jPanel1Layout.createSequentialGroup()\n .addGap(169, 169, 169)\n .addComponent(jSeparator1, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addContainerGap(175, Short.MAX_VALUE))\n );\n\n getContentPane().add(jPanel1, new org.netbeans.lib.awtextra.AbsoluteConstraints(350, 220, 270, 350));\n\n jPanel2.setBackground(new java.awt.Color(252, 186, 237));\n\n linearResult.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n linearResultActionPerformed(evt);\n }\n });\n\n interpolationResult.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n interpolationResultActionPerformed(evt);\n }\n });\n\n linearSortedResult.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n linearSortedResultActionPerformed(evt);\n }\n });\n\n jLabel3.setText(\"In Nanoseconds\");\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(44, 44, 44)\n .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(linearResult, javax.swing.GroupLayout.PREFERRED_SIZE, 217, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(interpolationSortedResult, javax.swing.GroupLayout.PREFERRED_SIZE, 217, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(jumpSortedResult, javax.swing.GroupLayout.PREFERRED_SIZE, 217, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(binarySortedResult, javax.swing.GroupLayout.PREFERRED_SIZE, 217, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(linearSortedResult, javax.swing.GroupLayout.PREFERRED_SIZE, 217, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(jumpResult, javax.swing.GroupLayout.PREFERRED_SIZE, 217, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(interpolationResult, javax.swing.GroupLayout.PREFERRED_SIZE, 217, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(binaryResult, javax.swing.GroupLayout.PREFERRED_SIZE, 217, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addContainerGap(49, Short.MAX_VALUE))\n .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jPanel2Layout.createSequentialGroup()\n .addGap(0, 0, Short.MAX_VALUE)\n .addComponent(jLabel3))\n );\n jPanel2Layout.setVerticalGroup(\n jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jPanel2Layout.createSequentialGroup()\n .addGap(22, 22, 22)\n .addComponent(linearResult, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)\n .addComponent(binaryResult, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, 17, Short.MAX_VALUE)\n .addComponent(interpolationResult, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGap(18, 18, 18)\n .addComponent(jumpResult, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)\n .addComponent(linearSortedResult, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGap(18, 18, 18)\n .addComponent(binarySortedResult, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)\n .addComponent(interpolationSortedResult, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)\n .addComponent(jumpSortedResult, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGap(10, 10, 10)\n .addComponent(jLabel3))\n );\n\n getContentPane().add(jPanel2, new org.netbeans.lib.awtextra.AbsoluteConstraints(620, 220, 310, 350));\n\n javax.swing.GroupLayout jPanel3Layout = new javax.swing.GroupLayout(jPanel3);\n jPanel3.setLayout(jPanel3Layout);\n jPanel3Layout.setHorizontalGroup(\n jPanel3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGap(0, 258, Short.MAX_VALUE)\n );\n jPanel3Layout.setVerticalGroup(\n jPanel3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGap(0, 70, Short.MAX_VALUE)\n );\n\n getContentPane().add(jPanel3, new org.netbeans.lib.awtextra.AbsoluteConstraints(580, 570, -1, 70));\n\n searchingElement.addFocusListener(new java.awt.event.FocusAdapter() {\n public void focusLost(java.awt.event.FocusEvent evt) {\n searchingElementFocusLost(evt);\n }\n });\n searchingElement.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n searchingElementActionPerformed(evt);\n }\n });\n getContentPane().add(searchingElement, new org.netbeans.lib.awtextra.AbsoluteConstraints(80, 290, 120, -1));\n\n jLabel2.setText(\"Searching Element\");\n getContentPane().add(jLabel2, new org.netbeans.lib.awtextra.AbsoluteConstraints(80, 270, -1, -1));\n\n jLabel4.setText(\"© Induwara Jayalath\");\n getContentPane().add(jLabel4, new org.netbeans.lib.awtextra.AbsoluteConstraints(20, 150, -1, -1));\n\n jButton1.setBackground(new java.awt.Color(88, 218, 49));\n jButton1.setText(\"Run All and find the best\");\n jButton1.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n jButton1ActionPerformed(evt);\n }\n });\n getContentPane().add(jButton1, new org.netbeans.lib.awtextra.AbsoluteConstraints(30, 340, 280, 120));\n\n jLabel5.setText(\"Individual Search\");\n getContentPane().add(jLabel5, new org.netbeans.lib.awtextra.AbsoluteConstraints(350, 200, -1, -1));\n getContentPane().add(finalResult, new org.netbeans.lib.awtextra.AbsoluteConstraints(30, 520, 310, 30));\n getContentPane().add(bestIs, new org.netbeans.lib.awtextra.AbsoluteConstraints(40, 500, -1, -1));\n\n pack();\n }",
"public void runProgram()\n\t{\n\t\tintro();\n\t\tfindLength();\n\t\tguessLetter();\n\t\tguessName();\n\t}",
"public void algorithmPerformed(AlgorithmBase algorithm) {\r\n\r\n /* if (algorithm instanceof AlgorithmRegVOILandmark) {\r\n\r\n if (algoRegVOILankmark.isCompleted() == true) {\r\n\r\n // display registered image\r\n Vector imageFrames = image.getImageFrameVector();\r\n\r\n for (int i = 0; i < imageFrames.size(); i++) {\r\n //((Frame) (imageFrames.elementAt(i))).setTitle(titles[i]);\r\n ((Frame) (imageFrames.elementAt(i))).setEnabled(true);\r\n\r\n if (((Frame) (imageFrames.elementAt(i))) != parentFrame) {\r\n UI.registerFrame((Frame) (imageFrames.elementAt(i)));\r\n }\r\n }\r\n\r\n if (parentFrame != null) {\r\n UI.registerFrame(parentFrame);\r\n }\r\n\r\n image.notifyImageDisplayListeners(null, true);\r\n }\r\n }*/\r\n\r\n // Update frame\r\n // ((ViewJFrameBase)parentFrame).updateImages(true);\r\n dispose();\r\n }",
"public void actionPerformed(ActionEvent event) {\r\n Object source = event.getSource();\r\n String tmpStr;\r\n int i, j;\r\n int VOIindex = -1;\r\n int nVOIs = 0;\r\n double minTx, maxTx, minTy, maxTy, minRz, maxRz, step;\r\n int boxIndex = 0;\r\n int opt = 0;\r\n int costFunc = 0;\r\n\r\n if (source == OKButton) {\r\n\r\n if (image.getNDims() != 3) {\r\n MipavUtil.displayError(\"This algorithm only works for 2.5D kidney datasets.\");\r\n\r\n return;\r\n }\r\n\r\n // get input from scalePanel\r\n tmpStr = textGaussX.getText();\r\n\r\n if (testParameter(tmpStr, 0.5, 5.0)) {\r\n scaleX = Float.valueOf(tmpStr).floatValue();\r\n } else {\r\n textGaussX.requestFocus();\r\n textGaussX.selectAll();\r\n\r\n return;\r\n }\r\n\r\n tmpStr = textGaussY.getText();\r\n\r\n if (testParameter(tmpStr, 0.5, 5.0)) {\r\n scaleY = Float.valueOf(tmpStr).floatValue();\r\n } else {\r\n textGaussY.requestFocus();\r\n textGaussY.selectAll();\r\n\r\n return;\r\n }\r\n\r\n int[] destExtents = new int[3];\r\n destExtents[0] = image.getExtents()[0];\r\n destExtents[1] = image.getExtents()[1];\r\n destExtents[2] = image.getExtents()[2];\r\n\r\n float[] sigmas = new float[2];\r\n sigmas[0] = scaleX;\r\n sigmas[1] = scaleY;\r\n setVisible(false); // Hide dialog\r\n\r\n // get input from optionPanel\r\n boxIndex = comboBoxOpt.getSelectedIndex();\r\n\r\n if (boxIndex == 0) {\r\n opt = AlgorithmRegVOILandmark.EXHAUSTIVEOPT;\r\n } else if (boxIndex == 1) {\r\n opt = AlgorithmRegVOILandmark.SIMPLEXOPT;\r\n }\r\n\r\n //if (minDiff.isSelected()) {\r\n // costFunc = AlgorithmRegVOILandmark.MINDIFF;\r\n //} else {\r\n // costFunc = AlgorithmRegVOILandmark.MAXSUM;\r\n //}\r\n\r\n tmpStr = textStep.getText();\r\n\r\n if (testParameter(tmpStr, -5, 5)) {\r\n step = Double.valueOf(tmpStr).doubleValue();\r\n } else {\r\n textStep.requestFocus();\r\n textStep.selectAll();\r\n\r\n return;\r\n }\r\n\r\n // get input from RangePanel\r\n tmpStr = textminTx.getText();\r\n\r\n if (testParameter(tmpStr, -2048, 2048)) {\r\n minTx = Double.valueOf(tmpStr).doubleValue();\r\n } else {\r\n textminTx.requestFocus();\r\n textminTx.selectAll();\r\n\r\n return;\r\n }\r\n\r\n tmpStr = textmaxTx.getText();\r\n\r\n if (testParameter(tmpStr, -2048, 2048)) {\r\n maxTx = Double.valueOf(tmpStr).doubleValue();\r\n } else {\r\n textmaxTx.requestFocus();\r\n textmaxTx.selectAll();\r\n\r\n return;\r\n }\r\n\r\n tmpStr = textminTy.getText();\r\n\r\n if (testParameter(tmpStr, -2048, 2048)) {\r\n minTy = Double.valueOf(tmpStr).doubleValue();\r\n } else {\r\n textminTy.requestFocus();\r\n textminTy.selectAll();\r\n\r\n return;\r\n }\r\n\r\n tmpStr = textmaxTy.getText();\r\n\r\n if (testParameter(tmpStr, -2048, 2048)) {\r\n maxTy = Double.valueOf(tmpStr).doubleValue();\r\n } else {\r\n textmaxTy.requestFocus();\r\n textmaxTy.selectAll();\r\n\r\n return;\r\n }\r\n\r\n tmpStr = textminRz.getText();\r\n\r\n if (testParameter(tmpStr, -360, 360)) {\r\n minRz = Double.valueOf(tmpStr).doubleValue();\r\n } else {\r\n textminRz.requestFocus();\r\n textminRz.selectAll();\r\n\r\n return;\r\n }\r\n\r\n tmpStr = textmaxRz.getText();\r\n\r\n if (testParameter(tmpStr, -360, 360)) {\r\n maxRz = Double.valueOf(tmpStr).doubleValue();\r\n } else {\r\n textmaxRz.requestFocus();\r\n textmaxRz.selectAll();\r\n\r\n return;\r\n }\r\n\r\n try {\r\n Preferences.debug(minTx + \",\" + maxTx + \",\" + minTy + \",\" + maxTy + \",\" + minRz + \",\" + maxRz + \",\" +\r\n step + \"\\n\",Preferences.DEBUG_ALGORITHM);\r\n nVOIs = image.getVOIs().size();\r\n Preferences.debug(\"nVOIs = \" + nVOIs + \"\\n\",Preferences.DEBUG_ALGORITHM);\r\n\r\n ViewVOIVector VOIs = image.getVOIs();\r\n\r\n if (nVOIs == 0) {\r\n MipavUtil.displayError(\"Trace contour using one polygon VOI on first slice.\");\r\n\r\n return;\r\n }\r\n\r\n for (i = 0; i < nVOIs; i++) {\r\n\r\n if ((VOIs.VOIAt(i).isActive() == true) &&\r\n ((VOIs.VOIAt(i).getCurveType() == VOI.CONTOUR) ||\r\n (VOIs.VOIAt(i).getCurveType() == VOI.POLYLINE))) {\r\n VOIindex = i;\r\n\r\n break;\r\n }\r\n }\r\n\r\n if (i == nVOIs) {\r\n MipavUtil.displayError(\"Please select VOI\");\r\n\r\n return;\r\n }\r\n\r\n Vector<VOIBase> curves = VOIs.VOIAt(VOIindex).getCurves();\r\n int nCurves = curves.size();\r\n\r\n if (nCurves == 0) {\r\n MipavUtil.displayError(\"Please select VOI from the first image slice.\");\r\n\r\n return;\r\n }\r\n\r\n for (j = 0; j < nCurves; j++) {\r\n\r\n if (((VOIContour) (curves.elementAt(j))).isActive()) {\r\n break;\r\n }\r\n }\r\n\r\n if (j == nCurves) {\r\n MipavUtil.displayError(\"Please select VOI\");\r\n\r\n return;\r\n }\r\n\r\n int xdim = destExtents[0];\r\n int ydim = destExtents[1];\r\n int tdim = destExtents[2];\r\n float[] resolutions = new float[] { 1, 1, 1 };\r\n\r\n for (i = 0; i < tdim; i++) {\r\n image.getFileInfo(i).setResolutions(resolutions);\r\n }\r\n\r\n float[] volBuffer = null;\r\n int sliceSize = xdim * ydim;\r\n int volLength = sliceSize * tdim;\r\n volBuffer = new float[volLength];\r\n image.exportData(0, volLength, volBuffer); // copy image into 1D array\r\n\r\n int length = (int)\r\n Math.round(((VOIContour) (curves.elementAt(j))).getLengthPtToPt(resolutions) /\r\n resolutions[0]);\r\n\r\n tmpPosition = new Vector3f[2 * length];\r\n tmpIntensity = new float[2 * length];\r\n\r\n Preferences.debug(\"VOI predicted array length = \" + length + \"\\n\",Preferences.DEBUG_ALGORITHM);\r\n\r\n length = image.getVOIs().VOIAt(VOIindex).getPositionAndIntensity(0, j, tmpPosition, tmpIntensity,\r\n volBuffer, xdim);\r\n\r\n Preferences.debug(\"actual VOI length = \" + length + \"\\n\",Preferences.DEBUG_ALGORITHM);\r\n\r\n position = new VOIContour(false, true);\r\n\r\n for (i = 0; i < length; i++) {\r\n position.add( new Vector3f(tmpPosition[i].X, tmpPosition[i].Y, tmpPosition[i].Z) );\r\n }\r\n\r\n // Hide dialog\r\n setVisible(false);\r\n\r\n String name = makeImageName(image.getImageName(), \"_result\");\r\n \r\n clonedImage = (ModelImage)image.clone(image.getImageName() + \"_result\");\r\n\r\n // Make NEW result image of float type\r\n resultImage = new ModelImage(ModelImage.FLOAT, destExtents, name);\r\n\r\n // call algoRegKidney here\r\n algoRegVOILankmark = new AlgorithmRegVOILandmark(clonedImage, resultImage, sigmas, true, position, minTx,\r\n maxTx, minTy, maxTy, minRz, maxRz, step, opt,\r\n costFunc);\r\n algoRegVOILankmark.addListener(this);\r\n\r\n createProgressBar(image.getImageName(), algoRegVOILankmark);\r\n\r\n // Start the thread as a low priority because we wish to still have user interface work fast\r\n if (algoRegVOILankmark.startMethod(Thread.MIN_PRIORITY) == false) {\r\n MipavUtil.displayError(\"A thread is already running on this object\");\r\n }\r\n } catch (IOException error) {\r\n MipavUtil.displayError(\"Registration Kidney: IO Exception\");\r\n\r\n return;\r\n } catch (OutOfMemoryError x) {\r\n\r\n if (resultImage != null) {\r\n resultImage.disposeLocal(); // Clean up image memory\r\n resultImage = null;\r\n }\r\n\r\n MipavUtil.displayError(\"Dialog Register Kidney: unable to allocate enough memory\");\r\n\r\n return;\r\n }\r\n } else if (source == cancelButton) {\r\n dispose();\r\n } else {\r\n super.actionPerformed(event);\r\n }\r\n }",
"private void runMenu() {\n\t\tint selection;\n\t\tdo {\n\t\t\tdisplayMenu();\n\t\t\tselection = Integer.parseInt(sc.nextLine());\n\t\t\tprocessSelection(selection);\n\t\t} while (selection != 5);\n\t}",
"public void run()\n { // checking for appropriate sorting algorithm\n \n if(comboAlgorithm.equals(\"Shell Sort\"))\n {\n this.shellSort(randInt);\n }\n \n if(comboAlgorithm.equals(\"Selection Sort\"))\n {\n this.selectionSort(randInt);\n }\n \n if(comboAlgorithm.equals(\"Insertion Sort\"))\n {\n this.insertionSort(randInt);\n }\n if(comboAlgorithm.equals(\"Bubble Sort\"))\n {\n this.bubbleSort(randInt);\n }\n \n }",
"public void AiChoice(){\r\n \t\t/* \r\n\t \tint [][]box;\r\n\t \t\r\n\t \tfor (int x=0; x<3; x++) {\r\n \t\t\tfor (int y=0; y<3; y++) {\r\n \t\t\t\tbox[x][y]=buttons[x][y].getValue();\r\n \t\t\t\t\r\n \t\t\t}\r\n\t \t}\r\n\t\t */\r\n\t\t// message.setText(Integer.toString(clicks));\r\n\t\t// clicks++;\r\n\t\t// message.setText(Integer.toString(clicks));\r\n\t\t\r\n\t\t \r\n\t\t \r\n\t\t //////////////////////////////////////patterns\r\n\t\t if(clicks==1) {\r\n\t\t\t pattern = 1;\r\n\t \tbuttons[0][0].setText(\"O\");\r\n buttons[0][0].setForeground(Color.black);\r\n buttons[0][0].setValue(1);\r\n buttons[0][0].setState(true); \r\n \r\n return;\r\n\t\t }\r\n\t\t \r\n \r\n\t\t if(clicks==2) {\r\n\t\t\t\r\n\t\t\t if (buttons[1][1].getValue()==0) {\r\n\t\t\t\t buttons[1][1].setText(\"O\");\r\n\t\t buttons[1][1].setForeground(Color.black);\r\n\t\t buttons[1][1].setValue(1);\r\n\t\t buttons[1][1].setState(true);\r\n\t\t pattern = 20; \r\n\t\t\t \t}\r\n\t\t\t else {\r\n\t\t\t\t buttons[0][0].setText(\"O\");\r\n\t\t buttons[0][0].setForeground(Color.black);\r\n\t\t buttons[0][0].setValue(1);\r\n\t\t buttons[0][0].setState(true); \r\n\t\t pattern = 20;\r\n\t\t\t }\r\n\t\t\t return;\r\n\t\t }\r\n\t\t \r\n\t\t if(pattern == 1) {\r\n\t\t\t if (buttons[0][1].getValue()==-1 || buttons[0][1].getValue()==-1) {\r\n\t\t\t\t buttons[1][1].setText(\"O\");\r\n\t\t buttons[1][1].setForeground(Color.black);\r\n\t\t buttons[1][1].setValue(1);\r\n\t\t buttons[1][1].setState(true);\r\n\t\t pattern = 3; \r\n\t\t\t \t}\r\n\t\t\t else if(buttons[2][2].getValue()==0) {\r\n\t\t\t\t buttons[2][2].setText(\"O\");\r\n\t\t buttons[2][2].setForeground(Color.black);\r\n\t\t buttons[2][2].setValue(1);\r\n\t\t buttons[2][2].setState(true); \r\n\t\t pattern = 5;\r\n\t\t\t }\r\n\t\t\t else {\r\n\t\t\t\t buttons[2][0].setText(\"O\");\r\n\t\t buttons[2][0].setForeground(Color.black);\r\n\t\t buttons[2][0].setValue(1);\r\n\t\t buttons[2][0].setState(true); \r\n\t\t\t\t pattern=4;\r\n\t\t\t\t \r\n\t\t\t }\r\n\r\n\t\t\t return;\t \r\n\t \t }\r\n\t\t \r\n\t\t if(pattern == 3) {\r\n\t\t\t \r\n\t\t\t if(buttons[2][2].getValue()==0) {\r\n\t\t\t\t buttons[2][2].setText(\"O\");\r\n\t\t buttons[2][2].setForeground(Color.black); ////win\r\n\t\t buttons[2][2].setValue(1);\r\n\t\t buttons[2][2].setState(true); \r\n\t\t\t }\r\n\t\t\t \r\n\t\t\t if (buttons[0][1].getValue()==-1) {\r\n\t\t\t\t buttons[2][0].setText(\"O\");\r\n\t\t buttons[2][0].setForeground(Color.black);\r\n\t\t buttons[2][0].setValue(1);\r\n\t\t buttons[2][0].setState(true); \r\n\t\t\t\t pattern=6; \r\n\t\t\t }\r\n\t\t\t else {\r\n\t\t\t\t buttons[0][2].setText(\"O\");\r\n\t\t buttons[0][2].setForeground(Color.black);\r\n\t\t buttons[0][2].setValue(1);\r\n\t\t buttons[0][2].setState(true); \r\n\t\t pattern = 7; \r\n\t\t\t }\r\n\t\t\t return;\r\n\t\t }\r\n\t\t \r\n\t\t if(pattern == 6) {\r\n\t\t\t if (buttons[1][0].getValue()==0) {\r\n\t\t\t\t buttons[1][0].setText(\"O\");\r\n\t\t buttons[1][0].setForeground(Color.black); /////Win\r\n\t\t buttons[1][0].setValue(1);\r\n\t\t buttons[1][0].setState(true); \r\n\t\t\t\t \r\n\t\t\t }\r\n\t\t\t else {\r\n\t\t\t\t buttons[0][2].setText(\"O\");\r\n\t\t buttons[0][2].setForeground(Color.black); /////Win\r\n\t\t buttons[0][2].setValue(1);\r\n\t\t buttons[0][2].setState(true); \r\n\t\t\t\t \r\n\t\t\t }\r\n\t\t\t return;\r\n\t\t }\r\n\t\t \r\n\t\t if(pattern == 7) {\r\n\t\t\t if (buttons[2][0].getValue()==0) {\r\n\t\t\t\t buttons[2][0].setText(\"O\");\r\n\t\t buttons[2][0].setForeground(Color.black); /////Win\r\n\t\t buttons[2][0].setValue(1);\r\n\t\t buttons[2][0].setState(true); \r\n\t\t\t\t \r\n\t\t\t }\r\n\t\t\t else {\r\n\t\t\t\t buttons[0][1].setText(\"O\");\r\n\t\t buttons[0][1].setForeground(Color.black); /////Win\r\n\t\t buttons[0][1].setValue(1);\r\n\t\t buttons[0][1].setState(true); \r\n\t\t\t\t \r\n\t\t\t }\r\n\t\t\t return;\r\n\t\t }\r\n\t\t \r\n\t\t \r\n\t\t \r\n\t\t if(pattern == 4) {\r\n\t\t\t if (buttons[1][0].getValue()==0) {\r\n\t\t\t\t buttons[1][0].setText(\"O\");\r\n\t\t buttons[1][0].setForeground(Color.black); /////Win\r\n\t\t buttons[1][0].setValue(1);\r\n\t\t buttons[1][0].setState(true); \r\n\t\t\t\t \r\n\t\t\t }\r\n\t\t\t else {\r\n\t\t\t\t buttons[0][2].setText(\"O\");\r\n\t\t buttons[0][2].setForeground(Color.black); \r\n\t\t buttons[0][2].setValue(1);\r\n\t\t buttons[0][2].setState(true); \r\n\t\t\t\t pattern = 8;\r\n\t\t\t }\r\n\t\t\t return;\r\n\t\t }\r\n\t\t \r\n\t\t if(pattern == 8) {\r\n\t\t\t if (buttons[1][1].getValue()==0) {\r\n\t\t\t\t buttons[1][1].setText(\"O\");\r\n\t\t buttons[1][1].setForeground(Color.black); /////Win\r\n\t\t buttons[1][1].setValue(1);\r\n\t\t buttons[1][1].setState(true); \r\n\t\t\t\t \r\n\t\t\t }\r\n\t\t\t else {\r\n\t\t\t\t buttons[0][1].setText(\"O\");\r\n\t\t buttons[0][1].setForeground(Color.black); /////Win\r\n\t\t buttons[0][1].setValue(1);\r\n\t\t buttons[0][1].setState(true); \r\n\t\t\t\t \r\n\t\t\t }\r\n\t\t\t return;\r\n\t\t }\r\n\t\t \r\n\t\t if(pattern == 5) {\r\n\t\t\t if (buttons[1][0].getValue()==-1 || buttons[0][1].getValue()==-1 || buttons[1][2].getValue()==-1 || buttons[2][1].getValue()==-1 ) {\r\n\t\t\t\t pattern=20; \r\n\t\t\t }\r\n\t\t\t else if(buttons[0][2].getValue()==0) {\r\n\t\t\t\t buttons[0][2].setText(\"O\");\r\n\t\t buttons[0][2].setForeground(Color.black); \r\n\t\t buttons[0][2].setValue(1);\r\n\t\t buttons[0][2].setState(true); \r\n\t\t\t\t pattern = 20;\r\n\t\t\t\t return;\r\n\t\t\t }\r\n\t\t\t else {\r\n\t\t\t\t buttons[2][0].setText(\"O\");\r\n\t\t buttons[2][0].setForeground(Color.black); \r\n\t\t buttons[2][0].setValue(1);\r\n\t\t buttons[2][0].setState(true); \r\n\t\t\t\t pattern = 20;\r\n\t\t\t\t return;\r\n\t\t\t }\r\n \r\n\t\t }\r\n\t\t \r\n\t\t\r\n\t\t \r\n\t\t \r\n\t\t if(pattern == 20) {\r\n\t\t\t \r\n\t\t\t \r\n\t\t\t int randx=0,randy=0,j=0;\r\n\t\t\t \r\n\t\t\t int diagSum1 = 0;\r\n\t\t int diagSum2 = 0;\r\n\t\t int colSum = 0;\r\n\t\t int rowSum = 0;\r\n\t\t \r\n\t\t //////////////////just edited version of check win method checks if ai can win if so it places down and wins\t\r\n\t\t \r\n\t\t diagSum1 = buttons[0][2].getValue() + buttons[1][1].getValue() + buttons[2][0].getValue();\r\n\t\t diagSum2 = buttons[0][0].getValue() + buttons[1][1].getValue() + buttons[2][2].getValue();\r\n\r\n\t\t if(diagSum2 == 2 ) {\r\n\t\t \t\r\n\t\t \t\r\n\t\t\t for(int y = 0; y<3; y++) {\r\n\t\t \tif (buttons[y][y].getValue()==0) {\r\n\t\t\t\t\t\t buttons[y][y].setText(\"O\");\r\n\t\t\t\t buttons[y][y].setForeground(Color.black); \r\n\t\t\t\t buttons[y][y].setValue(1);\r\n\t\t\t\t buttons[y][y].setState(true); \r\n\t\t\t\t j=1;\r\n\t\t\t\t return;\r\n\t\t\t\t\t }\r\n\t\t\t \r\n\t\t\t } \r\n\t\t }\r\n\t\t \r\n\t\t if(diagSum1 == 2) {\r\n\t\t \t \r\n\t\t\t\t \tif (buttons[0][2].getValue()==0) {\r\n\t\t\t\t\t\t\t\t buttons[0][2].setText(\"O\");\r\n\t\t\t\t\t\t buttons[0][2].setForeground(Color.black); \r\n\t\t\t\t\t\t buttons[0][2].setValue(1);\r\n\t\t\t\t\t\t buttons[0][2].setState(true); \r\n\t\t\t\t\t\t j=1;\r\n\t\t\t\t\t\t \r\n\t\t\t\t\t\t\t }\r\n\t\t\t\t \tif (buttons[1][1].getValue()==0) {\r\n\t\t\t\t\t\t\t\t buttons[1][1].setText(\"O\");\r\n\t\t\t\t\t\t buttons[1][1].setForeground(Color.black); \r\n\t\t\t\t\t\t buttons[1][1].setValue(1);\r\n\t\t\t\t\t\t buttons[1][1].setState(true); \r\n\t\t\t\t\t\t j=1;\r\n\t\t\t\t\t\t \r\n\t\t\t\t\t\t\t }\r\n\t\t\t\t \tif (buttons[2][0].getValue()==0) {\r\n\t\t\t\t\t\t\t\t buttons[2][0].setText(\"O\");\r\n\t\t\t\t\t\t buttons[2][0].setForeground(Color.black); \r\n\t\t\t\t\t\t buttons[2][0].setValue(1);\r\n\t\t\t\t\t\t buttons[2][0].setState(true); \r\n\t\t\t\t\t\t j=1;\r\n\t\t\t\t\t\t \r\n\t\t\t\t\t\t\t }\r\n\t\t\t\t \treturn;\r\n\t\t }\r\n\r\n\t\t \r\n\t\t \r\n\t\t for(int x = 0; x<3; x++) {\r\n\t\t for(int y = 0; y<3; y++) {\r\n\t\t rowSum += buttons[x][y].getValue(); \r\n\t\t colSum += buttons[y][x].getValue();\r\n\t\t }\r\n\t\t \r\n\t\t if (colSum == 2 && j == 0) { \r\n\t\t \t\r\n\t\t \r\n\t\t \t for(int y = 0; y<3; y++) {\r\n\t\t \t\t \tif (buttons[y][x].getValue()==0) {\r\n\t\t \t\t\t\t\t\t buttons[y][x].setText(\"O\");\r\n\t\t \t\t\t\t buttons[y][x].setForeground(Color.black); \r\n\t\t \t\t\t\t buttons[y][x].setValue(1);\r\n\t\t \t\t\t\t buttons[y][x].setState(true); \r\n\t\t \t\t\t\t j=1;\r\n\t\t \t\t\t\t return;\r\n\t\t \t\t\t\t\t }\r\n\t\t \t }\r\n\t\t }\r\n\t\t else if(rowSum == 2 && j == 0) {\r\n\t\t \tfor(int y = 0; y<3; y++) {\r\n\t\t \t\t \tif (buttons[x][y].getValue()==0) {\r\n\t\t \t\t\t\t\t\t buttons[x][y].setText(\"O\");\r\n\t\t \t\t\t\t buttons[x][y].setForeground(Color.black); \r\n\t\t \t\t\t\t buttons[x][y].setValue(1);\r\n\t\t \t\t\t\t buttons[x][y].setState(true); \r\n\t\t \t\t\t\t j=1;\r\n\t\t \t\t\t\t return;\r\n\t\t \t\t\t\t\t }\r\n\t\t \t }\r\n\t\t }\r\n\t\t rowSum = 0;\r\n\t\t colSum = 0;\r\n\t\t }\r\n\t\t \r\n\t\t \r\n\t\t \r\n\t\t \r\n\t\t /////////////same as above except checks if plays about to win then blocks\r\n\t\t \r\n\t\t for(int x = 0; x<3; x++) {\r\n\t\t for(int y = 0; y<3; y++) {\r\n\t\t rowSum += buttons[x][y].getValue(); \r\n\t\t colSum += buttons[y][x].getValue();\r\n\t\t }\r\n\t\t \r\n\t\t if ( colSum == -2 && j == 0) { \r\n\t\t \t\r\n\t\t \r\n\t\t \t for(int y = 0; y<3; y++) {\r\n\t\t \t\t \tif (buttons[y][x].getValue()==0) {\r\n\t\t \t\t\t\t\t\t buttons[y][x].setText(\"O\");\r\n\t\t \t\t\t\t buttons[y][x].setForeground(Color.black); \r\n\t\t \t\t\t\t buttons[y][x].setValue(1);\r\n\t\t \t\t\t\t buttons[y][x].setState(true); \r\n\t\t \t\t\t\t j=1;\r\n\t\t \t\t\t\t return;\r\n\t\t \t\t\t\t\t }\r\n\t\t \t }\r\n\t\t }\r\n\t\t else if( rowSum == -2 && j == 0) {\r\n\t\t \tfor(int y = 0; y<3; y++) {\r\n\t\t \t\t \tif (buttons[x][y].getValue()==0) {\r\n\t\t \t\t\t\t\t\t buttons[x][y].setText(\"O\");\r\n\t\t \t\t\t\t buttons[x][y].setForeground(Color.black); \r\n\t\t \t\t\t\t buttons[x][y].setValue(1);\r\n\t\t \t\t\t\t buttons[x][y].setState(true); \r\n\t\t \t\t\t\t j=1;\r\n\t\t \t\t\t\t return;\r\n\t\t \t\t\t\t\t }\r\n\t\t \t }\r\n\t\t }\r\n\t\t rowSum = 0;\r\n\t\t colSum = 0;\r\n\t\t }\r\n\t\t\t \t \r\n\t\t \r\n\t\t \r\n\t\t \r\n\t\t\t \r\n\t\t if(diagSum1 == -2 ) {\r\n\t\t \t \r\n\t\t \tif (buttons[0][2].getValue()==0) {\r\n\t\t\t\t\t\t buttons[0][2].setText(\"O\");\r\n\t\t\t\t buttons[0][2].setForeground(Color.black); \r\n\t\t\t\t buttons[0][2].setValue(1);\r\n\t\t\t\t buttons[0][2].setState(true); \r\n\t\t\t\t j=1;\r\n\t\t\t\t \r\n\t\t\t\t\t }\r\n\t\t \tif (buttons[1][1].getValue()==0) {\r\n\t\t\t\t\t\t buttons[1][1].setText(\"O\");\r\n\t\t\t\t buttons[1][1].setForeground(Color.black); \r\n\t\t\t\t buttons[1][1].setValue(1);\r\n\t\t\t\t buttons[1][1].setState(true); \r\n\t\t\t\t j=1;\r\n\t\t\t\t \r\n\t\t\t\t\t }\r\n\t\t \tif (buttons[2][0].getValue()==0) {\r\n\t\t\t\t\t\t buttons[2][0].setText(\"O\");\r\n\t\t\t\t buttons[2][0].setForeground(Color.black); \r\n\t\t\t\t buttons[2][0].setValue(1);\r\n\t\t\t\t buttons[2][0].setState(true); \r\n\t\t\t\t j=1;\r\n\t\t\t\t \r\n\t\t\t\t\t }\r\n\t\t \treturn;\r\n }\r\n\t\t\t \r\n\t\t\t \r\n\t\t\t \r\n\t\t\t \r\n\t\t\t \r\n\t\t\t \r\n\t\t\t \r\n\t\t\t \r\n\t\t\t if( diagSum2 == -2) {\r\n\t\t \t\r\n\t\t \t\r\n\t\t for(int y = 0; y<3; y++) {\r\n\t \tif (buttons[y][y].getValue()==0) {\r\n\t\t\t\t\t buttons[y][y].setText(\"O\");\r\n\t\t\t buttons[y][y].setForeground(Color.black); \r\n\t\t\t buttons[y][y].setValue(1);\r\n\t\t\t buttons[y][y].setState(true); \r\n\t\t\t j=1;\r\n\t\t\t return;\r\n\t\t\t\t }\r\n\t\t \r\n\t\t } \r\n\t }\r\n\t\t\t \r\n\t\t\t //////////////messes up strategy that ai uses to make it unbeatable\r\n\t\t\t \r\n\t\t\t if (buttons[2][1].getValue()==0) {\r\n\t\t\t\t buttons[2][1].setText(\"O\");\r\n\t\t buttons[2][1].setForeground(Color.black); \r\n\t\t buttons[2][1].setValue(1);\r\n\t\t buttons[2][1].setState(true); \r\n\t\t j=1;\r\n\t\t return;\r\n\t\t\t }\r\n\t\t\t \r\n\t\t\t \r\n\t\t\t \r\n\t\t\t ///////////////random move only really used if play is an idiot\r\n\t\t\t \r\n\t\t\t while(j == 0) {\r\n\t\t\t\t randx=rand.nextInt(3);\r\n\t\t\t\t randy=rand.nextInt(3);\r\n\t\t\t\t if (buttons[randx][randy].getValue()==0) {\r\n\t\t\t\t\t buttons[randx][randy].setText(\"O\");\r\n\t\t\t buttons[randx][randy].setForeground(Color.black); \r\n\t\t\t buttons[randx][randy].setValue(1);\r\n\t\t\t buttons[randx][randy].setState(true); \r\n\t\t\t j++;\r\n\t\t\t\t }\r\n\t\t\t }\r\n\r\n\t\t\t return;\r\n\t\t\t \r\n\t\t }\r\n\t\t \r\n\t\t \r\n\t }",
"private void setupGUI()\n {\n // give our panel a 'BoxLayout' with appropriate\n // dimensions and color\n setLayout(new BoxLayout (this, BoxLayout.Y_AXIS));\n setPreferredSize(new Dimension(600, 200));\n //setBackground(Color.LIGHT_GRAY);\n \n //------------create labels------------\n lblSelect = new JLabel(\"Select a traversal: \");\n lblSelect.setFont(new Font(\"Helvetica\", Font.PLAIN, 16));\n lblSelect.setForeground(Color.BLACK);\n \n lblStringOutput = new JLabel();\n lblStringOutput.setFont(new Font(\"Helvetica\", Font.PLAIN, 16));\n lblStringOutput.setForeground(Color.BLACK);\n \n lblAuthor = new JLabel(\"This program was written by Harry Staley. \");\n lblAuthor.setFont(new Font(\"Helvetica\", Font.PLAIN, 16));\n lblAuthor.setForeground(Color.BLACK);\n \n //-------create combo box-------\n cboTraversals = new JComboBox(traversals);\n cboTraversals.setBackground(Color.ORANGE);\n cboTraversals.setForeground(Color.BLACK);\n cboTraversals.setFont(new Font(\"Helvetica\", Font.BOLD, 16));\n cboTraversals.setAlignmentX(Component.CENTER_ALIGNMENT);\n \n //------------radio buttons------------\n \n rbtMinimum = new JRadioButton(\"Minimum\", true);\n rbtMinimum.setBackground(Color.YELLOW);\n rbtMinimum.setFont(new Font(\"Helvetica\", Font.BOLD, 16));\n \n rbtMaximum = new JRadioButton(\"Maximum\", true);\n rbtMaximum.setBackground(Color.YELLOW);\n rbtMaximum.setFont(new Font(\"Helvetica\", Font.BOLD, 16));\n \n // add the two radio buttons to the button\n // group called 'group'. NOTE: 'group' is \n // not a container, it is used to simply\n // organize the buttons; we will still have to\n // add each individual button to a panel\n // (shown below)\n ButtonGroup group = new ButtonGroup();\n group.add(rbtMinimum);\n group.add(rbtMaximum);\n\n \n //-----------create normal buttons------------\n btnAddChar = new JButton(\"Populate binary search tree\");\n btnAddChar.setBackground(Color.BLUE);\n btnAddChar.setFont(new Font (\"Helvetica\", Font.BOLD, 20));\n btnAddChar.setForeground(Color.WHITE);\n \n btnExit = new JButton(\"Exit\");\n btnExit.setBackground(Color.RED);\n btnExit.setFont(new Font (\"Helvetica\", Font.BOLD, 20));\n btnExit.setForeground(Color.WHITE);\n\n \n //------------create panels------------\n pnlSelect = new JPanel();\n pnlSelect.add(lblSelect);\n pnlSelect.add(cboTraversals);\n pnlSelect.setBackground(Color.LIGHT_GRAY);\n \n pnlBottom = new JPanel();\n pnlBottom.add(lblAuthor);\n pnlBottom.setBackground(Color.LIGHT_GRAY);\n \n pnlBottom2 = new JPanel();\n pnlBottom2.add(btnExit);\n pnlBottom2.setBackground(Color.LIGHT_GRAY);\n \n pnlTwoButtons = new JPanel();\n pnlTwoButtons.add(btnAddChar);\n pnlTwoButtons.setBackground(Color.LIGHT_GRAY);\n \n // add radio buttons to this subpanel\n pnlMinMax = new JPanel();\n pnlMinMax.setBackground(Color.LIGHT_GRAY);\n pnlMinMax.add(rbtMinimum);\n pnlMinMax.add(Box.createRigidArea(new Dimension(5,0)));\n pnlMinMax.add(rbtMaximum);\n \n // create listeners for components\n btnAddChar.addActionListener(new PopulateBSTListener());\n btnExit.addActionListener(new ExitListener());\n cboTraversals.addActionListener(new TraversalSelectedListener());\n rbtMinimum.addActionListener(new MinMaxListener());\n rbtMaximum.addActionListener(new MinMaxListener());\n\n // add sub panels to the main panel\n add(pnlTwoButtons);\n add(pnlSelect);\n add(pnlMinMax);\n add(pnlBottom);\n add(pnlBottom2);\n\n }",
"public void run() {\n\t\t\t\tif (actionShowOutputs.isChecked()) {\n\t\t\t\t\torg.openmodelica.modelicaml.common.instantiation.TreeUtls.classInstantiation = null;\n\t\t\t\t\torg.openmodelica.modelicaml.common.instantiation.TreeUtls.componentsTreeRoot = null;\n\t\t\t\t\tshowSelection(par, sel);\n\t\t\t\t}\n\t\t\t}",
"public void run() \n\t\t\t{\n\t\t\t\tUIManager.put(\"swing.boldMetal\", Boolean.FALSE);\n\t\t\t\tJFileChooser fc = new JFileChooser();\n\t\t\t\t// Only allow the selection of files with an extension of .asm.\n\t\t\t\tfc.setFileFilter(new FileNameExtensionFilter(\"ASM files\", \"asm\"));\n\t\t\t\t// Uncomment the following to allow the selection of files and\n\t\t\t\t// directories. The default behavior is to allow only the selection\n\t\t\t\t// of files.\n\t\t\t\tfc.setFileSelectionMode(JFileChooser.FILES_AND_DIRECTORIES);\n\t\t\t\tif (fc.showOpenDialog(null) == JFileChooser.APPROVE_OPTION)\n\t\t\t\t\tnew Assembler(fc.getSelectedFile().getPath());\n\t\t\t\telse\n\t\t\t\t\tSystem.out.println(\"No file selected; terminating.\");\n\t\t\t}",
"@SuppressWarnings(\"unchecked\")\n // <editor-fold defaultstate=\"collapsed\" desc=\"Generated Code\">//GEN-BEGIN:initComponents\n private void initComponents() {\n\n algorithmbuttonGroup = new javax.swing.ButtonGroup();\n displayJPanel = new javax.swing.JPanel();\n drawJPanel = new javax.swing.JPanel();\n choiseJPanel = new javax.swing.JPanel();\n pointJPanel = new javax.swing.JPanel();\n pointJTextField = new javax.swing.JTextField();\n randomJButton = new javax.swing.JButton();\n algolithmJPanel = new javax.swing.JPanel();\n nearestNeighborJRadioButton = new javax.swing.JRadioButton();\n heuristicJRadioButton = new javax.swing.JRadioButton();\n insertionSortJRadioButton = new javax.swing.JRadioButton();\n PrimJRadioButton = new javax.swing.JRadioButton();\n kruskalJRadioButton = new javax.swing.JRadioButton();\n removal2OptJRadioButton = new javax.swing.JRadioButton();\n approximationJRadioButton = new javax.swing.JRadioButton();\n separationEvaluationJRadioButton = new javax.swing.JRadioButton();\n playJButton = new javax.swing.JButton();\n leftJButton = new javax.swing.JButton();\n rightJButton = new javax.swing.JButton();\n pointsJLabel = new javax.swing.JLabel();\n autoJComboBox = new javax.swing.JComboBox();\n autoJLabel = new javax.swing.JLabel();\n eraseJButton1 = new javax.swing.JButton();\n jLabel1 = new javax.swing.JLabel();\n resultJPanel = new javax.swing.JPanel();\n totalJLabel = new javax.swing.JLabel();\n distanceJLabel = new javax.swing.JLabel();\n lastJLabel = new javax.swing.JLabel();\n currentJLabel = new javax.swing.JLabel();\n beforeJLabel = new javax.swing.JLabel();\n forwardJLabel = new javax.swing.JLabel();\n standardJLabel = new javax.swing.JLabel();\n standardLabel1 = new javax.swing.JLabel();\n jMenuBar1 = new javax.swing.JMenuBar();\n jMenu1 = new javax.swing.JMenu();\n clearJMenuItem = new javax.swing.JMenuItem();\n openJMenuItem = new javax.swing.JMenuItem();\n saveJMenuItem = new javax.swing.JMenuItem();\n printJMenuItem = new javax.swing.JMenuItem();\n quitJMenuItem = new javax.swing.JMenuItem();\n helpJMenu = new javax.swing.JMenu();\n aboutJMenuItem = new javax.swing.JMenuItem();\n\n setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE);\n setResizable(false);\n\n displayJPanel.setBorder(javax.swing.BorderFactory.createBevelBorder(javax.swing.border.BevelBorder.RAISED));\n displayJPanel.setToolTipText(\"Dessin Panel\");\n displayJPanel.setPreferredSize(new java.awt.Dimension(620, 620));\n\n drawJPanel.setBackground(new java.awt.Color(255, 255, 255));\n drawJPanel.setToolTipText(\"Drawing pad\");\n drawJPanel.addMouseListener(new java.awt.event.MouseAdapter() {\n public void mouseReleased(java.awt.event.MouseEvent evt) {\n drawJPanelMouseReleased(evt);\n }\n });\n\n javax.swing.GroupLayout drawJPanelLayout = new javax.swing.GroupLayout(drawJPanel);\n drawJPanel.setLayout(drawJPanelLayout);\n drawJPanelLayout.setHorizontalGroup(\n drawJPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGap(0, 592, Short.MAX_VALUE)\n );\n drawJPanelLayout.setVerticalGroup(\n drawJPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGap(0, 596, Short.MAX_VALUE)\n );\n\n javax.swing.GroupLayout displayJPanelLayout = new javax.swing.GroupLayout(displayJPanel);\n displayJPanel.setLayout(displayJPanelLayout);\n displayJPanelLayout.setHorizontalGroup(\n displayJPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(displayJPanelLayout.createSequentialGroup()\n .addContainerGap()\n .addComponent(drawJPanel, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addContainerGap())\n );\n displayJPanelLayout.setVerticalGroup(\n displayJPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(displayJPanelLayout.createSequentialGroup()\n .addContainerGap()\n .addComponent(drawJPanel, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addContainerGap())\n );\n\n getContentPane().add(displayJPanel, java.awt.BorderLayout.WEST);\n\n choiseJPanel.setBorder(javax.swing.BorderFactory.createBevelBorder(javax.swing.border.BevelBorder.RAISED));\n choiseJPanel.setToolTipText(\"Control panel\");\n choiseJPanel.setPreferredSize(new java.awt.Dimension(330, 620));\n\n pointJPanel.setBorder(javax.swing.BorderFactory.createTitledBorder(\" Points \"));\n pointJPanel.setToolTipText(\"How many cities?\");\n\n pointJTextField.setFont(new java.awt.Font(\"SansSerif\", 0, 12)); // NOI18N\n pointJTextField.setToolTipText(\"Input number of cities\");\n pointJTextField.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n pointJTextFieldActionPerformed(evt);\n }\n });\n\n randomJButton.setFont(new java.awt.Font(\"SansSerif\", 0, 12)); // NOI18N\n randomJButton.setMnemonic('R');\n randomJButton.setText(\"Random\");\n randomJButton.setToolTipText(\"getting coordinate randomly\");\n randomJButton.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n randomJButtonActionPerformed(evt);\n }\n });\n\n javax.swing.GroupLayout pointJPanelLayout = new javax.swing.GroupLayout(pointJPanel);\n pointJPanel.setLayout(pointJPanelLayout);\n pointJPanelLayout.setHorizontalGroup(\n pointJPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(pointJPanelLayout.createSequentialGroup()\n .addContainerGap()\n .addComponent(pointJTextField, javax.swing.GroupLayout.PREFERRED_SIZE, 80, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(randomJButton)\n .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))\n );\n pointJPanelLayout.setVerticalGroup(\n pointJPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(pointJPanelLayout.createSequentialGroup()\n .addGroup(pointJPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(pointJTextField, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(randomJButton))\n .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))\n );\n\n algolithmJPanel.setBorder(javax.swing.BorderFactory.createTitledBorder(\"Select Algorithm\"));\n algolithmJPanel.setToolTipText(\"select a algorithm\");\n\n algorithmbuttonGroup.add(nearestNeighborJRadioButton);\n nearestNeighborJRadioButton.setFont(new java.awt.Font(\"SansSerif\", 0, 12)); // NOI18N\n nearestNeighborJRadioButton.setText(\"Nearest Neighbor\");\n nearestNeighborJRadioButton.setToolTipText(\"Nearest Neighbor\");\n nearestNeighborJRadioButton.addMouseListener(new java.awt.event.MouseAdapter() {\n public void mouseClicked(java.awt.event.MouseEvent evt) {\n nearestNeighborJRadioButtonMouseClicked(evt);\n }\n });\n\n algorithmbuttonGroup.add(heuristicJRadioButton);\n heuristicJRadioButton.setFont(new java.awt.Font(\"SansSerif\", 0, 12)); // NOI18N\n heuristicJRadioButton.setText(\"Heuristic\");\n heuristicJRadioButton.setToolTipText(\"algorithm\");\n heuristicJRadioButton.addMouseListener(new java.awt.event.MouseAdapter() {\n public void mouseClicked(java.awt.event.MouseEvent evt) {\n heuristicJRadioButtonMouseClicked(evt);\n }\n });\n\n algorithmbuttonGroup.add(insertionSortJRadioButton);\n insertionSortJRadioButton.setFont(new java.awt.Font(\"SansSerif\", 0, 12)); // NOI18N\n insertionSortJRadioButton.setText(\"Insertion Sort\");\n insertionSortJRadioButton.setToolTipText(\"algorithm\");\n insertionSortJRadioButton.addMouseListener(new java.awt.event.MouseAdapter() {\n public void mouseClicked(java.awt.event.MouseEvent evt) {\n insertionSortJRadioButtonMouseClicked(evt);\n }\n });\n\n algorithmbuttonGroup.add(PrimJRadioButton);\n PrimJRadioButton.setFont(new java.awt.Font(\"SansSerif\", 0, 12)); // NOI18N\n PrimJRadioButton.setText(\"Prim\");\n PrimJRadioButton.setToolTipText(\"algorithm\");\n PrimJRadioButton.addMouseListener(new java.awt.event.MouseAdapter() {\n public void mouseClicked(java.awt.event.MouseEvent evt) {\n PrimJRadioButtonMouseClicked(evt);\n }\n });\n\n algorithmbuttonGroup.add(kruskalJRadioButton);\n kruskalJRadioButton.setFont(new java.awt.Font(\"SansSerif\", 0, 12)); // NOI18N\n kruskalJRadioButton.setText(\"Kruskal\");\n kruskalJRadioButton.setToolTipText(\"algorithm\");\n kruskalJRadioButton.addMouseListener(new java.awt.event.MouseAdapter() {\n public void mouseClicked(java.awt.event.MouseEvent evt) {\n kruskalJRadioButtonMouseClicked(evt);\n }\n });\n\n algorithmbuttonGroup.add(removal2OptJRadioButton);\n removal2OptJRadioButton.setFont(new java.awt.Font(\"SansSerif\", 0, 12)); // NOI18N\n removal2OptJRadioButton.setText(\"Removal2Opt\");\n removal2OptJRadioButton.setToolTipText(\"algorithm\");\n removal2OptJRadioButton.addMouseListener(new java.awt.event.MouseAdapter() {\n public void mouseClicked(java.awt.event.MouseEvent evt) {\n removal2OptJRadioButtonMouseClicked(evt);\n }\n });\n\n algorithmbuttonGroup.add(approximationJRadioButton);\n approximationJRadioButton.setFont(new java.awt.Font(\"SansSerif\", 0, 12)); // NOI18N\n approximationJRadioButton.setText(\"Approximation\");\n approximationJRadioButton.setToolTipText(\"algorithm\");\n approximationJRadioButton.addMouseListener(new java.awt.event.MouseAdapter() {\n public void mouseClicked(java.awt.event.MouseEvent evt) {\n approximationJRadioButtonMouseClicked(evt);\n }\n });\n\n algorithmbuttonGroup.add(separationEvaluationJRadioButton);\n separationEvaluationJRadioButton.setFont(new java.awt.Font(\"SansSerif\", 0, 12)); // NOI18N\n separationEvaluationJRadioButton.setText(\"Separation Evaluation\");\n separationEvaluationJRadioButton.setToolTipText(\"algorithm\");\n separationEvaluationJRadioButton.addMouseListener(new java.awt.event.MouseAdapter() {\n public void mouseClicked(java.awt.event.MouseEvent evt) {\n separationEvaluationJRadioButtonMouseClicked(evt);\n }\n });\n\n javax.swing.GroupLayout algolithmJPanelLayout = new javax.swing.GroupLayout(algolithmJPanel);\n algolithmJPanel.setLayout(algolithmJPanelLayout);\n algolithmJPanelLayout.setHorizontalGroup(\n algolithmJPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(algolithmJPanelLayout.createSequentialGroup()\n .addGroup(algolithmJPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(nearestNeighborJRadioButton)\n .addComponent(heuristicJRadioButton)\n .addComponent(insertionSortJRadioButton)\n .addComponent(PrimJRadioButton)\n .addComponent(kruskalJRadioButton)\n .addComponent(removal2OptJRadioButton)\n .addComponent(approximationJRadioButton)\n .addComponent(separationEvaluationJRadioButton))\n .addGap(0, 0, Short.MAX_VALUE))\n );\n algolithmJPanelLayout.setVerticalGroup(\n algolithmJPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(algolithmJPanelLayout.createSequentialGroup()\n .addContainerGap()\n .addComponent(nearestNeighborJRadioButton)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(heuristicJRadioButton)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(insertionSortJRadioButton)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(PrimJRadioButton)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(kruskalJRadioButton)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(removal2OptJRadioButton)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(approximationJRadioButton)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(separationEvaluationJRadioButton)\n .addContainerGap(10, Short.MAX_VALUE))\n );\n\n playJButton.setFont(new java.awt.Font(\"SansSerif\", 0, 12)); // NOI18N\n playJButton.setMnemonic('P');\n playJButton.setText(\"Play\");\n playJButton.setToolTipText(\"Drawing shortest \");\n playJButton.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n playJButtonActionPerformed(evt);\n }\n });\n\n leftJButton.setFont(new java.awt.Font(\"SansSerif\", 0, 12)); // NOI18N\n leftJButton.setMnemonic('B');\n leftJButton.setText(\"Back Step\");\n leftJButton.setToolTipText(\"back step\");\n leftJButton.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n leftJButtonActionPerformed(evt);\n }\n });\n\n rightJButton.setFont(new java.awt.Font(\"SansSerif\", 0, 12)); // NOI18N\n rightJButton.setMnemonic('F');\n rightJButton.setText(\"Forward\");\n rightJButton.setToolTipText(\"going up\");\n rightJButton.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n rightJButtonActionPerformed(evt);\n }\n });\n\n pointsJLabel.setFont(new java.awt.Font(\"SansSerif\", 0, 12)); // NOI18N\n pointsJLabel.setText(\"0 of 0\");\n pointsJLabel.setToolTipText(\"showing num of dots\");\n\n autoJComboBox.setFont(new java.awt.Font(\"SansSerif\", 0, 12)); // NOI18N\n autoJComboBox.setModel(new javax.swing.DefaultComboBoxModel(new String[] { \"Randomly \", \"Self\", \"Input Coordinate \" }));\n autoJComboBox.setToolTipText(\"Select options\");\n autoJComboBox.addItemListener(new java.awt.event.ItemListener() {\n public void itemStateChanged(java.awt.event.ItemEvent evt) {\n autoJComboBoxItemStateChanged(evt);\n }\n });\n\n autoJLabel.setFont(new java.awt.Font(\"SansSerif\", 1, 12)); // NOI18N\n autoJLabel.setText(\"Select auto or hand operated :\");\n autoJLabel.setToolTipText(\"choose options\");\n\n eraseJButton1.setFont(new java.awt.Font(\"SansSerif\", 0, 12)); // NOI18N\n eraseJButton1.setMnemonic('E');\n eraseJButton1.setText(\"Erase\");\n eraseJButton1.setToolTipText(\"Erase all dots\");\n eraseJButton1.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n eraseJButton1ActionPerformed(evt);\n }\n });\n\n jLabel1.setIcon(new javax.swing.ImageIcon(getClass().getResource(\"/resource/shortest.jpg\"))); // NOI18N\n jLabel1.setText(\"jLabel1\");\n\n javax.swing.GroupLayout choiseJPanelLayout = new javax.swing.GroupLayout(choiseJPanel);\n choiseJPanel.setLayout(choiseJPanelLayout);\n choiseJPanelLayout.setHorizontalGroup(\n choiseJPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(choiseJPanelLayout.createSequentialGroup()\n .addGroup(choiseJPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(choiseJPanelLayout.createSequentialGroup()\n .addGap(133, 133, 133)\n .addComponent(pointsJLabel))\n .addGroup(choiseJPanelLayout.createSequentialGroup()\n .addGap(60, 60, 60)\n .addGroup(choiseJPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)\n .addComponent(algolithmJPanel, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addComponent(pointJPanel, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addComponent(playJButton, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addGroup(choiseJPanelLayout.createSequentialGroup()\n .addComponent(leftJButton)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addComponent(rightJButton))))\n .addGroup(choiseJPanelLayout.createSequentialGroup()\n .addGap(120, 120, 120)\n .addComponent(eraseJButton1, javax.swing.GroupLayout.PREFERRED_SIZE, 79, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGroup(choiseJPanelLayout.createSequentialGroup()\n .addContainerGap()\n .addGroup(choiseJPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(autoJLabel, javax.swing.GroupLayout.PREFERRED_SIZE, 187, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(autoJComboBox, javax.swing.GroupLayout.PREFERRED_SIZE, 139, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(jLabel1, javax.swing.GroupLayout.PREFERRED_SIZE, 100, javax.swing.GroupLayout.PREFERRED_SIZE)))\n .addContainerGap(20, Short.MAX_VALUE))\n );\n choiseJPanelLayout.setVerticalGroup(\n choiseJPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(choiseJPanelLayout.createSequentialGroup()\n .addGap(25, 25, 25)\n .addGroup(choiseJPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(choiseJPanelLayout.createSequentialGroup()\n .addComponent(autoJLabel)\n .addGap(18, 18, 18)\n .addComponent(autoJComboBox, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGroup(choiseJPanelLayout.createSequentialGroup()\n .addGap(1, 1, 1)\n .addComponent(jLabel1, javax.swing.GroupLayout.PREFERRED_SIZE, 81, javax.swing.GroupLayout.PREFERRED_SIZE)))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(pointJPanel, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(algolithmJPanel, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(playJButton)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addGroup(choiseJPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(leftJButton)\n .addComponent(rightJButton))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)\n .addComponent(pointsJLabel)\n .addGap(18, 18, 18)\n .addComponent(eraseJButton1, javax.swing.GroupLayout.PREFERRED_SIZE, 41, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addContainerGap(27, Short.MAX_VALUE))\n );\n\n getContentPane().add(choiseJPanel, java.awt.BorderLayout.EAST);\n\n resultJPanel.setBorder(javax.swing.BorderFactory.createBevelBorder(javax.swing.border.BevelBorder.RAISED));\n resultJPanel.setToolTipText(\"statistic panel\");\n resultJPanel.setFont(new java.awt.Font(\"SansSerif\", 0, 12)); // NOI18N\n resultJPanel.setPreferredSize(new java.awt.Dimension(950, 120));\n\n totalJLabel.setFont(new java.awt.Font(\"SansSerif\", 0, 12)); // NOI18N\n totalJLabel.setText(\"Total Points : 0\");\n totalJLabel.setToolTipText(\"showing num of dots\");\n\n distanceJLabel.setFont(new java.awt.Font(\"SansSerif\", 0, 12)); // NOI18N\n distanceJLabel.setText(\"Distance : 0.0\");\n distanceJLabel.setToolTipText(\"Current Distance\");\n\n lastJLabel.setFont(new java.awt.Font(\"SansSerif\", 0, 12)); // NOI18N\n lastJLabel.setText(\"Last Algorithm Time : \");\n lastJLabel.setToolTipText(\"statistic\");\n\n currentJLabel.setFont(new java.awt.Font(\"SansSerif\", 0, 12)); // NOI18N\n currentJLabel.setText(\"Current Algorithm Time : \");\n currentJLabel.setToolTipText(\"statistic\");\n\n beforeJLabel.setFont(new java.awt.Font(\"SansSerif\", 0, 12)); // NOI18N\n\n forwardJLabel.setFont(new java.awt.Font(\"SansSerif\", 0, 12)); // NOI18N\n\n standardJLabel.setFont(new java.awt.Font(\"SansSerif\", 0, 12)); // NOI18N\n standardJLabel.setText(\"milli seconds\");\n standardJLabel.setToolTipText(\"milli seconds\");\n\n standardLabel1.setFont(new java.awt.Font(\"SansSerif\", 0, 12)); // NOI18N\n standardLabel1.setText(\"milli seconds\");\n standardLabel1.setToolTipText(\"milli seconds\");\n\n javax.swing.GroupLayout resultJPanelLayout = new javax.swing.GroupLayout(resultJPanel);\n resultJPanel.setLayout(resultJPanelLayout);\n resultJPanelLayout.setHorizontalGroup(\n resultJPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(resultJPanelLayout.createSequentialGroup()\n .addGap(129, 129, 129)\n .addGroup(resultJPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(totalJLabel)\n .addComponent(distanceJLabel))\n .addGap(186, 186, 186)\n .addGroup(resultJPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(lastJLabel)\n .addComponent(currentJLabel))\n .addGap(18, 18, 18)\n .addGroup(resultJPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)\n .addGroup(resultJPanelLayout.createSequentialGroup()\n .addComponent(forwardJLabel)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addComponent(standardLabel1))\n .addGroup(resultJPanelLayout.createSequentialGroup()\n .addComponent(beforeJLabel)\n .addGap(73, 73, 73)\n .addComponent(standardJLabel)))\n .addContainerGap(249, Short.MAX_VALUE))\n );\n resultJPanelLayout.setVerticalGroup(\n resultJPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(resultJPanelLayout.createSequentialGroup()\n .addGap(27, 27, 27)\n .addGroup(resultJPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(totalJLabel)\n .addComponent(lastJLabel)\n .addComponent(beforeJLabel)\n .addComponent(standardJLabel))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, 25, Short.MAX_VALUE)\n .addGroup(resultJPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(distanceJLabel)\n .addComponent(currentJLabel)\n .addComponent(forwardJLabel)\n .addComponent(standardLabel1))\n .addGap(28, 28, 28))\n );\n\n getContentPane().add(resultJPanel, java.awt.BorderLayout.SOUTH);\n\n jMenuBar1.setFont(new java.awt.Font(\"SansSerif\", 0, 12)); // NOI18N\n\n jMenu1.setMnemonic('I');\n jMenu1.setText(\"File\");\n jMenu1.setToolTipText(\"Instead of buttons\");\n\n clearJMenuItem.setFont(new java.awt.Font(\"SansSerif\", 0, 12)); // NOI18N\n clearJMenuItem.setMnemonic('C');\n clearJMenuItem.setText(\"Clear\");\n clearJMenuItem.setToolTipText(\"instead of erase button\");\n clearJMenuItem.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n clearJMenuItemActionPerformed(evt);\n }\n });\n jMenu1.add(clearJMenuItem);\n\n openJMenuItem.setFont(new java.awt.Font(\"SansSerif\", 0, 12)); // NOI18N\n openJMenuItem.setMnemonic('O');\n openJMenuItem.setText(\"Open\");\n openJMenuItem.setToolTipText(\"Open the txt file\");\n openJMenuItem.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n openJMenuItemActionPerformed(evt);\n }\n });\n jMenu1.add(openJMenuItem);\n\n saveJMenuItem.setFont(new java.awt.Font(\"SansSerif\", 0, 12)); // NOI18N\n saveJMenuItem.setMnemonic('S');\n saveJMenuItem.setText(\"Save\");\n saveJMenuItem.setToolTipText(\"instead of saving file\");\n saveJMenuItem.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n saveJMenuItemActionPerformed(evt);\n }\n });\n jMenu1.add(saveJMenuItem);\n\n printJMenuItem.setFont(new java.awt.Font(\"SansSerif\", 0, 12)); // NOI18N\n printJMenuItem.setMnemonic('T');\n printJMenuItem.setText(\"Print\");\n printJMenuItem.setToolTipText(\"print this form\");\n printJMenuItem.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n printJMenuItemActionPerformed(evt);\n }\n });\n jMenu1.add(printJMenuItem);\n\n quitJMenuItem.setFont(new java.awt.Font(\"SansSerif\", 0, 12)); // NOI18N\n quitJMenuItem.setMnemonic('Q');\n quitJMenuItem.setText(\"Quit\");\n quitJMenuItem.setToolTipText(\"exit\");\n quitJMenuItem.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n quitJMenuItemActionPerformed(evt);\n }\n });\n jMenu1.add(quitJMenuItem);\n\n jMenuBar1.add(jMenu1);\n\n helpJMenu.setMnemonic('H');\n helpJMenu.setText(\"Help\");\n helpJMenu.setToolTipText(\"showing about form\");\n\n aboutJMenuItem.setFont(new java.awt.Font(\"SansSerif\", 0, 12)); // NOI18N\n aboutJMenuItem.setMnemonic('A');\n aboutJMenuItem.setText(\"About\");\n aboutJMenuItem.setToolTipText(\"uderstanding program \");\n aboutJMenuItem.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n aboutJMenuItemActionPerformed(evt);\n }\n });\n helpJMenu.add(aboutJMenuItem);\n\n jMenuBar1.add(helpJMenu);\n\n setJMenuBar(jMenuBar1);\n\n pack();\n }",
"private void initialize() {\n\t\tframe = new JFrame();\n\t\tframe.setBounds(100, 100, 640, 260);\n\t\tframe.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\n\t\t\n\t\tJLabel lblKalkulator = new JLabel(\"Kalkulator\");\n\t\tlblKalkulator.setFont(new Font(\"Dialog\", Font.BOLD, 18));\n\t\tlblKalkulator.setHorizontalAlignment(SwingConstants.CENTER);\n\t\t\n\t\ttxtArg1 = new JTextField();\n\t\ttxtArg1.addMouseListener(new MouseAdapter() {\n\t\t\t@Override\n\t\t\tpublic void mouseClicked(MouseEvent e) {\n\t\t\t\tif(e.getButton() == MouseEvent.BUTTON3\n\t\t\t\t\t\t&& ! txtWynik.getText().isEmpty()) {\n\t\t\t\t\ttxtArg1.setText(txtWynik.getText());\n\t\t\t\t}\n\t\t\t}\n\t\t});\n\t\ttxtArg1.addActionListener(new ActionListener() {\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\tprzelicz();\n\t\t\t}\n\t\t});\n\t\ttxtArg1.setHorizontalAlignment(SwingConstants.RIGHT);\n\t\ttxtArg1.setFont(new Font(\"Dialog\", Font.PLAIN, 24));\n\t\ttxtArg1.setColumns(10);\n\t\t\n\t\ttxtArg2 = new JTextField();\n\t\ttxtArg2.addActionListener(new ActionListener() {\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\tprzelicz();\n\t\t\t}\n\t\t});\n\t\ttxtArg2.addMouseListener(new MouseAdapter() {\n\t\t\t@Override\n\t\t\tpublic void mouseClicked(MouseEvent e) {\n\t\t\t\tif(e.getButton() == MouseEvent.BUTTON3\n\t\t\t\t\t\t&& ! txtWynik.getText().isEmpty()) {\n\t\t\t\t\ttxtArg2.setText(txtWynik.getText());\n\t\t\t\t}\n\t\t\t}\n\t\t});\n\t\ttxtArg2.setHorizontalAlignment(SwingConstants.RIGHT);\n\t\ttxtArg2.setFont(new Font(\"Dialog\", Font.PLAIN, 24));\n\t\ttxtArg2.setColumns(10);\n\t\t\n\t\tcomboBoxOperacja = new JComboBox<>();\n\t\tcomboBoxOperacja.addActionListener(new ActionListener() {\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\tprzelicz();\n\t\t\t}\n\t\t});\n\t\tcomboBoxOperacja.setFont(new Font(\"Dialog\", Font.BOLD, 24));\n\t\tcomboBoxOperacja.setModel(new DefaultComboBoxModel<>(new String[] {\"+\", \"-\", \"*\", \"/\", \"mod\", \"pow\", \"min\", \"max\"}));\n\t\t\n\t\tJButton btnPolicz = new JButton(\"Policz\");\n\t\tbtnPolicz.addActionListener(new ActionListener() {\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\tprzelicz();\n\t\t\t}\n\t\t});\n\t\tbtnPolicz.setFont(new Font(\"Dialog\", Font.BOLD, 24));\n\t\t\n\t\ttxtWynik = new JTextField();\n\t\ttxtWynik.setForeground(Color.BLUE);\n\t\ttxtWynik.setHorizontalAlignment(SwingConstants.RIGHT);\n\t\ttxtWynik.setFont(new Font(\"Dialog\", Font.BOLD, 24));\n\t\ttxtWynik.setText(\"0\");\n\t\ttxtWynik.setColumns(10);\n\t\tGroupLayout groupLayout = new GroupLayout(frame.getContentPane());\n\t\tgroupLayout.setHorizontalGroup(\n\t\t\tgroupLayout.createParallelGroup(Alignment.LEADING)\n\t\t\t\t.addGroup(groupLayout.createSequentialGroup()\n\t\t\t\t\t.addContainerGap()\n\t\t\t\t\t.addGroup(groupLayout.createParallelGroup(Alignment.LEADING)\n\t\t\t\t\t\t.addComponent(lblKalkulator, GroupLayout.DEFAULT_SIZE, 608, Short.MAX_VALUE)\n\t\t\t\t\t\t.addGroup(groupLayout.createSequentialGroup()\n\t\t\t\t\t\t\t.addGroup(groupLayout.createParallelGroup(Alignment.LEADING)\n\t\t\t\t\t\t\t\t.addComponent(txtArg1, GroupLayout.PREFERRED_SIZE, 232, GroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t.addComponent(btnPolicz, GroupLayout.PREFERRED_SIZE, 226, GroupLayout.PREFERRED_SIZE))\n\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.UNRELATED)\n\t\t\t\t\t\t\t.addGroup(groupLayout.createParallelGroup(Alignment.TRAILING)\n\t\t\t\t\t\t\t\t.addGroup(groupLayout.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t.addComponent(comboBoxOperacja, 0, 91, Short.MAX_VALUE)\n\t\t\t\t\t\t\t\t\t.addGap(18)\n\t\t\t\t\t\t\t\t\t.addComponent(txtArg2, GroupLayout.PREFERRED_SIZE, 249, GroupLayout.PREFERRED_SIZE))\n\t\t\t\t\t\t\t\t.addComponent(txtWynik, GroupLayout.DEFAULT_SIZE, 358, Short.MAX_VALUE))))\n\t\t\t\t\t.addContainerGap())\n\t\t);\n\t\tgroupLayout.setVerticalGroup(\n\t\t\tgroupLayout.createParallelGroup(Alignment.LEADING)\n\t\t\t\t.addGroup(groupLayout.createSequentialGroup()\n\t\t\t\t\t.addContainerGap()\n\t\t\t\t\t.addComponent(lblKalkulator)\n\t\t\t\t\t.addGap(18)\n\t\t\t\t\t.addGroup(groupLayout.createParallelGroup(Alignment.LEADING)\n\t\t\t\t\t\t.addComponent(txtArg2)\n\t\t\t\t\t\t.addGroup(groupLayout.createParallelGroup(Alignment.BASELINE)\n\t\t\t\t\t\t\t.addComponent(txtArg1, GroupLayout.DEFAULT_SIZE, 35, Short.MAX_VALUE)\n\t\t\t\t\t\t\t.addComponent(comboBoxOperacja)))\n\t\t\t\t\t.addGap(18)\n\t\t\t\t\t.addGroup(groupLayout.createParallelGroup(Alignment.LEADING, false)\n\t\t\t\t\t\t.addComponent(txtWynik)\n\t\t\t\t\t\t.addComponent(btnPolicz, GroupLayout.DEFAULT_SIZE, GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))\n\t\t\t\t\t.addContainerGap(78, Short.MAX_VALUE))\n\t\t);\n\t\tframe.getContentPane().setLayout(groupLayout);\n\t}",
"public void panelProcess() {\n\t\tif (equal(\"A \", stateVariable.getZzfunmode())) {\n\t\t\tstateVariable.setZmsage(blanks(78));\n\t\t\t// - Prompt\n\t\t\tif (nmfkpinds.funKey04()) {\n\t\t\t\tsrprom();\n\t\t\t}\n\t\t\tvalidt();\n\t\t\tif (! nmfkpinds.pgmInd99()) {\n\t\t\t\tstateVariable.setXwpric(stateVariable.getXwanpr());\n\t\t\t}\n\t\t\tif (nmfkpinds.pgmInd99()) {\n\t\t\t\tstateVariable.setZmsage(subString(errmsg, 1, 78));\n\t\t\t\taddrec0();\n\t\t\t}\n\t\t\tif (! nmfkpinds.funKey03() && ! nmfkpinds.funKey12()) {\n\t\t\t\tstateVariable.setZzfunmode(\"A \");\n\t\t\t\tzzNxtFun = \"WWCONDET04D \";\n\t\t\t\tthrow new NewScreenException(zzNxtFun, \"\");\n\t\t\t}\n\t\t\taddrec0();\n\t\t\tnmfkpinds.setFunKey12(false);\n\t\t\tmainline0();\n\t\t\treturn;\n\t\t}\n\t\tif (equal(\"B \", stateVariable.getZzfunmode())) {\n\t\t\tstateVariable.setZmsage(blanks(78));\n\t\t\t// - Prompt\n\t\t\tif (nmfkpinds.funKey04()) {\n\t\t\t\tsrprom();\n\t\t\t}\n\t\t\tvalidt();\n\t\t\tif (nmfkpinds.pgmInd99()) {\n\t\t\t\tstateVariable.setZmsage(subString(errmsg, 1, 78));\n\t\t\t\tchgrec0();\n\t\t\t}\n\t\t\tif (! nmfkpinds.funKey03() && ! nmfkpinds.funKey12()) {\n\t\t\t\tstateVariable.setZzfunmode(\"B \");\n\t\t\t\tzzNxtFun = \"WWCONDET04D \";\n\t\t\t\tthrow new NewScreenException(zzNxtFun, \"\");\n\t\t\t}\n\t\t\tchgrec0();\n\t\t\tstateVariable.setShwrec(stateVariable.getSflrrn());\n\t\t\tstateVariable.setDssel(blanks(1));\n\t\t\t// End: For each selection\n\t\t\tzselec0();\n\t\t\tnmfkpinds.setFunKey12(false);\n\t\t\tmainline0();\n\t\t\treturn;\n\t\t}\n\t\tif (equal(\"C \", stateVariable.getZzfunmode())) {\n\t\t\tstateVariable.setZmsage(blanks(78));\n\t\t\t// - Prompt\n\t\t\tif (nmfkpinds.funKey04()) {\n\t\t\t\tsrprom();\n\t\t\t}\n\t\t\tif (nmfkpinds.funKey23()) {\n\t\t\t\treturn;\n\t\t\t}\n\t\t\tdelrec0();\n\t\t\tif (nmfkpinds.funKey23()) {\n\t\t\t\tstateVariable.setZzfunmode(\"C \");\n\t\t\t\tzzNxtFun = \"WWCONDET04D \";\n\t\t\t\tthrow new NewScreenException(zzNxtFun, \"\");\n\t\t\t}\n\t\t\tstateVariable.setShwrec(stateVariable.getSflrrn());\n\t\t\tstateVariable.setDssel(blanks(1));\n\t\t\t// End: For each selection\n\t\t\tzselec0();\n\t\t\tnmfkpinds.setFunKey12(false);\n\t\t\tmainline0();\n\t\t\treturn;\n\t\t}\n\t\tif (equal(\"D \", stateVariable.getZzfunmode())) {\n\t\t\tstateVariable.setZmsage(blanks(78));\n\t\t\t// - Prompt\n\t\t\tif (nmfkpinds.funKey04()) {\n\t\t\t\tsrprom();\n\t\t\t}\n\t\t\tdsprec0();\n\t\t\tstateVariable.setShwrec(stateVariable.getSflrrn());\n\t\t\tstateVariable.setDssel(blanks(1));\n\t\t\t// End: For each selection\n\t\t\tzselec0();\n\t\t\tnmfkpinds.setFunKey12(false);\n\t\t\tmainline0();\n\t\t\treturn;\n\t\t}\n\t}",
"public void alternateFunction()\n\t{\n\t\tstart();\n\t\trunAlgorithm();\n\t}",
"public static void main(){\n\t\tint option = getUserOption();\n\t\t/** switch case option start below */\n\t\tswitch (option){\n\t\t\tcase 1 : ToScreen.listEmployee(employee.getAllEmployee(), true); main();\n\t\t\t\tbreak;\n\t\t\tcase 2 : listStaffByCategory();\n\t\t\t\tbreak;\n\t\t\tcase 3 : ToScreen.listAdminStaffTask(employee.getAllAdminStaff(), true);main();\n\t\t\t\tbreak;\n\t\t\tcase 4 : searchStaffByName();\n\t\t\t\tbreak;\n\t\t\tcase 5 : ToScreen.listAnimal(animals.getAllAnimals(), true); main();\n\t\t\t\tbreak;\n\t\t\tcase 6 : ListAnimalByType();\n\t\t\t\tbreak;\n\t\t\tcase 7 : searchAnimalByName();\n\t\t\t\tbreak;\n\t\t\tcase 8 : MenuReception.main();\n\t\t\t\tbreak;\n\t\t\tcase 9 : System.exit(0);\n\t\t\t\tbreak;\n\t\t\tdefault:\n\t\t\t\tmain();\n\t\t}\n\t}",
"private static void menuSelector(){\r\n\t\tint answer= getNumberAnswer();\r\n\t\tswitch (answer) {\r\n\t\tcase 0:\r\n\t\t\tshowShapeInfo(shapes[0]);\r\n\t\t\tbreak;\r\n\t\tcase 1:\r\n\t\t\tcreateShape();\r\n\t\t\tbreak;\r\n\t\tcase 2:\r\n\t\t\tSystem.out.println(\"Its Perimeter is equal to: \" +calcShapePerimeter(shapes[0]));\r\n\t\t\tbreak;\r\n\t\tcase 3:\r\n\t\t\tSystem.out.println(\"Its Area is equal to: \" +calcShapeArea(shapes[0]));\r\n\t\t\tbreak;\r\n\t\tcase 4:\r\n\t\t\tSystem.out.println(\"Provide integer to use for scaling shape: \");\r\n\t\t\tscaleShape(shapes[0], getNumberAnswer());\r\n\t\t\tbreak;\r\n\t\tdefault:\r\n\t\t\tSystem.out.println(\"That's not actually an option.\");\r\n\t\t\tbreak;\r\n\t\t}\r\n\t}",
"@Override public void widgetSelected(SelectionEvent arg0) {\n\t\t\t if((gameAlive == false)&&(! (domain.getText().isEmpty()))&&(! algorithm.getText().isEmpty())&&(! hardLevel.getText().isEmpty())) {\r\n\t\t\t\t //get selected combos and start conversation with the model\r\n\t\t\t\t String s = \"SelectGame \"+domain.getText()+\":\"+hardLevel.getText()+\",SelectAlgoritm \"+algorithm.getText()+\",play\";\r\n\t\t\t\t actions = s.split(\",\");\r\n\t\t\t\t gameAlive = true;\r\n\t\t\t\t if(domain.getText().equals(\"TicTacToe\")) {\r\n\t\t\t\t\t board = new TicTacToeCanvas(shell, SWT.BORDER, view);\r\n\t\t\t\t\t shell.setSize(shell.getSize().x+1, shell.getSize().y+1);\r\n\t\t\t\t\t// board.setLayoutData(new GridData(SWT.FILL, SWT.FILL, true, true, 3, 6));\r\n\t\t\t\t }\r\n\t\t\t\t else if(domain.getText().equals(\"Reversi\")) {\r\n\t\t\t\t\t board = new ReversiCanvas(shell, SWT.BORDER, view);\r\n\t\t\t\t\t shell.setSize(shell.getSize().x+1, shell.getSize().y+1);\r\n\t\t\t\t }\r\n\t\t\t\t try {\r\n\t\t\t\t\t startView();\r\n\t\t\t\t } catch (IOException e) {\r\n\t\t\t\t\t getExeptionMessage(e.getMessage());\r\n\t\t\t\t }\r\n\t\t\t }\r\n\t\t }",
"private void run()\n {\n\tString[] info = null;\n\tnumber = new Stack<String>();\n\totherNumber = new Stack<String>();\n\tScanner scan = new Scanner(System.in);\n\twhile(scan.hasNext())\n\t{\n\t info = scan.nextLine().trim().split(\"\\\\s+\");\n\t if(info.length == 2)\n\t {\n\t\tnum1 = isValid(info[0]);\n\t\tnum2 = isValid(info[1]);\n\t\tif(num1 != null && num2 != null)\n\t\t{\n\t\t generateLists();\n\t\t addition();\n\t\t outputData();\n\t\t clear();\n\t\t}\n\t\telse error();\n\t }\n\t else error();\n\t}\n }",
"public static void menu()\n {\n //Complete exercises 9.3.1, 9.4.2, and 9.6.1. Extra Credit: 9.3.1 (d)\n System.out.println(\"Welcome to Akash and Bobby's Homework\");\n char part;\n\n for (int i = 0; i < 100; i++) {\n System.out.println(\"______________________________________\\n\\n\");\n System.out.println(\"\\n\");\n System.out.println(\"(a) Exercise 9.3.1 [Parts a - c, e]\");\n System.out.println(\"(b) Exercise 9.4.2 [Parts a - d]\");\n System.out.println(\"(c) Exercise 9.3.1 d [Extra Credit]\");\n System.out.println(\"Enter [exit] to quit.\");\n char choice = getResponse(\"Exercise\", false); // a,b,c,d or x\n if (choice == 'g') {\n System.out.println(\"Bye, thanks for playing.\");\n break;\n }\n while (choice == 'x') {\n choice = getResponse(\"Exercise\", true);\n }\n System.out.println(\"-----------------------------------------------\");\n if (choice == 'a') {\n System.out.println(\"Exercise 9.3.1 [parts a - c, e]\");\n part = getResponse(\"Part\", false);\n while (part == 'x') {\n part = getResponse(\"Part\", true);\n }\n System.out.println(\"Exercise 9.3.1: \" + part);\n Exercise931(part);\n //Call Exercise931(choice);\n } else if (choice == 'b') {\n System.out.println(\"Exercise 9.4.2 [parts a - d]\");\n part = getResponse(\"Part\", false);\n while (part == 'x') {\n part = getResponse(\"Part\", true);\n }\n System.out.println(\"Exercise 9.4.2: \" + part);\n Exercise942(part);\n //Call Exercise942(choice);\n } else if (choice == 'c') {\n System.out.println(\"Exercise 9.3.1 d\");\n //Call Exercise931d;\n } else if (choice == 'd') {\n //Exercise931(d);\n }\n }\n }",
"public static void main(String[] args) {\n StdOut.println(\"Elven's Percolation Runner w/ Graphics\");\n StdOut.println(\"Due to graphics limitations, the max grid length is \" + maxN);\n StdOut.println(\"Please Enter Grid Length:\");\n if (N > maxN) {\n StdOut.println(\"max grid length exceeded, running at grid length = \" + maxN);\n }\n N = Math.min(StdIn.readInt(), maxN);\n StdOut.println(\"Which algorithm would you like to test?\");\n StdOut.println(\"1 : QuickFind\");\n StdOut.println(\"2 : QuickUnion\");\n StdOut.println(\"3 : WeightedQuickUnion\");\n StdOut.println(\"4 : WeightedQuickUnion w/ Path Compression\");\n StdOut.println(\"5 : Simulate all of the above\");\n StdOut.println(\"Please input the number corresponding to your chosen algorithm.\");\n int algSelection = StdIn.readInt();\n if (!(algSelection > 0 && algSelection < 6)) {\n StdOut.println(\"You have failed to enter a valid algorithm number, defaulting to simulating all algorithms\");\n algSelection = 1;\n }\n SQR_SIZE = 0.5 / N;\n StdOut.print(\"Input how many repetitions of algorithm #\"+algSelection+\" to simulate: \");\n reps = StdIn.readInt();\n\n //uses another array of algos for Confirmed Chosen Algorithm\n chosenAlg = new algos[1];\n switch (algSelection) {\n case 1:\n chosenAlg[0] = algos.QuickFind;\n break;\n case 2:\n chosenAlg[0] = algos.QuickUnion;\n break;\n case 3:\n chosenAlg[0] = algos.WeightedQuickUnion;\n break;\n case 4:\n chosenAlg[0] = algos.QuickUnionPathCompression;\n break;\n case 5:\n chosenAlg = new algos[4];\n chosenAlg[0] = algos.QuickFind;\n chosenAlg[1] = algos.QuickUnion;\n chosenAlg[2] = algos.WeightedQuickUnion;\n chosenAlg[3] = algos.QuickUnionPathCompression;\n break;\n }\n StdOut.println(\"GraphicsRunner currently running \" + reps+ \"reps of algorithm #\"+algSelection);\n\n //init's drawing field\n StdDraw.setCanvasSize(APPLICATION_SIZE, APPLICATION_SIZE);\n StdDraw.setPenColor(closedSite);\n StdDraw.filledSquare(APPLICATION_SIZE / 2, APPLICATION_SIZE / 2, APPLICATION_SIZE);\n\n long start, end;\n\n //runs through the chosenAlg[] runs\n for (algos currentAlg : chosenAlg) {\n start = System.currentTimeMillis();\n double total = 0;\n for (int j = 0; j < reps; j++) {\n total += calcPercolate(currentAlg);\n }\n end = System.currentTimeMillis();\n StdOut.println(currentAlg + \"\\nAverage Percolation Probability: \" + total / reps / (N * N));\n StdOut.println(\"Time Taken (with graphics): \" + (end - start) + \" ms\\n\");\n }\n }",
"public void run(){\n int selection = -1;\n super.myConsole.listOptions(menuOptions);\n selection = super.myConsole.getInputOption(menuOptions);\n branchMenu(selection);\n }",
"public void program() throws Exception {\r\n int valg;\r\n skrivInn(\"dvdarkiv2.txt\");//leser inn fra dvd arkivet\r\n while(true) {\r\n meny();//kaller paa meny for a skrive ut menyen etter hvert fullforte valg\n System.out.println(\"Skriv inn valget ditt\");\n valg = sjekkOmTall();//kaller paa metoden for o sorge for aa faa valg\n if (valg == 1) {\n nyPerson();\n }\n else if (valg == 2) {\n kjop();\n }\n else if (valg == 3) {\n laan();\n }\n else if (valg == 4) {\n visPerson();\n }\n else if (valg == 5) {\n visOversikt();\n }\n else if (valg == 6){\n retur();\n }\n else if (valg == 7) {\n avslutt();\n }\n }\r\n }",
"private static void functionMode() throws NoSuchCommandExceptions\n\t{\n\t\t// show some welcome message\n\t\tui.showWelcomeMsg(input);\n\n\t\t// ask user to enter G, R, A, W or E\n\t\twhile (true)\n\t\t{\n\t\t\tinput = ui.promptCommand(input);\n\n\t\t\tif (input.toUpperCase().equals(\"G\"))\n\t\t\t{\n\t\t\t\tSystem.out.println(ui.aGradeSystem.showGrade(id));\n\t\t\t}\n\t\t\telse if (input.toUpperCase().equals(\"R\"))\n\t\t\t{\n\t\t\t\tSystem.out.println(ui.aGradeSystem.showRank(id));\n\t\t\t}\n\t\t\telse if (input.toUpperCase().equals(\"W\"))\n\t\t\t{\n\t\t\t\tui.aGradeSystem.updateWeights();\n\t\t\t}\n\t\t\telse if (input.toUpperCase().equals(\"E\"))\n\t\t\t{\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\t}",
"private void select() {\n\t\tif (selected.equals(mealSelect) && !eating) {\n\t\t\tmakeMeal();\n\t\t} else if (selected.equals(snackSelect) && !eating) {\n\t\t\tmakeSnack();\n\t\t} else if (selected.equals(medicineSelect) && !eating){\n\t\t\tmakeMedicine();\n\t\t} else if (selected.equals(playSelect) && !eating){\n\t\t\tmakePlay();\n\t\t}\n\t\t\n\t}",
"public void changeSpecs(int Idx) {\n\n tb_rule.setText(\"\");\n b_doApply = false;\n /* clear the image panel */\n if (b_gotImagePnl == true) {\n pnl_image.repaint();\n }\n\n\n switch (Idx) {\n case 0:\n /* quadratic Koch Island 1 pg. 13 */\n tb_clr.setText(\"16\");\n tb_axiom.setText(\"F+F+F+F\");\n tb_ignore.setText(\"F+-\");\n tb_depth.setText(\"2\");\n tb_scale.setText(\"90\");\n tb_angle.setText(\"4\");\n lst_rules.removeAll();\n lst_rules.add(\"* <F> * --> F+F-F-FF+F+F-F\");\n\n break;\n\n\n case 1: /* Quadratic Koch Island 2 pg. 14 */\n\n tb_clr.setText(\"16\");\n tb_axiom.setText(\"F+F+F+F\");\n tb_ignore.setText(\"F+-\");\n tb_depth.setText(\"2\");\n tb_scale.setText(\"90\");\n tb_angle.setText(\"4\");\n lst_rules.removeAll();\n lst_rules.add(\"* <F> * --> F-FF+FF+F+F-F-FF+F+F-F-FF-FF+F\");\n break;\n\n case 2: /* Island & Lake Combo. pg. 15 */\n\n\n tb_clr.setText(\"16\");\n tb_axiom.setText(\"F-F-F-F\");\n tb_ignore.setText(\"Ff+-\");\n tb_depth.setText(\"2\");\n tb_scale.setText(\"100\");\n tb_angle.setText(\"4\");\n lst_rules.removeAll();\n lst_rules.add(\"* <F> * --> F-f+FF-F-FF-Ff-FF+f-FF+F+FF+Ff+FFF\");\n lst_rules.add(\"* <f> * --> ffffff\");\n break;\n\n case 3:\t /* Koch Curve A pg. 16 */\n\n\n tb_clr.setText(\"16\");\n tb_axiom.setText(\"F+F+F+F\");\n tb_ignore.setText(\"F+-\");\n tb_depth.setText(\"4\");\n tb_scale.setText(\"100\");\n tb_angle.setText(\"4\");\n lst_rules.removeAll();\n lst_rules.add(\"* <F> * --> FF+F+F+F+F+F-F\");\n break;\n\n case 4:\t /* Koch Curve B pg. 16 */\n\n tb_clr.setText(\"16\");\n tb_axiom.setText(\"F+F+F+F\");\n tb_ignore.setText(\"F+\");\n tb_depth.setText(\"4\");\n tb_scale.setText(\"100\");\n tb_angle.setText(\"4\");\n lst_rules.removeAll();\n lst_rules.add(\"* <F> * --> FF+F+F+F+FF\");\n\n\n break;\n\n case 5:\t /* Koch Curve C pg. 16 */\n\n\n tb_clr.setText(\"16\");\n tb_axiom.setText(\"F+F+F+F\");\n tb_ignore.setText(\"F+-\");\n tb_depth.setText(\"3\");\n tb_scale.setText(\"90\");\n tb_angle.setText(\"4\");\n lst_rules.removeAll();\n lst_rules.add(\"* <F> * --> FF+F-F+F+FF\");\n break;\n\n\n case 6: /* Koch Curve D pg. 16 */\n\n\n tb_clr.setText(\"16\");\n tb_axiom.setText(\"F+F+F+F\");\n tb_ignore.setText(\"F+\");\n tb_depth.setText(\"4\");\n tb_scale.setText(\"100\");\n tb_angle.setText(\"4\");\n lst_rules.removeAll();\n lst_rules.add(\"* <F> * --> FF+F++F+F\");\n break;\n\n case 7:\t /* Koch Curve E pg. 16 */\n\n\n tb_clr.setText(\"16\");\n tb_axiom.setText(\"F+F+F+F\");\n tb_ignore.setText(\"F+\");\n tb_depth.setText(\"5\");\n tb_scale.setText(\"90\");\n tb_angle.setText(\"4\");\n lst_rules.removeAll();\n lst_rules.add(\"* <F> * --> F+FF++F+F\");\n break;\n\n case 8: /* Koch Curve F pg. 16 */\n\n\n tb_clr.setText(\"16\");\n tb_axiom.setText(\"F+F+F+F\");\n tb_ignore.setText(\"F+-\");\n tb_depth.setText(\"4\");\n tb_scale.setText(\"90\");\n tb_angle.setText(\"4\");\n lst_rules.removeAll();\n lst_rules.add(\"* <F> * --> F+F-F+F+F\");\n break;\n\n case 9: /* Mod of snowflake pg. 14*/\n\n\n tb_clr.setText(\"16\");\n tb_axiom.setText(\"+F\");\n tb_ignore.setText(\"F+-\");\n tb_depth.setText(\"4\");\n tb_scale.setText(\"100\");\n tb_angle.setText(\"4\");\n lst_rules.removeAll();\n lst_rules.add(\"* <F> * --> F-F+F+F-F\");\n\n break;\n\n case 10: /* Dragon Curve pg. 17 */\n\n\n tb_clr.setText(\"16\");\n tb_axiom.setText(\"Fl\");\n tb_ignore.setText(\"F+-\");\n tb_depth.setText(\"14\");\n tb_scale.setText(\"100\");\n tb_angle.setText(\"4\");\n lst_rules.removeAll();\n lst_rules.add(\"* <l> * --> l+rF+\");\n lst_rules.add(\"* <r> * --> -Fl-r\");\n break;\n\n case 11: /* Hexagonal Gosper Curve pg. 19 */\n\n\n tb_clr.setText(\"16\");\n tb_axiom.setText(\"XF\");\n tb_ignore.setText(\"F+-\");\n tb_depth.setText(\"4\");\n tb_scale.setText(\"90\");\n tb_angle.setText(\"6\");\n lst_rules.removeAll();\n lst_rules.add(\"* <XF> * --> XF+YF++YF-XF--XFXF-YF+\");\n lst_rules.add(\"* <YF> * --> -XF+YFYF++YF+XF--XF-YF\");\n break;\n\n case 12: /* Sierpinski Arrowhead pg. 19 */\n\n\n tb_clr.setText(\"16\");\n tb_axiom.setText(\"YF\");\n tb_ignore.setText(\"F+-\");\n tb_depth.setText(\"6\");\n tb_scale.setText(\"100\");\n tb_angle.setText(\"6\");\n lst_rules.removeAll();\n lst_rules.add(\"* <XF> * --> YF+XF+YF\");\n lst_rules.add(\"* <YF> * --> XF-YF-XF\");\n break;\n\n case 13: /* Peano Curve pg. 18 */\n\n\n tb_clr.setText(\"16\");\n tb_axiom.setText(\"X\");\n tb_ignore.setText(\"F+-\");\n tb_depth.setText(\"3\");\n tb_scale.setText(\"90\");\n tb_angle.setText(\"4\");\n lst_rules.removeAll();\n lst_rules.add(\"* <X> * --> XFYFX+F+YFXFY-F-XFYFX\");\n lst_rules.add(\"* <Y> * --> YFXFY-F-XFYFX+F+YFXFY\");\n break;\n\n case 14: /* Hilbert Curve pg. 18 */\n\n\n tb_clr.setText(\"16\");\n tb_axiom.setText(\"X\");\n tb_ignore.setText(\"F+-\");\n tb_depth.setText(\"5\");\n tb_scale.setText(\"90\");\n tb_angle.setText(\"4\");\n lst_rules.removeAll();\n lst_rules.add(\"* <X> * --> -YF+XFX+FY-\");\n lst_rules.add(\"* <Y> * --> +XF-YFY-FX+\");\n break;\n\n case 15: /* Approx of Sierpinski pg. 18 */\n\n tb_clr.setText(\"16\");\n tb_axiom.setText(\"F+XF+F+XF\");\n tb_ignore.setText(\"F+-\");\n tb_depth.setText(\"4\");\n tb_scale.setText(\"100\");\n tb_angle.setText(\"4\");\n lst_rules.removeAll();\n lst_rules.add(\"* <X> * --> XF-F+F-XF+F+XF-F+F-X\");\n break;\n\n case 16: /* Tree A pg. 25 */\n\n\n tb_clr.setText(\"16\");\n tb_axiom.setText(\"F\");\n tb_ignore.setText(\"F+-\");\n tb_depth.setText(\"5\");\n tb_scale.setText(\"100\");\n tb_angle.setText(\"14\");\n lst_rules.removeAll();\n lst_rules.add(\"* <F> * --> F[+F]F[-F]F\");\n break;\n\n case 17: /* Tree B pg. 25 */\n\n\n tb_clr.setText(\"16\");\n tb_axiom.setText(\"X\");\n tb_ignore.setText(\"F+-\");\n tb_depth.setText(\"5\");\n tb_scale.setText(\"100\");\n tb_angle.setText(\"16\");\n lst_rules.removeAll();\n lst_rules.add(\" * <X> * --> F-[[X]+X]+F[+FX]-X\");\n lst_rules.add(\" * <F> * --> FF\");\n break;\n\n\n case 18: /* Tree C pg. 25 */\n\n\n tb_clr.setText(\"16\");\n tb_axiom.setText(\"Y\");\n tb_ignore.setText(\"F+-\");\n tb_depth.setText(\"6\");\n tb_scale.setText(\"100\");\n tb_angle.setText(\"14\");\n lst_rules.removeAll();\n lst_rules.add(\" * <Y> * --> YFX[+Y][-Y]\");\n lst_rules.add(\" * <X> * --> X[-FFF][+FFF]FX\");\n break;\n\n case 19: /* Tree D pg. 25 */\n\n\n tb_clr.setText(\"16\");\n tb_axiom.setText(\"F\");\n tb_ignore.setText(\"F+-\");\n tb_depth.setText(\"4\");\n tb_scale.setText(\"100\");\n tb_angle.setText(\"16\");\n lst_rules.removeAll();\n lst_rules.add(\"* <F> * --> FF+[+F-F-F]-[-F+F+F]\");\n break;\n\n case 20: /* Tree E pg. 25 */\n\n\n tb_clr.setText(\"16\");\n tb_axiom.setText(\"X\");\n tb_ignore.setText(\"F+-\");\n tb_depth.setText(\"7\");\n tb_scale.setText(\"100\");\n tb_angle.setText(\"18\");\n lst_rules.removeAll();\n lst_rules.add(\"* <X> * --> F[+X]F[-X]+X\");\n lst_rules.add(\"* <F> * --> FF\");\n\n break;\n\n case 21: /* Tree B pg. 43 */\n tb_clr.setText(\"16\");\n tb_axiom.setText(\"F1F1F1\");\n tb_ignore.setText(\"F+-\");\n tb_depth.setText(\"30\");\n tb_scale.setText(\"100\");\n tb_angle.setText(\"16\");\n lst_rules.clear();\n lst_rules.add(\"0 <0> 0 --> 1\");\n lst_rules.add(\"0 <0> 1 --> 1[-F1F1]\");\n lst_rules.add(\"0 <1> 0 --> 1\");\n lst_rules.add(\"0 <1> 1 --> 1\");\n lst_rules.add(\"1 <0> 0 --> 0\");\n lst_rules.add(\"1 <0> 1 --> 1F1\");\n lst_rules.add(\"1 <1> 0 --> 1\");\n lst_rules.add(\"1 <1> 1 --> 0\");\n lst_rules.add(\"* <-> * --> +\");\n lst_rules.add(\"* <+> * --> -\");\n break;\n\n\n case 22: /* Tree C pg. 43 */\n tb_clr.setText(\"16\");\n tb_axiom.setText(\"F1F1F1\");\n tb_ignore.setText(\"F+-\");\n tb_depth.setText(\"26\");\n tb_scale.setText(\"100\");\n tb_angle.setText(\"14\");\n lst_rules.clear();\n lst_rules.add(\"0 <0> 0 --> 0\");\n lst_rules.add(\"0 <0> 1 --> 1\");\n lst_rules.add(\"0 <1> 0 --> 0\");\n lst_rules.add(\"0 <1> 1 --> 1[+F1F1]\");\n lst_rules.add(\"1 <0> 0 --> 0\");\n lst_rules.add(\"1 <0> 1 --> 1F1\");\n lst_rules.add(\"1 <1> 0 --> 0\");\n lst_rules.add(\"1 <1> 1--> 0\");\n lst_rules.add(\"* <-> * --> +\");\n lst_rules.add(\"* <+> * --> -\");\n break;\n\n\n case 23: /* Spiral Tiling pg. 70 */\n tb_clr.setText(\"16\");\n tb_axiom.setText(\"AAAA\");\n tb_ignore.setText(\"F+-\");\n tb_depth.setText(\"5\");\n tb_scale.setText(\"100\");\n tb_angle.setText(\"24\");\n lst_rules.removeAll();\n lst_rules.add(\"* <A> * --> X+X+X+X+X+X+\");\n lst_rules.add(\"* <X> * --> [F+F+F+F[---X-Y]+++++F++++++++F-F-F-F]\");\n lst_rules.add(\"* <Y> * --> [F+F+F+F[---Y]+++++F++++++++F-F-F-F]\");\n\n break;\n\n\n case 24: /* BSpline Triangle pg. 20 */\n tb_clr.setText(\"16\");\n tb_axiom.setText(\"F+F+F\");\n tb_ignore.setText(\"F+-\");\n tb_depth.setText(\"5\");\n tb_scale.setText(\"100\");\n tb_angle.setText(\"3\");\n lst_rules.removeAll();\n lst_rules.add(\"* <F> * --> F-F+F\");\n\n break;\n\n case 25: /* Snake Kolam pg. 72 */\n tb_clr.setText(\"16\");\n tb_axiom.setText(\"F+XF+F+XF\");\n tb_ignore.setText(\"F+-\");\n tb_depth.setText(\"4\");\n tb_scale.setText(\"90\");\n tb_angle.setText(\"4\");\n lst_rules.removeAll();\n lst_rules.add(\"* <X> * --> XF-F-F+XF+F+XF-F-F+X\");\n\n break;\n\n\n case 26: /* Anklets of Krishna pg. 73 */\n tb_clr.setText(\"16\");\n tb_axiom.setText(\"-X--X\");\n tb_ignore.setText(\"F+-\");\n tb_depth.setText(\"5\");\n tb_scale.setText(\"100\");\n tb_angle.setText(\"8\");\n lst_rules.removeAll();\n lst_rules.add(\"* <X> * --> XFX--XFX\");\n\n break;\n\n case 27: /* Color, Koch Curve B */\n\n tb_clr.setText(\"16\");\n tb_axiom.setText(\"F+F+F+F\");\n tb_ignore.setText(\"F+\");\n tb_depth.setText(\"4\");\n tb_scale.setText(\"100\");\n tb_angle.setText(\"4\");\n lst_rules.removeAll();\n lst_rules.add(\"* <F> * --> FF+F+;;;;;F:::::+F+FF\");\n\n break;\n\n case 28: /* Color, Koch Curve B */\n\n tb_clr.setText(\"16\");\n tb_axiom.setText(\"###F+F+F+F\");\n tb_ignore.setText(\"F+\");\n tb_depth.setText(\"4\");\n tb_scale.setText(\"100\");\n tb_angle.setText(\"4\");\n lst_rules.removeAll();\n lst_rules.add(\"* <F> * -->;FF+F+F+F+FF\");\n\n break;\n\n\n case 29: /* Color X, Spiral Tiling */\n tb_clr.setText(\"16\");\n tb_axiom.setText(\"AAAA\");\n tb_ignore.setText(\"F+-\");\n tb_depth.setText(\"5\");\n tb_scale.setText(\"100\");\n tb_angle.setText(\"24\");\n lst_rules.removeAll();\n lst_rules.add(\"* <A> * --> ;;;;;;;;X::::::::+X+X+X+X+X+\");\n lst_rules.add(\"* <X> * --> [F+F+F+F[---X-Y]+++++F++++++++F-F-F-F]\");\n lst_rules.add(\"* <Y> * --> [F+F+F+F[---Y]+++++F++++++++F-F-F-F]\");\n break;\n\n case 30: /* Color Center, Spiral Tiling */\n tb_clr.setText(\"16\");\n tb_axiom.setText(\"AAAA\");\n tb_ignore.setText(\"F+-\");\n tb_depth.setText(\"5\");\n tb_scale.setText(\"100\");\n tb_angle.setText(\"24\");\n lst_rules.removeAll();\n lst_rules.add(\"* <A> * --> X+X+X+X+X+X+\");\n lst_rules.add(\"* <X> * --> [;;;;;F+F+F+F:::::[---X-Y]+++++F++++++++F-F-F-F]\");\n lst_rules.add(\"* <Y> * --> [F+F+F+F[---Y]+++++F++++++++F-F-F-F]\");\n break;\n\n case 31: /* Color Spokes, Spiral Tiling */\n tb_clr.setText(\"16\");\n tb_axiom.setText(\"AAAA\");\n tb_ignore.setText(\"F+-\");\n tb_depth.setText(\"5\");\n tb_scale.setText(\"100\");\n tb_angle.setText(\"24\");\n lst_rules.removeAll();\n lst_rules.add(\"* <A> * --> X+X+X+X+X+X+\");\n lst_rules.add(\"* <X> * --> [F+F+F+F[---X-Y]+++++F++++++++;;;;F-F-F-F::::]\");\n lst_rules.add(\"* <Y> * --> [F+F+F+F[---Y]+++++F++++++++F-F-F-F]\");\n break;\n\n case 32: /* Color, Quad Koch Island 1 */\n /* quadratic Koch Island 1 pg. 13 */\n tb_clr.setText(\"16\");\n tb_axiom.setText(\"###F+F+F+F\");\n tb_ignore.setText(\"F+-\");\n tb_depth.setText(\"2\");\n tb_scale.setText(\"90\");\n tb_angle.setText(\"4\");\n lst_rules.removeAll();\n lst_rules.add(\"* <F> * --> ;F+F-F-FF+F+F-F\");\n\n break;\n\n case 33: /* Color, Tree E */\n tb_clr.setText(\"16\");\n tb_axiom.setText(\"X\");\n tb_ignore.setText(\"F+-\");\n tb_depth.setText(\"7\");\n tb_scale.setText(\"100\");\n tb_angle.setText(\"18\");\n lst_rules.removeAll();\n lst_rules.add(\"* <X> * --> F[+X]F[-X]+X\");\n lst_rules.add(\"* <F> * --> ;;FF::\");\n\n break;\n\n\n case 34: /* Color, Mod of Snowflake */\n tb_clr.setText(\"16\");\n tb_axiom.setText(\"###+F\");\n tb_ignore.setText(\"F+-\");\n tb_depth.setText(\"4\");\n tb_scale.setText(\"100\");\n tb_angle.setText(\"4\");\n lst_rules.removeAll();\n lst_rules.add(\"* <F> * --> ;F-F+F+F-F\");\n\n break;\n\n case 35: /* Color, Anklets of Krishna */\n tb_clr.setText(\"16\");\n tb_axiom.setText(\"-X--X\");\n tb_ignore.setText(\"F+-\");\n tb_depth.setText(\"5\");\n tb_scale.setText(\"100\");\n tb_angle.setText(\"8\");\n lst_rules.removeAll();\n lst_rules.add(\"* <X> * --> XFX--X;;;;;;F::::::X\");\n break;\n\n case 36: /* Color, Snake Kolam */\n tb_clr.setText(\"16\");\n tb_axiom.setText(\"F+XF+F+;;;XF:::\");\n tb_ignore.setText(\"F+-\");\n tb_depth.setText(\"4\");\n tb_scale.setText(\"90\");\n tb_angle.setText(\"4\");\n lst_rules.removeAll();\n lst_rules.add(\"* <X> * --> XF-F-F+XF+F+XF-F-F+X\");\n\n break;\n\n case 37: /* Simple Branch */\n tb_clr.setText(\"16\");\n tb_axiom.setText(\"FFF[-FFF][--FFF][FFF][+FFF][++FFF]\");\n tb_ignore.setText(\"F+-\");\n tb_depth.setText(\"1\");\n tb_scale.setText(\"90\");\n tb_angle.setText(\"8\");\n lst_rules.removeAll();\n\n break;\n\n\n\n\n default:\n tb_axiom.setText(\"\");\n tb_ignore.setText(\"\");\n tb_depth.setText(\"\");\n tb_scale.setText(\"\");\n tb_angle.setText(\"\");\n lst_rules.removeAll();\n break;\n\n }\n\n }",
"public String runGUI(){\n ArrayList<ArrayList<Furniture>> all = getSubsets(getFoundFurniture());\n ArrayList<ArrayList<Furniture>> valid = getValid(all);\n ArrayList<ArrayList<Furniture>> ordered = comparePrice(valid);\n ArrayList<ArrayList<Furniture>> orders = produceOrder();\n return checkOrder(orders, true);\n }",
"public void actionPerformed(ActionEvent a) {\n\n String command = a.getActionCommand();\n if (command.equals(\"e\")) {\n //Log toggle.\n if (consoleDisplayed = !consoleDisplayed) //Show\n splitter.setDividerLocation(defaultSliderPosition);\n else //Hide\n splitter.setDividerLocation(.999);\n } else if (command.equals(\"r\")) {\n //Gets the code into a string.\n String code = text.getText();\n\n //Marks certain areas as \"dirty\".\n //Dirty areas are places that shouldn't be considered for any keywords,\n //including \"import\", \"extend\", and so on.\n ArrayList<Integer> dirtyBounds = getDirty(code);\n\n //Not quite perfect all of the time.\n if (text.getText().contains(\"class\")) {\n //This is a bit more explicit\n //if(text.getText().trim().substring(0, text.getText().trim().indexOf(\"{\")).contains(\"class\")) {\n //This means we should try to compile this as normal.\n\n //Pulls out class name\n int firstPos = code.indexOf(\"class\");\n while(isDirty(dirtyBounds, firstPos)) \n firstPos = code.indexOf(\"class\", firstPos + 1);\n\n int secondPos = code.indexOf(\"{\"); //No checks here because who would possibly put a comment between \"class\" and \"{\"?\n String name = code.substring(firstPos + \"class\".length() + 1, secondPos).trim();\n\n //Just a safety check to make sure you don't try to modify this program while it's running.\n if (name.equals(\"Playground\")) {\n System.out.println(\"I know what you're doing and I don't approve. I won't even compile that.\");\n return;\n //println(\"Self-compiling. You were warned.\", warning); //Allowed users to bootstrap this program. October 26, 2014\n }\n\n compileAndRun(name, code);\n } else {\n //This means we should compile this as a playground.\n\n //TODO: Try to assign every line to a variable, and print it out if it's by itself. IE, saying \"int i = 0\" won't do anything,\n //but then just typing \"i\" or \"i;\" would print out \"0\". Add support for functions, too. So \"factorial(5)\" by itself would \n //print out \"120\" without any fluff.\n\n //TODO: Lazy typing. \"int i = 0\" should be equivilant to \"i = 0\"\n\n //TODO: Less need for casting. If \"int.toString()\" is called, modify in-place to \"(new Integer(int)).toString()\"\n //Similar for calls that need Strings but are passed primitives; \"promote\" them by prepending \"\"+ to them.\n\n //Common import statements built-in\n String importDump = new String();\n importDump+=(\"import java.util.*;\\n\" + \n \"import javax.swing.*;\\n\" + \n \"import javax.swing.event.*;\\n\" +\n \"import java.awt.*;\\n\" + \n \"import java.awt.event.*;\\n\" + \n \"import java.io.*;\\n\");\n\n //User-defined or auto-generated methods\n String methodDump = new String();\n\n //Pulls out any \"import\" statements and appends them to the import dump.\n int i = code.indexOf(\"import\");\n while(i >= 0) {\n //Ignores comments and string literals\n if (isDirty(dirtyBounds, i)) {\n i = code.indexOf(\"import\", i+1);\n continue;\n }\n\n String s = code.substring(i, code.indexOf(\";\", i) + 1); \n //System.out.println(\"Found import: \" + s);\n code = code.replaceFirst(s, \"\");\n importDump+=s+\"\\n\";\n i = code.indexOf(\"import\", i+1);\n }\n\n //Pulls out all methods\n i = code.indexOf(\"(\");\n while(i >= 0) {\n if (isDirty(dirtyBounds,i)) {\n i = code.indexOf(\"(\", i+1); continue;\n }\n\n //Move backwards first\n char temp = 0; int pos = i;\n boolean shouldSkip = false;\n while(--pos > 0) {\n temp = code.charAt(pos);\n if (temp == '.') {shouldSkip = true; break;} //This is a method call, ie String.charAt();\n if (temp == ';') {++pos; break;} //This is most likely a method declaration, since we had no errors\n //If we hit the start of the file, that's probable a method dec. too!\n }\n\n String sub = code.substring(pos, i);\n if (shouldSkip || isDirty(dirtyBounds, pos) || \n sub.contains(\"while\") || sub.contains(\"for\") || sub.contains(\"new\") || sub.contains(\"try\") || sub.contains(\"catch\")) \n {i=code.indexOf(\"(\", i+1); continue;} //If this def. isn't a method or it's in a comment\n\n int start = pos;\n temp = 0; pos = code.indexOf(\"{\", i+1);\n int count = 1; shouldSkip = false;\n if(pos != -1) {\n if (code.indexOf(\";\", i+1) > pos || code.indexOf(\";\", i+1) == -1) {\n while(++pos < code.length()) {\n if (count == 0) \n break;\n\n temp = code.charAt(pos);\n if (temp == '{') \n count++;\n if (temp == '}') \n count--;\n }\n } else {\n //If there's a semicolon between the opening paranthesis and opening curly brace, this isn't a method!\n i = code.indexOf(\"(\", i+1);\n continue;\n }\n } else {\n i = code.indexOf(\"(\", i+1);\n continue;\n }\n\n int end = pos;\n String s = code.substring(start,end);\n code = code.replace(s, \"\"); \n\n //Just to make it look nicer\n s = s.trim();\n\n //println(\"Found method: \" + s);\n\n //This makes using the method intuitive by effectively removing the need for static modifiers\n if (!s.substring(0,s.indexOf(\"(\")).contains(\"static\")) {\n s = \"static \" + s;\n //println(\"Silently adding 'static' modifier\", warning);\n }\n\n methodDump+=(s + \"\\n\");\n i = code.indexOf(\"(\", i+1);\n }\n\n //Inject the class header and main method, imports, and methods\n code = \"//User and auto-imports pre-defined\\n\"\n + importDump\n + \"//Autogenerated class\\n\"\n + \"public class Main {\\n\" \n + \"public static void main(String[] args) {\\n\"\n + code\n + \"\\n}\\n\"\n + methodDump \n + \"}\";\n\n //Run as normal\n compileAndRun(\"Main\", code);\n }\n } else if (command.equals(\"k\")) {\n kill(); \n } else if (command.equals(\"o\")) {\n of = new OptionFrame(frame);\n } else if (command.equals(\"/\")) {\n hf = new HelpFrame(frame);\n }\n }",
"private void initialize() {\n frmSimpleFamaGui = new JFrame();\n frmSimpleFamaGui.setTitle(\"Simple Fama GUI\");\n frmSimpleFamaGui.setBounds(100, 100, 800, 600);\n frmSimpleFamaGui.setDefaultCloseOperation(WindowConstants.EXIT_ON_CLOSE);\n frmSimpleFamaGui.getContentPane().setLayout(null);\n\n JPanel panelRuleEditor = new JPanel();\n panelRuleEditor.setBorder(new TitledBorder(null, \"Rule Editor\", TitledBorder.LEADING, TitledBorder.TOP, null, null));\n panelRuleEditor.setBounds(6, 11, 480, 285);\n frmSimpleFamaGui.getContentPane().add(panelRuleEditor);\n panelRuleEditor.setLayout(new BorderLayout(0, 0));\n\n JScrollPane scrollPaneRuleEditor = new JScrollPane();\n panelRuleEditor.add(scrollPaneRuleEditor, BorderLayout.CENTER);\n\n txtPnRuleText = new JTextPane();\n txtPnRuleText.setFont(new Font(\"Courier New\", Font.PLAIN, 16));\n txtPnRuleText.setToolTipText(\"\");\n scrollPaneRuleEditor.setViewportView(txtPnRuleText);\n\n JPanel panel = new JPanel();\n panel.setBorder(new TitledBorder(null, \"Options\", TitledBorder.LEADING, TitledBorder.TOP, null, null));\n panel.setBounds(486, 11, 293, 285);\n frmSimpleFamaGui.getContentPane().add(panel);\n panel.setLayout(null);\n\n JLabel lblOperations = new JLabel(\"Operations\");\n lblOperations.setBounds(19, 22, 69, 16);\n panel.add(lblOperations);\n\n comboBoxOperation = new JComboBox(options);\n comboBoxOperation.setBounds(20, 40, 258, 30);\n panel.add(comboBoxOperation);\n\n JButton btnCheck = new JButton(\"Check\");\n\n btnCheck.addActionListener(e -> {\n if (txtPnRuleText.getText().isEmpty()) {\n JOptionPane.showMessageDialog(null, \"There is no rule available, please write or load one!\");\n } else {\n writeRuleToDefaultFile();\n initializeFama();\n String selectedOperation = comboBoxOperation.getSelectedItem().toString();\n dtrpnOutput.setText(famaOperation.getOperationOutput(selectedOperation));\n }\n });\n\n btnCheck.setBounds(168, 82, 110, 29);\n panel.add(btnCheck);\n\n JButton btnSelectFile = new JButton(\"Load File\");\n btnSelectFile.setBounds(16, 297, 127, 29);\n frmSimpleFamaGui.getContentPane().add(btnSelectFile);\n\n JPanel panelOutput = new JPanel();\n panelOutput.setBorder(new TitledBorder(null, \"Output\", TitledBorder.LEADING, TitledBorder.TOP, null, null));\n panelOutput.setBounds(6, 327, 773, 230);\n frmSimpleFamaGui.getContentPane().add(panelOutput);\n panelOutput.setLayout(new BorderLayout(0, 0));\n\n JScrollPane scrollPaneOutput = new JScrollPane();\n panelOutput.add(scrollPaneOutput, BorderLayout.CENTER);\n \n dtrpnOutput = new JEditorPane();\n dtrpnOutput.setFont(new Font(\"Consolas\", Font.PLAIN, 18));\n dtrpnOutput.setEditable(false);\n scrollPaneOutput.setViewportView(dtrpnOutput);\n \n JButton btnExportModel = new JButton(\"Export Model\");\n btnExportModel.addActionListener( e -> {\n \t\twriteRuleToDefaultFile();\n String result = ExportModel.ExportFaMaModel();\n if(result.equals(\"File Saved!\"))\n {\n JOptionPane.showMessageDialog(null, \"Model File Exported!!\");\n }\n else{\n JOptionPane.showMessageDialog(null, result);\n }\n });\n btnExportModel.setBounds(153, 297, 142, 29);\n frmSimpleFamaGui.getContentPane().add(btnExportModel);\n\n btnSelectFile.addActionListener(e -> {\n JFileChooser jfc = new JFileChooser(FileSystemView.getFileSystemView().getHomeDirectory());\n jfc.setDialogTitle(\"Select FaMa File\");\n jfc.setAcceptAllFileFilterUsed(false);\n FileNameExtensionFilter filter = new FileNameExtensionFilter(\"*.fm\", \"fm\");\n jfc.addChoosableFileFilter(filter);\n\n int returnValue = jfc.showOpenDialog(null);\n if (returnValue == JFileChooser.APPROVE_OPTION) {\n String filePath = jfc.getSelectedFile().getPath();\n putRuleToTextPane(filePath);\n writeRuleToDefaultFile();\n initializeFama();\n }\n });\n }",
"public static void main(String[] args) throws IOException {\n Scanner input = new Scanner(System.in);\n System.out.println(\"Welcome to the sort and search on a real number application.\");\n System.out.println();\n Algorithm algorithm = new Algorithm();\n while (true) {\n System.out.println(\"+-------------------Menu------------------+\");\n System.out.println(\"1. Input\");\n System.out.println(\"2. Output\");\n System.out.println(\"3. Bubble sort\");\n System.out.println(\"4. Selection sort\");\n System.out.println(\"5. Insertion sort\");\n System.out.println(\"6. Search > value\");\n System.out.println(\"7. Search = value\");\n System.out.println(\"0. Exit\");\n System.out.print(\"Your choice: \");\n int choice = 0;\n\n while (input.hasNext()) {\n if (input.hasNextInt()) {\n choice = Integer.parseInt(input.nextLine());\n if (choice >= 0 && choice <= 7) {\n break;\n }\n System.out.print(\"Your choice: \");\n }\n else {\n System.out.println(\"Your choice: \");\n input.nextLine();\n }\n }\n\n if (choice == 0) {\n System.out.println(\"Good bye, have a nice day!\");\n break;\n }\n\n switch (choice) {\n case 1:\n algorithm.writeFile();\n break;\n case 2:\n algorithm.readFile();\n break;\n case 3:\n algorithm.bubbleSort();\n break;\n case 4:\n algorithm.selectionSort();\n break;\n case 5:\n algorithm.insertionSort();\n break;\n case 6:\n algorithm.search();\n break;\n case 7:\n algorithm.binarySearch();\n break;\n case 8:\n System.out.println(\"Good bye, have a nice day!\");\n System.exit(0);\n }\n }\n }",
"void shapeOperation() {\r\n String selStr; // variable to store the selected string\r\n\r\n repaint(); // repaint\r\n selStr = (String)cb1.getSelectedItem();\r\n // store the string of the selected item\r\n if (selStr == strShape[0]) { // if \"Line\" selected \r\n System.out.println(\"Line of menu Shape is selected.\");\r\n System.out.println(\"calling method line().\");\r\n ge.line(gra); // call method line() of class PaintTool\r\n System.out.println(\"method line of class PaintTool executed.\");\r\n } else if (selStr == strShape[1]) { // if \"Rectangle\" selected\r\n System.out.println(\"Rectangle of menu Shape is selected.\");\r\n System.out.println(\"calling method rectangle().\");\r\n ge.rectangle(gra); // call method rectangle() of class PaintTool\r\n System.out.println(\"method rectangle() executed.\");\r\n } else if (selStr == strShape[2]) { // if \"Oval\" selected\r\n System.out.println(\"Oval of menu Shape is selected.\");\r\n System.out.println(\"calling method oval().\");\r\n ge.oval(gra); // call method oval() of class PaintTool\r\n System.out.println(\"method oval() executed.\");\r\n }\r\n\r\n }",
"public abstract void runAlgorithm();",
"private void manual() {\n State q1 = new State(\"q1\", \"ID\");\n State q2 = new State(\"q2\", \"IF\");\n State q3 = new State(\"q3\", \"ID\");\n State q4 = new State(\"q4\", \"CONSTANTE\");\n State q5 = new State(\"q5\", \"ABRE_PARENTESES\");\n State q6 = new State(\"q6\", \"FECHA_PARENTESES\");\n State q7 = new State(\"q7\", \"OPERADOR_MAIOR\");\n State q8 = new State(\"q8\", \"OPERADOR_MENOR\");\n State q9 = new State(\"q9\", \"OPERADOR_DIFERENTE\");\n State q10 = new State(\"q10\", \"ID\");\n State q11 = new State(\"q11\", \"ID\");\n State q12 = new State(\"q12\", \"ID\");\n State q13 = new State(\"q13\", \"ID\");\n State q14 = new State(\"q14\", \"BEGIN\");\n State q15 = new State(\"q15\", \"ID\");\n State q16 = new State(\"q16\", \"ID\");\n State q17 = new State(\"q17\", \"END\");\n State q18 = new State(\"q18\", \"ESPACO\");\n State q19 = new State(\"q19\", \"ID\");\n State q20 = new State(\"q20\", \"ID\");\n State q21 = new State(\"q21\", \"ELSE\");\n\n // IF\n q0.put(\"[i]\", q1);\n q1.put(\"[f]\", q2);\n q1.put(\"[^\\\\Wf]\", q3);\n q2.put(\"[\\\\w]\", q3);\n\n // ID\n q0.put(\"[^\\\\Wbei0-9_]\", q3);\n q3.put(\"[\\\\w]\", q3);\n\n // CONSTANTE\n q0.put(\"[\\\\d]\", q4);\n q4.put(\"[\\\\d]\", q4);\n\n // ABRE_PARENTESES\n q0.put(\"[(]\", q5);\n\n // ABRE_PARENTESES\n q0.put(\"[)]\", q6);\n\n // OPERADOR_MAIOR\n q0.put(\"[>]\", q7);\n\n // OPERADOR_MENOR\n q0.put(\"[<]\", q8);\n\n // OPERADOR_DIFERENTE\n q0.put(\"[#]\", q9);\n\n // BEGIN\n q0.put(\"[b]\", q10);\n q10.put(\"[e]\", q11);\n q11.put(\"[g]\", q12);\n q12.put(\"[i]\", q13);\n q13.put(\"[n]\", q14);\n q10.put(\"[^\\\\We]\", q3);\n q11.put(\"[^\\\\Wg]\", q3);\n q12.put(\"[^\\\\Wi]\", q3);\n q13.put(\"[^\\\\Wn]\", q3);\n q14.put(\"[\\\\w]\", q3);\n\n // END\n q0.put(\"[e]\", q15);\n q15.put(\"[n]\", q16);\n q16.put(\"[d]\", q17);\n q15.put(\"[^\\\\Wnl]\", q3);\n q16.put(\"[^\\\\Wd]\", q3);\n q17.put(\"[\\\\w]\", q3);\n\n // ELSE\n q15.put(\"[l]\", q19);\n q19.put(\"[s]\", q20);\n q20.put(\"[e]\", q21);\n q19.put(\"[^\\\\Ws]\", q3);\n q20.put(\"[^\\\\We]\", q3);\n q21.put(\"[\\\\w]\", q3);\n\n // ESPACO\n q0.put(\"[\\\\s]\", q18);\n }",
"@Override\n public void actionPerformed(ActionEvent e) {\n\n //Super secret extra credit functionality :D\n Boolean yes = true;\n for (Boolean s : sequence) {\n if (s == false) {\n yes = false;\n }\n }\n System.out.println(\"\");\n if (yes == true) {\n try {\n specialExtraCredit();\n } catch (IOException ex) {\n Logger.getLogger(GraphicRunner.class.getName()).log(Level.SEVERE, null, ex);\n }\n }\n\n if (e.getSource() == tree) {\n runTree(191 - (int) (fractalDepth.getValue() * 1.9));\n \n //Super secret extra credit functionality :D\n if (sequence[0] == false) {\n sequence[0] = true;\n } else if (sequence[0] == true && sequence[1] == true && sequence[2] == false) {\n sequence[2] = true;\n } else if (sequence[0] == true && sequence[1] == true && sequence[2] == true && sequence[3] == true && sequence[4] == false) {\n sequence[4] = true;\n } else {\n for (Boolean seq : sequence) {\n seq = false;\n }\n }\n\n }\n if (e.getSource() == triangle) {\n runTriangle(401 - 4 * fractalDepth.getValue());\n \n //Super secret extra credit functionality :D\n if (sequence[0] == true && sequence[1] == true && sequence[2] == true && sequence[3] == true && sequence[4] == true && sequence[5] == false) {\n sequence[5] = true;\n } else {\n for (Boolean seq : sequence) {\n seq = false;\n\n }\n }\n\n }\n if (e.getSource() == original) {\n runOriginal(200 - 2 * fractalDepth.getValue());\n \n //Super secret extra credit functionality :D\n if (sequence[0] == true && sequence[1] == false) {\n sequence[1] = true;\n } else {\n for (Boolean seq : sequence) {\n seq = false;\n }\n }\n\n }\n if (e.getSource() == carpet) {\n runCarpet((int) (361 - 3.6 * fractalDepth.getValue()));\n \n //Super secret extra credit functionality :D\n if (sequence[0] == true && sequence[1] == true && sequence[2] == true && sequence[3] == false) {\n sequence[3] = true;\n } else {\n for (Boolean seq : sequence) {\n seq = false;\n }\n }\n\n }\n }",
"public void changeText()\n {\n Double base = 1.0;\n Double exponent = 0.0;\n\n try\n {\n /*get the values of the text inputs and set them to their respective variable, converting them to\n a double*/\n base = Double.parseDouble(txtBase.getText());\n exponent = Double.parseDouble(txtExponent.getText());\n }\n catch (NumberFormatException e) {\n /*On NumberFormatException, do nothing. Suppresses errors in the console which we do not need to\n know about, this is an expected and solved issue.*/\n }\n\n //calculate the new result, based on the current values of exponent and base, then set it to the output.\n Double result = Math.pow(base, exponent);\n lblResult.setText(result.toString());\n }",
"public static void main(String[] args) {\n Scanner scan;\n while(true) { //Loop the mode selection menu until a valid input is provided\n scan = new Scanner(System.in);\n printModeStatement(); //Call a function to print our mode selection statement\n if(scan.hasNextInt()) { //Check if input provided is a valid integer\n mode = scan.nextInt();\n if(0 < mode && mode < 4) { //Check if input provided is 1, 2, or 3\n break; //Valid input has been provided. Break out of the while loop\n }\n }\n } //If it reaches here, the input was invalid. Loop again.\n System.out.println(\"You selected mode \" + mode);\n\n while(true) {\n scan = new Scanner(System.in);\n System.out.print(\"Enter loan amount: $\");\n if(scan.hasNextDouble()) {\n loanAmt = scan.nextDouble();\n if(0 < loanAmt) {\n break;\n }\n }\n }\n while(true) {\n scan = new Scanner(System.in);\n System.out.print(\"Enter loan term: \");\n if(scan.hasNextInt()) {\n loanTerm = scan.nextInt();\n if(0 < loanTerm) {\n break;\n }\n }\n }\n while(true) {\n scan = new Scanner(System.in);\n System.out.print(\"Enter interest rate (%): \");\n if(scan.hasNextDouble()) {\n interestRate = scan.nextDouble();\n if(0 < interestRate && interestRate < 100) {\n break;\n }\n }\n }\n if(mode == 1) {\n flatInterest();\n }\n else if(mode == 2) {\n compoundingNoPayments();\n }\n\n else if(mode == 3) {\n compoundingInterest();\n }\n }",
"@Override\n\tpublic void run() {\n\t\ttry {\n\t\t\tThread.sleep(750);\n\t\t} catch (InterruptedException ex) {\n\t\t\treturn;\n\t\t}\n\t\tinitializeLabels();\n\t\tint iteration = 0;\n\t\twhile (iteration++ < maxIterations && !Thread.interrupted()) {\n\t\t\tappData.showCurrentIteration(iteration);\n\t\t\tassignLabels();\n\t\t\tif(iteration % updateInterval == 0){\n\t\t\t\tappData.updateChart(iteration);\n\t\t\t\tif (!isContinuous) {\n\t\t\t\t\tappData.enableRun();\n\t\t\t\t\ttocontinue.set(false);\n\t\t\t\t\twhile (!tocontinue()) { //wait until play is clicked\n\t\t\t\t\t\tif (Thread.interrupted()) {\n\t\t\t\t\t\t\treturn;\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\tappData.disableRun();\n\t\t\t\t}\n\t\t\t}\n\t\t\ttry {\n\t\t\t\tThread.sleep(750);\n\t\t\t} catch (InterruptedException ex) {\n\t\t\t\treturn;\n\t\t\t}\n\t\t}\n\n\t\tif(iteration-1 == maxIterations){\n\t\t\tappData.completeAlgorithm(); //algorithm exhausted all iterations\n\t\t\tappData.updateChart(maxIterations);\n\t\t}else{\n\t\t\tappData.autocompleteAlgorithm(); //algorithm terminated by itself\n\t\t\tappData.updateChart(iteration);\n\t\t}\n\t}",
"public static void main(String[] args) {\n\t\tint choice = 0;\n\t\tInterface itf = new Interface();\n\t\twhile(choice != 8) {\n\t\t\titf.print();\n\t\t\tchoice = itf.getChoice();\n\t\t\tswitch(choice) {\n\t\t\t\tcase 1:\n\t\t\t\t\tSystem.out.println(\"your select is 1:Show files content\");\n\t\t\t\t\tshow_content sc = new show_content();\n\t\t\t\t\tsc.print();\n\t\t\t\t\tbreak;\n\t\t\t\tcase 2:\n\t\t\t\t\tSystem.out.println(\"your select is 2:Add a new invoice line\");\t\t\t\t\t\n\t\t\t\t\tAdd_new_goods ng = new Add_new_goods();\n\t\t\t\t\tbreak;\n\t\t\t\tcase 3:\n\t\t\t\t\tSystem.out.println(\"your select is 3:Update a selected Invoice\");\n\t\t\t\t\tupdate_goods upg = new update_goods();\n\t\t\t\t\tbreak;\n\t\t\t\tcase 4:\n\t\t\t\t\tSystem.out.println(\"your select is 4 : Delete a selected invoice line\");\n\t\t\t\t\tdel_goods deg = new del_goods();\n\t\t\t\t\tbreak;\n\t\t\t\tcase 5:\n\t\t\t\t\tSystem.out.println(\"your select is 5 : Add a ChinaStyle Header and Footer\");\n\t\t\t\t\tadd_Cn_HF cf = new add_Cn_HF();\n\t\t\t\t\tbreak;\n\t\t\t\tcase 6:\n\t\t\t\t\tSystem.out.println(\"your select is 6 : Add a AmericaStyle Header and Footer\");\n\t\t\t\t\tadd_En_HF ef = new add_En_HF();\n\t\t\t\t\tbreak;\n\t\t\t\tcase 7:\n\t\t\t\t\tSystem.out.println(\"your select is 7 : Add mixed Header and Footer\");\n\t\t\t\t\tadd_mixed_HF mix = new add_mixed_HF(); \n\t\t\t\t\tbreak;\n\t\t\t\tcase 8:\n\t\t\t\t\tSystem.out.println(\"your select is 8:Exit\");\n\t\t\t\t\tSystem.out.println(\"Are you sure to exit?(Y/N)\");\n\t\t\t\t\ttry {\n\t\t\t\t\t\tchar c = (char)new BufferedReader(new InputStreamReader(System.in)).read();\n\t\t\t\t\t\tif(c == 'n' || c == 'N') {\n\t\t\t\t\t\t\tchoice = 1;\n\t\t\t\t\t\t}\n\t\t\t\t\t\tif(c == 'Y' || c=='y') {\n\t\t\t\t\t //\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\tcatch(IOException e) {\n\t\t\t\t\t\te.printStackTrace();\n\t\t\t\t\t}\n\t\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\t}",
"private void runMenu() throws ValidatorException, FileNotFoundException {\n while (true) {\n System.out.print(\"\\n1 - STUDENTS OPERATIONS\\n2 - COURSES OPERATIONS\\n3 - TEACHER OPERATIONS\\n\" +\n \"4 - REGISTRATION SYSTEM OPERATIONS\\n0 - EXIT\\n\");\n Scanner sc = new Scanner(System.in);\n int cmd = sc.nextInt();\n switch (cmd) {\n case 0: {\n System.exit(0);\n }\n case 1:\n while (true) {\n System.out.print(\"\\n1 - Add new student\\n\" +\n \"2 - Update student\\n\" +\n \"3 - Delete student\\n\" +\n \"4 - View student\\n\" +\n \"5 - Display all students\\n\" +\n \"6 - Filter students by name\\n\" +\n \"0 - Back\\n\");\n int cmd2 = sc.nextInt();\n if (cmd2 == 0)\n break;\n switch (cmd2) {\n case 1:\n addStudent();\n break;\n case 2:\n updateStudent();\n break;\n case 3:\n deleteStudent();\n break;\n case 4:\n viewStudent();\n break;\n case 5:\n viewAllStudents();\n break;\n case 6:\n filterStudents();\n break;\n }\n }\n break;\n case 2:\n while (true) {\n System.out.print(\"\\n1 - Add new course\\n\" +\n \"2 - Update course\\n\" +\n \"3 - Delete course\\n\" +\n \"4 - View course\\n\" +\n \"5 - Display courses\\n\" +\n \"6 - Sort courses by credits\\n\" +\n \"0 - Back\\n\");\n int cmd2 = sc.nextInt();\n if (cmd2 == 0)\n break;\n switch (cmd2) {\n case 1:\n addCourse();\n break;\n case 2:\n updateCourse();\n break;\n case 3:\n deleteCourse();\n break;\n case 4:\n viewCourse();\n break;\n case 5:\n viewCourses();\n break;\n case 6:\n sortCourses();\n break;\n }\n }\n break;\n case 3:\n while (true) {\n System.out.print(\"\\n1 - View teacher\\n\" +\n \"2 - Display teachers\\n\" +\n \"0 - Back\\n\");\n int cmd3 = sc.nextInt();\n if (cmd3 == 0)\n break;\n switch (cmd3) {\n case 1:\n viewTeacher();\n break;\n case 2:\n viewTeachers();\n break;\n }\n }\n break;\n case 4:\n while (true) {\n System.out.print(\"\\n1 - Register\\n\" +\n \"2 - Show courses with available places\\n\" +\n \"3 - Show students enrolled for a course\\n\" +\n \"4 - Display all courses\\n\" +\n \"0 - Back\\n\");\n int cmd4 = sc.nextInt();\n if (cmd4 == 0)\n break;\n switch (cmd4) {\n case 1:\n register();\n break;\n case 2:\n retrieveCoursesWithFreePlaces();\n break;\n case 3:\n retrieveStudentsEnrolledForACourse();\n break;\n case 4:\n viewCourses();\n break;\n }\n }\n break;\n default: {\n System.out.println(\"Invalid command!\\n\");\n }\n }\n }\n }",
"public static void main(String[] args) throws InterruptedException {\n\r\n\t\tSystem.setProperty(\"webdriver.chrome.driver\",\"c:\\\\users\\\\vivek_2\\\\Desktop\\\\Vandana_Sel\\\\chromedriver_win32\\\\chromedriver.exe\");\r\n\t\tWebDriver driver = new ChromeDriver();\r\n\t\tdriver.get(\"https://www.calculator.net/\");\r\n\t\tdriver.manage().timeouts().implicitlyWait(30,TimeUnit.SECONDS);\r\n\t\t\r\n driver.findElement(By.partialLinkText(\"Calorie Calculator\")).click();\r\nThread.sleep(10000);\r\n // Click on Age\r\n //driver.findElement(By.xpath(\"//*[@id=\\\"calinputtable\\\"]/form\")).click();\r\n\t\t \r\n driver.findElement(By.id(\"csex2\")).click();\r\n// Click on radio button (Female) \r\n System.out.println(\"The Output of the IsSelected \" +driver.findElement(By.id(\"csex2\")).isSelected());\r\n System.out.println(\"The Output of the IsEnabled \" +driver.findElement(By.id(\"csex2\")).isEnabled());\r\n System.out.println(\"The Output of the IsDisplayed \" +driver.findElement(By.id(\"csex2\")).isDisplayed());\r\n \r\n driver.manage().timeouts().implicitlyWait(10, TimeUnit.SECONDS);\r\n\r\n\t\tdriver.findElement(By.name(\"cheightfeet\")).clear();\r\n\t\t\r\n\t\tdriver.findElement(By.name(\"cheightfeet\")).sendKeys(\"6\");\r\n\t\t\r\n\t\tdriver.findElement(By.name(\"cheightinch\")).clear();\r\n\t\t\r\n driver.findElement(By.id(\"cheightinch\")).sendKeys(\"11\");\r\n \r\n driver.findElement(By.name(\"cpound\")).clear();\r\n driver.findElement(By.name(\"cpound\")).sendKeys(\"166\");\r\n //drop down activity\r\n \r\n Select drp= new Select(driver.findElement(By.name(\"cactivity\")));\r\n drp.selectByVisibleText(\"Sedentary: little or no exercise\");\r\n \r\n driver.findElement(By.xpath(\"//*[@id='content']/div[5]/table[4]/tbody/tr[3]/td[2]/input[2]\")).click();\r\n\r\n\t}",
"public void options() {\n\n System.out.println(\"\\nSelect from the option\\n\");\n\n final String options = \"1. See All Files\\n\" +\n \"2. Create File\\n\" +\n \"3. Delete File\\n\" +\n \"4. Search File\\n\" +\n \"5. Close Application\";\n\n// Take int value by the user thorough command line\n final int option = correctOption(options, 5);\n\n switch (option) {\n\n// Close Program\n case -1:\n closeProgram(\"You tried maximum attempts, application is closed. Thank you!\", true);\n break;\n\n// See All Files\n case 1:\n System.out.println(\"\\nAll Files are showed in ascending order by default.\\n\");\n operation.allFilesAsc()\n .forEach(System.out::println);\n\n// Show sub options after the result is shown.\n final String sub_options = \"\\n\" +\n \"1. View in Descending Order\\n\" +\n \"2. Main Menu\\n\" +\n \"3. Close Application\";\n\n final int sub_option = correctOption(sub_options, 3);\n\n switch (sub_option) {\n\n// Close Program\n case -1:\n closeProgram(\"You tried maximum attempts, application is closed. Thank you!\", true);\n break;\n\n// View Files in Descending Order\n case 1:\n System.out.println(\"\\nAll Files are showed in descending order.\\n\");\n operation.allFilesDsc()\n .forEach(System.out::println);\n// Call options() method recursively so that program will close only if the user choose to close.\n options();\n break;\n\n// Main Menu\n case 2:\n// recursive call\n options();\n break;\n\n// Close Program\n case 3:\n closeProgram(\"Thank you for using our application! Application is closed\", false);\n break;\n\n default:\n System.out.println(\"Nothing has selected\");\n }\n break;\n\n// Create File\n case 2:\n\n String create_file = checkName();\n if (create_file != null) {\n if (operation.createFile(create_file))\n System.out.println(\"File created successfully\");\n else\n System.err.println(\"Something went wrong. Please try after some time.\");\n } else\n System.err.println(\"Invalid file name\");\n options();\n break;\n\n// Delete File\n case 3:\n\n String delete_file = checkName();\n if (delete_file != null) {\n if (operation.deleteFile(delete_file))\n System.out.println(\"File deleted successfully\");\n else\n System.err.println(\"File doesn't exists.\");\n } else\n System.err.println(\"Invalid file name\");\n options();\n break;\n\n// Search File\n case 4:\n\n String search_file = checkName();\n if (search_file != null) {\n String file_returned = operation.searchFile(search_file);\n if (file_returned != null)\n System.out.println(\"File '\" + file_returned + \"' exists\");\n else\n System.err.println(\"File doesn't exists\");\n } else\n System.err.println(\"Invalid file name\");\n options();\n break;\n\n// Close Application\n case 5:\n closeProgram(\"Thank you for using our application! Application is closed\", false);\n break;\n\n default:\n System.out.println(\"Nothing has selected\");\n\n }\n }",
"public void paymentMethod() {\n try {\n System.out.println(\"You can pay in 4 ways\");\n String[] functions = new String[]{\"Cash\", \"Debit / Credit card\", \"Pay to Attender\", \"Use Premium account\", \"Exit\"};\n for (int i = 0; i < functions.length; i++) {\n System.out.println(i + 1 + \": \" + functions[i]);\n }\n int option1 = scanner.nextInt();\n functionInvoker(option1);\n } catch (Exception e) {\n System.out.println(\"Enter Valid input.\");\n e.printStackTrace();\n }\n }",
"private TextBox[] drawMatch(TextBox boxBlue, TextBox boxRed, Group group, int level, Phase phase) {\n TextBox victoryBox = null;\n TextBox defaitBox = null;\n Color colorResultat = Color.color(1.0, 1.0, 0.0, 0.5);\n if (level % 2 == 0) {\n colorResultat = Color.color(0.0, 1.0, 1.0, 0.5);\n }\n if (phase.ordinal() == Phase.FINALE.ordinal() || phase.ordinal() == Phase.PETITE_FINALE.ordinal()) {\n victoryBox = new TextBox(new ParticipantBean(\"\", \"\"), widthRectangle, heightRectangle, Color.color(1.0, 1.0, 0.0, 0.5));\n defaitBox = new TextBox(new ParticipantBean(\"\", \"\"), widthRectangle, heightRectangle, Color.color(0.0, 1.0, 1.0, 0.5));\n\n //Create a TextBoxListner to prepare resultat\n TextBoxListner listner = new TextBoxListner(boxBlue, boxRed, victoryBox, defaitBox, phase);\n boxBlue.setListner(listner);\n boxRed.setListner(listner);\n listner.setParticipantClassementFinalListener(participantClassementFinalListener);\n\n } else if (phase.ordinal() == Phase.DEMI_FINALE.ordinal()) {\n victoryBox = drawMatch(boxBlue, boxRed, group, level);\n defaitBox = new TextBox(new ParticipantBean(\"\", \"\"), widthRectangle, heightRectangle, colorResultat);\n\n //Create a TextBoxListner to prepare resultat\n TextBoxListner listner = new TextBoxListner(boxBlue, boxRed, victoryBox, defaitBox);\n boxBlue.setListner(listner);\n boxRed.setListner(listner);\n defaitBox.setLayoutX(victoryBox.getLayoutX() + widthRectangle + spaceBetweenMatch);\n defaitBox.setLayoutY(victoryBox.getLayoutY());\n group.getChildren().add(defaitBox);\n }\n\n TextBox[] resultats = new TextBox[2];\n resultats[0] = victoryBox;\n resultats[1] = defaitBox;\n return resultats;\n }",
"@Override\n public void onClick(View v) {\n branch[0] = branch[0] +edit.getText().toString();\n edit.setText(\"\");\n text1.setText(\"Enter your Semester\");\n text2.setText(\"1 for 1st sem and so on\");\n edit.setHint(\"Enter your sem\");\n butt.setText(\"Next\");\n butt.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View v) { //When semester is selected\n branch[0] = branch[0] + edit.getText().toString();\n edit.setText(\"\");\n text1.setText(\"Enter the Marks(Out of 100)\");\n edit.setHint(\"Marks?\");\n butt.setText(\"Done\");\n if(branch[0].equals(\"11\") || branch[0].equals(\"21\") || branch[0].equals(\"31\") || branch[0].equals(\"41\")|| branch[0].equals(\"51\")) //1st semester\n {\n text2.setText(\"Chemistry\");\n butt.setOnClickListener(new View.OnClickListener() { //Chemistry marks entered\n @Override\n public void onClick(View v) {\n marks[0] +=(6*obj.theo(Integer.valueOf(String.valueOf(edit.getText()))));\n edit.setText(\"\");\n text2.setText(\"Mechanics\"); //Mechanics\n butt.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View v) {\n marks[0] +=(8*obj.theo(Integer.valueOf(String.valueOf(edit.getText()))));\n edit.setText(\"\");\n text2.setText(\"Mathematics\"); //Maths\n butt.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View v) {\n marks[0] +=(6*obj.theo(Integer.valueOf(String.valueOf(edit.getText()))));\n edit.setText(\"\");\n text2.setText(\"Physics\"); //Physics\n butt.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View v) {\n marks[0] +=(6*obj.theo(Integer.valueOf(String.valueOf(edit.getText()))));\n edit.setText(\"\");\n text2.setText(\"Communication Skills\"); //CS\n butt.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View v) {\n marks[0] +=(4*obj.theo(Integer.valueOf(String.valueOf(edit.getText()))));\n edit.setText(\"\");\n text2.setText(\"Chemistry LAB\"); //chem lab\n butt.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View v) {\n marks[0] +=(2*obj.pract(Integer.valueOf(String.valueOf(edit.getText()))));\n edit.setText(\"\");\n text2.setText(\"Workshop\"); //Workshop\n butt.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View v) {\n marks[0] +=(3*obj.pract(Integer.valueOf(String.valueOf(edit.getText()))));\n edit.setText(\"\");\n text2.setText(\"Engineering Drawing\"); //ED\n butt.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View v) {\n marks[0] +=(5*obj.pract(Integer.valueOf(String.valueOf(edit.getText()))));\n double total = marks[0];\n total/=40.0;\n Intent intent = new Intent(MainActivity.this, Marks.class);\n intent.putExtra(\"Marks\", Math.round(total * 100.0) / 100.0);\n startActivity(intent);\n finish();\n }\n });\n }\n });\n }\n });\n }\n });\n }\n });\n }\n });\n }\n });\n }\n });\n }\n if(branch[0].equals(\"12\") || branch[0].equals(\"22\") || branch[0].equals(\"32\") || branch[0].equals(\"42\") || branch[0].equals(\"52\")) //2nd semester\n {\n text2.setText(\"IC\"); //IC\n butt.setOnClickListener(new View.OnClickListener() { //IC marks entered\n @Override\n public void onClick(View v) {\n marks[0] +=(6*obj.theo(Integer.valueOf(String.valueOf(edit.getText()))));\n edit.setText(\"\");\n text2.setText(\"BEES\"); //BEES\n butt.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View v) {\n marks[0] +=(8*obj.theo(Integer.valueOf(String.valueOf(edit.getText()))));\n edit.setText(\"\");\n text2.setText(\"Mathematics\"); //Maths\n butt.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View v) {\n marks[0] +=(6*obj.theo(Integer.valueOf(String.valueOf(edit.getText()))));\n edit.setText(\"\");\n text2.setText(\"Physics\"); //Physics\n butt.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View v) {\n marks[0] +=(6*obj.theo(Integer.valueOf(String.valueOf(edit.getText()))));\n edit.setText(\"\");\n text2.setText(\"EVS\"); //EVS\n butt.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View v) {\n marks[0] +=(4*obj.theo(Integer.valueOf(String.valueOf(edit.getText()))));\n edit.setText(\"\");\n text2.setText(\"IC LAB\"); //IC lab\n butt.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View v) {\n marks[0] +=(4*obj.pract(Integer.valueOf(String.valueOf(edit.getText()))));\n edit.setText(\"\");\n text2.setText(\"BEES LAB\"); //BEES lab\n butt.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View v) {\n marks[0] +=(3*obj.pract(Integer.valueOf(String.valueOf(edit.getText()))));\n edit.setText(\"\");\n text2.setText(\"Physics Lab\"); //Physics lab\n butt.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View v) {\n marks[0] +=(3*obj.pract(Integer.valueOf(String.valueOf(edit.getText()))));\n double total = marks[0];\n total/=40.0;\n Intent intent = new Intent(MainActivity.this, Marks.class);\n intent.putExtra(\"Marks\", Math.round(total * 100.0) / 100.0);\n startActivity(intent);\n finish();\n }\n });\n }\n });\n }\n });\n }\n });\n }\n });\n }\n });\n }\n });\n }\n });\n }\n if(branch[0].equals(\"13\")) //CSE 3rd semester\n {\n text2.setText(\"Maths\"); //Maths\n butt.setOnClickListener(new View.OnClickListener() { //IC marks entered\n @Override\n public void onClick(View v) {\n marks[0] +=(6*obj.theo(Integer.valueOf(String.valueOf(edit.getText()))));\n edit.setText(\"\");\n text2.setText(\"Data Structures\"); //Data Structures\n butt.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View v) {\n marks[0] +=(6*obj.theo(Integer.valueOf(String.valueOf(edit.getText()))));\n edit.setText(\"\");\n text2.setText(\"Discrete Mathematics\"); //Discrete Maths\n butt.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View v) {\n marks[0] +=(8*obj.theo(Integer.valueOf(String.valueOf(edit.getText()))));\n edit.setText(\"\");\n text2.setText(\"Digital Design\"); //Digital Design\n butt.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View v) {\n marks[0] +=(6*obj.theo(Integer.valueOf(String.valueOf(edit.getText()))));\n edit.setText(\"\");\n text2.setText(\"Engineering Economics\"); //EE\n butt.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View v) {\n marks[0] +=(4*obj.theo(Integer.valueOf(String.valueOf(edit.getText()))));\n edit.setText(\"\");\n text2.setText(\"Data Structures LAB\"); //DS lab\n butt.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View v) {\n marks[0] +=(3*obj.pract(Integer.valueOf(String.valueOf(edit.getText()))));\n edit.setText(\"\");\n text2.setText(\"Digital Design LAB\"); //DD lab\n butt.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View v) {\n marks[0] +=(3*obj.pract(Integer.valueOf(String.valueOf(edit.getText()))));\n double total = marks[0];\n total/=36.0;\n Intent intent = new Intent(MainActivity.this, Marks.class);\n intent.putExtra(\"Marks\", Math.round(total * 100.0) / 100.0);\n startActivity(intent);\n finish();\n }\n });\n }\n });\n }\n });\n }\n });\n }\n });\n }\n });\n }\n });\n }\n if(branch[0].equals(\"14\")) //CSE 4th semester\n {\n text2.setText(\"Formal Languages\"); //FM\n butt.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View v) {\n marks[0] +=(8*obj.theo(Integer.valueOf(String.valueOf(edit.getText()))));\n edit.setText(\"\");\n text2.setText(\"Algorithms\"); //algorithms\n butt.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View v) {\n marks[0] +=(6*obj.theo(Integer.valueOf(String.valueOf(edit.getText()))));\n edit.setText(\"\");\n text2.setText(\"Computer Architecture\"); //Computer Architecture\n butt.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View v) {\n marks[0] +=(6*obj.theo(Integer.valueOf(String.valueOf(edit.getText()))));\n edit.setText(\"\");\n text2.setText(\"Object Oriented Programming\"); //oops\n butt.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View v) {\n marks[0] +=(6*obj.theo(Integer.valueOf(String.valueOf(edit.getText()))));\n edit.setText(\"\");\n text2.setText(\"Probability and Random Process\"); //probability\n butt.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View v) {\n marks[0] +=(6*obj.theo(Integer.valueOf(String.valueOf(edit.getText()))));\n edit.setText(\"\");\n text2.setText(\"Algorithms LAB\"); //Algo lab\n butt.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View v) {\n marks[0] +=(3*obj.pract(Integer.valueOf(String.valueOf(edit.getText()))));\n edit.setText(\"\");\n text2.setText(\"Object Oriented Programming LAB\"); //oops lab\n butt.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View v) {\n marks[0] +=(3*obj.pract(Integer.valueOf(String.valueOf(edit.getText()))));\n edit.setText(\"\");\n text2.setText(\"Peripherals and Accessories LAB\"); //peripheral lab\n butt.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View v) {\n marks[0] +=(3*obj.pract(Integer.valueOf(String.valueOf(edit.getText()))));\n double total = marks[0];\n total/=41.0;\n Intent intent = new Intent(MainActivity.this, Marks.class);\n intent.putExtra(\"Marks\", Math.round(total * 100.0) / 100.0);\n startActivity(intent);\n finish();\n }\n });\n\n }\n });\n }\n });\n }\n });\n }\n });\n }\n });\n }\n });\n }\n });\n }\n if(branch[0].equals(\"15\")) //CSE 5th semester\n {\n text2.setText(\"Optimization\"); //optimization\n butt.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View v) {\n marks[0] +=(6*obj.theo(Integer.valueOf(String.valueOf(edit.getText()))));\n edit.setText(\"\");\n text2.setText(\"Software Engineering\"); //software engineering\n butt.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View v) {\n marks[0] +=(6*obj.theo(Integer.valueOf(String.valueOf(edit.getText()))));\n edit.setText(\"\");\n text2.setText(\"Operating System\"); //os\n butt.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View v) {\n marks[0] +=(6*obj.theo(Integer.valueOf(String.valueOf(edit.getText()))));\n edit.setText(\"\");\n text2.setText(\"Data Communication\"); //data communication\n butt.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View v) {\n marks[0] +=(8*obj.theo(Integer.valueOf(String.valueOf(edit.getText()))));\n edit.setText(\"\");\n text2.setText(\"Machine Learning\"); //machine learning\n butt.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View v) {\n marks[0] +=(6*obj.theo(Integer.valueOf(String.valueOf(edit.getText()))));\n edit.setText(\"\");\n text2.setText(\"Software Engineering LAB\"); //soft lab\n butt.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View v) {\n marks[0] +=(3*obj.pract(Integer.valueOf(String.valueOf(edit.getText()))));\n edit.setText(\"\");\n text2.setText(\"Operating Systems LAB\"); //os lab\n butt.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View v) {\n marks[0] +=(3*obj.pract(Integer.valueOf(String.valueOf(edit.getText()))));\n edit.setText(\"\");\n text2.setText(\"Machine Learning LAB\"); //ml lab\n butt.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View v) {\n marks[0] +=(3*obj.pract(Integer.valueOf(String.valueOf(edit.getText()))));\n double total = marks[0];\n total/=41.0;\n Intent intent = new Intent(MainActivity.this, Marks.class);\n intent.putExtra(\"Marks\", Math.round(total * 100.0) / 100.0);\n startActivity(intent);\n finish();\n }\n });\n\n }\n });\n }\n });\n }\n });\n }\n });\n }\n });\n }\n });\n }\n });\n }\n if(branch[0].equals(\"16\")) //CSE 6th semester\n {\n text2.setText(\"Management and Economics\"); //management\n butt.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View v) {\n marks[0] +=(4*obj.theo(Integer.valueOf(String.valueOf(edit.getText()))));\n edit.setText(\"\");\n text2.setText(\"Databases\"); //databases\n butt.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View v) {\n marks[0] +=(6*obj.theo(Integer.valueOf(String.valueOf(edit.getText()))));\n edit.setText(\"\");\n text2.setText(\"Compilers\"); //compilers\n butt.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View v) {\n marks[0] +=(6*obj.theo(Integer.valueOf(String.valueOf(edit.getText()))));\n edit.setText(\"\");\n text2.setText(\"Computer Networks\"); //comp. net.\n butt.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View v) {\n marks[0] +=(6*obj.theo(Integer.valueOf(String.valueOf(edit.getText()))));\n edit.setText(\"\");\n text2.setText(\"Information Storage and Retrieval\"); //info\n butt.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View v) {\n marks[0] +=(8*obj.theo(Integer.valueOf(String.valueOf(edit.getText()))));\n edit.setText(\"\");\n text2.setText(\"Databases LAB\"); //data lab\n butt.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View v) {\n marks[0] +=(3*obj.pract(Integer.valueOf(String.valueOf(edit.getText()))));\n edit.setText(\"\");\n text2.setText(\"System Programming LAB\"); //compilers lab\n butt.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View v) {\n marks[0] +=(3*obj.pract(Integer.valueOf(String.valueOf(edit.getText()))));\n edit.setText(\"\");\n text2.setText(\"Computer Networks LAB\"); //cn lab\n butt.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View v) {\n marks[0] +=(3*obj.pract(Integer.valueOf(String.valueOf(edit.getText()))));\n double total = marks[0];\n total/=39.0;\n Intent intent = new Intent(MainActivity.this, Marks.class);\n intent.putExtra(\"Marks\", Math.round(total * 100.0) / 100.0);\n startActivity(intent);\n finish();\n }\n });\n\n }\n });\n }\n });\n }\n });\n }\n });\n }\n });\n }\n });\n }\n });\n }\n if(branch[0].equals(\"17\")) //CSE 7th semester\n {\n text2.setText(\"Computer Graphics\"); //graphics\n butt.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View v) {\n marks[0] +=(6*obj.theo(Integer.valueOf(String.valueOf(edit.getText()))));\n edit.setText(\"\");\n text2.setText(\"Numerical Methods\"); //numerical\n butt.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View v) {\n marks[0] +=(6*obj.theo(Integer.valueOf(String.valueOf(edit.getText()))));\n edit.setText(\"\");\n text2.setText(\"Department Elective - I\"); //de1\n butt.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View v) {\n marks[0] +=(6*obj.theo(Integer.valueOf(String.valueOf(edit.getText()))));\n edit.setText(\"\");\n text2.setText(\"Department Elective - II\"); //de2\n butt.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View v) {\n marks[0] +=(6*obj.theo(Integer.valueOf(String.valueOf(edit.getText()))));\n edit.setText(\"\");\n text2.setText(\"Department Elective - III\"); //de3\n butt.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View v) {\n marks[0] +=(6*obj.theo(Integer.valueOf(String.valueOf(edit.getText()))));\n edit.setText(\"\");\n text2.setText(\"Computer Graphics LAB\"); //graphics lab\n butt.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View v) {\n marks[0] +=(3*obj.pract(Integer.valueOf(String.valueOf(edit.getText()))));\n edit.setText(\"\");\n text2.setText(\"Project - I\"); //project1\n butt.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View v) {\n marks[0] +=(6*obj.pract(Integer.valueOf(String.valueOf(edit.getText()))));\n double total = marks[0];\n total/=39.0;\n Intent intent = new Intent(MainActivity.this, Marks.class);\n intent.putExtra(\"Marks\", Math.round(total * 100.0) / 100.0);\n startActivity(intent);\n finish();\n }\n });\n }\n });\n }\n });\n }\n });\n }\n });\n }\n });\n }\n });\n }\n if(branch[0].equals(\"18\")) //CSE 8th semester\n {\n text2.setText(\"Department Elective - IV\"); //de4\n butt.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View v) {\n marks[0] +=(6*obj.theo(Integer.valueOf(String.valueOf(edit.getText()))));\n edit.setText(\"\");\n text2.setText(\"Department Elective - V\"); //de5\n butt.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View v) {\n marks[0] +=(6*obj.theo(Integer.valueOf(String.valueOf(edit.getText()))));\n edit.setText(\"\");\n text2.setText(\"Department Elective - VI\"); //de6\n butt.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View v) {\n marks[0] +=(6*obj.theo(Integer.valueOf(String.valueOf(edit.getText()))));\n edit.setText(\"\");\n text2.setText(\"Project - II\"); //project2\n butt.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View v) {\n marks[0] +=(6*obj.theo(Integer.valueOf(String.valueOf(edit.getText()))));\n double total = marks[0];\n total/=27.0;\n Intent intent = new Intent(MainActivity.this, Marks.class);\n intent.putExtra(\"Marks\", Math.round(total * 100.0) / 100.0);\n startActivity(intent);\n finish();\n }\n });\n }\n });\n }\n });\n }\n });\n }\n if(branch[0].equals(\"23\")) //ECE 3rd semester\n {\n text2.setText(\"Network Analysis\"); //na\n butt.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View v) {\n marks[0] +=(6*obj.theo(Integer.valueOf(String.valueOf(edit.getText()))));\n edit.setText(\"\");\n text2.setText(\"Semiconductor Device and Circuits\"); //sdc\n butt.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View v) {\n marks[0] +=(6*obj.theo(Integer.valueOf(String.valueOf(edit.getText()))));\n edit.setText(\"\");\n text2.setText(\"Analog Circuits\"); //AC\n butt.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View v) {\n marks[0] +=(6*obj.theo(Integer.valueOf(String.valueOf(edit.getText()))));\n edit.setText(\"\");\n text2.setText(\"Maths\"); //math\n butt.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View v) {\n marks[0] +=(6*obj.theo(Integer.valueOf(String.valueOf(edit.getText()))));\n edit.setText(\"\");\n text2.setText(\"HSS Elective\"); //hss\n butt.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View v) {\n marks[0] +=(4*obj.theo(Integer.valueOf(String.valueOf(edit.getText()))));\n edit.setText(\"\");\n text2.setText(\"Network Analysis LAB\"); //na lab\n butt.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View v) {\n marks[0] +=(3*obj.pract(Integer.valueOf(String.valueOf(edit.getText()))));\n edit.setText(\"\");\n text2.setText(\"Semiconductor Device LAB\"); //sdc lab\n butt.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View v) {\n marks[0] +=(3*obj.pract(Integer.valueOf(String.valueOf(edit.getText()))));\n edit.setText(\"\");\n text2.setText(\"Analog Circuits LAB\"); //ac lab\n butt.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View v) {\n marks[0] +=(3*obj.pract(Integer.valueOf(String.valueOf(edit.getText()))));\n double total = marks[0];\n total/=37.0;\n Intent intent = new Intent(MainActivity.this, Marks.class);\n intent.putExtra(\"Marks\", Math.round(total * 100.0) / 100.0);\n startActivity(intent);\n finish();\n }\n });\n\n }\n });\n }\n });\n }\n });\n }\n });\n }\n });\n }\n });\n }\n });\n }\n if(branch[0].equals(\"24\")) //ECE 4th semester\n {\n text2.setText(\"Digital Electronics\"); //de\n butt.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View v) {\n marks[0] +=(6*obj.theo(Integer.valueOf(String.valueOf(edit.getText()))));\n edit.setText(\"\");\n text2.setText(\"Analog Communication\"); //ac\n butt.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View v) {\n marks[0] +=(6*obj.theo(Integer.valueOf(String.valueOf(edit.getText()))));\n edit.setText(\"\");\n text2.setText(\"Electronics and Electrical Measurements\"); //ee\n butt.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View v) {\n marks[0] +=(6*obj.theo(Integer.valueOf(String.valueOf(edit.getText()))));\n edit.setText(\"\");\n text2.setText(\"Signals and System\"); //signals\n butt.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View v) {\n marks[0] +=(6*obj.theo(Integer.valueOf(String.valueOf(edit.getText()))));\n edit.setText(\"\");\n text2.setText(\"Probability and Random Process\"); //prob\n butt.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View v) {\n marks[0] +=(6*obj.theo(Integer.valueOf(String.valueOf(edit.getText()))));\n edit.setText(\"\");\n text2.setText(\"Digital Electronics LAB\"); //de lab\n butt.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View v) {\n marks[0] +=(3*obj.pract(Integer.valueOf(String.valueOf(edit.getText()))));\n edit.setText(\"\");\n text2.setText(\"Analog Communication LAB\"); //ac lab\n butt.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View v) {\n marks[0] +=(3*obj.pract(Integer.valueOf(String.valueOf(edit.getText()))));\n edit.setText(\"\");\n text2.setText(\"Electronics and Electrical Measurement LAB\"); //ee lab\n butt.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View v) {\n marks[0] +=(3*obj.pract(Integer.valueOf(String.valueOf(edit.getText()))));\n double total = marks[0];\n total/=39.0;\n Intent intent = new Intent(MainActivity.this, Marks.class);\n intent.putExtra(\"Marks\", Math.round(total * 100.0) / 100.0);\n startActivity(intent);\n finish();\n }\n });\n\n }\n });\n }\n });\n }\n });\n }\n });\n }\n });\n }\n });\n }\n });\n }\n if(branch[0].equals(\"25\")) //ECE 5th semester\n {\n text2.setText(\"Microprocessors\"); //micro\n butt.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View v) {\n marks[0] +=(6*obj.theo(Integer.valueOf(String.valueOf(edit.getText()))));\n edit.setText(\"\");\n text2.setText(\"Digital Communication\"); //dc\n butt.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View v) {\n marks[0] +=(6*obj.theo(Integer.valueOf(String.valueOf(edit.getText()))));\n edit.setText(\"\");\n text2.setText(\"Electromagnetic Thoery\"); //em\n butt.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View v) {\n marks[0] +=(6*obj.theo(Integer.valueOf(String.valueOf(edit.getText()))));\n edit.setText(\"\");\n text2.setText(\"Digital Signal Processing\"); //digital signals\n butt.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View v) {\n marks[0] +=(6*obj.theo(Integer.valueOf(String.valueOf(edit.getText()))));\n edit.setText(\"\");\n text2.setText(\"Control System\"); //cs\n butt.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View v) {\n marks[0] +=(6*obj.theo(Integer.valueOf(String.valueOf(edit.getText()))));\n edit.setText(\"\");\n text2.setText(\"Microprocessors LAB\"); //micro lab\n butt.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View v) {\n marks[0] +=(3*obj.pract(Integer.valueOf(String.valueOf(edit.getText()))));\n edit.setText(\"\");\n text2.setText(\"Digital Communication LAB\"); //dc lab\n butt.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View v) {\n marks[0] +=(3*obj.pract(Integer.valueOf(String.valueOf(edit.getText()))));\n edit.setText(\"\");\n text2.setText(\"Digital Signal Processing LAB\"); //digital signals lab\n butt.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View v) {\n marks[0] +=(3*obj.pract(Integer.valueOf(String.valueOf(edit.getText()))));\n edit.setText(\"\");\n text2.setText(\"Control Systems LAB\"); //cs LAB\n butt.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View v) {\n marks[0]+=(3*obj.pract(Integer.valueOf(String.valueOf(edit.getText()))));\n double total = marks[0];\n total/=42.0;\n Intent intent = new Intent(MainActivity.this, Marks.class);\n intent.putExtra(\"Marks\", Math.round(total * 100.0) / 100.0);\n startActivity(intent);\n finish();\n }\n });\n }\n });\n\n }\n });\n }\n });\n }\n });\n }\n });\n }\n });\n }\n });\n }\n });\n }\n if(branch[0].equals(\"26\")) //ECE 6th semester\n {\n text2.setText(\"VLSI Design\"); //vlsi\n butt.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View v) {\n marks[0] +=(6*obj.theo(Integer.valueOf(String.valueOf(edit.getText()))));\n edit.setText(\"\");\n text2.setText(\"Embedded System\"); //embedded systems\n butt.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View v) {\n marks[0] +=(6*obj.theo(Integer.valueOf(String.valueOf(edit.getText()))));\n edit.setText(\"\");\n text2.setText(\"Industrial Electronics\"); //industrial\n butt.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View v) {\n marks[0] +=(6*obj.theo(Integer.valueOf(String.valueOf(edit.getText()))));\n edit.setText(\"\");\n text2.setText(\"Antenna Design\"); //antenna\n butt.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View v) {\n marks[0] +=(6*obj.theo(Integer.valueOf(String.valueOf(edit.getText()))));\n edit.setText(\"\");\n text2.setText(\"VHDL\"); //vhdl\n butt.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View v) {\n marks[0] +=(6*obj.theo(Integer.valueOf(String.valueOf(edit.getText()))));\n edit.setText(\"\");\n text2.setText(\"VLSI and VHDL LAB\"); //VLSI lab\n butt.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View v) {\n marks[0] +=(3*obj.pract(Integer.valueOf(String.valueOf(edit.getText()))));\n edit.setText(\"\");\n text2.setText(\"Embedded System LAB\"); //embedded lab\n butt.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View v) {\n marks[0] +=(3*obj.pract(Integer.valueOf(String.valueOf(edit.getText()))));\n edit.setText(\"\");\n text2.setText(\"Industrial Electronics LAB\"); //industrial signals lab\n butt.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View v) {\n marks[0] +=(3*obj.pract(Integer.valueOf(String.valueOf(edit.getText()))));\n edit.setText(\"\");\n text2.setText(\"Antenna Design LAB\"); //antenna LAB\n butt.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View v) {\n marks[0]+=(3*obj.pract(Integer.valueOf(String.valueOf(edit.getText()))));\n double total = marks[0];\n total/=42.0;\n Intent intent = new Intent(MainActivity.this, Marks.class);\n intent.putExtra(\"Marks\", Math.round(total * 100.0) / 100.0);\n startActivity(intent);\n finish();\n }\n });\n }\n });\n\n }\n });\n }\n });\n }\n });\n }\n });\n }\n });\n }\n });\n }\n });\n }\n if(branch[0].equals(\"27\")) //ECE 7th semester\n {\n text2.setText(\"Industrial Management\"); //industrial\n butt.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View v) {\n marks[0] +=(4*obj.theo(Integer.valueOf(String.valueOf(edit.getText()))));\n edit.setText(\"\");\n text2.setText(\"Microwave Engineering\"); //me\n butt.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View v) {\n marks[0] +=(6*obj.theo(Integer.valueOf(String.valueOf(edit.getText()))));\n edit.setText(\"\");\n text2.setText(\"Computer Networks\"); //computer\n butt.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View v) {\n marks[0] +=(6*obj.theo(Integer.valueOf(String.valueOf(edit.getText()))));\n edit.setText(\"\");\n text2.setText(\"Department Elective - I\"); //de1\n butt.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View v) {\n marks[0] +=(6*obj.theo(Integer.valueOf(String.valueOf(edit.getText()))));\n edit.setText(\"\");\n text2.setText(\"Department Elective - II\"); //de2\n butt.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View v) {\n marks[0] +=(6*obj.theo(Integer.valueOf(String.valueOf(edit.getText()))));\n edit.setText(\"\");\n text2.setText(\"Project - I\"); //project1\n butt.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View v) {\n marks[0] +=(3*obj.pract(Integer.valueOf(String.valueOf(edit.getText()))));\n edit.setText(\"\");\n text2.setText(\"Microwave Engineering LAB\"); //mw lab\n butt.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View v) {\n marks[0] +=(3*obj.pract(Integer.valueOf(String.valueOf(edit.getText()))));\n edit.setText(\"\");\n text2.setText(\"Computer Networks LAB\"); //networks lab\n butt.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View v) {\n marks[0] +=(3*obj.pract(Integer.valueOf(String.valueOf(edit.getText()))));\n double total = marks[0];\n total/=37.0;\n Intent intent = new Intent(MainActivity.this, Marks.class);\n intent.putExtra(\"Marks\", Math.round(total * 100.0) / 100.0);\n startActivity(intent);\n finish();\n }\n });\n\n }\n });\n }\n });\n }\n });\n }\n });\n }\n });\n }\n });\n }\n });\n }\n if(branch[0].equals(\"28\")) //ECE 8th semester\n {\n text2.setText(\"Department Elective - III\"); //de3\n butt.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View v) {\n marks[0] +=(6*obj.theo(Integer.valueOf(String.valueOf(edit.getText()))));\n edit.setText(\"\");\n text2.setText(\"Department Elective - IV\"); //de4\n butt.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View v) {\n marks[0] +=(6*obj.theo(Integer.valueOf(String.valueOf(edit.getText()))));\n edit.setText(\"\");\n text2.setText(\"Open Elective\"); //oe\n butt.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View v) {\n marks[0] +=(6*obj.theo(Integer.valueOf(String.valueOf(edit.getText()))));\n edit.setText(\"\");\n text2.setText(\"Soft Skills\"); //soft skills\n butt.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View v) {\n marks[0] +=(4*obj.theo(Integer.valueOf(String.valueOf(edit.getText()))));\n edit.setText(\"\");\n text2.setText(\"Project Work - II\"); //project\n butt.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View v) {\n marks[0] +=(9*obj.theo(Integer.valueOf(String.valueOf(edit.getText()))));\n double total = marks[0];\n total/=31.0;\n Intent intent = new Intent(MainActivity.this, Marks.class);\n intent.putExtra(\"Marks\", Math.round(total * 100.0) / 100.0);\n startActivity(intent);\n finish();\n }\n });\n }\n });\n }\n });\n }\n });\n }\n });\n }\n if(branch[0].equals(\"33\")) //ME 3rd semester\n {\n text2.setText(\"Mathematics\"); //maths\n butt.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View v) {\n marks[0] +=(6*obj.theo(Integer.valueOf(String.valueOf(edit.getText()))));\n edit.setText(\"\");\n text2.setText(\"Engineering Thermodynamics\"); //thermo\n butt.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View v) {\n marks[0] +=(8*obj.theo(Integer.valueOf(String.valueOf(edit.getText()))));\n edit.setText(\"\");\n text2.setText(\"Strength of Materials\"); //strength\n butt.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View v) {\n marks[0] +=(6*obj.theo(Integer.valueOf(String.valueOf(edit.getText()))));\n edit.setText(\"\");\n text2.setText(\"Engineering Materials\"); //eng. materials\n butt.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View v) {\n marks[0] +=(6*obj.theo(Integer.valueOf(String.valueOf(edit.getText()))));\n edit.setText(\"\");\n text2.setText(\"Manufacturing Technology\"); //manufacturing\n butt.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View v) {\n marks[0] +=(6*obj.theo(Integer.valueOf(String.valueOf(edit.getText()))));\n edit.setText(\"\");\n text2.setText(\"Machine Drawing\"); //machine drawing\n butt.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View v) {\n marks[0] +=(5*obj.pract(Integer.valueOf(String.valueOf(edit.getText()))));\n edit.setText(\"\");\n text2.setText(\"Strength of Materials LAB\"); //stength lab\n butt.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View v) {\n marks[0] +=(3*obj.pract(Integer.valueOf(String.valueOf(edit.getText()))));\n double total = marks[0];\n total/=40.0;\n Intent intent = new Intent(MainActivity.this, Marks.class);\n intent.putExtra(\"Marks\", Math.round(total * 100.0) / 100.0);\n startActivity(intent);\n finish();\n }\n });\n }\n });\n }\n });\n }\n });\n }\n });\n }\n });\n }\n });\n }\n if(branch[0].equals(\"34\")) //ME 4th semester\n {\n text2.setText(\"Numerical Methods\"); //numerical methods\n butt.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View v) {\n marks[0] +=(6*obj.theo(Integer.valueOf(String.valueOf(edit.getText()))));\n edit.setText(\"\");\n text2.setText(\"Fluid Mechanics\"); //fluid\n butt.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View v) {\n marks[0] +=(8*obj.theo(Integer.valueOf(String.valueOf(edit.getText()))));\n edit.setText(\"\");\n text2.setText(\"Kinematics of Machinery\"); //kinematics\n butt.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View v) {\n marks[0] +=(6*obj.theo(Integer.valueOf(String.valueOf(edit.getText()))));\n edit.setText(\"\");\n text2.setText(\"Heat and Mass Transfer\"); //heat\n butt.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View v) {\n marks[0] +=(8*obj.theo(Integer.valueOf(String.valueOf(edit.getText()))));\n edit.setText(\"\");\n text2.setText(\"Manufacturing Technology - II\"); //manufacturing\n butt.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View v) {\n marks[0] +=(6*obj.theo(Integer.valueOf(String.valueOf(edit.getText()))));\n edit.setText(\"\");\n text2.setText(\"Heat Transfer LAB\"); //heat transfer\n butt.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View v) {\n marks[0] +=(3*obj.pract(Integer.valueOf(String.valueOf(edit.getText()))));\n edit.setText(\"\");\n text2.setText(\"Manufacturing Technology LAB\"); //manufacturing technology lab\n butt.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View v) {\n marks[0] +=(3*obj.pract(Integer.valueOf(String.valueOf(edit.getText()))));\n double total = marks[0];\n total/=40.0;\n Intent intent = new Intent(MainActivity.this, Marks.class);\n intent.putExtra(\"Marks\", Math.round(total * 100.0) / 100.0);\n startActivity(intent);\n finish();\n }\n });\n }\n });\n }\n });\n }\n });\n }\n });\n }\n });\n }\n });\n }\n if(branch[0].equals(\"35\")) //ME 5th semester\n {\n text2.setText(\"Mechanical Measurements and Metrology\"); //measurements\n butt.setOnClickListener(new View.OnClickListener() { //IC marks entered\n @Override\n public void onClick(View v) {\n marks[0] +=(6*obj.theo(Integer.valueOf(String.valueOf(edit.getText()))));\n edit.setText(\"\");\n text2.setText(\"Trubomachines\"); //turbo\n butt.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View v) {\n marks[0] +=(6*obj.theo(Integer.valueOf(String.valueOf(edit.getText()))));\n edit.setText(\"\");\n text2.setText(\"Dynamics of Machinery\"); //machinery\n butt.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View v) {\n marks[0] +=(8*obj.theo(Integer.valueOf(String.valueOf(edit.getText()))));\n edit.setText(\"\");\n text2.setText(\"Thermal Engineering - I\"); //Thermal Eng1\n butt.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View v) {\n marks[0] +=(6*obj.theo(Integer.valueOf(String.valueOf(edit.getText()))));\n edit.setText(\"\");\n text2.setText(\"Design of Machine Elements - I\"); //machine elements\n butt.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View v) {\n marks[0] +=(6*obj.theo(Integer.valueOf(String.valueOf(edit.getText()))));\n edit.setText(\"\");\n text2.setText(\"Measurements and Metrology LAB\"); //Measurements lab\n butt.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View v) {\n marks[0] +=(3*obj.pract(Integer.valueOf(String.valueOf(edit.getText()))));\n edit.setText(\"\");\n text2.setText(\"Fluid Mechanics and Turbomachinery LAB\"); //fluid lab\n butt.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View v) {\n marks[0] +=(3*obj.pract(Integer.valueOf(String.valueOf(edit.getText()))));\n edit.setText(\"\");\n text2.setText(\"Dynamics of Machine LAB\"); //dynamics LAB\n butt.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View v) {\n marks[0] +=(3*obj.pract(Integer.valueOf(String.valueOf(edit.getText()))));\n double total = marks[0];\n total/=41.0;\n Intent intent = new Intent(MainActivity.this, Marks.class);\n intent.putExtra(\"Marks\", Math.round(total * 100.0) / 100.0);\n startActivity(intent);\n finish();\n }\n });\n }\n });\n }\n });\n }\n });\n }\n });\n }\n });\n }\n });\n }\n });\n }\n if(branch[0].equals(\"36\")) //ME 6th semester\n {\n text2.setText(\"Mechatronics\"); //mechatronics\n butt.setOnClickListener(new View.OnClickListener() { //IC marks entered\n @Override\n public void onClick(View v) {\n marks[0] +=(6*obj.theo(Integer.valueOf(String.valueOf(edit.getText()))));\n edit.setText(\"\");\n text2.setText(\"Automobile Engineering\"); //automobile\n butt.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View v) {\n marks[0] +=(6*obj.theo(Integer.valueOf(String.valueOf(edit.getText()))));\n edit.setText(\"\");\n text2.setText(\"Refrigeration\"); //refrigeration\n butt.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View v) {\n marks[0] +=(6*obj.theo(Integer.valueOf(String.valueOf(edit.getText()))));\n edit.setText(\"\");\n text2.setText(\"Thermal Engineering - II\"); //Thermal Eng2\n butt.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View v) {\n marks[0] +=(6*obj.theo(Integer.valueOf(String.valueOf(edit.getText()))));\n edit.setText(\"\");\n text2.setText(\"Design of Machine Elements - II\"); //machine elements2\n butt.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View v) {\n marks[0] +=(8*obj.theo(Integer.valueOf(String.valueOf(edit.getText()))));\n edit.setText(\"\");\n text2.setText(\"Mechatronics LAB\"); //Mechatronics lab\n butt.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View v) {\n marks[0] +=(3*obj.pract(Integer.valueOf(String.valueOf(edit.getText()))));\n edit.setText(\"\");\n text2.setText(\"Automobile Engineering LAB\"); //automobile lab\n butt.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View v) {\n marks[0] +=(3*obj.pract(Integer.valueOf(String.valueOf(edit.getText()))));\n edit.setText(\"\");\n text2.setText(\"Thermal Engineering LAB\"); //thermal LAB\n butt.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View v) {\n marks[0] +=(3*obj.pract(Integer.valueOf(String.valueOf(edit.getText()))));\n double total = marks[0];\n total/=41.0;\n Intent intent = new Intent(MainActivity.this, Marks.class);\n intent.putExtra(\"Marks\", Math.round(total * 100.0) / 100.0);\n startActivity(intent);\n finish();\n }\n });\n }\n });\n }\n });\n }\n });\n }\n });\n }\n });\n }\n });\n }\n });\n }\n if(branch[0].equals(\"37\")) //ME 7th semester\n {\n text2.setText(\"HSS Elective\"); //hss\n butt.setOnClickListener(new View.OnClickListener() { //IC marks entered\n @Override\n public void onClick(View v) {\n marks[0] +=(4*obj.theo(Integer.valueOf(String.valueOf(edit.getText()))));\n edit.setText(\"\");\n text2.setText(\"Industrial Engineering and Operations Reaserch\"); //insudtrial\n butt.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View v) {\n marks[0] +=(6*obj.theo(Integer.valueOf(String.valueOf(edit.getText()))));\n edit.setText(\"\");\n text2.setText(\"CAD/CAM\"); //cad\n butt.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View v) {\n marks[0] +=(6*obj.theo(Integer.valueOf(String.valueOf(edit.getText()))));\n edit.setText(\"\");\n text2.setText(\"Departmental Elective - I\"); //de1\n butt.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View v) {\n marks[0] +=(6*obj.theo(Integer.valueOf(String.valueOf(edit.getText()))));\n edit.setText(\"\");\n text2.setText(\"Departmental Elective - II\"); //de2\n butt.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View v) {\n marks[0] +=(6*obj.theo(Integer.valueOf(String.valueOf(edit.getText()))));\n edit.setText(\"\");\n text2.setText(\"CAD/CAM LAB\"); //cad lab\n butt.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View v) {\n marks[0] +=(3*obj.pract(Integer.valueOf(String.valueOf(edit.getText()))));\n edit.setText(\"\");\n text2.setText(\"Project Work - I\"); //project1\n butt.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View v) {\n marks[0] +=(3*obj.pract(Integer.valueOf(String.valueOf(edit.getText()))));\n double total = marks[0];\n total/=34.0;\n Intent intent = new Intent(MainActivity.this, Marks.class);\n intent.putExtra(\"Marks\", Math.round(total * 100.0) / 100.0);\n startActivity(intent);\n finish();\n }\n });\n }\n });\n }\n });\n }\n });\n }\n });\n }\n });\n }\n });\n }\n if(branch[0].equals(\"38\")) //ME 8th semester\n {\n text2.setText(\"HSS Elective\"); //hss\n butt.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View v) {\n marks[0] +=(4*obj.theo(Integer.valueOf(String.valueOf(edit.getText()))));\n edit.setText(\"\");\n text2.setText(\"Department Elective - III\"); //de3\n butt.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View v) {\n marks[0] +=(6*obj.theo(Integer.valueOf(String.valueOf(edit.getText()))));\n edit.setText(\"\");\n text2.setText(\"Department Elective - IV\"); //de4\n butt.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View v) {\n marks[0] +=(6*obj.theo(Integer.valueOf(String.valueOf(edit.getText()))));\n edit.setText(\"\");\n text2.setText(\"Open Elective\"); //oe\n butt.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View v) {\n marks[0] +=(6*obj.theo(Integer.valueOf(String.valueOf(edit.getText()))));\n edit.setText(\"\");\n text2.setText(\"Project Work - II\"); //project\n butt.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View v) {\n marks[0] +=(9*obj.theo(Integer.valueOf(String.valueOf(edit.getText()))));\n double total = marks[0];\n total/=31.0;\n Intent intent = new Intent(MainActivity.this, Marks.class);\n intent.putExtra(\"Marks\", Math.round(total * 100.0) / 100.0);\n startActivity(intent);\n finish();\n }\n });\n }\n });\n }\n });\n }\n });\n }\n });\n }\n if(branch[0].equals(\"43\")) //EE 3rd semester\n {\n text2.setText(\"Network Analysis\"); //na\n butt.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View v) {\n marks[0] +=(6*obj.theo(Integer.valueOf(String.valueOf(edit.getText()))));\n edit.setText(\"\");\n text2.setText(\"Semiconductor Device and Circuits\"); //sdc\n butt.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View v) {\n marks[0] +=(6*obj.theo(Integer.valueOf(String.valueOf(edit.getText()))));\n edit.setText(\"\");\n text2.setText(\"Analog Circuits\"); //AC\n butt.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View v) {\n marks[0] +=(6*obj.theo(Integer.valueOf(String.valueOf(edit.getText()))));\n edit.setText(\"\");\n text2.setText(\"Maths\"); //math\n butt.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View v) {\n marks[0] +=(6*obj.theo(Integer.valueOf(String.valueOf(edit.getText()))));\n edit.setText(\"\");\n text2.setText(\"HSS Elective\"); //hss\n butt.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View v) {\n marks[0] +=(4*obj.theo(Integer.valueOf(String.valueOf(edit.getText()))));\n edit.setText(\"\");\n text2.setText(\"Network Analysis LAB\"); //na lab\n butt.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View v) {\n marks[0] +=(3*obj.pract(Integer.valueOf(String.valueOf(edit.getText()))));\n edit.setText(\"\");\n text2.setText(\"Semiconductor Device LAB\"); //sdc lab\n butt.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View v) {\n marks[0] +=(3*obj.pract(Integer.valueOf(String.valueOf(edit.getText()))));\n edit.setText(\"\");\n text2.setText(\"Analog Circuits LAB\"); //ac lab\n butt.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View v) {\n marks[0] +=(3*obj.pract(Integer.valueOf(String.valueOf(edit.getText()))));\n double total = marks[0];\n total/=37.0;\n Intent intent = new Intent(MainActivity.this, Marks.class);\n intent.putExtra(\"Marks\", Math.round(total * 100.0) / 100.0);\n startActivity(intent);\n finish();\n }\n });\n\n }\n });\n }\n });\n }\n });\n }\n });\n }\n });\n }\n });\n }\n });\n }\n if(branch[0].equals(\"44\")) //EE 4th semester\n {\n text2.setText(\"Numerical Methods\"); //numerical\n butt.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View v) {\n marks[0] +=(6*obj.theo(Integer.valueOf(String.valueOf(edit.getText()))));\n edit.setText(\"\");\n text2.setText(\"Digital Electronics\"); //ac\n butt.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View v) {\n marks[0] +=(6*obj.theo(Integer.valueOf(String.valueOf(edit.getText()))));\n edit.setText(\"\");\n text2.setText(\"Measurements and Instrumentation\"); //ee\n butt.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View v) {\n marks[0] +=(6*obj.theo(Integer.valueOf(String.valueOf(edit.getText()))));\n edit.setText(\"\");\n text2.setText(\"Signals and System\"); //signals\n butt.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View v) {\n marks[0] +=(6*obj.theo(Integer.valueOf(String.valueOf(edit.getText()))));\n edit.setText(\"\");\n text2.setText(\"Electrical Machines - I\"); //machines\n butt.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View v) {\n marks[0] +=(6*obj.theo(Integer.valueOf(String.valueOf(edit.getText()))));\n edit.setText(\"\");\n text2.setText(\"Digital Electronics LAB\"); //de lab\n butt.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View v) {\n marks[0] +=(3*obj.pract(Integer.valueOf(String.valueOf(edit.getText()))));\n edit.setText(\"\");\n text2.setText(\"Electrical Machines LAB\"); //machines lab\n butt.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View v) {\n marks[0] +=(3*obj.pract(Integer.valueOf(String.valueOf(edit.getText()))));\n edit.setText(\"\");\n text2.setText(\"Measurement and Instrumentation LAB\"); //instrumentation lab\n butt.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View v) {\n marks[0] +=(3*obj.pract(Integer.valueOf(String.valueOf(edit.getText()))));\n double total = marks[0];\n total/=41.0;\n Intent intent = new Intent(MainActivity.this, Marks.class);\n intent.putExtra(\"Marks\", Math.round(total * 100.0) / 100.0);\n startActivity(intent);\n finish();\n }\n });\n }\n });\n }\n });\n }\n });\n }\n });\n }\n });\n }\n });\n }\n });\n }\n if(branch[0].equals(\"45\")) //EE 5th semester\n {\n text2.setText(\"Power Electronics\"); //power\n butt.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View v) {\n marks[0] +=(6*obj.theo(Integer.valueOf(String.valueOf(edit.getText()))));\n edit.setText(\"\");\n text2.setText(\"Electrical Machines - II\"); //machines\n butt.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View v) {\n marks[0] +=(6*obj.theo(Integer.valueOf(String.valueOf(edit.getText()))));\n edit.setText(\"\");\n text2.setText(\"Transmission and Distribution\"); //transmission\n butt.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View v) {\n marks[0] +=(6*obj.theo(Integer.valueOf(String.valueOf(edit.getText()))));\n edit.setText(\"\");\n text2.setText(\"Control System\"); //systems\n butt.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View v) {\n marks[0] +=(6*obj.theo(Integer.valueOf(String.valueOf(edit.getText()))));\n edit.setText(\"\");\n text2.setText(\"Electromagnetic Field\"); //electromagnetic feild\n butt.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View v) {\n marks[0] +=(6*obj.theo(Integer.valueOf(String.valueOf(edit.getText()))));\n edit.setText(\"\");\n text2.setText(\"Electrical Machines - II LAB\"); //machines lab\n butt.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View v) {\n marks[0] +=(3*obj.pract(Integer.valueOf(String.valueOf(edit.getText()))));\n edit.setText(\"\");\n text2.setText(\"Power Electronics LAB\"); //power lab\n butt.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View v) {\n marks[0] +=(3*obj.pract(Integer.valueOf(String.valueOf(edit.getText()))));\n edit.setText(\"\");\n text2.setText(\"Numerical Methods LAB\"); //numericals lab\n butt.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View v) {\n marks[0] +=(3*obj.pract(Integer.valueOf(String.valueOf(edit.getText()))));\n double total = marks[0];\n total/=39.0;\n Intent intent = new Intent(MainActivity.this, Marks.class);\n intent.putExtra(\"Marks\", Math.round(total * 100.0) / 100.0);\n startActivity(intent);\n finish();\n }\n });\n\n }\n });\n }\n });\n }\n });\n }\n });\n }\n });\n }\n });\n }\n });\n }\n if(branch[0].equals(\"46\")) //EE 6th semester\n {\n text2.setText(\"Microprocessors and Applications\"); //microprocessors\n butt.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View v) {\n marks[0] +=(6*obj.theo(Integer.valueOf(String.valueOf(edit.getText()))));\n edit.setText(\"\");\n text2.setText(\"Power System Protection\"); //power system\n butt.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View v) {\n marks[0] +=(6*obj.theo(Integer.valueOf(String.valueOf(edit.getText()))));\n edit.setText(\"\");\n text2.setText(\"Advanced Control System\"); //advanced control\n butt.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View v) {\n marks[0] +=(6*obj.theo(Integer.valueOf(String.valueOf(edit.getText()))));\n edit.setText(\"\");\n text2.setText(\"Renewable Energy Resources\"); //Resources\n butt.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View v) {\n marks[0] +=(6*obj.theo(Integer.valueOf(String.valueOf(edit.getText()))));\n edit.setText(\"\");\n text2.setText(\"Communication System\"); //communication\n butt.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View v) {\n marks[0] +=(6*obj.theo(Integer.valueOf(String.valueOf(edit.getText()))));\n edit.setText(\"\");\n text2.setText(\"Microprocessor LAB\"); //microprocessors lab\n butt.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View v) {\n marks[0] +=(3*obj.pract(Integer.valueOf(String.valueOf(edit.getText()))));\n edit.setText(\"\");\n text2.setText(\"Power System LAB\"); //power lab\n butt.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View v) {\n marks[0] +=(3*obj.pract(Integer.valueOf(String.valueOf(edit.getText()))));\n edit.setText(\"\");\n text2.setText(\"Control System LAB\"); //control lab\n butt.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View v) {\n marks[0] +=(3*obj.pract(Integer.valueOf(String.valueOf(edit.getText()))));\n double total = marks[0];\n total/=39.0;\n Intent intent = new Intent(MainActivity.this, Marks.class);\n intent.putExtra(\"Marks\", Math.round(total * 100.0) / 100.0);\n startActivity(intent);\n finish();\n }\n });\n\n }\n });\n }\n });\n }\n });\n }\n });\n }\n });\n }\n });\n }\n });\n }\n if(branch[0].equals(\"47\")) //EE 7th semester\n {\n text2.setText(\"High Voltage Engineering\"); //voltage\n butt.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View v) {\n marks[0] +=(6*obj.theo(Integer.valueOf(String.valueOf(edit.getText()))));\n edit.setText(\"\");\n text2.setText(\"Power System Analysis\"); //power system\n butt.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View v) {\n marks[0] +=(6*obj.theo(Integer.valueOf(String.valueOf(edit.getText()))));\n edit.setText(\"\");\n text2.setText(\"Elective - I\"); //elective1\n butt.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View v) {\n marks[0] +=(6*obj.theo(Integer.valueOf(String.valueOf(edit.getText()))));\n edit.setText(\"\");\n text2.setText(\"Elective - II\"); //elective2\n butt.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View v) {\n marks[0] +=(6*obj.theo(Integer.valueOf(String.valueOf(edit.getText()))));\n edit.setText(\"\");\n text2.setText(\"Renewable Energy LAB\"); //renewable lab\n butt.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View v) {\n marks[0] +=(3*obj.pract(Integer.valueOf(String.valueOf(edit.getText()))));\n edit.setText(\"\");\n text2.setText(\"Project - I\"); //project\n butt.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View v) {\n marks[0] += (6 * obj.pract(Integer.valueOf(String.valueOf(edit.getText()))));\n double total = marks[0];\n total /= 39.0;\n Intent intent = new Intent(MainActivity.this, Marks.class);\n intent.putExtra(\"Marks\", Math.round(total * 100.0) / 100.0);\n startActivity(intent);\n finish();\n }\n });\n }\n });\n }\n });\n }\n });\n }\n });\n }\n });\n }\n if(branch[0].equals(\"48\")) //EE 8th semester\n {\n text2.setText(\"Power System Operation and Control\"); //power\n butt.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View v) {\n marks[0] +=(6*obj.theo(Integer.valueOf(String.valueOf(edit.getText()))));\n edit.setText(\"\");\n text2.setText(\"Elective - III\"); //elective3\n butt.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View v) {\n marks[0] +=(6*obj.theo(Integer.valueOf(String.valueOf(edit.getText()))));\n edit.setText(\"\");\n text2.setText(\"Open Elective\"); //op\n butt.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View v) {\n marks[0] +=(6*obj.theo(Integer.valueOf(String.valueOf(edit.getText()))));\n edit.setText(\"\");\n text2.setText(\"HSS Elective - IV\"); //hss4\n butt.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View v) {\n marks[0] +=(6*obj.theo(Integer.valueOf(String.valueOf(edit.getText()))));\n edit.setText(\"\");\n text2.setText(\"Project - II\"); //project2\n butt.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View v) {\n marks[0] +=(8*obj.pract(Integer.valueOf(String.valueOf(edit.getText()))));\n double total = marks[0];\n total /= 39.0;\n Intent intent = new Intent(MainActivity.this, Marks.class);\n intent.putExtra(\"Marks\", Math.round(total * 100.0) / 100.0);\n startActivity(intent);\n finish();\n }\n });\n }\n });\n }\n });\n }\n });\n }\n });\n }\n if(branch[0].equals(\"53\")) //CE 3rd semester\n {\n text2.setText(\"Mathematics\"); //maths\n butt.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View v) {\n marks[0] +=(6*obj.theo(Integer.valueOf(String.valueOf(edit.getText()))));\n edit.setText(\"\");\n text2.setText(\"Solid Mechanics\"); //sm\n butt.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View v) {\n marks[0] +=(8*obj.theo(Integer.valueOf(String.valueOf(edit.getText()))));\n edit.setText(\"\");\n text2.setText(\"Engineering Geology\"); //geology\n butt.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View v) {\n marks[0] +=(6*obj.theo(Integer.valueOf(String.valueOf(edit.getText()))));\n edit.setText(\"\");\n text2.setText(\"Civil Engineering Materials\"); //materials\n butt.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View v) {\n marks[0] +=(6*obj.theo(Integer.valueOf(String.valueOf(edit.getText()))));\n edit.setText(\"\");\n text2.setText(\"Surveying\"); //survey\n butt.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View v) {\n marks[0] +=(6*obj.theo(Integer.valueOf(String.valueOf(edit.getText()))));\n edit.setText(\"\");\n text2.setText(\"Civil Engineering Materials LAB\"); //Civil Engineering Materials lab\n butt.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View v) {\n marks[0] +=(3*obj.pract(Integer.valueOf(String.valueOf(edit.getText()))));\n edit.setText(\"\");\n text2.setText(\"Surveying LAB\"); //Surveying lab\n butt.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View v) {\n marks[0] +=(3*obj.pract(Integer.valueOf(String.valueOf(edit.getText()))));\n edit.setText(\"\");\n text2.setText(\"Building Drawing and CAD LAB\"); //Building Drawing and CAD lab\n butt.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View v) {\n marks[0] +=(4*obj.pract(Integer.valueOf(String.valueOf(edit.getText()))));\n double total = marks[0];\n total/=42.0;\n Intent intent = new Intent(MainActivity.this, Marks.class);\n intent.putExtra(\"Marks\", Math.round(total * 100.0) / 100.0);\n startActivity(intent);\n finish();\n }\n });\n\n }\n });\n }\n });\n }\n });\n }\n });\n }\n });\n }\n });\n }\n });\n }\n if(branch[0].equals(\"54\")) //CE 4th semester\n {\n text2.setText(\"Numerical Methods\"); //numerical\n butt.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View v) {\n marks[0] +=(6*obj.theo(Integer.valueOf(String.valueOf(edit.getText()))));\n edit.setText(\"\");\n text2.setText(\"Structural Analysis - I\"); //Structural Analysis I\n butt.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View v) {\n marks[0] +=(8*obj.theo(Integer.valueOf(String.valueOf(edit.getText()))));\n edit.setText(\"\");\n text2.setText(\"Environmental Engineering - I\"); //Environmental Engineering I\n butt.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View v) {\n marks[0] +=(6*obj.theo(Integer.valueOf(String.valueOf(edit.getText()))));\n edit.setText(\"\");\n text2.setText(\"Geotechnical Engineering - I\"); //Geotechnical Engineering I\n butt.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View v) {\n marks[0] +=(6*obj.theo(Integer.valueOf(String.valueOf(edit.getText()))));\n edit.setText(\"\");\n text2.setText(\"Hydrology and Water Resources Engineering\"); //Hydrology and Water Resources Engineering\n butt.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View v) {\n marks[0] +=(6*obj.theo(Integer.valueOf(String.valueOf(edit.getText()))));\n edit.setText(\"\");\n text2.setText(\"Environmental Engineering LAB\"); //Environmental Engineering lab\n butt.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View v) {\n marks[0] +=(3*obj.pract(Integer.valueOf(String.valueOf(edit.getText()))));\n edit.setText(\"\");\n text2.setText(\"Geotechnical Engineering - I LAB\"); //Geotechnical Engineering lab\n butt.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View v) {\n marks[0] +=(3*obj.pract(Integer.valueOf(String.valueOf(edit.getText()))));\n double total = marks[0];\n total/=38.0;\n Intent intent = new Intent(MainActivity.this, Marks.class);\n intent.putExtra(\"Marks\", Math.round(total * 100.0) / 100.0);\n startActivity(intent);\n finish();\n }\n });\n }\n });\n }\n });\n }\n });\n }\n });\n }\n });\n }\n });\n }\n if(branch[0].equals(\"55\")) //CE 5th semester\n {\n text2.setText(\"Structural Analysis II\"); //power\n butt.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View v) {\n marks[0] +=(8*obj.theo(Integer.valueOf(String.valueOf(edit.getText()))));\n edit.setText(\"\");\n text2.setText(\"Environmental Engineering II\"); //machines\n butt.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View v) {\n marks[0] +=(6*obj.theo(Integer.valueOf(String.valueOf(edit.getText()))));\n edit.setText(\"\");\n text2.setText(\"Geotechnical Engineering II\"); //transmission\n butt.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View v) {\n marks[0] +=(6*obj.theo(Integer.valueOf(String.valueOf(edit.getText()))));\n edit.setText(\"\");\n text2.setText(\"Fluid Mechanics\"); //systems\n butt.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View v) {\n marks[0] +=(6*obj.theo(Integer.valueOf(String.valueOf(edit.getText()))));\n edit.setText(\"\");\n text2.setText(\"Reinforced Concrete Design\"); //electromagnetic feild\n butt.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View v) {\n marks[0] +=(6*obj.theo(Integer.valueOf(String.valueOf(edit.getText()))));\n edit.setText(\"\");\n text2.setText(\"Geotechnical Engineering - II LAB\"); //machines lab\n butt.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View v) {\n marks[0] +=(3*obj.pract(Integer.valueOf(String.valueOf(edit.getText()))));\n edit.setText(\"\");\n text2.setText(\"Fluid Mechanics LAB\"); //power lab\n butt.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View v) {\n marks[0] +=(3*obj.pract(Integer.valueOf(String.valueOf(edit.getText()))));\n double total = marks[0];\n total/=39.0;\n Intent intent = new Intent(MainActivity.this, Marks.class);\n intent.putExtra(\"Marks\", Math.round(total * 100.0) / 100.0);\n startActivity(intent);\n finish();\n }\n });\n }\n });\n }\n });\n }\n });\n }\n });\n }\n });\n }\n });\n }\n if(branch[0].equals(\"56\")) //CE 6th semester\n {\n text2.setText(\"HSS - II\"); //microprocessors\n butt.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View v) {\n marks[0] +=(4*obj.theo(Integer.valueOf(String.valueOf(edit.getText()))));\n edit.setText(\"\");\n text2.setText(\"Transportation Engineering - I\"); //power system\n butt.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View v) {\n marks[0] +=(6*obj.theo(Integer.valueOf(String.valueOf(edit.getText()))));\n edit.setText(\"\");\n text2.setText(\"Construction Technology and Management\"); //advanced control\n butt.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View v) {\n marks[0] +=(6*obj.theo(Integer.valueOf(String.valueOf(edit.getText()))));\n edit.setText(\"\");\n text2.setText(\"Design of Steel Structures\"); //Resources\n butt.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View v) {\n marks[0] +=(8*obj.theo(Integer.valueOf(String.valueOf(edit.getText()))));\n edit.setText(\"\");\n text2.setText(\"Hydraulics and Hydraulic Structures\"); //communication\n butt.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View v) {\n marks[0] +=(6*obj.theo(Integer.valueOf(String.valueOf(edit.getText()))));\n edit.setText(\"\");\n text2.setText(\"Transportation Engineering - I LAB\"); //microprocessors lab\n butt.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View v) {\n marks[0] +=(3*obj.pract(Integer.valueOf(String.valueOf(edit.getText()))));\n edit.setText(\"\");\n text2.setText(\"Hydraulics and Hydraulic Structures LAB\"); //power lab\n butt.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View v) {\n marks[0] +=(3*obj.pract(Integer.valueOf(String.valueOf(edit.getText()))));\n double total = marks[0];\n total/=39.0;\n Intent intent = new Intent(MainActivity.this, Marks.class);\n intent.putExtra(\"Marks\", Math.round(total * 100.0) / 100.0);\n startActivity(intent);\n finish();\n }\n });\n }\n });\n }\n });\n }\n });\n }\n });\n }\n });\n }\n });\n }\n if(branch[0].equals(\"57\")) //CE 7th semester\n {\n text2.setText(\"HSS - III\"); //voltage\n butt.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View v) {\n marks[0] +=(4*obj.theo(Integer.valueOf(String.valueOf(edit.getText()))));\n edit.setText(\"\");\n text2.setText(\"Transportation Engineering - II\"); //power system\n butt.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View v) {\n marks[0] +=(6*obj.theo(Integer.valueOf(String.valueOf(edit.getText()))));\n edit.setText(\"\");\n text2.setText(\"Elective - I\"); //elective1\n butt.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View v) {\n marks[0] +=(6*obj.theo(Integer.valueOf(String.valueOf(edit.getText()))));\n edit.setText(\"\");\n text2.setText(\"Elective - II\"); //elective2\n butt.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View v) {\n marks[0] +=(6*obj.theo(Integer.valueOf(String.valueOf(edit.getText()))));\n edit.setText(\"\");\n text2.setText(\"Open Elective - I\"); //renewable lab\n butt.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View v) {\n marks[0] +=(3*obj.pract(Integer.valueOf(String.valueOf(edit.getText()))));\n edit.setText(\"\");\n text2.setText(\"Computational LAB\"); //project\n butt.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View v) {\n marks[0] += (3 * obj.pract(Integer.valueOf(String.valueOf(edit.getText()))));\n double total = marks[0];\n total /= 31.0;\n Intent intent = new Intent(MainActivity.this, Marks.class);\n intent.putExtra(\"Marks\", Math.round(total * 100.0) / 100.0);\n startActivity(intent);\n finish();\n }\n });\n }\n });\n }\n });\n }\n });\n }\n });\n }\n });\n }\n if(branch[0].equals(\"58\")) //CE 8th semester\n {\n text2.setText(\"Departmental Elective - III\"); //power\n butt.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View v) {\n marks[0] +=(6*obj.theo(Integer.valueOf(String.valueOf(edit.getText()))));\n edit.setText(\"\");\n text2.setText(\"Departmental Elective IV\"); //elective3\n butt.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View v) {\n marks[0] +=(6*obj.theo(Integer.valueOf(String.valueOf(edit.getText()))));\n edit.setText(\"\");\n text2.setText(\"Open Elective - II\"); //op\n butt.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View v) {\n marks[0] +=(6*obj.theo(Integer.valueOf(String.valueOf(edit.getText()))));\n edit.setText(\"\");\n text2.setText(\"Project\"); //hss4\n butt.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View v) {\n marks[0] +=(9*obj.theo(Integer.valueOf(String.valueOf(edit.getText()))));\n double total = marks[0];\n total /= 27.0;\n Intent intent = new Intent(MainActivity.this, Marks.class);\n intent.putExtra(\"Marks\", Math.round(total * 100.0) / 100.0);\n startActivity(intent);\n finish();\n }\n });\n }\n });\n }\n });\n }\n });\n }\n\n }\n });\n\n }",
"private void executeAlgo(SearchTestUtil.ALGO algo) {\n Stopwatch stopwatch = new Stopwatch(true);\n if (algo.equals(SearchTestUtil.ALGO.RECUIT)) assignementProblem.recuitAlgortihm();\n else assignementProblem.tabuAlgortihm();\n stopwatch.stop();\n System.out.print(\"\\t\" + algo.toString());\n System.out.print(\" Best \" + assignementProblem.getF().apply(assignementProblem.getOutCombination()));\n System.out.println(\" | Time \" + stopwatch.elapsedMs() + \" ms\");\n }",
"@SuppressWarnings(\"unchecked\")\n // <editor-fold defaultstate=\"collapsed\" desc=\"Generated Code\">//GEN-BEGIN:initComponents\n private void initComponents() {\n\n jLabel1 = new javax.swing.JLabel();\n jLabel2 = new javax.swing.JLabel();\n jLabel3 = new javax.swing.JLabel();\n from1 = new javax.swing.JTextField();\n to1 = new javax.swing.JTextField();\n from2 = new javax.swing.JTextField();\n to2 = new javax.swing.JTextField();\n to3 = new javax.swing.JTextField();\n from3 = new javax.swing.JTextField();\n from4 = new javax.swing.JTextField();\n to5 = new javax.swing.JTextField();\n to4 = new javax.swing.JTextField();\n to7 = new javax.swing.JTextField();\n to6 = new javax.swing.JTextField();\n to8 = new javax.swing.JTextField();\n from7 = new javax.swing.JTextField();\n from8 = new javax.swing.JTextField();\n from6 = new javax.swing.JTextField();\n from5 = new javax.swing.JTextField();\n chooseFrom1 = new javax.swing.JButton();\n chooseTo1 = new javax.swing.JButton();\n chooseFrom2 = new javax.swing.JButton();\n chooseFrom3 = new javax.swing.JButton();\n chooseFrom4 = new javax.swing.JButton();\n chooseFrom5 = new javax.swing.JButton();\n chooseFrom6 = new javax.swing.JButton();\n chooseFrom7 = new javax.swing.JButton();\n chooseFrom8 = new javax.swing.JButton();\n chooseTo2 = new javax.swing.JButton();\n chooseTo3 = new javax.swing.JButton();\n chooseTo4 = new javax.swing.JButton();\n chooseTo7 = new javax.swing.JButton();\n chooseTo8 = new javax.swing.JButton();\n chooseTo5 = new javax.swing.JButton();\n chooseTo6 = new javax.swing.JButton();\n option1 = new javax.swing.JTextField();\n option4 = new javax.swing.JTextField();\n option2 = new javax.swing.JTextField();\n option3 = new javax.swing.JTextField();\n populateButton = new javax.swing.JButton();\n matchButton = new javax.swing.JButton();\n jScrollPane1 = new javax.swing.JScrollPane();\n info = new javax.swing.JTextArea();\n\n setBackground(new java.awt.Color(0, 255, 0));\n\n jLabel1.setFont(new java.awt.Font(\"Lucida Grande\", 1, 13)); // NOI18N\n jLabel1.setText(\"From\");\n\n jLabel2.setFont(new java.awt.Font(\"Lucida Grande\", 1, 13)); // NOI18N\n jLabel2.setText(\"To\");\n\n jLabel3.setFont(new java.awt.Font(\"Lucida Grande\", 1, 13)); // NOI18N\n jLabel3.setText(\"Options\");\n\n from4.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n from4ActionPerformed(evt);\n }\n });\n\n to6.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n to6ActionPerformed(evt);\n }\n });\n\n from7.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n from7ActionPerformed(evt);\n }\n });\n\n from8.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n from8ActionPerformed(evt);\n }\n });\n\n chooseFrom1.setText(\"O\");\n chooseFrom1.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n chooseFrom1ActionPerformed(evt);\n }\n });\n\n chooseTo1.setText(\"O\");\n chooseTo1.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n chooseTo1ActionPerformed(evt);\n }\n });\n\n chooseFrom2.setText(\"O\");\n chooseFrom2.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n chooseFrom2ActionPerformed(evt);\n }\n });\n\n chooseFrom3.setText(\"O\");\n chooseFrom3.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n chooseFrom3ActionPerformed(evt);\n }\n });\n\n chooseFrom4.setText(\"O\");\n chooseFrom4.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n chooseFrom4ActionPerformed(evt);\n }\n });\n\n chooseFrom5.setText(\"O\");\n chooseFrom5.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n chooseFrom5ActionPerformed(evt);\n }\n });\n\n chooseFrom6.setText(\"O\");\n chooseFrom6.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n chooseFrom6ActionPerformed(evt);\n }\n });\n\n chooseFrom7.setText(\"O\");\n chooseFrom7.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n chooseFrom7ActionPerformed(evt);\n }\n });\n\n chooseFrom8.setText(\"O\");\n chooseFrom8.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n chooseFrom8ActionPerformed(evt);\n }\n });\n\n chooseTo2.setText(\"O\");\n chooseTo2.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n chooseTo2ActionPerformed(evt);\n }\n });\n\n chooseTo3.setText(\"O\");\n chooseTo3.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n chooseTo3ActionPerformed(evt);\n }\n });\n\n chooseTo4.setText(\"O\");\n chooseTo4.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n chooseTo4ActionPerformed(evt);\n }\n });\n\n chooseTo7.setText(\"O\");\n chooseTo7.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n chooseTo7ActionPerformed(evt);\n }\n });\n\n chooseTo8.setText(\"O\");\n chooseTo8.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n chooseTo8ActionPerformed(evt);\n }\n });\n\n chooseTo5.setText(\"O\");\n chooseTo5.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n chooseTo5ActionPerformed(evt);\n }\n });\n\n chooseTo6.setText(\"O\");\n chooseTo6.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n chooseTo6ActionPerformed(evt);\n }\n });\n\n populateButton.setText(\"Populate\");\n populateButton.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n populateButtonActionPerformed(evt);\n }\n });\n\n matchButton.setText(\"Match\");\n matchButton.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n matchButtonActionPerformed(evt);\n }\n });\n\n info.setColumns(10);\n info.setRows(5);\n info.setText(\"Click \\\"Populate\\\"\\nThen choose the\\nclass you're going\\nfrom and to\\nThen click \\\"Match\\\"\");\n jScrollPane1.setViewportView(info);\n\n javax.swing.GroupLayout layout = new javax.swing.GroupLayout(this);\n this.setLayout(layout);\n layout.setHorizontalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(layout.createSequentialGroup()\n .addContainerGap(18, Short.MAX_VALUE)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)\n .addComponent(populateButton, javax.swing.GroupLayout.PREFERRED_SIZE, 175, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGroup(layout.createSequentialGroup()\n .addComponent(jScrollPane1, javax.swing.GroupLayout.PREFERRED_SIZE, 139, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(layout.createSequentialGroup()\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING, false)\n .addGroup(layout.createSequentialGroup()\n .addComponent(jLabel1)\n .addGap(71, 71, 71))\n .addComponent(from1)\n .addComponent(from2)\n .addComponent(from3)\n .addComponent(from5)\n .addComponent(from4)\n .addComponent(from6, javax.swing.GroupLayout.PREFERRED_SIZE, 128, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)\n .addComponent(chooseFrom6, javax.swing.GroupLayout.PREFERRED_SIZE, 45, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(chooseFrom4, javax.swing.GroupLayout.PREFERRED_SIZE, 45, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(chooseFrom3, javax.swing.GroupLayout.PREFERRED_SIZE, 45, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(chooseFrom2, javax.swing.GroupLayout.PREFERRED_SIZE, 45, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(chooseFrom1, javax.swing.GroupLayout.PREFERRED_SIZE, 45, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(chooseFrom5, javax.swing.GroupLayout.PREFERRED_SIZE, 45, javax.swing.GroupLayout.PREFERRED_SIZE)))\n .addGroup(layout.createSequentialGroup()\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)\n .addComponent(from7, javax.swing.GroupLayout.DEFAULT_SIZE, 128, Short.MAX_VALUE)\n .addComponent(from8))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(chooseFrom8, javax.swing.GroupLayout.PREFERRED_SIZE, 45, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(chooseFrom7, javax.swing.GroupLayout.PREFERRED_SIZE, 45, javax.swing.GroupLayout.PREFERRED_SIZE))))))\n .addGap(80, 80, 80)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(layout.createSequentialGroup()\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)\n .addComponent(jLabel2)\n .addComponent(to7, javax.swing.GroupLayout.DEFAULT_SIZE, 128, Short.MAX_VALUE)\n .addComponent(to6)\n .addComponent(to8)\n .addComponent(to5)\n .addComponent(to4)\n .addComponent(to3)\n .addComponent(to2)\n .addComponent(to1))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(layout.createSequentialGroup()\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(chooseTo1, javax.swing.GroupLayout.PREFERRED_SIZE, 45, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(chooseTo2, javax.swing.GroupLayout.PREFERRED_SIZE, 45, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(chooseTo7, javax.swing.GroupLayout.PREFERRED_SIZE, 45, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(chooseTo8, javax.swing.GroupLayout.PREFERRED_SIZE, 45, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(chooseTo6, javax.swing.GroupLayout.PREFERRED_SIZE, 45, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(chooseTo5, javax.swing.GroupLayout.PREFERRED_SIZE, 45, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(chooseTo3, javax.swing.GroupLayout.PREFERRED_SIZE, 45, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(jLabel3)\n .addComponent(option1, javax.swing.GroupLayout.PREFERRED_SIZE, 206, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(option3, javax.swing.GroupLayout.PREFERRED_SIZE, 206, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(option4, javax.swing.GroupLayout.PREFERRED_SIZE, 206, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(option2, javax.swing.GroupLayout.PREFERRED_SIZE, 206, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addContainerGap(12, Short.MAX_VALUE))\n .addGroup(layout.createSequentialGroup()\n .addComponent(chooseTo4, javax.swing.GroupLayout.PREFERRED_SIZE, 45, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGap(0, 0, Short.MAX_VALUE))))\n .addGroup(layout.createSequentialGroup()\n .addComponent(matchButton, javax.swing.GroupLayout.PREFERRED_SIZE, 175, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addContainerGap())))\n );\n layout.setVerticalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(layout.createSequentialGroup()\n .addGap(9, 9, 9)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(jLabel2)\n .addComponent(jLabel1)\n .addComponent(jLabel3))\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(layout.createSequentialGroup()\n .addGap(29, 29, 29)\n .addComponent(option1, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addComponent(option2, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, layout.createSequentialGroup()\n .addGap(18, 18, Short.MAX_VALUE)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, layout.createSequentialGroup()\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(from1, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(to1, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(chooseTo1)\n .addComponent(chooseFrom1))\n .addGap(15, 15, 15)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(from2, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(chooseFrom2)\n .addComponent(to2, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(chooseTo2))\n .addGap(17, 17, 17)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(from3, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(chooseFrom3)\n .addComponent(to3, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(chooseTo3)))\n .addComponent(jScrollPane1, javax.swing.GroupLayout.Alignment.TRAILING, javax.swing.GroupLayout.PREFERRED_SIZE, 102, javax.swing.GroupLayout.PREFERRED_SIZE))))\n .addGap(18, 18, 18)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(layout.createSequentialGroup()\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(to4, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(chooseTo4))\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(layout.createSequentialGroup()\n .addGap(9, 9, 9)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(to5, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(chooseTo5)))\n .addGroup(layout.createSequentialGroup()\n .addGap(18, 18, 18)\n .addComponent(option3, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(chooseFrom6)\n .addComponent(to6, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(chooseTo6)\n .addComponent(from6, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(from7, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(chooseFrom7)\n .addComponent(chooseTo7)\n .addComponent(to7, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(option4, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)))\n .addGroup(layout.createSequentialGroup()\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(chooseFrom4)\n .addGroup(layout.createSequentialGroup()\n .addGap(1, 1, 1)\n .addComponent(from4, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(from5, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(chooseFrom5))))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(from8, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(chooseFrom8)\n .addComponent(to8, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(chooseTo8))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(populateButton)\n .addComponent(matchButton))\n .addGap(0, 6, Short.MAX_VALUE))\n );\n }",
"public void process()\n {\n try\n {\n selectNow();\n handleSelectedKeys();\n }\n catch (final Exception e)\n {\n throw new RuntimeException(e);\n }\n }",
"private static void buttonSetup() {\n \n // For all buttons except clear and equals=, update display\n for(JButton i:buttonOrder) {\n if(i.equals(clear) || i.equals(equals))\n continue;\n i.addActionListener(new ActionListener() {\n public void actionPerformed(ActionEvent evt) {\n if(displayString.toString().equals(\"ERROR\")) {\n displayString.replace(0, displayString.length(), i.getText());\n numField.setText(displayString.toString());\n } else {\n displayString.append(i.getText());\n numField.setText(displayString.toString());\n }\n }\n });\n }\n \n // Clears display\n clear.addActionListener(new ActionListener() {\n public void actionPerformed(ActionEvent evt) {\n displayString.delete(0, displayString.length());\n numField.setText(displayString.toString());\n }\n });\n \n // Clears display, shows result\n equals.addActionListener(new ActionListener() {\n public void actionPerformed(ActionEvent evt) {\n equationParse(displayString);\n }\n });\n }",
"public DefaultMutableTreeNode execute(IFramework framework) throws AlgorithmException {\r\n\t\t//Before anything check for Mac OS and throw appropriate msg\r\n\t\tif(sysMsg(\"R 2.11.x\", \"GlobalAncova\") != JOptionPane.OK_OPTION)\r\n\t\t\treturn null;\r\n\t\t\r\n this.experiment = framework.getData().getExperiment(); \r\n this.data = framework.getData();\r\n exptNamesVector = new Vector<String>();\r\n int number_of_samples = experiment.getNumberOfSamples();\r\n \r\n int [] columnIndices = experiment.getColumnIndicesCopy(); \r\n \r\n sampleLabels = new ArrayList<String>();\r\n geneLabels = new ArrayList<String>();\r\n for (int i = 0; i < number_of_samples; i++) {\r\n exptNamesVector.add(framework.getData().getFullSampleName(columnIndices[i]));\r\n sampleLabels.add(framework.getData().getFullSampleName(columnIndices[i])); //Raktim\r\n } \r\n \t\r\n \r\n GLOBANCInitBox GLOBALANCDialog = new GLOBANCInitBox((JFrame)framework.getFrame(), true, exptNamesVector,framework.getData().getAllFilledAnnotationFields(), framework.getClusterRepository(1));\r\n GLOBALANCDialog.setVisible(true);\r\n \r\n annotChosen = GLOBALANCDialog.getSelectedAnnotation();\r\n for (int i = 0; i < experiment.getNumberOfGenes(); i++) {\r\n \tgeneLabels.add(framework.getData().getElementAnnotation(i, annotChosen)[0]);\r\n }\r\n \r\n if (!GLOBALANCDialog.isOkPressed()) return null;\r\n \r\n alpha = GLOBALANCDialog.getAlpha();\r\n dataDesign = 4;\r\n numGroups = GLOBALANCDialog.getNumGroups();\r\n numPerms = GLOBALANCDialog.getNumPerms();\r\n numFullGroups = GLOBALANCDialog.getNumFullGroups();\r\n numRedGroups = GLOBALANCDialog.getNumRedGroups();\r\n factorAName = GLOBALANCDialog.getFactorAName();\r\n factorBName = GLOBALANCDialog.getFactorBName();\r\n groupAssignments=GLOBALANCDialog.getGroupAssignments();\r\n geneSetFilePath = GLOBALANCDialog.getGeneSetFilePath();\r\n geneSetOrigin = GLOBALANCDialog.getGeneSetOrigin();\r\n if (groupAssignments == null)\r\n \treturn null;\r\n \r\n IDistanceMenu menu = framework.getDistanceMenu();\r\n int function = menu.getDistanceFunction();\r\n if (function == Algorithm.DEFAULT) {\r\n function = Algorithm.EUCLIDEAN;\r\n }\r\n \r\n \r\n Listener listener = new Listener();\r\n \r\n try {\r\n algorithm = framework.getAlgorithmFactory().getAlgorithm(\"GLOBANC\");\r\n algorithm.addAlgorithmListener(listener);\r\n \r\n this.progress = new Progress(framework.getFrame(), \"Running Global ANCOVA Analysis\", listener);\r\n this.progress.setIndeterminate(true);\r\n this.progress.setIndeterminantString(\"Running Analysis...\");\r\n this.progress.show();\r\n \r\n AlgorithmData data = new AlgorithmData();\r\n \r\n data.addMatrix(\"experiment\", experiment.getMatrix());\r\n data.addIntArray(\"group_assignments\", groupAssignments);\r\n data.addParam(\"dataDesign\", String.valueOf(dataDesign));\r\n data.addParam(\"numGroups\", String.valueOf(numGroups));\r\n data.addParam(\"alpha\", String.valueOf(alpha));\r\n data.addParam(\"numAGroups\",String.valueOf(numFullGroups));\r\n data.addParam(\"numPerms\",String.valueOf(numPerms));\r\n data.addParam(\"numBGroups\",String.valueOf(numRedGroups));\r\n data.addParam(\"nameA\",String.valueOf(factorAName));\r\n data.addParam(\"nameB\",String.valueOf(factorBName));\r\n data.addParam(\"geneSetOrigin\",String.valueOf(geneSetOrigin));\r\n data.addStringArray(\"geneSetFilePaths\", geneSetFilePath);\r\n if (dataDesign==5){\r\n data.addParam(\"numAGroups\",String.valueOf(2));\r\n data.addParam(\"numBGroups\",String.valueOf(numGroups));\r\n\t data.addParam(\"nameA\",String.valueOf(\"Condition\"));\r\n\t data.addParam(\"nameB\",String.valueOf(\"Time\"));\r\n }\r\n\r\n //Raktim\r\n data.addStringArray(\"geneLabels\", geneLabels.toArray(new String[geneLabels.size()]));\r\n data.addStringArray(\"sampleLabels\", sampleLabels.toArray(new String[sampleLabels.size()]));\r\n \r\n long start = System.currentTimeMillis();\r\n AlgorithmData result = algorithm.execute(data);\r\n long time = System.currentTimeMillis() - start;\r\n \r\n // getting the results\r\n Cluster result_cluster = result.getCluster(\"cluster\");\r\n this.means = result.getMatrix(\"clusters_means\");\r\n this.variances = result.getMatrix(\"clusters_variances\");\r\n \r\n this.geneLists = result.getIntMatrix(\"geneListsMatrix\");\r\n this.geneListNames = result.getStringArray(\"gene-list-names\");\r\n this.resultMatrix = result.getMatrix(\"result-matrix\"); \r\n FloatMatrix geneGroupMeansMatrix = result.getMatrix(\"geneGroupMeansMatrix\"); \r\n FloatMatrix geneGroupSDsMatrix = result.getMatrix(\"geneGroupSDsMatrix\");\r\n \r\n iterations = result.getParams().getInt(\"iterations\");\r\n \r\n geneGroupMeans = new float[geneGroupMeansMatrix.getRowDimension()][geneGroupMeansMatrix.getColumnDimension()];\r\n geneGroupSDs = new float[geneGroupSDsMatrix.getRowDimension()][geneGroupSDsMatrix.getColumnDimension()];\r\n for (int i = 0; i < geneGroupMeans.length; i++) {\r\n for (int j = 0; j < geneGroupMeans[i].length; j++) {\r\n geneGroupMeans[i][j] = geneGroupMeansMatrix.A[i][j];\r\n geneGroupSDs[i][j] = geneGroupSDsMatrix.A[i][j];\r\n }\r\n }\r\n GeneralInfo info = new GeneralInfo();\r\n info.time = time;\r\n //ADD MORE INFO PARAMETERS HERE\r\n info.alpha = alpha;\r\n info.function = menu.getFunctionName(function);\r\n Vector<String> titlesVector = new Vector<String>();\r\n for (int i = 0; i < geneGroupMeans[0].length; i++) {\r\n titlesVector.add(\"Group \" + (i+1) + \" mean\");\r\n titlesVector.add(\"Group \" + (i+1) + \" std.dev\");\r\n }\r\n\r\n titlesVector.add(\"F-values\");\r\n int x=1; int y=2;\r\n for (int i=0; i<getTotalInteractions(numGroups); i++) {\r\n\r\n titlesVector.add(\"significance-values, \"+x+\"vs.\"+y);\r\n titlesVector.add(\"adj-p-values, \"+x+\"vs.\"+y);\r\n titlesVector.add(\"log fold change, \"+x+\"vs.\"+y);\r\n titlesVector.add(\"t-statistic, \"+x+\"vs.\"+y);\r\n titlesVector.add(\"log-odds, \"+x+\"vs.\"+y);\r\n \t\r\n y++;\r\n if (y>numGroups){\r\n \tx++;\r\n \ty=x+1;\r\n }\r\n }\r\n \r\n auxTitles = new String[titlesVector.size()];\r\n for (int i = 0; i < auxTitles.length; i++) {\r\n auxTitles[i] = (String)(titlesVector.get(i));\r\n }\r\n \r\n auxData = new Object[experiment.getNumberOfGenes()][auxTitles.length];\r\n for (int i = 0; i < auxData.length; i++) {\r\n int counter = 0;\r\n for (int j = 0; j < geneGroupMeans[i].length; j++) {\r\n auxData[i][counter++] = new Float(geneGroupMeans[i][j]);\r\n auxData[i][counter++] = new Float(geneGroupSDs[i][j]);\r\n }\r\n }\r\n return createResultTree(result_cluster, info);\r\n \r\n } finally {\r\n if (algorithm != null) {\r\n algorithm.removeAlgorithmListener(listener);\r\n }\r\n if (progress != null) {\r\n progress.dispose();\r\n }\r\n }\r\n }",
"@Override\n\tpublic void actionPerformed(ActionEvent arg0) {\n\t\tif(arg0.getActionCommand() == \"Submit selection\"){\n\t\t\tuserChoices.add(fpList.getFlightPlansList(modeLocal).get((int) flightPlanSpinner.getValue() - 1));\n\t\t\t// enter confirmation page if no return flight, otherwise call self?\n\t\t\tif(!isReturn && hasReturn){\n\t\t\t\tuserParams.SetReturnParams(userParams); // convert to return params\n\t\t\t\tnew SearchResultsGui(fpListArr, userChoices, true, 0, userParams);\n\t\t\t}\n\t\t\telse{\n\t\t\t\tnew ConfirmationGui(userChoices);\n\t\t\t}\n\t\t\tdispose();\n\t\t}\n\t\telse if(arg0.getActionCommand() == \"Sort by Price\"){\n\t\t\tdispose();\n\t\t\tif(modeLocal == SORT_BY_PRICE_DESCENDING){\n\t\t\t\tmodeLocal = SORT_BY_PRICE_ASCENDING;\n\t\t\t}\n\t\t\telse{\n\t\t\t\tmodeLocal = SORT_BY_PRICE_DESCENDING;\n\t\t\t}\n\t\t\tnew SearchResultsGui(fpListArr, userChoices, isReturn, modeLocal, userParams);\n\t\t}\n\t\telse if(arg0.getActionCommand() == \"Sort by Time\"){\n\t\t\tif(modeLocal == SORT_BY_TIME_DESCENDING){\n\t\t\t\tmodeLocal = SORT_BY_TIME_ASCENDING;\n\t\t\t}\n\t\t\telse{\n\t\t\t\tmodeLocal = SORT_BY_TIME_DESCENDING;\n\t\t\t}\n\t\t\tnew SearchResultsGui(fpListArr, userChoices, isReturn, modeLocal, userParams);\n\t\t\tdispose();\n\t\t}\n\t}",
"private void selectFunctionality() {\n if (text.equals(\"1\") || text.contains(\"senast\")) {\n intent = new Intent(this, LatestCallsActivity.class);\n startActivity(intent);\n } else if (text.equals(\"2\") || text.contains(\"favor\")) {\n intent = new Intent(this, ContactGridActivity.class);\n startActivity(intent);\n } else if (text.equals(\"3\") || text.contains(\"med\") || text.contains(\"inkorg\") || text.contains(\"sm\")) {\n intent = new Intent(this, SMS_Activity.class);\n startActivity(intent);\n } else if (text.equals(\"4\") || text.contains(\"bok\") || text.contains(\"kontakt\")) {\n words = text.split(\" \");\n if (words.length > 1) {\n intent = new Intent(this, ContactGridActivity.class);\n intent.putExtra(\"initial_letter\", words[1].charAt(0));\n startActivity(intent);\n } else {\n intent = new Intent(this, ContactBookActivity.class);\n startActivity(intent);\n }\n\n }\n\n }",
"private void jButtonSearchActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jButtonSearchActionPerformed\n //Get the content of text field\n String searchText=this.jTextFieldSearchWord.getText().trim();\n //Clear result container:\n this.jTextAreaResult.setText(\"\");\n\n try {\n //Get the class of parser\n Class<?> parserClass = Class.forName(\"ie.gmit.java2.parser.Searchable\");\n\n //Place the search in a thread\n ie.gmit.java2.TextAnalyser.runThread(()->{\n //\"Start the timer\" for parsing time\n final long start = System.nanoTime();\n //Get all the components from the check box container\n for(Component component:this.jLayeredPaneResultsChooser.getComponents()){\n //Check if it is a check box\n if(component instanceof JCheckBox){\n //If it is a check box then check if it is selected\n if(((JCheckBox)component).isSelected()){\n //If it is selected then get the belonging method\n try{\n //String result=((ie.gmit.java2.parser.Parser)this.parserObject).contains(searchText)+\"\";\n //Get the belonging method of check box then invoke it on our parser object with the content of the search field as aparameter\n Object result=parserClass.getDeclaredMethod(component.getName(),String.class).invoke(this.processor, searchText);\n //If it is a int array the size is exactly two then it is line+word index\n if(result instanceof int[] && ((int[])result).length==2){\n result=\"Line \"+(++((int[])result)[0])+\" Word \"+(++((int[])result)[1]);\n }\n //If it is a two dimensional int array then is is the all indices method\n if(result instanceof int[][]){\n //Create result holder\n String resultString=\"\\n\";\n //Loop each line\n for(int[] l:(int[][])result){\n resultString+=\" Line \"+(++l[0])+\" Word \"+(++l[1])+\"\\n\";\n }\n result=resultString;\n }\n\n //Add the result to the end of the results text area;\n this.jTextAreaResult.append(((JCheckBox) component).getText()+\": \"+result.toString()+\"\\n\\n\");\n }catch(IllegalArgumentException | SecurityException | NoSuchMethodException | IllegalAccessException | InvocationTargetException ex){\n //Do nothing there should not be any of these errors.\n ie.gmit.java2.TextAnalyser.LOG.debug(ex.getMessage(), ex);\n }\n\n }\n }\n }\n //Set time in millisecs\n this.jTextAreaResult.append(\"Finished in: \"+((float)((System.nanoTime() - start) / 1000000)/(float)1000)+\"s\");\n });\n } catch (ClassNotFoundException ex) {\n //The class is there anyways...\n ie.gmit.java2.TextAnalyser.LOG.debug(ex.getMessage(), ex);\n }\n }",
"private void processChoice() {\n switch (this.choice) {\n case 0:\n System.out.println(\"Log Out\");\n break;\n case 1:\n System.out.println(\"Open New Account\");\n break;\n case 2:\n System.out.println(\"View All Accounts\");\n break;\n case 3:\n System.out.println(\"View Transactions\");\n break;\n case 4:\n System.out.println(\"Transfer Funds\");\n break;\n default:\n System.out.println(\"Error! Invalid menu option\");\n break;\n }\n }",
"public void addListenerOnAlgorithmSelection() {\n\t\tspinner.setOnItemSelectedListener(new OnItemSelectedListener(){\n\n\t\t\t/**\n\t\t\t * Log the selected algorithm.\n\t\t\t */\n\t\t\t@Override\n\t\t\tpublic void onItemSelected(AdapterView<?> parentView, View selectedItemView, int position, long id){\n\t\t\t\tLog.v(LOG_TAG, \"Maze generation algorithm selection: \" + spinner.getSelectedItem().toString());\n\t\t\t}\n\n\t\t\t/**\n\t\t\t * Do nothing if nothing is selected.\n\t\t\t */\n\t\t\t@Override\n\t\t\tpublic void onNothingSelected(AdapterView<?> parentView){\n\t\t\t\t// do nothing\n\t\t\t}\n\t\t});\n\t}",
"public void run() \n\t\t{\n\t\t\tboolean exitMenu = false;\n\t\t\tdo \n\t\t\t{\t\t\t\t\t\n\t\t\t\tmenu.display();\n\t\t\t\tint choice = menu.getUserSelection();\n\t\t\t\t// the above method call will return 0 if the user did not\n\t\t\t\t// entered a valid selection in the opportunities given...\n\t\t\t\t// Otherwise, it is valid...\n\t\t\t\tif (choice == 0)\n\t\t\t\t{\n\t\t\t\t\t// here the user can be informed that fail to enter a\n\t\t\t\t\t// valid input after all the opportunities given....\n\t\t\t\t\t// for the moment, just exit....\n\t\t\t\t\texitMenu = true;\n\t\t\t\t}\n\t\t\t\telse if (choice == 1) \n\t\t\t\t{\n\t\t\t\t\t// here goes your code to initiate action associated to\n\t\t\t\t\t// menu option 1....\n\t\t\t\t\tProjectUtils.operationsOnNumbers();\n\t\t\t\t}\n\t\t\t\telse if (choice == 2)\n\t\t\t\t{\n\t\t\t\t\tProjectUtils.operationsOnStrings();\n\t\t\t\t}\n\t\t\t\telse if (choice == 3) \n\t\t\t\t{\n\t\t\t\t\tProjectUtils.showStatistics();\n\t\t\t\t}\n\t\t\t\telse if (choice == 4)\n\t\t\t\t{\n\t\t\t\t\texitMenu = true; \n\t\t\t\t\tProjectUtils.println(\"Exiting now... \\nGoodbye!\");\n\t\t\t\t}\n\t\t\t} while (!exitMenu);\n\t\t}",
"@Override\n\tpublic void run()\n\t{\n\t\tswitch (ubiToolType)\n\t\t{\n\t\tcase PUNKT:\n\t\t\tdoPoint();\n\t\t\tbreak;\n\t\tcase KREIS:\n\t\t\tdoCircle();\n\t\t\tbreak;\n\t\tcase LINIE:\n\t\t\tdoLine();\n\t\t\tbreak;\n\t\tdefault:\n\t\t\tbreak;\n\t\t}\n\t}",
"@Override\n\tpublic void actionPerformed(ActionEvent e) {\n\t\tOWLNamedIndividual cf = (OWLNamedIndividual)comboBox.getSelectedItem();\n\t\tOWLNamedIndividual sForm;\n\t\t\n\t\t// If the IDS has more than one associated syntactic form, ask the user to select the form.\n\t\t// Otherwise, just take the default.\n\t\tList<OWLNamedIndividual> synforms = ko.getSynforms(cf);\n\t\tif (synforms.size() > 1){\n\t\t\t// Prompt for specific detector\n\t\t\tsForm = null;\n\t\t} else {\n\t\t\tsForm = synforms.get(0);\n\t\t}\n\t\t\n\t\t// Ask the KO for the syntactic form:\n\t\t//String sf = ko.getSyntacticForm(sForm);\n\t\t//TODO: Update the syntactic form production method in the oracle.\n\t\tString sf = null;\n\t\t\n\t\t// Update the text box with the correct form:\n\t\ttextArea.setText(sf);\n\t}",
"@SuppressWarnings(\"unchecked\")\n // <editor-fold defaultstate=\"collapsed\" desc=\"Generated Code\">//GEN-BEGIN:initComponents\n private void initComponents() {\n\n btnGro1 = new javax.swing.ButtonGroup();\n btnGro2 = new javax.swing.ButtonGroup();\n btnGro3 = new javax.swing.ButtonGroup();\n btnGro4 = new javax.swing.ButtonGroup();\n btnGro5 = new javax.swing.ButtonGroup();\n btnGro6 = new javax.swing.ButtonGroup();\n jSplitPane1 = new javax.swing.JSplitPane();\n jScrollPane1 = new javax.swing.JScrollPane();\n treeMath = new javax.swing.JTree();\n panContent = new javax.swing.JPanel();\n panFactorial = new javax.swing.JPanel();\n jScrollPane2 = new javax.swing.JScrollPane();\n txtaFactorial = new javax.swing.JTextArea();\n panFactorialExe = new javax.swing.JPanel();\n lblFactorialExeTitle = new javax.swing.JLabel();\n lbl1 = new javax.swing.JLabel();\n btn1 = new javax.swing.JButton();\n lbl2 = new javax.swing.JLabel();\n btn2 = new javax.swing.JButton();\n lbl3 = new javax.swing.JLabel();\n btn3 = new javax.swing.JButton();\n lbl4 = new javax.swing.JLabel();\n btn4 = new javax.swing.JButton();\n txtA2 = new javax.swing.JTextArea();\n txtA1 = new javax.swing.JTextArea();\n txtA3 = new javax.swing.JTextArea();\n txtA4 = new javax.swing.JTextArea();\n panPrime = new javax.swing.JPanel();\n jScrollPane3 = new javax.swing.JScrollPane();\n txtaPrime = new javax.swing.JTextArea();\n panPrimeTest = new javax.swing.JPanel();\n lblPrimeTest1 = new javax.swing.JLabel();\n lblPrimeTest = new javax.swing.JLabel();\n rBtnYes1 = new javax.swing.JRadioButton();\n rBtnNo1 = new javax.swing.JRadioButton();\n lblPrimeTest2 = new javax.swing.JLabel();\n rBtnYes2 = new javax.swing.JRadioButton();\n rBtnNo2 = new javax.swing.JRadioButton();\n lblPrimeTest3 = new javax.swing.JLabel();\n rBtnYes3 = new javax.swing.JRadioButton();\n rBtnNo3 = new javax.swing.JRadioButton();\n lblPrimeTest4 = new javax.swing.JLabel();\n rBtnYes4 = new javax.swing.JRadioButton();\n rBtnNo4 = new javax.swing.JRadioButton();\n lblPrimeTest5 = new javax.swing.JLabel();\n rBtnYes5 = new javax.swing.JRadioButton();\n rBtnNo5 = new javax.swing.JRadioButton();\n lblPrimeTest6 = new javax.swing.JLabel();\n rBtnYes6 = new javax.swing.JRadioButton();\n rBtnNo6 = new javax.swing.JRadioButton();\n btnReTestPrime = new javax.swing.JButton();\n btnCheckPrime = new javax.swing.JButton();\n lblCheck1 = new javax.swing.JLabel();\n lblCheck2 = new javax.swing.JLabel();\n lblCheck3 = new javax.swing.JLabel();\n lblCheck4 = new javax.swing.JLabel();\n lblCheck5 = new javax.swing.JLabel();\n lblCheck6 = new javax.swing.JLabel();\n panBinAndDec = new javax.swing.JPanel();\n jScrollPane5 = new javax.swing.JScrollPane();\n txtaBinAndDec = new javax.swing.JTextArea();\n panBinToDec = new javax.swing.JPanel();\n lblPanBinToDec = new javax.swing.JLabel();\n panDecToBin = new javax.swing.JPanel();\n lblPanDecToBin1 = new javax.swing.JLabel();\n lblPanDecToBin2 = new javax.swing.JLabel();\n lblPanDecToBin3 = new javax.swing.JLabel();\n txtAPanDecToBin = new javax.swing.JTextArea();\n lblPanDecToBin4 = new javax.swing.JLabel();\n panBinAndDecConverter = new javax.swing.JPanel();\n lblTitle = new javax.swing.JLabel();\n lblDec = new javax.swing.JLabel();\n lblBin = new javax.swing.JLabel();\n txtDecToBin = new javax.swing.JTextField();\n txtBinToDec = new javax.swing.JTextField();\n btnDecToBin = new javax.swing.JButton();\n btnBinToDec = new javax.swing.JButton();\n lblDecToBin = new javax.swing.JLabel();\n lblBinToDec = new javax.swing.JLabel();\n panWelcome = new javax.swing.JPanel();\n txtAWelcome = new javax.swing.JTextArea();\n\n setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE);\n setTitle(\"welcome to the math classroom\");\n setLocation(new java.awt.Point(160, 60));\n setResizable(false);\n setSize(new java.awt.Dimension(1100, 600));\n\n jSplitPane1.setDividerLocation(220);\n\n treeMath.setFont(new java.awt.Font(\"Calibri Light\", 1, 18)); // NOI18N\n javax.swing.tree.DefaultMutableTreeNode treeNode1 = new javax.swing.tree.DefaultMutableTreeNode(\"Math Tutorial\");\n javax.swing.tree.DefaultMutableTreeNode treeNode2 = new javax.swing.tree.DefaultMutableTreeNode(\"Factorial\");\n javax.swing.tree.DefaultMutableTreeNode treeNode3 = new javax.swing.tree.DefaultMutableTreeNode(\"exercise\");\n treeNode2.add(treeNode3);\n treeNode1.add(treeNode2);\n treeNode2 = new javax.swing.tree.DefaultMutableTreeNode(\"Prime\");\n treeNode3 = new javax.swing.tree.DefaultMutableTreeNode(\"test\");\n treeNode2.add(treeNode3);\n treeNode1.add(treeNode2);\n treeNode2 = new javax.swing.tree.DefaultMutableTreeNode(\"Binary and Decimal\");\n treeNode3 = new javax.swing.tree.DefaultMutableTreeNode(\"bin to dec\");\n treeNode2.add(treeNode3);\n treeNode3 = new javax.swing.tree.DefaultMutableTreeNode(\"dec to bin\");\n treeNode2.add(treeNode3);\n treeNode3 = new javax.swing.tree.DefaultMutableTreeNode(\"converter\");\n treeNode2.add(treeNode3);\n treeNode1.add(treeNode2);\n treeMath.setModel(new javax.swing.tree.DefaultTreeModel(treeNode1));\n treeMath.addTreeSelectionListener(new javax.swing.event.TreeSelectionListener() {\n public void valueChanged(javax.swing.event.TreeSelectionEvent evt) {\n treeMathValueChanged(evt);\n }\n });\n jScrollPane1.setViewportView(treeMath);\n\n jSplitPane1.setLeftComponent(jScrollPane1);\n\n panContent.setLayout(new java.awt.CardLayout());\n\n panFactorial.setLayout(new java.awt.BorderLayout());\n\n txtaFactorial.setColumns(20);\n txtaFactorial.setFont(new java.awt.Font(\"Monospaced\", 0, 18)); // NOI18N\n txtaFactorial.setForeground(new java.awt.Color(0, 51, 204));\n txtaFactorial.setRows(5);\n txtaFactorial.setText(\"Determining Factorials\\n\\n A factorial is the product of multiplying every number together, \\n from 1 to a given number. It’s denoted by writing n!\\n\\n Does that make sense? Let’s look at an example.\\n\\n The factorial of 6 would be:\\n\\n 6! = 6 x 5 x 4 x 3 x 2 x 1\\n 6! = 720\\n\\n Cool, eh?\\n\");\n jScrollPane2.setViewportView(txtaFactorial);\n\n panFactorial.add(jScrollPane2, java.awt.BorderLayout.CENTER);\n\n panContent.add(panFactorial, \"panFactorial\");\n\n panFactorialExe.setBackground(new java.awt.Color(204, 204, 255));\n panFactorialExe.setLayout(new org.netbeans.lib.awtextra.AbsoluteLayout());\n\n lblFactorialExeTitle.setFont(new java.awt.Font(\"宋体\", 1, 18)); // NOI18N\n lblFactorialExeTitle.setText(\"Questions:\");\n panFactorialExe.add(lblFactorialExeTitle, new org.netbeans.lib.awtextra.AbsoluteConstraints(10, 20, 151, 40));\n\n lbl1.setFont(new java.awt.Font(\"宋体\", 2, 18)); // NOI18N\n lbl1.setText(\"1. What is the factorial of 5 ?\");\n panFactorialExe.add(lbl1, new org.netbeans.lib.awtextra.AbsoluteConstraints(10, 92, 296, -1));\n\n btn1.setFont(new java.awt.Font(\"宋体\", 0, 18)); // NOI18N\n btn1.setText(\"Answer\");\n btn1.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n btn1ActionPerformed(evt);\n }\n });\n panFactorialExe.add(btn1, new org.netbeans.lib.awtextra.AbsoluteConstraints(38, 131, -1, -1));\n\n lbl2.setFont(new java.awt.Font(\"宋体\", 2, 18)); // NOI18N\n lbl2.setText(\"2. What is the factorial of 8?\");\n panFactorialExe.add(lbl2, new org.netbeans.lib.awtextra.AbsoluteConstraints(10, 358, 296, -1));\n\n btn2.setFont(new java.awt.Font(\"宋体\", 0, 18)); // NOI18N\n btn2.setText(\"Answer\");\n btn2.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n btn2ActionPerformed(evt);\n }\n });\n panFactorialExe.add(btn2, new org.netbeans.lib.awtextra.AbsoluteConstraints(39, 411, -1, -1));\n\n lbl3.setFont(new java.awt.Font(\"宋体\", 2, 18)); // NOI18N\n lbl3.setText(\"3. What is the factorial of 10 ?\");\n panFactorialExe.add(lbl3, new org.netbeans.lib.awtextra.AbsoluteConstraints(448, 92, 296, -1));\n\n btn3.setFont(new java.awt.Font(\"宋体\", 0, 18)); // NOI18N\n btn3.setText(\"Answer\");\n btn3.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n btn3ActionPerformed(evt);\n }\n });\n panFactorialExe.add(btn3, new org.netbeans.lib.awtextra.AbsoluteConstraints(480, 131, -1, -1));\n\n lbl4.setFont(new java.awt.Font(\"宋体\", 2, 18)); // NOI18N\n lbl4.setText(\"4. What is the factorial of 3 ?\");\n panFactorialExe.add(lbl4, new org.netbeans.lib.awtextra.AbsoluteConstraints(451, 358, 296, -1));\n\n btn4.setFont(new java.awt.Font(\"宋体\", 0, 18)); // NOI18N\n btn4.setText(\"Answer\");\n btn4.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n btn4ActionPerformed(evt);\n }\n });\n panFactorialExe.add(btn4, new org.netbeans.lib.awtextra.AbsoluteConstraints(487, 411, -1, -1));\n\n txtA2.setEditable(false);\n txtA2.setColumns(20);\n txtA2.setFont(new java.awt.Font(\"Monospaced\", 0, 18)); // NOI18N\n txtA2.setRows(2);\n txtA2.setText(\"8! = 8 x 7 x 6 x 5 x 4 x 3 x 2 x 1\\n8! = 40320\");\n txtA2.setBorder(null);\n panFactorialExe.add(txtA2, new org.netbeans.lib.awtextra.AbsoluteConstraints(10, 467, 366, 70));\n\n txtA1.setEditable(false);\n txtA1.setColumns(20);\n txtA1.setFont(new java.awt.Font(\"Monospaced\", 0, 18)); // NOI18N\n txtA1.setRows(2);\n txtA1.setText(\"5! = 5 x 4 x 3 x 2 x 1\\n5! = 120\");\n txtA1.setBorder(null);\n txtA1.setMargin(new java.awt.Insets(0, 0, 0, 0));\n panFactorialExe.add(txtA1, new org.netbeans.lib.awtextra.AbsoluteConstraints(19, 185, 326, 70));\n\n txtA3.setEditable(false);\n txtA3.setColumns(20);\n txtA3.setFont(new java.awt.Font(\"Monospaced\", 0, 18)); // NOI18N\n txtA3.setRows(2);\n txtA3.setText(\"10! = 10 x 9 x 8 x 7 x 6 x 5 x 4 x 3 x 2 x 1\\n10! = 3628800\");\n txtA3.setBorder(null);\n panFactorialExe.add(txtA3, new org.netbeans.lib.awtextra.AbsoluteConstraints(450, 180, 371, 83));\n\n txtA4.setEditable(false);\n txtA4.setColumns(20);\n txtA4.setFont(new java.awt.Font(\"Monospaced\", 0, 18)); // NOI18N\n txtA4.setRows(2);\n txtA4.setText(\"3! = 3 x 2 x 1\\n3! = 6\");\n txtA4.setBorder(null);\n panFactorialExe.add(txtA4, new org.netbeans.lib.awtextra.AbsoluteConstraints(451, 467, 311, 70));\n\n panContent.add(panFactorialExe, \"panFactorialExe\");\n\n panPrime.setLayout(new java.awt.BorderLayout());\n\n txtaPrime.setColumns(20);\n txtaPrime.setFont(new java.awt.Font(\"Monospaced\", 0, 18)); // NOI18N\n txtaPrime.setForeground(new java.awt.Color(0, 51, 204));\n txtaPrime.setRows(5);\n txtaPrime.setText(\"Prime Numbers\\n\\nPrime numbers are numbers that are only divisible by themselves and 1.\\n\\nA number is divisible by another number if you can divide it \\nwithout being left with any remainders.\\n\\n12 is divisible by 6 because 12 % 6 = 0.\\nBut 23 is not divisible by 6 because 23 % 6 = 5.\\n\\nImagine you had to determine whether or not 7 was a prime number.\\nYour brain might do something like this:\\nIs 7 divisible by 2? No.\\nIs 7 divisible by 3? No.\\nIs 7 divisible by 4? No.\\nIs 7 divisible by 5? No.\\nIs 7 divisible by 6? No.\\n\\n\\nSo, 7 is a prime number. Hooray!!\");\n jScrollPane3.setViewportView(txtaPrime);\n\n panPrime.add(jScrollPane3, java.awt.BorderLayout.CENTER);\n\n panContent.add(panPrime, \"panPrime\");\n\n panPrimeTest.setBackground(new java.awt.Color(204, 204, 255));\n panPrimeTest.setLayout(new org.netbeans.lib.awtextra.AbsoluteLayout());\n\n lblPrimeTest1.setFont(new java.awt.Font(\"宋体\", 2, 18)); // NOI18N\n lblPrimeTest1.setText(\"1. Is 5 a prime number ?\");\n panPrimeTest.add(lblPrimeTest1, new org.netbeans.lib.awtextra.AbsoluteConstraints(110, 100, 296, -1));\n\n lblPrimeTest.setFont(new java.awt.Font(\"宋体\", 1, 18)); // NOI18N\n lblPrimeTest.setText(\"Prime Test:\");\n panPrimeTest.add(lblPrimeTest, new org.netbeans.lib.awtextra.AbsoluteConstraints(10, 18, 151, 40));\n\n btnGro1.add(rBtnYes1);\n rBtnYes1.setFont(new java.awt.Font(\"Tahoma\", 0, 14)); // NOI18N\n rBtnYes1.setSelected(true);\n rBtnYes1.setText(\"Yes\");\n rBtnYes1.addItemListener(new java.awt.event.ItemListener() {\n public void itemStateChanged(java.awt.event.ItemEvent evt) {\n rBtnYes1ItemStateChanged(evt);\n }\n });\n panPrimeTest.add(rBtnYes1, new org.netbeans.lib.awtextra.AbsoluteConstraints(210, 140, -1, -1));\n\n btnGro1.add(rBtnNo1);\n rBtnNo1.setFont(new java.awt.Font(\"Tahoma\", 0, 14)); // NOI18N\n rBtnNo1.setText(\"No\");\n panPrimeTest.add(rBtnNo1, new org.netbeans.lib.awtextra.AbsoluteConstraints(300, 140, -1, -1));\n\n lblPrimeTest2.setFont(new java.awt.Font(\"宋体\", 2, 18)); // NOI18N\n lblPrimeTest2.setText(\"2. Is 5 a prime number ?\");\n panPrimeTest.add(lblPrimeTest2, new org.netbeans.lib.awtextra.AbsoluteConstraints(110, 250, 296, -1));\n\n btnGro2.add(rBtnYes2);\n rBtnYes2.setFont(new java.awt.Font(\"Tahoma\", 0, 14)); // NOI18N\n rBtnYes2.setSelected(true);\n rBtnYes2.setText(\"Yes\");\n rBtnYes2.addItemListener(new java.awt.event.ItemListener() {\n public void itemStateChanged(java.awt.event.ItemEvent evt) {\n rBtnYes2ItemStateChanged(evt);\n }\n });\n panPrimeTest.add(rBtnYes2, new org.netbeans.lib.awtextra.AbsoluteConstraints(210, 280, -1, -1));\n\n btnGro2.add(rBtnNo2);\n rBtnNo2.setFont(new java.awt.Font(\"Tahoma\", 0, 14)); // NOI18N\n rBtnNo2.setText(\"No\");\n panPrimeTest.add(rBtnNo2, new org.netbeans.lib.awtextra.AbsoluteConstraints(300, 280, -1, -1));\n\n lblPrimeTest3.setFont(new java.awt.Font(\"宋体\", 2, 18)); // NOI18N\n lblPrimeTest3.setText(\"3. Is 5 a prime number ?\");\n panPrimeTest.add(lblPrimeTest3, new org.netbeans.lib.awtextra.AbsoluteConstraints(110, 420, 296, -1));\n\n btnGro3.add(rBtnYes3);\n rBtnYes3.setFont(new java.awt.Font(\"Tahoma\", 0, 14)); // NOI18N\n rBtnYes3.setSelected(true);\n rBtnYes3.setText(\"Yes\");\n rBtnYes3.addItemListener(new java.awt.event.ItemListener() {\n public void itemStateChanged(java.awt.event.ItemEvent evt) {\n rBtnYes3ItemStateChanged(evt);\n }\n });\n panPrimeTest.add(rBtnYes3, new org.netbeans.lib.awtextra.AbsoluteConstraints(210, 460, -1, -1));\n\n btnGro3.add(rBtnNo3);\n rBtnNo3.setFont(new java.awt.Font(\"Tahoma\", 0, 14)); // NOI18N\n rBtnNo3.setText(\"No\");\n panPrimeTest.add(rBtnNo3, new org.netbeans.lib.awtextra.AbsoluteConstraints(300, 460, -1, -1));\n\n lblPrimeTest4.setFont(new java.awt.Font(\"宋体\", 2, 18)); // NOI18N\n lblPrimeTest4.setText(\"4. Is 5 a prime number ?\");\n panPrimeTest.add(lblPrimeTest4, new org.netbeans.lib.awtextra.AbsoluteConstraints(580, 100, 296, -1));\n\n btnGro4.add(rBtnYes4);\n rBtnYes4.setFont(new java.awt.Font(\"Tahoma\", 0, 14)); // NOI18N\n rBtnYes4.setSelected(true);\n rBtnYes4.setText(\"Yes\");\n rBtnYes4.addItemListener(new java.awt.event.ItemListener() {\n public void itemStateChanged(java.awt.event.ItemEvent evt) {\n rBtnYes4ItemStateChanged(evt);\n }\n });\n panPrimeTest.add(rBtnYes4, new org.netbeans.lib.awtextra.AbsoluteConstraints(680, 140, -1, -1));\n\n btnGro4.add(rBtnNo4);\n rBtnNo4.setFont(new java.awt.Font(\"Tahoma\", 0, 14)); // NOI18N\n rBtnNo4.setText(\"No\");\n panPrimeTest.add(rBtnNo4, new org.netbeans.lib.awtextra.AbsoluteConstraints(770, 140, -1, -1));\n\n lblPrimeTest5.setFont(new java.awt.Font(\"宋体\", 2, 18)); // NOI18N\n lblPrimeTest5.setText(\"5. Is 5 a prime number ?\");\n panPrimeTest.add(lblPrimeTest5, new org.netbeans.lib.awtextra.AbsoluteConstraints(580, 260, 296, -1));\n\n btnGro5.add(rBtnYes5);\n rBtnYes5.setFont(new java.awt.Font(\"Tahoma\", 0, 14)); // NOI18N\n rBtnYes5.setSelected(true);\n rBtnYes5.setText(\"Yes\");\n rBtnYes5.addItemListener(new java.awt.event.ItemListener() {\n public void itemStateChanged(java.awt.event.ItemEvent evt) {\n rBtnYes5ItemStateChanged(evt);\n }\n });\n panPrimeTest.add(rBtnYes5, new org.netbeans.lib.awtextra.AbsoluteConstraints(680, 300, -1, -1));\n\n btnGro5.add(rBtnNo5);\n rBtnNo5.setFont(new java.awt.Font(\"Tahoma\", 0, 14)); // NOI18N\n rBtnNo5.setText(\"No\");\n panPrimeTest.add(rBtnNo5, new org.netbeans.lib.awtextra.AbsoluteConstraints(770, 300, -1, -1));\n\n lblPrimeTest6.setFont(new java.awt.Font(\"宋体\", 2, 18)); // NOI18N\n lblPrimeTest6.setText(\"6. Is 5 a prime number ?\");\n panPrimeTest.add(lblPrimeTest6, new org.netbeans.lib.awtextra.AbsoluteConstraints(580, 420, 296, -1));\n\n btnGro6.add(rBtnYes6);\n rBtnYes6.setFont(new java.awt.Font(\"Tahoma\", 0, 14)); // NOI18N\n rBtnYes6.setSelected(true);\n rBtnYes6.setText(\"Yes\");\n rBtnYes6.addItemListener(new java.awt.event.ItemListener() {\n public void itemStateChanged(java.awt.event.ItemEvent evt) {\n rBtnYes6ItemStateChanged(evt);\n }\n });\n panPrimeTest.add(rBtnYes6, new org.netbeans.lib.awtextra.AbsoluteConstraints(680, 460, -1, -1));\n\n btnGro6.add(rBtnNo6);\n rBtnNo6.setFont(new java.awt.Font(\"Tahoma\", 0, 14)); // NOI18N\n rBtnNo6.setText(\"No\");\n panPrimeTest.add(rBtnNo6, new org.netbeans.lib.awtextra.AbsoluteConstraints(770, 460, -1, -1));\n\n btnReTestPrime.setFont(new java.awt.Font(\"Tahoma\", 0, 18)); // NOI18N\n btnReTestPrime.setText(\"ReTest\");\n btnReTestPrime.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n btnReTestPrimeActionPerformed(evt);\n }\n });\n panPrimeTest.add(btnReTestPrime, new org.netbeans.lib.awtextra.AbsoluteConstraints(307, 539, 110, -1));\n\n btnCheckPrime.setFont(new java.awt.Font(\"Tahoma\", 0, 18)); // NOI18N\n btnCheckPrime.setText(\"Check\");\n btnCheckPrime.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n btnCheckPrimeActionPerformed(evt);\n }\n });\n panPrimeTest.add(btnCheckPrime, new org.netbeans.lib.awtextra.AbsoluteConstraints(507, 539, 110, -1));\n\n lblCheck1.setIcon(new javax.swing.ImageIcon(getClass().getResource(\"/smile.jpg\"))); // NOI18N\n panPrimeTest.add(lblCheck1, new org.netbeans.lib.awtextra.AbsoluteConstraints(40, 100, -1, -1));\n\n lblCheck2.setIcon(new javax.swing.ImageIcon(getClass().getResource(\"/smile.jpg\"))); // NOI18N\n panPrimeTest.add(lblCheck2, new org.netbeans.lib.awtextra.AbsoluteConstraints(40, 250, -1, -1));\n\n lblCheck3.setIcon(new javax.swing.ImageIcon(getClass().getResource(\"/smile.jpg\"))); // NOI18N\n panPrimeTest.add(lblCheck3, new org.netbeans.lib.awtextra.AbsoluteConstraints(50, 410, -1, -1));\n\n lblCheck4.setIcon(new javax.swing.ImageIcon(getClass().getResource(\"/smile.jpg\"))); // NOI18N\n panPrimeTest.add(lblCheck4, new org.netbeans.lib.awtextra.AbsoluteConstraints(500, 100, -1, -1));\n\n lblCheck5.setIcon(new javax.swing.ImageIcon(getClass().getResource(\"/smile.jpg\"))); // NOI18N\n panPrimeTest.add(lblCheck5, new org.netbeans.lib.awtextra.AbsoluteConstraints(500, 250, -1, -1));\n\n lblCheck6.setIcon(new javax.swing.ImageIcon(getClass().getResource(\"/smile.jpg\"))); // NOI18N\n panPrimeTest.add(lblCheck6, new org.netbeans.lib.awtextra.AbsoluteConstraints(510, 410, -1, -1));\n\n panContent.add(panPrimeTest, \"panPrimeTest\");\n\n panBinAndDec.setLayout(new java.awt.BorderLayout());\n\n txtaBinAndDec.setColumns(20);\n txtaBinAndDec.setFont(new java.awt.Font(\"Monospaced\", 0, 18)); // NOI18N\n txtaBinAndDec.setForeground(new java.awt.Color(0, 51, 204));\n txtaBinAndDec.setRows(5);\n txtaBinAndDec.setText(\"Binary\\n\\n Binary is a number system that uses 2 as it’s base. \\n The binary number system uses only two digits: 0 and 1. \\n Using 0s and 1s, the computer can represent any number imaginable.\\n \\n for example: 11001, 101011011010\\n\\n\\nDecimal\\n\\n Decimal is a number system that uses10 as it’s base.\\n The decimal number system uses 10 different digits \\n (0, 1, 2, 3, 4, 5, 6, 7, 8 and 9).\\n\\n for example : 65, 83\");\n jScrollPane5.setViewportView(txtaBinAndDec);\n\n panBinAndDec.add(jScrollPane5, java.awt.BorderLayout.CENTER);\n\n panContent.add(panBinAndDec, \"panBinAndDec\");\n\n panBinToDec.setBackground(new java.awt.Color(255, 255, 255));\n panBinToDec.setLayout(new org.netbeans.lib.awtextra.AbsoluteLayout());\n\n lblPanBinToDec.setIcon(new javax.swing.ImageIcon(getClass().getResource(\"/bintodec.jpg\"))); // NOI18N\n lblPanBinToDec.setText(\"jLabel4\");\n panBinToDec.add(lblPanBinToDec, new org.netbeans.lib.awtextra.AbsoluteConstraints(20, 60, 840, 410));\n\n panContent.add(panBinToDec, \"panBinToDec\");\n\n panDecToBin.setBackground(new java.awt.Color(255, 255, 255));\n panDecToBin.setForeground(new java.awt.Color(255, 255, 255));\n\n lblPanDecToBin1.setIcon(new javax.swing.ImageIcon(getClass().getResource(\"/decToBin1.jpg\"))); // NOI18N\n lblPanDecToBin1.setText(\"jLabel5\");\n\n lblPanDecToBin2.setIcon(new javax.swing.ImageIcon(getClass().getResource(\"/decToBin2.jpg\"))); // NOI18N\n lblPanDecToBin2.setText(\"jLabel6\");\n\n lblPanDecToBin3.setFont(new java.awt.Font(\"宋体\", 1, 24)); // NOI18N\n lblPanDecToBin3.setForeground(new java.awt.Color(0, 51, 153));\n lblPanDecToBin3.setText(\"Convert deciaml to binary:\");\n\n txtAPanDecToBin.setEditable(false);\n txtAPanDecToBin.setColumns(20);\n txtAPanDecToBin.setFont(new java.awt.Font(\"Monospaced\", 1, 18)); // NOI18N\n txtAPanDecToBin.setForeground(new java.awt.Color(5, 1, 153));\n txtAPanDecToBin.setRows(5);\n txtAPanDecToBin.setText(\"\\nDivide the positive decimal number by two, then divide the quotient by two,\\nand so on until the quotient is zero or one, then mark the remainder \\nof each step, finaly arrange remainder in reverse order.\");\n\n lblPanDecToBin4.setFont(new java.awt.Font(\"宋体\", 0, 18)); // NOI18N\n lblPanDecToBin4.setForeground(new java.awt.Color(5, 1, 153));\n lblPanDecToBin4.setText(\"remainder\");\n\n javax.swing.GroupLayout panDecToBinLayout = new javax.swing.GroupLayout(panDecToBin);\n panDecToBin.setLayout(panDecToBinLayout);\n panDecToBinLayout.setHorizontalGroup(\n panDecToBinLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(panDecToBinLayout.createSequentialGroup()\n .addGroup(panDecToBinLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(panDecToBinLayout.createSequentialGroup()\n .addGap(39, 39, 39)\n .addComponent(lblPanDecToBin2, javax.swing.GroupLayout.PREFERRED_SIZE, 257, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)\n .addComponent(lblPanDecToBin1, javax.swing.GroupLayout.PREFERRED_SIZE, 468, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGroup(panDecToBinLayout.createSequentialGroup()\n .addContainerGap()\n .addComponent(lblPanDecToBin3))\n .addComponent(txtAPanDecToBin, javax.swing.GroupLayout.PREFERRED_SIZE, 862, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGroup(panDecToBinLayout.createSequentialGroup()\n .addGap(155, 155, 155)\n .addComponent(lblPanDecToBin4, javax.swing.GroupLayout.PREFERRED_SIZE, 98, javax.swing.GroupLayout.PREFERRED_SIZE)))\n .addContainerGap(174, Short.MAX_VALUE))\n );\n panDecToBinLayout.setVerticalGroup(\n panDecToBinLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(panDecToBinLayout.createSequentialGroup()\n .addGap(22, 22, 22)\n .addComponent(lblPanDecToBin3)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addComponent(txtAPanDecToBin, javax.swing.GroupLayout.PREFERRED_SIZE, 170, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGap(18, 18, 18)\n .addComponent(lblPanDecToBin4, javax.swing.GroupLayout.PREFERRED_SIZE, 35, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addGroup(panDecToBinLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, panDecToBinLayout.createSequentialGroup()\n .addComponent(lblPanDecToBin2, javax.swing.GroupLayout.PREFERRED_SIZE, 267, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGap(53, 53, 53))\n .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, panDecToBinLayout.createSequentialGroup()\n .addComponent(lblPanDecToBin1)\n .addGap(139, 139, 139))))\n );\n\n panContent.add(panDecToBin, \"panDecToBin\");\n\n panBinAndDecConverter.setBackground(new java.awt.Color(204, 204, 255));\n\n lblTitle.setFont(new java.awt.Font(\"Tahoma\", 1, 24)); // NOI18N\n lblTitle.setForeground(new java.awt.Color(255, 0, 51));\n lblTitle.setText(\"Binary and Decimal Converter\");\n\n lblDec.setFont(new java.awt.Font(\"Tahoma\", 1, 18)); // NOI18N\n lblDec.setText(\"Enter a decimal number\");\n\n lblBin.setFont(new java.awt.Font(\"Tahoma\", 1, 18)); // NOI18N\n lblBin.setText(\"Enter a binary number\");\n\n txtDecToBin.setFont(new java.awt.Font(\"Tahoma\", 0, 18)); // NOI18N\n\n txtBinToDec.setFont(new java.awt.Font(\"Tahoma\", 0, 18)); // NOI18N\n\n btnDecToBin.setFont(new java.awt.Font(\"Tahoma\", 1, 14)); // NOI18N\n btnDecToBin.setText(\"Dec. To Bin.\");\n btnDecToBin.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n btnDecToBinActionPerformed(evt);\n }\n });\n\n btnBinToDec.setFont(new java.awt.Font(\"Tahoma\", 1, 14)); // NOI18N\n btnBinToDec.setText(\"Bin. To Dec.\");\n btnBinToDec.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n btnBinToDecActionPerformed(evt);\n }\n });\n\n lblDecToBin.setFont(new java.awt.Font(\"Tahoma\", 0, 18)); // NOI18N\n lblDecToBin.setText(\"Decimal and Binary\");\n\n lblBinToDec.setFont(new java.awt.Font(\"Tahoma\", 0, 18)); // NOI18N\n lblBinToDec.setText(\"Decimal and Binary\");\n\n javax.swing.GroupLayout panBinAndDecConverterLayout = new javax.swing.GroupLayout(panBinAndDecConverter);\n panBinAndDecConverter.setLayout(panBinAndDecConverterLayout);\n panBinAndDecConverterLayout.setHorizontalGroup(\n panBinAndDecConverterLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(panBinAndDecConverterLayout.createSequentialGroup()\n .addGroup(panBinAndDecConverterLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(panBinAndDecConverterLayout.createSequentialGroup()\n .addGap(224, 224, 224)\n .addComponent(lblTitle, javax.swing.GroupLayout.PREFERRED_SIZE, 399, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGroup(panBinAndDecConverterLayout.createSequentialGroup()\n .addGap(27, 27, 27)\n .addGroup(panBinAndDecConverterLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)\n .addGroup(panBinAndDecConverterLayout.createSequentialGroup()\n .addComponent(lblBin, javax.swing.GroupLayout.PREFERRED_SIZE, 242, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addComponent(txtBinToDec, javax.swing.GroupLayout.PREFERRED_SIZE, 214, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGroup(panBinAndDecConverterLayout.createSequentialGroup()\n .addComponent(lblDec, javax.swing.GroupLayout.PREFERRED_SIZE, 242, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGap(41, 41, 41)\n .addComponent(txtDecToBin, javax.swing.GroupLayout.PREFERRED_SIZE, 214, javax.swing.GroupLayout.PREFERRED_SIZE)))))\n .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))\n .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, panBinAndDecConverterLayout.createSequentialGroup()\n .addGroup(panBinAndDecConverterLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING, false)\n .addGroup(panBinAndDecConverterLayout.createSequentialGroup()\n .addGap(348, 348, 348)\n .addComponent(btnBinToDec)\n .addGap(93, 93, 93)\n .addComponent(lblBinToDec, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))\n .addGroup(panBinAndDecConverterLayout.createSequentialGroup()\n .addGap(365, 365, 365)\n .addComponent(btnDecToBin)\n .addGap(76, 76, 76)\n .addComponent(lblDecToBin, javax.swing.GroupLayout.PREFERRED_SIZE, 290, javax.swing.GroupLayout.PREFERRED_SIZE)))\n .addGap(30, 30, 30))\n );\n panBinAndDecConverterLayout.setVerticalGroup(\n panBinAndDecConverterLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(panBinAndDecConverterLayout.createSequentialGroup()\n .addGap(41, 41, 41)\n .addComponent(lblTitle, javax.swing.GroupLayout.PREFERRED_SIZE, 44, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGap(68, 68, 68)\n .addGroup(panBinAndDecConverterLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(lblDec, javax.swing.GroupLayout.PREFERRED_SIZE, 35, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(txtDecToBin, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, 18, Short.MAX_VALUE)\n .addGroup(panBinAndDecConverterLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(btnDecToBin, javax.swing.GroupLayout.PREFERRED_SIZE, 32, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(lblDecToBin, javax.swing.GroupLayout.PREFERRED_SIZE, 25, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGap(84, 84, 84)\n .addGroup(panBinAndDecConverterLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(lblBin, javax.swing.GroupLayout.PREFERRED_SIZE, 35, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(txtBinToDec, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGap(18, 18, 18)\n .addGroup(panBinAndDecConverterLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(btnBinToDec, javax.swing.GroupLayout.PREFERRED_SIZE, 34, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(lblBinToDec, javax.swing.GroupLayout.PREFERRED_SIZE, 25, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGap(189, 189, 189))\n );\n\n panContent.add(panBinAndDecConverter, \"panBinAndDecConverter\");\n\n panWelcome.setBackground(new java.awt.Color(204, 204, 255));\n\n txtAWelcome.setBackground(new java.awt.Color(204, 204, 255));\n txtAWelcome.setColumns(20);\n txtAWelcome.setFont(new java.awt.Font(\"Arial Rounded MT Bold\", 2, 48)); // NOI18N\n txtAWelcome.setForeground(new java.awt.Color(255, 0, 102));\n txtAWelcome.setRows(5);\n txtAWelcome.setText(\" Welcome to \\n\\nthe Math Classroom\");\n txtAWelcome.setBorder(null);\n\n javax.swing.GroupLayout panWelcomeLayout = new javax.swing.GroupLayout(panWelcome);\n panWelcome.setLayout(panWelcomeLayout);\n panWelcomeLayout.setHorizontalGroup(\n panWelcomeLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(panWelcomeLayout.createSequentialGroup()\n .addGap(188, 188, 188)\n .addComponent(txtAWelcome, javax.swing.GroupLayout.PREFERRED_SIZE, 493, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addContainerGap(193, Short.MAX_VALUE))\n );\n panWelcomeLayout.setVerticalGroup(\n panWelcomeLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(panWelcomeLayout.createSequentialGroup()\n .addGap(218, 218, 218)\n .addComponent(txtAWelcome, javax.swing.GroupLayout.PREFERRED_SIZE, 199, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addContainerGap(181, Short.MAX_VALUE))\n );\n\n panContent.add(panWelcome, \"panWelcome\");\n\n jSplitPane1.setRightComponent(panContent);\n\n javax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane());\n getContentPane().setLayout(layout);\n layout.setHorizontalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(layout.createSequentialGroup()\n .addComponent(jSplitPane1, javax.swing.GroupLayout.PREFERRED_SIZE, 1100, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGap(0, 0, Short.MAX_VALUE))\n );\n layout.setVerticalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(jSplitPane1, javax.swing.GroupLayout.Alignment.TRAILING, javax.swing.GroupLayout.PREFERRED_SIZE, 600, javax.swing.GroupLayout.PREFERRED_SIZE)\n );\n\n pack();\n }",
"@SuppressWarnings(\"unchecked\")\n // <editor-fold defaultstate=\"collapsed\" desc=\"Generated Code\">//GEN-BEGIN:initComponents\n private void initComponents() {\n\n jLabel1 = new javax.swing.JLabel();\n replaceLabel = new javax.swing.JLabel();\n replaceWith = new javax.swing.JTextField();\n findNextButton = new javax.swing.JButton();\n replaceButton = new javax.swing.JButton();\n replaceAllButton = new javax.swing.JButton();\n cancelButton = new javax.swing.JButton();\n jPanel1 = new javax.swing.JPanel();\n matchCase = new javax.swing.JCheckBox();\n up = new javax.swing.JRadioButton();\n down = new javax.swing.JRadioButton();\n findWhat = new javax.swing.JTextField();\n\n setDefaultCloseOperation(javax.swing.WindowConstants.DISPOSE_ON_CLOSE);\n\n jLabel1.setText(\"Find what:\");\n\n replaceLabel.setText(\"Repalce with:\");\n\n findNextButton.setText(\"Find next\");\n findNextButton.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n findNextButtonActionPerformed(evt);\n }\n });\n\n replaceButton.setText(\"Replace\");\n replaceButton.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n replaceButtonActionPerformed(evt);\n }\n });\n\n replaceAllButton.setText(\"Replace All\");\n replaceAllButton.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n replaceAllButtonActionPerformed(evt);\n }\n });\n\n cancelButton.setText(\"Cancel\");\n cancelButton.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n cancelButtonActionPerformed(evt);\n }\n });\n\n matchCase.setText(\"Match Case\");\n\n up.setText(\"up\");\n up.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n upActionPerformed(evt);\n }\n });\n\n down.setSelected(true);\n down.setText(\"down\");\n down.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n downActionPerformed(evt);\n }\n });\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 .addContainerGap()\n .addComponent(matchCase)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, 36, Short.MAX_VALUE)\n .addComponent(up, javax.swing.GroupLayout.PREFERRED_SIZE, 45, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGap(30, 30, 30)\n .addComponent(down, javax.swing.GroupLayout.PREFERRED_SIZE, 73, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addContainerGap())\n );\n jPanel1Layout.setVerticalGroup(\n jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jPanel1Layout.createSequentialGroup()\n .addGap(21, 21, 21)\n .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(matchCase)\n .addComponent(up)\n .addComponent(down))\n .addContainerGap(20, Short.MAX_VALUE))\n );\n\n findWhat.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n findWhatActionPerformed(evt);\n }\n });\n findWhat.addKeyListener(new java.awt.event.KeyAdapter() {\n public void keyReleased(java.awt.event.KeyEvent evt) {\n findWhatKeyReleased(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(layout.createSequentialGroup()\n .addContainerGap()\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)\n .addGroup(layout.createSequentialGroup()\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(jLabel1)\n .addComponent(replaceLabel))\n .addGap(37, 37, 37)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)\n .addComponent(replaceWith)\n .addComponent(findWhat, javax.swing.GroupLayout.DEFAULT_SIZE, 175, Short.MAX_VALUE)))\n .addComponent(jPanel1, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))\n .addGap(18, 18, 18)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)\n .addComponent(replaceAllButton, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addComponent(cancelButton, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addComponent(replaceButton, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addComponent(findNextButton, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))\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 .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(jLabel1)\n .addComponent(findNextButton))\n .addComponent(findWhat, javax.swing.GroupLayout.Alignment.TRAILING, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(layout.createSequentialGroup()\n .addGap(6, 6, 6)\n .addComponent(replaceButton)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(replaceAllButton)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(cancelButton))\n .addGroup(layout.createSequentialGroup()\n .addGap(18, 18, 18)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(replaceLabel)\n .addComponent(replaceWith, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(jPanel1, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)))\n .addContainerGap(22, Short.MAX_VALUE))\n );\n\n pack();\n }",
"public void doChanges3() {\n lm.undo(changeMark, lm.getChangeMark());\n // > UPDATE CURRENT STATE\n contInterior.put(\"Form\", new Rectangle(0, 0, 400, 300));\n compBounds.put(\"jTextField1\", new Rectangle(0, 0, 400, 20));\n baselinePosition.put(\"jTextField1-400-20\", new Integer(14));\n compBounds.put(\"jRadioButton1\", new Rectangle(0, 22, 93, 23));\n baselinePosition.put(\"jRadioButton1-93-23\", new Integer(15));\n compBounds.put(\"jRadioButton2\", new Rectangle(0, 48, 93, 23));\n baselinePosition.put(\"jRadioButton2-93-23\", new Integer(15));\n compBounds.put(\"jScrollPane1\", new Rectangle(0, 73, 35, 130));\n baselinePosition.put(\"jScrollPane1-35-130\", new Integer(0));\n compBounds.put(\"jLabel1\", new Rectangle(39, 73, 34, 14));\n baselinePosition.put(\"jLabel1-34-14\", new Integer(11));\n compBounds.put(\"jLabel2\", new Rectangle(79, 73, 34, 14));\n baselinePosition.put(\"jLabel2-34-14\", new Integer(11));\n compBounds.put(\"jTextField2\", new Rectangle(77, 113, 59, 20));\n baselinePosition.put(\"jTextField2-59-20\", new Integer(14));\n compBounds.put(\"jLabel3\", new Rectangle(39, 93, 34, 14));\n baselinePosition.put(\"jLabel3-34-14\", new Integer(11));\n compBounds.put(\"jLabel4\", new Rectangle(39, 116, 34, 14));\n baselinePosition.put(\"jLabel4-34-14\", new Integer(11));\n ld.updateCurrentState();\n // < UPDATE CURRENT STATE\n lc = new LayoutComponent(\"jLabel5\", false);\n // > START ADDING\n baselinePosition.put(\"jLabel5-34-14\", new Integer(11));\n {\n LayoutComponent[] comps = new LayoutComponent[]{lc};\n Rectangle[] bounds = new Rectangle[]{new Rectangle(0, 0, 34, 14)};\n String defaultContId = null;\n Point hotspot = new Point(13, 7);\n ld.startAdding(comps, bounds, hotspot, defaultContId);\n }\n // < START ADDING\n prefPaddingInParent.put(\"Form-jLabel5-1-0\", new Integer(11)); // parentId-compId-dimension-compAlignment\n prefPaddingInParent.put(\"Form-jLabel5-1-1\", new Integer(11)); // parentId-compId-dimension-compAlignment\n prefPadding.put(\"jTextField1-jLabel5-1-0-0\", new Integer(6)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType\n prefPadding.put(\"jLabel5-jTextField1-1-0-0\", new Integer(6)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType\n prefPadding.put(\"jLabel5-jTextField1-1-0-1\", new Integer(11)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType\n prefPadding.put(\"jLabel5-jTextField1-1-0-2\", new Integer(6)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType\n prefPadding.put(\"jLabel5-jTextField1-1-0-3\", new Integer(18)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType\n prefPadding.put(\"jRadioButton1-jLabel5-1-0-1\", new Integer(7)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType\n prefPadding.put(\"jLabel5-jRadioButton1-1-0-0\", new Integer(2)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType\n prefPadding.put(\"jRadioButton2-jLabel5-1-0-0\", new Integer(2)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType\n prefPadding.put(\"jLabel5-jRadioButton2-1-0-1\", new Integer(7)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType\n prefPadding.put(\"jLabel1-jLabel5-1-0-0\", new Integer(6)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType\n prefPadding.put(\"jLabel2-jLabel5-1-0-0\", new Integer(6)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType\n prefPadding.put(\"jLabel5-jLabel1-1-0-0\", new Integer(6)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType\n prefPadding.put(\"jLabel5-jLabel2-1-0-0\", new Integer(6)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType\n prefPadding.put(\"jLabel3-jLabel5-1-0-0\", new Integer(6)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType\n prefPadding.put(\"jLabel5-jLabel3-1-0-0\", new Integer(6)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType\n prefPadding.put(\"jTextField2-jLabel5-1-0-0\", new Integer(6)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType\n prefPadding.put(\"jTextField2-jLabel5-1-0-1\", new Integer(11)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType\n prefPadding.put(\"jTextField2-jLabel5-1-0-2\", new Integer(6)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType\n prefPadding.put(\"jTextField2-jLabel5-1-0-3\", new Integer(18)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType\n prefPadding.put(\"jLabel4-jLabel5-1-0-0\", new Integer(6)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType\n prefPadding.put(\"jLabel4-jLabel5-1-0-1\", new Integer(11)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType\n prefPadding.put(\"jLabel4-jLabel5-1-0-2\", new Integer(6)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType\n prefPadding.put(\"jLabel4-jLabel5-1-0-3\", new Integer(18)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType\n prefPadding.put(\"jLabel5-jTextField2-1-0-0\", new Integer(6)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType\n prefPadding.put(\"jLabel5-jLabel4-1-0-0\", new Integer(6)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType\n prefPaddingInParent.put(\"Form-jLabel5-0-0\", new Integer(10)); // parentId-compId-dimension-compAlignment\n prefPaddingInParent.put(\"Form-jLabel5-0-1\", new Integer(10)); // parentId-compId-dimension-compAlignment\n prefPadding.put(\"jScrollPane1-jLabel5-0-0-0\", new Integer(4)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType\n prefPadding.put(\"jLabel5-jScrollPane1-0-0-0\", new Integer(4)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType\n prefPadding.put(\"jLabel5-jScrollPane1-0-0-1\", new Integer(10)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType\n prefPadding.put(\"jLabel5-jScrollPane1-0-0-2\", new Integer(10)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType\n prefPadding.put(\"jLabel5-jScrollPane1-0-0-3\", new Integer(18)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType\n prefPadding.put(\"jLabel4-jLabel5-0-0-0\", new Integer(6)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType\n prefPadding.put(\"jLabel5-jLabel4-0-0-0\", new Integer(6)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType\n prefPadding.put(\"jTextField2-jLabel5-0-0-0\", new Integer(4)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType\n prefPadding.put(\"jTextField2-jLabel5-0-0-1\", new Integer(10)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType\n prefPadding.put(\"jTextField2-jLabel5-0-0-2\", new Integer(10)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType\n prefPadding.put(\"jTextField2-jLabel5-0-0-3\", new Integer(18)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType\n prefPadding.put(\"jLabel5-jTextField2-0-0-0\", new Integer(4)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType\n prefPadding.put(\"jLabel3-jLabel5-0-0-2\", new Integer(10)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType\n // > MOVE\n // > MOVE\n // > MOVE\n {\n Point p = new Point(72, 125);\n String containerId = \"Form\";\n boolean autoPositioning = true;\n boolean lockDimension = false;\n Rectangle[] bounds = new Rectangle[]{new Rectangle(59, 116, 34, 14)};\n ld.move(p, containerId, autoPositioning, lockDimension, bounds);\n }\n // < MOVE\n prefPaddingInParent.put(\"Form-jLabel5-1-0\", new Integer(11)); // parentId-compId-dimension-compAlignment\n prefPaddingInParent.put(\"Form-jLabel5-1-1\", new Integer(11)); // parentId-compId-dimension-compAlignment\n prefPadding.put(\"jTextField1-jLabel5-1-0-0\", new Integer(6)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType\n prefPadding.put(\"jLabel5-jTextField1-1-0-0\", new Integer(6)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType\n prefPadding.put(\"jLabel5-jTextField1-1-0-1\", new Integer(11)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType\n prefPadding.put(\"jLabel5-jTextField1-1-0-2\", new Integer(6)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType\n prefPadding.put(\"jLabel5-jTextField1-1-0-3\", new Integer(18)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType\n prefPadding.put(\"jRadioButton1-jLabel5-1-0-1\", new Integer(7)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType\n prefPadding.put(\"jLabel5-jRadioButton1-1-0-0\", new Integer(2)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType\n prefPadding.put(\"jRadioButton2-jLabel5-1-0-0\", new Integer(2)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType\n prefPadding.put(\"jLabel5-jRadioButton2-1-0-1\", new Integer(7)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType\n prefPadding.put(\"jLabel1-jLabel5-1-0-0\", new Integer(6)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType\n prefPadding.put(\"jLabel2-jLabel5-1-0-0\", new Integer(6)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType\n prefPadding.put(\"jLabel5-jLabel1-1-0-0\", new Integer(6)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType\n prefPadding.put(\"jLabel5-jLabel2-1-0-0\", new Integer(6)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType\n prefPadding.put(\"jLabel3-jLabel5-1-0-0\", new Integer(6)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType\n prefPadding.put(\"jLabel5-jLabel3-1-0-0\", new Integer(6)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType\n prefPadding.put(\"jTextField2-jLabel5-1-0-0\", new Integer(6)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType\n prefPadding.put(\"jTextField2-jLabel5-1-0-1\", new Integer(11)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType\n prefPadding.put(\"jTextField2-jLabel5-1-0-2\", new Integer(6)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType\n prefPadding.put(\"jTextField2-jLabel5-1-0-3\", new Integer(18)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType\n prefPadding.put(\"jLabel4-jLabel5-1-0-0\", new Integer(6)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType\n prefPadding.put(\"jLabel4-jLabel5-1-0-1\", new Integer(11)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType\n prefPadding.put(\"jLabel4-jLabel5-1-0-2\", new Integer(6)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType\n prefPadding.put(\"jLabel4-jLabel5-1-0-3\", new Integer(18)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType\n prefPadding.put(\"jLabel5-jTextField2-1-0-0\", new Integer(6)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType\n prefPadding.put(\"jLabel5-jLabel4-1-0-0\", new Integer(6)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType\n prefPaddingInParent.put(\"Form-jLabel5-0-0\", new Integer(10)); // parentId-compId-dimension-compAlignment\n prefPaddingInParent.put(\"Form-jLabel5-0-1\", new Integer(10)); // parentId-compId-dimension-compAlignment\n prefPadding.put(\"jScrollPane1-jLabel5-0-0-0\", new Integer(4)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType\n prefPadding.put(\"jLabel5-jScrollPane1-0-0-0\", new Integer(4)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType\n prefPadding.put(\"jLabel5-jScrollPane1-0-0-1\", new Integer(10)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType\n prefPadding.put(\"jLabel5-jScrollPane1-0-0-2\", new Integer(10)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType\n prefPadding.put(\"jLabel5-jScrollPane1-0-0-3\", new Integer(18)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType\n prefPadding.put(\"jLabel4-jLabel5-0-0-0\", new Integer(6)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType\n prefPadding.put(\"jLabel5-jLabel4-0-0-0\", new Integer(6)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType\n prefPadding.put(\"jTextField2-jLabel5-0-0-0\", new Integer(4)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType\n prefPadding.put(\"jTextField2-jLabel5-0-0-1\", new Integer(10)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType\n prefPadding.put(\"jTextField2-jLabel5-0-0-2\", new Integer(10)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType\n prefPadding.put(\"jTextField2-jLabel5-0-0-3\", new Integer(18)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType\n prefPadding.put(\"jLabel5-jTextField2-0-0-0\", new Integer(4)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType\n prefPadding.put(\"jLabel3-jLabel5-0-0-2\", new Integer(10)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType\n // > MOVE\n // > MOVE\n // > MOVE\n {\n Point p = new Point(73, 125);\n String containerId = \"Form\";\n boolean autoPositioning = true;\n boolean lockDimension = false;\n Rectangle[] bounds = new Rectangle[]{new Rectangle(60, 116, 34, 14)};\n ld.move(p, containerId, autoPositioning, lockDimension, bounds);\n }\n // < MOVE\n // > END MOVING\n compPrefSize.put(\"jLabel5\", new Dimension(34, 14));\n ld.endMoving(true);\n // < END MOVING\n ld.externalSizeChangeHappened();\n // > UPDATE CURRENT STATE\n contInterior.put(\"Form\", new Rectangle(0, 0, 400, 300));\n compBounds.put(\"jTextField1\", new Rectangle(0, 0, 400, 20));\n baselinePosition.put(\"jTextField1-400-20\", new Integer(14));\n compBounds.put(\"jRadioButton1\", new Rectangle(0, 22, 93, 23));\n baselinePosition.put(\"jRadioButton1-93-23\", new Integer(15));\n compBounds.put(\"jRadioButton2\", new Rectangle(0, 48, 93, 23));\n baselinePosition.put(\"jRadioButton2-93-23\", new Integer(15));\n compBounds.put(\"jScrollPane1\", new Rectangle(0, 73, 35, 130));\n baselinePosition.put(\"jScrollPane1-35-130\", new Integer(0));\n compBounds.put(\"jLabel1\", new Rectangle(39, 73, 34, 14));\n baselinePosition.put(\"jLabel1-34-14\", new Integer(11));\n compBounds.put(\"jLabel2\", new Rectangle(79, 73, 34, 14));\n baselinePosition.put(\"jLabel2-34-14\", new Integer(11));\n compBounds.put(\"jTextField2\", new Rectangle(117, 113, 59, 20));\n baselinePosition.put(\"jTextField2-59-20\", new Integer(14));\n compBounds.put(\"jLabel3\", new Rectangle(39, 93, 34, 14));\n baselinePosition.put(\"jLabel3-34-14\", new Integer(11));\n compBounds.put(\"jLabel4\", new Rectangle(39, 116, 34, 14));\n baselinePosition.put(\"jLabel4-34-14\", new Integer(11));\n compBounds.put(\"jLabel5\", new Rectangle(79, 116, 34, 14));\n baselinePosition.put(\"jLabel5-34-14\", new Integer(11));\n prefPaddingInParent.put(\"Form-jRadioButton1-0-1\", new Integer(6)); // parentId-compId-dimension-compAlignment\n prefPaddingInParent.put(\"Form-jRadioButton2-0-1\", new Integer(6)); // parentId-compId-dimension-compAlignment\n prefPaddingInParent.put(\"Form-jLabel3-0-1\", new Integer(10)); // parentId-compId-dimension-compAlignment\n prefPaddingInParent.put(\"Form-jLabel2-0-1\", new Integer(10)); // parentId-compId-dimension-compAlignment\n prefPaddingInParent.put(\"Form-jTextField2-0-1\", new Integer(10)); // parentId-compId-dimension-compAlignment\n compPrefSize.put(\"jTextField1\", new Dimension(59, 20));\n compPrefSize.put(\"jRadioButton1\", new Dimension(93, 23));\n compPrefSize.put(\"jRadioButton2\", new Dimension(93, 23));\n compPrefSize.put(\"jScrollPane1\", new Dimension(35, 130));\n compPrefSize.put(\"jLabel1\", new Dimension(34, 14));\n compPrefSize.put(\"jLabel2\", new Dimension(34, 14));\n compPrefSize.put(\"jTextField2\", new Dimension(59, 20));\n compPrefSize.put(\"jLabel3\", new Dimension(34, 14));\n compPrefSize.put(\"jLabel4\", new Dimension(34, 14));\n compPrefSize.put(\"jLabel5\", new Dimension(34, 14));\n contInterior.put(\"Form\", new Rectangle(0, 0, 400, 300));\n compBounds.put(\"jTextField1\", new Rectangle(0, 0, 400, 20));\n baselinePosition.put(\"jTextField1-400-20\", new Integer(14));\n compBounds.put(\"jRadioButton1\", new Rectangle(0, 22, 93, 23));\n baselinePosition.put(\"jRadioButton1-93-23\", new Integer(15));\n compBounds.put(\"jRadioButton2\", new Rectangle(0, 48, 93, 23));\n baselinePosition.put(\"jRadioButton2-93-23\", new Integer(15));\n compBounds.put(\"jScrollPane1\", new Rectangle(0, 73, 35, 130));\n baselinePosition.put(\"jScrollPane1-35-130\", new Integer(0));\n compBounds.put(\"jLabel1\", new Rectangle(39, 73, 34, 14));\n baselinePosition.put(\"jLabel1-34-14\", new Integer(11));\n compBounds.put(\"jLabel2\", new Rectangle(79, 73, 34, 14));\n baselinePosition.put(\"jLabel2-34-14\", new Integer(11));\n compBounds.put(\"jTextField2\", new Rectangle(117, 113, 59, 20));\n baselinePosition.put(\"jTextField2-59-20\", new Integer(14));\n compBounds.put(\"jLabel3\", new Rectangle(39, 93, 34, 14));\n baselinePosition.put(\"jLabel3-34-14\", new Integer(11));\n compBounds.put(\"jLabel4\", new Rectangle(39, 116, 34, 14));\n baselinePosition.put(\"jLabel4-34-14\", new Integer(11));\n compBounds.put(\"jLabel5\", new Rectangle(79, 116, 34, 14));\n baselinePosition.put(\"jLabel5-34-14\", new Integer(11));\n ld.updateCurrentState();\n // < UPDATE CURRENT STATE\n // > START RESIZING\n baselinePosition.put(\"jTextField2-59-20\", new Integer(14));\n compPrefSize.put(\"jTextField2\", new Dimension(59, 20));\n {\n String[] compIds = new String[]{\"jTextField2\"};\n Rectangle[] bounds = new Rectangle[]{new Rectangle(117, 113, 59, 20)};\n Point hotspot = new Point(175, 125);\n int[] resizeEdges = new int[]{1, -1};\n boolean inLayout = true;\n ld.startResizing(compIds, bounds, hotspot, resizeEdges, inLayout);\n }\n // < START RESIZING\n prefPaddingInParent.put(\"Form-jTextField2-0-1\", new Integer(10)); // parentId-compId-dimension-compAlignment\n // > MOVE\n // > MOVE\n // > MOVE\n {\n Point p = new Point(398, 137);\n String containerId = \"Form\";\n boolean autoPositioning = true;\n boolean lockDimension = false;\n Rectangle[] bounds = new Rectangle[]{new Rectangle(117, 113, 283, 20)};\n ld.move(p, containerId, autoPositioning, lockDimension, bounds);\n }\n // < MOVE\n prefPaddingInParent.put(\"Form-jTextField2-0-1\", new Integer(10)); // parentId-compId-dimension-compAlignment\n // > MOVE\n // > MOVE\n // > MOVE\n {\n Point p = new Point(399, 137);\n String containerId = \"Form\";\n boolean autoPositioning = true;\n boolean lockDimension = false;\n Rectangle[] bounds = new Rectangle[]{new Rectangle(117, 113, 283, 20)};\n ld.move(p, containerId, autoPositioning, lockDimension, bounds);\n }\n // < MOVE\n // > END MOVING\n ld.endMoving(true);\n // < END MOVING\n ld.externalSizeChangeHappened();\n // > UPDATE CURRENT STATE\n contInterior.put(\"Form\", new Rectangle(0, 0, 400, 300));\n compBounds.put(\"jTextField1\", new Rectangle(0, 0, 400, 20));\n baselinePosition.put(\"jTextField1-400-20\", new Integer(14));\n compBounds.put(\"jRadioButton1\", new Rectangle(0, 22, 93, 23));\n baselinePosition.put(\"jRadioButton1-93-23\", new Integer(15));\n compBounds.put(\"jRadioButton2\", new Rectangle(0, 48, 93, 23));\n baselinePosition.put(\"jRadioButton2-93-23\", new Integer(15));\n compBounds.put(\"jScrollPane1\", new Rectangle(0, 73, 35, 130));\n baselinePosition.put(\"jScrollPane1-35-130\", new Integer(0));\n compBounds.put(\"jLabel1\", new Rectangle(39, 73, 34, 14));\n baselinePosition.put(\"jLabel1-34-14\", new Integer(11));\n compBounds.put(\"jLabel2\", new Rectangle(79, 73, 34, 14));\n baselinePosition.put(\"jLabel2-34-14\", new Integer(11));\n compBounds.put(\"jTextField2\", new Rectangle(117, 113, 283, 20));\n baselinePosition.put(\"jTextField2-283-20\", new Integer(14));\n compBounds.put(\"jLabel3\", new Rectangle(39, 93, 34, 14));\n baselinePosition.put(\"jLabel3-34-14\", new Integer(11));\n compBounds.put(\"jLabel4\", new Rectangle(39, 116, 34, 14));\n baselinePosition.put(\"jLabel4-34-14\", new Integer(11));\n compBounds.put(\"jLabel5\", new Rectangle(79, 116, 34, 14));\n baselinePosition.put(\"jLabel5-34-14\", new Integer(11));\n prefPaddingInParent.put(\"Form-jRadioButton1-0-1\", new Integer(6)); // parentId-compId-dimension-compAlignment\n prefPaddingInParent.put(\"Form-jRadioButton2-0-1\", new Integer(6)); // parentId-compId-dimension-compAlignment\n compPrefSize.put(\"jTextField1\", new Dimension(59, 20));\n compPrefSize.put(\"jRadioButton1\", new Dimension(93, 23));\n compPrefSize.put(\"jRadioButton2\", new Dimension(93, 23));\n compPrefSize.put(\"jScrollPane1\", new Dimension(35, 130));\n compPrefSize.put(\"jLabel1\", new Dimension(34, 14));\n compPrefSize.put(\"jLabel2\", new Dimension(34, 14));\n compPrefSize.put(\"jTextField2\", new Dimension(59, 20));\n compPrefSize.put(\"jLabel3\", new Dimension(34, 14));\n compPrefSize.put(\"jLabel4\", new Dimension(34, 14));\n compPrefSize.put(\"jLabel5\", new Dimension(34, 14));\n contInterior.put(\"Form\", new Rectangle(0, 0, 400, 300));\n compBounds.put(\"jTextField1\", new Rectangle(0, 0, 400, 20));\n baselinePosition.put(\"jTextField1-400-20\", new Integer(14));\n compBounds.put(\"jRadioButton1\", new Rectangle(0, 22, 93, 23));\n baselinePosition.put(\"jRadioButton1-93-23\", new Integer(15));\n compBounds.put(\"jRadioButton2\", new Rectangle(0, 48, 93, 23));\n baselinePosition.put(\"jRadioButton2-93-23\", new Integer(15));\n compBounds.put(\"jScrollPane1\", new Rectangle(0, 73, 35, 130));\n baselinePosition.put(\"jScrollPane1-35-130\", new Integer(0));\n compBounds.put(\"jLabel1\", new Rectangle(39, 73, 34, 14));\n baselinePosition.put(\"jLabel1-34-14\", new Integer(11));\n compBounds.put(\"jLabel2\", new Rectangle(79, 73, 34, 14));\n baselinePosition.put(\"jLabel2-34-14\", new Integer(11));\n compBounds.put(\"jTextField2\", new Rectangle(117, 113, 283, 20));\n baselinePosition.put(\"jTextField2-283-20\", new Integer(14));\n compBounds.put(\"jLabel3\", new Rectangle(39, 93, 34, 14));\n baselinePosition.put(\"jLabel3-34-14\", new Integer(11));\n compBounds.put(\"jLabel4\", new Rectangle(39, 116, 34, 14));\n baselinePosition.put(\"jLabel4-34-14\", new Integer(11));\n compBounds.put(\"jLabel5\", new Rectangle(79, 116, 34, 14));\n baselinePosition.put(\"jLabel5-34-14\", new Integer(11));\n ld.updateCurrentState();\n // < UPDATE CURRENT STATE\n }",
"void colorOperation() {\r\n String selStr; // variable to store the selected string\r\n\r\n repaint(); // repaint\r\n selStr = (String)cb2.getSelectedItem();\r\n // store the string of the selected item\r\n if (selStr == strColor[0]) { // if \"Black\" selected\r\n System.out.println(\"Black of menu Color is selected.\");\r\n System.out.println(\"calling method black().\");\r\n ge.black(gra); // call method black() of class PaintTool\r\n System.out.println(\"method black() executed.\");\r\n } else if (selStr == strColor[1]) { // if \"Red\" selected\r\n System.out.println(\"Red of menu Color is selected.\");\r\n System.out.println(\"calling method red().\");\r\n ge.red(gra); // call method red() of class PaintToll\r\n System.out.println(\"method red() executed.\");\r\n } else if (selStr == strColor[2]) { // if \"Green\" selected\r\n System.out.println(\"Green of menu Color is selected.\");\r\n System.out.println(\"calling method green().\");\r\n ge.green(gra); // call method green() of class PaintTool\r\n System.out.println(\"method green() executed.\");\r\n } else if (selStr == strColor[3]) { // if \"Blue\" selected\r\n System.out.println(\"Blue of menu Color is selected.\");\r\n System.out.println(\"calling method blue().\");\r\n ge.blue(gra); // call method blue() of class PaintToll\r\n System.out.println(\"method blue() executed.\");\r\n }\r\n }",
"public static void main(String[] args) {\n\t\tint a=0, b=0, res=0;\n\t\tString sel=null;\n\t\tScanner entrada= new Scanner(System.in);\n System.out.println(\"Selecciona la opcion:\\n \");\n System.out.println(\"+: Suma\"\n \t\t + \"\\n-: Resta\"\n \t\t + \"\\n*: Multiplicacion\"\n \t\t + \"\\n/: Division\");\n sel=entrada.next();\n switch(sel){ //creo suma con el Scanner, luego copio esto mismo para la resta,mult y div\n \t case \"+\":\n \t\t System.out.println(\"Ha seleccionado suma\\n Ingrese los valores\");\n \t\t System.out.println(\"Ingrese el primer numero:\");\n \t\t a=entrada.nextInt();\n \t\t System.out.println(\"Ingrese el segundo numero: \");\n \t\t b=entrada.nextInt();\n \t\t res=a+b;\n \t\t System.out.println(a+\"+\"+b+\"=\"+res);\n \t\t \t\t break;\n \t case \"-\":\n \t\t System.out.println(\"Ha seleccionado resta\\n Ingrese los valores\");\n \t\t System.out.println(\"Ingrese el primer numero:\");\n \t\t a=entrada.nextInt();\n \t\t System.out.println(\"Ingrese el segundo numero: \");\n \t\t b=entrada.nextInt();\n \t\t res=a-b;\n \t\t System.out.println(a+\"-\"+b+\"=\"+res);\n \t\t \t\t break;\n \t case \"*\":\n \t\t System.out.println(\"Ha seleccionado multiplicacion\\n Ingrese los valores\");\n \t\t System.out.println(\"Ingrese el primer numero:\");\n \t\t a=entrada.nextInt();\n \t\t System.out.println(\"Ingrese el segundo numero: \");\n \t\t b=entrada.nextInt();\n \t\t res=a*b;\n \t\t System.out.println(a+\"*\"+b+\"=\"+res);\n \t\t \t\t break;\n \t case \"/\":\n \t\t System.out.println(\"Ha seleccionado division\\n Ingrese los valores\");\n \t\t System.out.println(\"Ingrese el primer numero:\");\n \t\t a=entrada.nextInt();\n \t\t System.out.println(\"Ingrese el segundo numero: \");\n \t\t b=entrada.nextInt();\n \t\t res=a/b;\n \t\t System.out.println(a+\"/\"+b+\"=\"+res);\n \t\t \t\t break;\n \t\t \t\t default:\n \t\t \t\t\t System.out.println(\"Esa opcion no existe\");\n }\n \n\t}",
"public void populateChoiceBoxes() {\n subjects.setItems(FXCollections.observableArrayList(\"Select\", \"computers\", \"not-computers\", \"subjects\"));\n className.setItems(FXCollections.observableArrayList(\"Select\", \"101\", \"202\", \"303\", \"505\"));\n subjects.getSelectionModel().select(0);\n className.getSelectionModel().select(0);\n this.points.setPromptText(Integer.toString(100));\n\n }",
"@Override\n public void actionPerformed(ActionEvent e) {\n JButton b = (JButton)e.getSource();\n String output = \"\";\n //For each type of question, append to output\n try{\n if(b.getText().equals(\"Question 1\")){\n String prodCompany = q1Field.getText();\n ArrayList<MovieInfo> info = movies.question1(prodCompany);\n for(MovieInfo movie:info){\n output += movie.toString();\n }\n }\n else if(b.getText().equals(\"Question 2\")){\n String movieTitle = q2Field.getText();\n ArrayList<PersonInfo> writers = movies.question2(movieTitle);\n for(PersonInfo person:writers)\n output+=person.toString();\n }\n else if(b.getText().equals(\"Question 3\")){\n String role = q3Field.getText(); \n ArrayList<PersonInfo> actors = movies.question3(role);\n for(PersonInfo person:actors)\n output+=person.toString();\n }\n else if(b.getText().equals(\"Question 4\")){\n int year = 0;\n try{\n year = Integer.parseInt(q4Field.getText()); \n }\n catch(NumberFormatException exc){\n outputArea.setText(\"Year must be formatted properly\");\n }\n ArrayList<PersonInfo> actresses = movies.question4(year);\n for(PersonInfo person:actresses)\n output+=person.toString();\n }\n else if(b.getText().equals(\"Question 5\")){\n int awardCount = 0;\n try{\n awardCount = Integer.parseInt(q5Field.getText()); \n }\n catch(NumberFormatException exc){\n outputArea.setText(\"Number must be formatted properly\");\n }\n ArrayList<PersonInfo> directors = movies.question5(awardCount);\n for(PersonInfo person:directors)\n output+=person.toString();\n }\n else if(b.getText().equals(\"Question 6\")){\n PersonInfo country = movies.question6();\n output+=country.toString();\n }\n else if(b.getText().equals(\"Question 7\")){\n String awardType = q7AField.getText();\n String starringActor = q7BField.getText();\n ArrayList<MovieInfo> films = movies.question7(awardType, starringActor);\n for(MovieInfo movie:films)\n output+=movie.toString();\n }\n else if(b.getText().equals(\"Question 8\")){\n ArrayList<MovieInfo> films = movies.question8();\n for(MovieInfo movie:films)\n output+=movie.toString() + \"\\n\";\n }\n else if(b.getText().equals(\"Question 9\")){\n String actress = q9Field.getText();\n PersonInfo act = movies.question9(actress);\n output += act.toString();\n }\n else if(b.getText().equals(\"Question 10\")){\n int year = 0;\n MovieInfo film = null;\n try{//Need year to be formatted properly\n year = Integer.parseInt(q10Field.getText());\n film = movies.question10(year);\n }\n catch(NumberFormatException exc){\n outputArea.setText(\"Year must be formatted properly\");\n }\n output+=film.toString();\n }\n }\n catch(IOException exc){\n //If the web page was not accessed properly\n exc.printStackTrace();\n }\n \n //User input was invalid\n if(output.equals(\"\"))\n output += \"Your input did not return any results\";\n \n outputArea.setText(output);\n }",
"public void result() {\n JLabel header = new JLabel(\"Finish!!\");\n header.setFont(new Font(Font.MONOSPACED, Font.PLAIN, 28));\n gui.getConstraints().gridx = 0;\n gui.getConstraints().gridy = 0;\n gui.getConstraints().insets = new Insets(10,10,50,10);\n gui.getPanel().add(header, gui.getConstraints());\n\n String outcomeText = String.format(\"You answer correctly %d / %d.\",\n totalCorrect, VocabularyQuizList.MAX_NUMBER_QUIZ);\n JTextArea outcome = new JTextArea(outcomeText);\n outcome.setFont(new Font(Font.MONOSPACED, Font.PLAIN, 20));\n outcome.setEditable(false);\n gui.getConstraints().gridy = 1;\n gui.getConstraints().insets = new Insets(10,10,30,10);\n gui.getPanel().add(outcome, gui.getConstraints());\n\n JButton b = new JButton(\"home\");\n gui.getGuiAssist().homeListener(b);\n gui.getConstraints().gridy = 2;\n gui.getConstraints().insets = new Insets(10,200,10,200);\n gui.getPanel().add(b, gui.getConstraints());\n\n b = new JButton(\"start again\");\n startQuestionListener(b);\n gui.getConstraints().gridy = 3;\n gui.getPanel().add(b, gui.getConstraints());\n }",
"public static void benchmarkMenu() {\n List<Position> places = new ArrayList<Position>();\n places.add(new Position(-10.99845000, 49.39349500));\n places.add(new Position(-11.18493167, 49.49496333));\n boolean quit = false;\n do {\n System.out.println(\"==================================================\");\n System.out.println(\"Benchmarks\");\n System.out.println(\"==================================================\");\n System.out.println();\n System.out.println(\"Please Make a selection:\");\n System.out.println(\"[1] Weighted A-Star\");\n System.out.println(\"[2] A-Star with limited OpenList\");\n System.out.println(\"[3] TSP Methodes\");\n System.out.println(\"[4] Genetic TSP Generations\");\n System.out.println(\"[0] exit\");\n\n System.out.print(\"Selection: \");\n int menu = scan.nextInt();\n switch (menu) {\n case 1:\n System.out.print(\"Start W: \");\n double wStart = scan.nextDouble();\n System.out.print(\"End W: \");\n double wEnd = scan.nextDouble();\n System.out.print(\"Steps: \");\n double wStep = scan.nextDouble();\n compareAStarW(places, wStart, wEnd, wStep);\n break;\n case 2:\n System.out.print(\"Start Limit: \");\n int lStart = scan.nextInt();\n System.out.print(\"End Limit: \");\n int lEnd = scan.nextInt();\n System.out.print(\"Steps: \");\n int lStep = scan.nextInt();\n compareAStarLimitedOpen(places, lStart, lEnd, lStep);\n break;\n case 3:\n System.out.print(\"Number of Points: \");\n int points = scan.nextInt();\n compareTSP(points);\n break;\n case 4:\n System.out.print(\"Number of Points: \");\n int gpoints = scan.nextInt();\n System.out.print(\"Start Generations: \");\n int gStart = scan.nextInt();\n System.out.print(\"End Generations: \");\n int gEnd = scan.nextInt();\n System.out.print(\"Steps: \");\n int gStep = scan.nextInt();\n compareGeneticGens(gpoints, gStart, gEnd, gStep);\n break;\n case 0:\n quit = true;\n break;\n default:\n System.out.println(\"Invalid Entry!\");\n }\n }\n while (!quit);\n }",
"@Override\npublic void actionPerformed(ActionEvent ae) {\nObject obj = ae.getSource(); \n\nif(obj == myCalcView.getJbt_one()){ \n myCalcView.getJtf_result().setText(myCalcView.getJtf_result().getText()+\"1\"); \n}else if(obj == myCalcView.getJbt_two()){ \n myCalcView.getJtf_result().setText(myCalcView.getJtf_result().getText()+\"2\"); \n}else if(obj == myCalcView.getJbt_plus()){ \n v1 = myCalcView.getJtf_result().getText(); \n System.out.println(\"v1 : \"+v1); \n op = \"+\"; \n myCalcView.getJtf_result().setText(\"\"); \n}else if(obj == myCalcView.getJbt_equals()){ \n v2 = myCalcView.getJtf_result().getText(); \n System.out.println(\"v1:\"+v1 +\"-> v2 : \"+v2+\" op : \"+op); \n String result = calcurate(v1,v2,op); \n myCalcView.getJtf_result().setText(result); \n}else if(obj == myCalcView.getJbt_clear()){ \n myCalcView.getJtf_result().setText(\"\"); \n} \n}",
"public void easy() {\n\t\tGenerator solve = new Generator();\n\t\tsolve.easy();\n\t\tAnswer = solve.getEquationResult();\n\t\tTextView Equation = (TextView) findViewById(R.id.textView3);\n\t\tEquation.setText(solve.getEquation());\n\t}",
"private void editMenu(){\n String editSelection;\n\n TransformerSuperClass transformer = new SlideLeft();\n\n do {\n printEditMenu();\n\n editSelection = scanner.nextLine();\n editSelection = editSelection.toUpperCase();\n\n\n switch (editSelection) {\n case \"FH\":\n //Flip horizontal\n transformer = new FlipHorizontal();\n footage.transform(transformer);\n break;\n case \"FV\":\n //Flip vertical\n transformer = new FlipVertical();\n footage.transform(transformer);\n break;\n case \"SL\":\n //Slide left\n transformer = new SlideLeft();\n footage.transform(transformer);\n if(numberRight > 0) {\n numberRight -= 1;\n }\n else{\n numberLeft += 1;\n }\n break;\n case \"SR\":\n //Slide right\n transformer = new SlideRight();\n footage.transform(transformer);\n if(numberLeft > 0){\n numberLeft -= 1;\n }\n else{\n numberRight += 1;\n }\n break;\n case \"SU\":\n //Slide up\n transformer = new SlideUp();\n footage.transform(transformer);\n if(numberDown > 0){\n numberDown -= 1;\n }else{\n numberUp += 1;\n }\n break;\n case \"SD\":\n //Slide down\n transformer = new SlideDown();\n footage.transform(transformer);\n if(numberUp > 0){\n numberUp -= 1;\n }else{\n numberDown += 1;\n }\n break;\n case \"R\":\n //Repeat last operation\n footage.transform(transformer);\n //Check what the class of transformer is and see whether or not we need to change the numbers moved variables.\n if(SlideLeft.class.isInstance(transformer)){\n if(numberRight > 0) {\n numberRight -= 1;\n }\n else{\n numberLeft += 1;\n }\n }\n else if(SlideRight.class.isInstance(transformer)){\n if(numberLeft > 0){\n numberLeft -= 1;\n }\n else{\n numberRight += 1;\n }\n }\n else if(SlideUp.class.isInstance(transformer)){\n if(numberDown > 0){\n numberDown -= 1;\n }else{\n numberUp += 1;\n }\n }\n else if(SlideDown.class.isInstance(transformer)){\n if(numberUp > 0){\n numberUp -= 1;\n }else{\n numberDown += 1;\n }\n }\n break;\n }\n }while(!editSelection.equals(\"Q\"));\n\n }",
"public void doChanges2() {\n lm.undo(changeMark, lm.getChangeMark());\n // > UPDATE CURRENT STATE\n contInterior.put(\"Form\", new Rectangle(0, 0, 400, 300));\n compBounds.put(\"jTextField1\", new Rectangle(0, 0, 400, 20));\n baselinePosition.put(\"jTextField1-400-20\", new Integer(14));\n compBounds.put(\"jRadioButton1\", new Rectangle(0, 22, 93, 23));\n baselinePosition.put(\"jRadioButton1-93-23\", new Integer(15));\n compBounds.put(\"jRadioButton2\", new Rectangle(0, 48, 93, 23));\n baselinePosition.put(\"jRadioButton2-93-23\", new Integer(15));\n compBounds.put(\"jScrollPane1\", new Rectangle(0, 73, 35, 130));\n baselinePosition.put(\"jScrollPane1-35-130\", new Integer(0));\n compBounds.put(\"jLabel1\", new Rectangle(41, 73, 34, 14));\n baselinePosition.put(\"jLabel1-34-14\", new Integer(11));\n compBounds.put(\"jLabel2\", new Rectangle(81, 73, 34, 14));\n baselinePosition.put(\"jLabel2-34-14\", new Integer(11));\n compBounds.put(\"jTextField2\", new Rectangle(41, 113, 59, 20));\n baselinePosition.put(\"jTextField2-59-20\", new Integer(14));\n compBounds.put(\"jLabel3\", new Rectangle(41, 93, 34, 14));\n baselinePosition.put(\"jLabel3-34-14\", new Integer(11));\n ld.updateCurrentState();\n // < UPDATE CURRENT STATE\n lc = new LayoutComponent(\"jLabel4\", false);\n // > START ADDING\n baselinePosition.put(\"jLabel4-34-14\", new Integer(11));\n {\n LayoutComponent[] comps = new LayoutComponent[]{lc};\n Rectangle[] bounds = new Rectangle[]{new Rectangle(0, 0, 34, 14)};\n String defaultContId = null;\n Point hotspot = new Point(13, 7);\n ld.startAdding(comps, bounds, hotspot, defaultContId);\n }\n // < START ADDING\n prefPaddingInParent.put(\"Form-jLabel4-1-0\", new Integer(11)); // parentId-compId-dimension-compAlignment\n prefPaddingInParent.put(\"Form-jLabel4-1-1\", new Integer(11)); // parentId-compId-dimension-compAlignment\n prefPadding.put(\"jTextField1-jLabel4-1-0-0\", new Integer(6)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType\n prefPadding.put(\"jLabel4-jTextField1-1-0-0\", new Integer(6)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType\n prefPadding.put(\"jLabel4-jTextField1-1-0-1\", new Integer(11)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType\n prefPadding.put(\"jLabel4-jTextField1-1-0-2\", new Integer(6)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType\n prefPadding.put(\"jLabel4-jTextField1-1-0-3\", new Integer(18)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType\n prefPadding.put(\"jRadioButton1-jLabel4-1-0-1\", new Integer(7)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType\n prefPadding.put(\"jLabel4-jRadioButton1-1-0-0\", new Integer(2)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType\n prefPadding.put(\"jRadioButton2-jLabel4-1-0-0\", new Integer(2)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType\n prefPadding.put(\"jLabel4-jRadioButton2-1-0-1\", new Integer(7)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType\n prefPadding.put(\"jLabel1-jLabel4-1-0-0\", new Integer(6)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType\n prefPadding.put(\"jLabel2-jLabel4-1-0-0\", new Integer(6)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType\n prefPadding.put(\"jLabel4-jLabel1-1-0-0\", new Integer(6)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType\n prefPadding.put(\"jLabel4-jLabel2-1-0-0\", new Integer(6)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType\n prefPadding.put(\"jLabel3-jLabel4-1-0-0\", new Integer(6)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType\n prefPadding.put(\"jLabel4-jLabel3-1-0-0\", new Integer(6)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType\n prefPadding.put(\"jTextField2-jLabel4-1-0-0\", new Integer(6)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType\n prefPadding.put(\"jTextField2-jLabel4-1-0-1\", new Integer(11)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType\n prefPadding.put(\"jTextField2-jLabel4-1-0-2\", new Integer(6)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType\n prefPadding.put(\"jTextField2-jLabel4-1-0-3\", new Integer(18)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType\n prefPadding.put(\"jLabel4-jTextField2-1-0-0\", new Integer(6)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType\n prefPaddingInParent.put(\"Form-jLabel4-0-0\", new Integer(10)); // parentId-compId-dimension-compAlignment\n prefPaddingInParent.put(\"Form-jLabel4-0-1\", new Integer(10)); // parentId-compId-dimension-compAlignment\n prefPadding.put(\"jScrollPane1-jLabel4-0-0-0\", new Integer(4)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType\n prefPadding.put(\"jLabel4-jScrollPane1-0-0-0\", new Integer(4)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType\n prefPadding.put(\"jLabel4-jScrollPane1-0-0-1\", new Integer(10)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType\n prefPadding.put(\"jLabel4-jScrollPane1-0-0-2\", new Integer(10)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType\n prefPadding.put(\"jLabel4-jScrollPane1-0-0-3\", new Integer(18)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType\n prefPadding.put(\"jTextField2-jLabel4-0-0-0\", new Integer(4)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType\n prefPadding.put(\"jTextField2-jLabel4-0-0-1\", new Integer(10)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType\n prefPadding.put(\"jTextField2-jLabel4-0-0-2\", new Integer(10)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType\n prefPadding.put(\"jTextField2-jLabel4-0-0-3\", new Integer(18)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType\n prefPadding.put(\"jLabel4-jTextField2-0-0-0\", new Integer(4)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType\n prefPadding.put(\"jLabel3-jLabel4-0-0-2\", new Integer(10)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType\n // > MOVE\n // > MOVE\n // > MOVE\n {\n Point p = new Point(59, 120);\n String containerId = \"Form\";\n boolean autoPositioning = true;\n boolean lockDimension = false;\n Rectangle[] bounds = new Rectangle[]{new Rectangle(39, 116, 34, 14)};\n ld.move(p, containerId, autoPositioning, lockDimension, bounds);\n }\n // < MOVE\n prefPaddingInParent.put(\"Form-jLabel4-1-0\", new Integer(11)); // parentId-compId-dimension-compAlignment\n prefPaddingInParent.put(\"Form-jLabel4-1-1\", new Integer(11)); // parentId-compId-dimension-compAlignment\n prefPadding.put(\"jTextField1-jLabel4-1-0-0\", new Integer(6)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType\n prefPadding.put(\"jLabel4-jTextField1-1-0-0\", new Integer(6)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType\n prefPadding.put(\"jLabel4-jTextField1-1-0-1\", new Integer(11)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType\n prefPadding.put(\"jLabel4-jTextField1-1-0-2\", new Integer(6)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType\n prefPadding.put(\"jLabel4-jTextField1-1-0-3\", new Integer(18)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType\n prefPadding.put(\"jRadioButton1-jLabel4-1-0-1\", new Integer(7)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType\n prefPadding.put(\"jLabel4-jRadioButton1-1-0-0\", new Integer(2)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType\n prefPadding.put(\"jRadioButton2-jLabel4-1-0-0\", new Integer(2)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType\n prefPadding.put(\"jLabel4-jRadioButton2-1-0-1\", new Integer(7)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType\n prefPadding.put(\"jLabel1-jLabel4-1-0-0\", new Integer(6)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType\n prefPadding.put(\"jLabel2-jLabel4-1-0-0\", new Integer(6)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType\n prefPadding.put(\"jLabel4-jLabel1-1-0-0\", new Integer(6)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType\n prefPadding.put(\"jLabel4-jLabel2-1-0-0\", new Integer(6)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType\n prefPadding.put(\"jLabel3-jLabel4-1-0-0\", new Integer(6)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType\n prefPadding.put(\"jLabel4-jLabel3-1-0-0\", new Integer(6)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType\n prefPadding.put(\"jTextField2-jLabel4-1-0-0\", new Integer(6)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType\n prefPadding.put(\"jTextField2-jLabel4-1-0-1\", new Integer(11)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType\n prefPadding.put(\"jTextField2-jLabel4-1-0-2\", new Integer(6)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType\n prefPadding.put(\"jTextField2-jLabel4-1-0-3\", new Integer(18)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType\n prefPadding.put(\"jLabel4-jTextField2-1-0-0\", new Integer(6)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType\n prefPaddingInParent.put(\"Form-jLabel4-0-0\", new Integer(10)); // parentId-compId-dimension-compAlignment\n prefPaddingInParent.put(\"Form-jLabel4-0-1\", new Integer(10)); // parentId-compId-dimension-compAlignment\n prefPadding.put(\"jScrollPane1-jLabel4-0-0-0\", new Integer(4)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType\n prefPadding.put(\"jLabel4-jScrollPane1-0-0-0\", new Integer(4)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType\n prefPadding.put(\"jLabel4-jScrollPane1-0-0-1\", new Integer(10)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType\n prefPadding.put(\"jLabel4-jScrollPane1-0-0-2\", new Integer(10)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType\n prefPadding.put(\"jLabel4-jScrollPane1-0-0-3\", new Integer(18)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType\n prefPadding.put(\"jTextField2-jLabel4-0-0-0\", new Integer(4)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType\n prefPadding.put(\"jTextField2-jLabel4-0-0-1\", new Integer(10)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType\n prefPadding.put(\"jTextField2-jLabel4-0-0-2\", new Integer(10)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType\n prefPadding.put(\"jTextField2-jLabel4-0-0-3\", new Integer(18)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType\n prefPadding.put(\"jLabel4-jTextField2-0-0-0\", new Integer(4)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType\n prefPadding.put(\"jLabel3-jLabel4-0-0-2\", new Integer(10)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType\n // > MOVE\n // > MOVE\n // > MOVE\n {\n Point p = new Point(60, 120);\n String containerId = \"Form\";\n boolean autoPositioning = true;\n boolean lockDimension = false;\n Rectangle[] bounds = new Rectangle[]{new Rectangle(41, 116, 34, 14)};\n ld.move(p, containerId, autoPositioning, lockDimension, bounds);\n }\n // < MOVE\n // > END MOVING\n compPrefSize.put(\"jLabel4\", new Dimension(34, 14));\n ld.endMoving(true);\n // < END MOVING\n ld.externalSizeChangeHappened();\n // > UPDATE CURRENT STATE\n contInterior.put(\"Form\", new Rectangle(0, 0, 400, 300));\n compBounds.put(\"jTextField1\", new Rectangle(0, 0, 400, 20));\n baselinePosition.put(\"jTextField1-400-20\", new Integer(14));\n compBounds.put(\"jRadioButton1\", new Rectangle(0, 22, 93, 23));\n baselinePosition.put(\"jRadioButton1-93-23\", new Integer(15));\n compBounds.put(\"jRadioButton2\", new Rectangle(0, 48, 93, 23));\n baselinePosition.put(\"jRadioButton2-93-23\", new Integer(15));\n compBounds.put(\"jScrollPane1\", new Rectangle(0, 73, 35, 130));\n baselinePosition.put(\"jScrollPane1-35-130\", new Integer(0));\n compBounds.put(\"jLabel1\", new Rectangle(39, 73, 34, 14));\n baselinePosition.put(\"jLabel1-34-14\", new Integer(11));\n compBounds.put(\"jLabel2\", new Rectangle(79, 73, 34, 14));\n baselinePosition.put(\"jLabel2-34-14\", new Integer(11));\n compBounds.put(\"jTextField2\", new Rectangle(77, 113, 59, 20));\n baselinePosition.put(\"jTextField2-59-20\", new Integer(14));\n compBounds.put(\"jLabel3\", new Rectangle(39, 93, 34, 14));\n baselinePosition.put(\"jLabel3-34-14\", new Integer(11));\n compBounds.put(\"jLabel4\", new Rectangle(39, 116, 34, 14));\n baselinePosition.put(\"jLabel4-34-14\", new Integer(11));\n prefPaddingInParent.put(\"Form-jRadioButton1-0-1\", new Integer(6)); // parentId-compId-dimension-compAlignment\n prefPaddingInParent.put(\"Form-jRadioButton2-0-1\", new Integer(6)); // parentId-compId-dimension-compAlignment\n prefPaddingInParent.put(\"Form-jLabel3-0-1\", new Integer(10)); // parentId-compId-dimension-compAlignment\n prefPaddingInParent.put(\"Form-jLabel2-0-1\", new Integer(10)); // parentId-compId-dimension-compAlignment\n prefPaddingInParent.put(\"Form-jTextField2-0-1\", new Integer(10)); // parentId-compId-dimension-compAlignment\n compPrefSize.put(\"jTextField1\", new Dimension(59, 20));\n compPrefSize.put(\"jRadioButton1\", new Dimension(93, 23));\n compPrefSize.put(\"jRadioButton2\", new Dimension(93, 23));\n compPrefSize.put(\"jScrollPane1\", new Dimension(35, 130));\n compPrefSize.put(\"jLabel1\", new Dimension(34, 14));\n compPrefSize.put(\"jLabel2\", new Dimension(34, 14));\n compPrefSize.put(\"jTextField2\", new Dimension(59, 20));\n compPrefSize.put(\"jLabel3\", new Dimension(34, 14));\n compPrefSize.put(\"jLabel4\", new Dimension(34, 14));\n contInterior.put(\"Form\", new Rectangle(0, 0, 400, 300));\n compBounds.put(\"jTextField1\", new Rectangle(0, 0, 400, 20));\n baselinePosition.put(\"jTextField1-400-20\", new Integer(14));\n compBounds.put(\"jRadioButton1\", new Rectangle(0, 22, 93, 23));\n baselinePosition.put(\"jRadioButton1-93-23\", new Integer(15));\n compBounds.put(\"jRadioButton2\", new Rectangle(0, 48, 93, 23));\n baselinePosition.put(\"jRadioButton2-93-23\", new Integer(15));\n compBounds.put(\"jScrollPane1\", new Rectangle(0, 73, 35, 130));\n baselinePosition.put(\"jScrollPane1-35-130\", new Integer(0));\n compBounds.put(\"jLabel1\", new Rectangle(39, 73, 34, 14));\n baselinePosition.put(\"jLabel1-34-14\", new Integer(11));\n compBounds.put(\"jLabel2\", new Rectangle(79, 73, 34, 14));\n baselinePosition.put(\"jLabel2-34-14\", new Integer(11));\n compBounds.put(\"jTextField2\", new Rectangle(77, 113, 59, 20));\n baselinePosition.put(\"jTextField2-59-20\", new Integer(14));\n compBounds.put(\"jLabel3\", new Rectangle(39, 93, 34, 14));\n baselinePosition.put(\"jLabel3-34-14\", new Integer(11));\n compBounds.put(\"jLabel4\", new Rectangle(39, 116, 34, 14));\n baselinePosition.put(\"jLabel4-34-14\", new Integer(11));\n ld.updateCurrentState();\n // < UPDATE CURRENT STATE\n changeMark = lm.getChangeMark();\n // > START RESIZING\n baselinePosition.put(\"jTextField2-59-20\", new Integer(14));\n compPrefSize.put(\"jTextField2\", new Dimension(59, 20));\n {\n String[] compIds = new String[]{\"jTextField2\"};\n Rectangle[] bounds = new Rectangle[]{new Rectangle(77, 113, 59, 20)};\n Point hotspot = new Point(135, 120);\n int[] resizeEdges = new int[]{1, -1};\n boolean inLayout = true;\n ld.startResizing(compIds, bounds, hotspot, resizeEdges, inLayout);\n }\n // < START RESIZING\n prefPaddingInParent.put(\"Form-jTextField2-0-1\", new Integer(10)); // parentId-compId-dimension-compAlignment\n // > MOVE\n // > MOVE\n // > MOVE\n {\n Point p = new Point(397, 141);\n String containerId = \"Form\";\n boolean autoPositioning = true;\n boolean lockDimension = false;\n Rectangle[] bounds = new Rectangle[]{new Rectangle(77, 113, 323, 20)};\n ld.move(p, containerId, autoPositioning, lockDimension, bounds);\n }\n // < MOVE\n prefPaddingInParent.put(\"Form-jTextField2-0-1\", new Integer(10)); // parentId-compId-dimension-compAlignment\n // > MOVE\n // > MOVE\n // > MOVE\n {\n Point p = new Point(398, 141);\n String containerId = \"Form\";\n boolean autoPositioning = true;\n boolean lockDimension = false;\n Rectangle[] bounds = new Rectangle[]{new Rectangle(77, 113, 323, 20)};\n ld.move(p, containerId, autoPositioning, lockDimension, bounds);\n }\n // < MOVE\n // > END MOVING\n ld.endMoving(true);\n // < END MOVING\n ld.externalSizeChangeHappened();\n // > UPDATE CURRENT STATE\n contInterior.put(\"Form\", new Rectangle(0, 0, 400, 300));\n compBounds.put(\"jTextField1\", new Rectangle(0, 0, 400, 20));\n baselinePosition.put(\"jTextField1-400-20\", new Integer(14));\n compBounds.put(\"jRadioButton1\", new Rectangle(0, 22, 93, 23));\n baselinePosition.put(\"jRadioButton1-93-23\", new Integer(15));\n compBounds.put(\"jRadioButton2\", new Rectangle(0, 48, 93, 23));\n baselinePosition.put(\"jRadioButton2-93-23\", new Integer(15));\n compBounds.put(\"jScrollPane1\", new Rectangle(0, 73, 35, 130));\n baselinePosition.put(\"jScrollPane1-35-130\", new Integer(0));\n compBounds.put(\"jLabel1\", new Rectangle(39, 73, 34, 14));\n baselinePosition.put(\"jLabel1-34-14\", new Integer(11));\n compBounds.put(\"jLabel2\", new Rectangle(79, 73, 34, 14));\n baselinePosition.put(\"jLabel2-34-14\", new Integer(11));\n compBounds.put(\"jTextField2\", new Rectangle(77, 113, 323, 20));\n baselinePosition.put(\"jTextField2-323-20\", new Integer(14));\n compBounds.put(\"jLabel3\", new Rectangle(39, 93, 34, 14));\n baselinePosition.put(\"jLabel3-34-14\", new Integer(11));\n compBounds.put(\"jLabel4\", new Rectangle(39, 116, 34, 14));\n baselinePosition.put(\"jLabel4-34-14\", new Integer(11));\n prefPaddingInParent.put(\"Form-jRadioButton1-0-1\", new Integer(6)); // parentId-compId-dimension-compAlignment\n prefPaddingInParent.put(\"Form-jRadioButton2-0-1\", new Integer(6)); // parentId-compId-dimension-compAlignment\n compPrefSize.put(\"jTextField1\", new Dimension(59, 20));\n compPrefSize.put(\"jRadioButton1\", new Dimension(93, 23));\n compPrefSize.put(\"jRadioButton2\", new Dimension(93, 23));\n compPrefSize.put(\"jScrollPane1\", new Dimension(35, 130));\n compPrefSize.put(\"jLabel1\", new Dimension(34, 14));\n compPrefSize.put(\"jLabel2\", new Dimension(34, 14));\n compPrefSize.put(\"jTextField2\", new Dimension(59, 20));\n compPrefSize.put(\"jLabel3\", new Dimension(34, 14));\n compPrefSize.put(\"jLabel4\", new Dimension(34, 14));\n contInterior.put(\"Form\", new Rectangle(0, 0, 400, 300));\n compBounds.put(\"jTextField1\", new Rectangle(0, 0, 400, 20));\n baselinePosition.put(\"jTextField1-400-20\", new Integer(14));\n compBounds.put(\"jRadioButton1\", new Rectangle(0, 22, 93, 23));\n baselinePosition.put(\"jRadioButton1-93-23\", new Integer(15));\n compBounds.put(\"jRadioButton2\", new Rectangle(0, 48, 93, 23));\n baselinePosition.put(\"jRadioButton2-93-23\", new Integer(15));\n compBounds.put(\"jScrollPane1\", new Rectangle(0, 73, 35, 130));\n baselinePosition.put(\"jScrollPane1-35-130\", new Integer(0));\n compBounds.put(\"jLabel1\", new Rectangle(39, 73, 34, 14));\n baselinePosition.put(\"jLabel1-34-14\", new Integer(11));\n compBounds.put(\"jLabel2\", new Rectangle(79, 73, 34, 14));\n baselinePosition.put(\"jLabel2-34-14\", new Integer(11));\n compBounds.put(\"jTextField2\", new Rectangle(77, 113, 323, 20));\n baselinePosition.put(\"jTextField2-323-20\", new Integer(14));\n compBounds.put(\"jLabel3\", new Rectangle(39, 93, 34, 14));\n baselinePosition.put(\"jLabel3-34-14\", new Integer(11));\n compBounds.put(\"jLabel4\", new Rectangle(39, 116, 34, 14));\n baselinePosition.put(\"jLabel4-34-14\", new Integer(11));\n ld.updateCurrentState();\n // < UPDATE CURRENT STATE\n }",
"@Override\n\tpublic void selectAlgorithm(String algorithmName) {\n\t\tproblem.setAlgorithm(algorithmName);\n\t}",
"public void operation() {\n\t\t\n\t\tswitch(calculation){\n\t\t\tcase 1:\n\t\t\t\ttotal = num + Double.parseDouble(textField.getText());\n\t\t\t\ttextField.setText(Double.toString(total));\n\t\t\t\tbreak;\n\t\t\t\t\n\t\t\tcase 2:\n\t\t\t\ttotal = num - Double.parseDouble(textField.getText());\n\t\t\t\ttextField.setText(Double.toString(total));\n\t\t\t\tbreak;\n\t\t\t\t\n\t\t\tcase 3:\n\t\t\t\ttotal = num * Double.parseDouble(textField.getText());\n\t\t\t\ttextField.setText(Double.toString(total));\n\t\t\t\tbreak;\n\t\t\t\t\n\t\t\tcase 4:\n\t\t\t\ttotal = num / (Double.parseDouble(textField.getText()));\n\t\t\t\ttextField.setText(Double.toString(total));\n\t\t\t\tbreak;\n\t\t\t\t\n\t\t}\n\t}"
] |
[
"0.6634228",
"0.6030388",
"0.600044",
"0.5882935",
"0.58711886",
"0.58619624",
"0.5860654",
"0.57530135",
"0.56927526",
"0.5680776",
"0.56489694",
"0.56414163",
"0.5637436",
"0.5593951",
"0.5587365",
"0.55579513",
"0.553241",
"0.5525768",
"0.5518436",
"0.5466439",
"0.5465175",
"0.5457064",
"0.54458225",
"0.54417235",
"0.54401547",
"0.5439374",
"0.54356927",
"0.5431992",
"0.54278743",
"0.5421076",
"0.5419087",
"0.54169565",
"0.5388648",
"0.53793645",
"0.537219",
"0.5368674",
"0.5368056",
"0.5364694",
"0.5349061",
"0.53377736",
"0.53346926",
"0.53330374",
"0.53292286",
"0.53255194",
"0.53105605",
"0.53062874",
"0.5301023",
"0.5300355",
"0.5295881",
"0.52851427",
"0.5263899",
"0.5261047",
"0.52556413",
"0.5250835",
"0.5250564",
"0.5249063",
"0.52454877",
"0.5240924",
"0.5234891",
"0.52315795",
"0.52279145",
"0.52209467",
"0.5218028",
"0.52099866",
"0.5206035",
"0.52041996",
"0.5203651",
"0.51874125",
"0.5177344",
"0.5167978",
"0.51624227",
"0.51567346",
"0.5153156",
"0.5148956",
"0.5148112",
"0.51414156",
"0.5141003",
"0.51338756",
"0.51337",
"0.51334566",
"0.51323426",
"0.51309043",
"0.51306754",
"0.51258296",
"0.51225805",
"0.5121244",
"0.5118753",
"0.5115995",
"0.51145214",
"0.51076114",
"0.5105403",
"0.50979424",
"0.50966096",
"0.5096107",
"0.50939125",
"0.50821686",
"0.50815177",
"0.5077995",
"0.50778526",
"0.5074108",
"0.50737333"
] |
0.0
|
-1
|
TODO Autogenerated method stub
|
public static void main(String[] args) {
Scanner ob=new Scanner(System.in);
int n=ob.nextInt();
int a[]=new int[n];
for(int i=0;i<n;i++)
{
a[i]=ob.nextInt();
}
selectionRecursive(a,0);
for(int i=0;i<n;i++)
{
System.out.println(a[i]);
}
}
|
{
"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
|
User: Ruben Dilanyan Company: SFL LLC Date: 4/28/15 Time: 11:28 AM
|
public interface PaymentProviderNotificationProcessor {
/**
* Create payment provider notification for request
*
* @param notificationRequest
* @return paymentProviderNotifications
*/
@Nonnull
List<PaymentProviderNotification> createPaymentProviderNotificationForRequest(@Nonnull final PaymentProviderNotificationRequest notificationRequest);
/**
* Process payment provider notification
*
* @param notification
*/
void processPaymentProviderNotification(@Nonnull final PaymentProviderNotification notification);
}
|
{
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
}
|
[
"public String parseUser(String userLine) {\n final int START_OF_USER_NAME = 6;\n \t\tString userName = userLine.substring(\n START_OF_USER_NAME, userLine.indexOf(\"Date: \") - 1).trim();\n \n \t\treturn userName;\n \t}",
"public void printUserInfo(){\n System.out.print(\"Username: \"+ getName() + \"\\n\" + \"Birthday: \"+getBirthday()+ \"\\n\"+ \"Hometown: \"+getHome()+ \"\\n\"+ \"About: \" +getAbout()+ \" \\n\"+ \"Subscribers: \" + getSubscriptions());\n\t}",
"public String getUserDateString() {\n\t\tString[] tmpArr = this.getUserDate();\n\t\tString year = tmpArr[0];\n\t\tString month = tmpArr[1];\n\t\tString day = tmpArr[2];\n\t\tString out = year + \"/\" + month + \"/\" + day;\n\t\treturn out;\n\t}",
"private static String authorLine()\n {\n return String.format(STR_FORMAT_1 + STR_FORMAT_2, NAME_STR, NAME);\n }",
"void appendUserInformation(String line);",
"private void getUserInfo() {\n\t}",
"@Override\n\tpublic String toString() {\n\t\treturn \"[\" + this.getTimestamp() + \"] \" + this.getOwnerName() + \" -> \" + this.getText();\n\t}",
"@Override\n public String toString() {\n return this.getTimestamp().atZone(ZoneId.of(\"Europe/Vienna\")).format(DateTimeFormatter.ofPattern(\"dd.MM.yyyy HH:mm\"))\n + \" \" + this.getFirstName()\n + \" \" + this.getLastName().substring(0,1) + \".\"\n //+ \", \" + this.getTelephoneNo()\n //+ \" (\" + this.getEmail() + \")\"\n ;\n }",
"@Override\n public String toString() {\n String output = \"User Info for: \" + getId();\n output += \"\\n\\tName: \" + getFirstName() + \" \" + getLastName();\n output += \"\\n\\tCreated on: \" + DF.format(getEnrolDate());\n output += \"\\n\\tLast access: \" + DF.format(getLastAccess());\n \n return output;\n }",
"java.lang.String getUser();",
"@Override\n public String toString() {\n return getUserName() + \" on \" + getDate() + \"\\n\" + message + \"\\nType: \" + getType();\n }",
"Long getUserCreated();",
"@Override\n public String toString() {\n SimpleDateFormat formatter = new SimpleDateFormat(\"yyyy-MM-dd'@'HH:mm:ss\");\n String userInformation = new String();\n Date date = new Date();\n userInformation = \"[\" + username + \" - \" +\n socket.getInetAddress().getHostAddress() +\n \":\" + socket.getPort() + \" - \" + formatter.format(date)\n + \"]: \";\n return userInformation;\n }",
"public java.lang.String getUserCreated() {\n\t\treturn _tempNoTiceShipMessage.getUserCreated();\n\t}",
"void getCompanyInfoFromText() {\r\n\r\n String first = texts.get(0).getText();\r\n String cID = first;\r\n String second = texts.get(1).getText();\r\n String cNAME = second;\r\n String third = texts.get(2).getText();\r\n String password = third;\r\n String forth = texts.get(3).getText();\r\n String GUR = forth;\r\n double d = Double.parseDouble(GUR);\r\n String fifth = texts.get(4).getText();\r\n String EUR = fifth;\r\n double dd = Double.parseDouble(EUR);\r\n String sixth = texts.get(5).getText();\r\n String TSB = sixth ;\r\n String TT = \"2018-04-/08:04:26\";\r\n StringBuffer sb = new StringBuffer();\r\n sb.append(TT).insert(8,TSB);\r\n String ts = sb.toString();\r\n\r\n companyInfo.add(new CompanyInfo(cID,cNAME,password,d,dd,ts));\r\n\r\n new CompanyInfo().WriteFiles_append(companyInfo);\r\n }",
"public String getEventInfo()\n {\n return \"Event ID: \" + this.hashCode() + \" | Recorded User\\n\" + String.format(\"\\tName %s \\n\\tDate of Birth %s \\n\\tEmail %s \\n\\tContact Number %s \\n\\tAge %d \\nDate %s \\nTime %s \\nParty Size %d \\nEstablishment \\n\\tName: %s \\n\\tAddress: %s\",\n user.getName(), user.getDateOfBirthAsString(), user.getEmail(), user.getPhoneNumber(), \n user.getAge(), getEventDateAsString(), getEventTimeAsString(), partyNumber, establishment.getName(), establishment.getAddress());\n }",
"public String WhoAmI() { \r\n String result; \r\n result = new String(\" Title : \" + title + \" (Ref : \" + reference + \", Price : \" + price + \");\\n\"); \r\n return result; \r\n }",
"@Override \n public String toString() \n { \n return \"user\" + \n \"\\n\\t RecordNo: \" + this.recordNo + \n \"\\n\\t EmployeeName: \" + this.name + \n \"\\n\\t Age: \" + this.age + \n \"\\n\\t Sex: \" + this.sex + \n \"\\n\\t Date of Birth: \" + this.dob + \n \"\\n\\t Remark: \" + this.remark; \n }",
"public void addAccountInfo(StringBuilder sb) {\n sb.append(\"\\n\\nUser:\");\n sb.append(getUser());\n sb.append('\\n');\n sb.append(\"Phone:\");\n sb.append(getPhoneNumber());\n int overpaidDays = DonationManager.instance().getOverpaidDays();\n if (overpaidDays > 0) {\n sb.append(\"\\nOverpaid:\");\n sb.append(overpaidDays);\n }\n }",
"@Override\r\n public String toString() {\r\n return timeStamp + username + \": \" + message;\r\n }",
"public String getFriendlyUsername(Context ctx) {\n User user = DBHandler.getInstance(ctx).getUser(getPartnerId());\n String name = getState().toString();\n if (user == null || getState() != State.Open) {\n if (getState() != State.Open) {\n if(getState() == State.Close) {\n name = name + \" - \" + AndroidUtils.getFormattedTime(getTime());\n } else {\n name = ctx.getString(R.string.todays_match);\n }\n }\n } else {\n name = user.getFullName();\n }\n return name;\n }",
"UserInfo getUserInfo();",
"java.lang.String getXUsersInfo();",
"@Override\n\tpublic java.lang.String getCreatedBy() {\n\t\treturn _locMstLocation.getCreatedBy();\n\t}",
"private void getDateForAnalysisReport() {\n \tArrayList<Object> answer = new ArrayList<>();\n\t\tanswer.add(\"performingAnActivityTracking\");\n\t\tanswer.add(\"/getActivityData\");\n\t\tString star = reportStartDate.getValue().toString();\n\t\tString end = reportEndDate.getValue().toString();\n\t\tanswer.add(star);\n\t\tanswer.add(end);\n\t\t\n\t\tchs.client.handleMessageFromClientUI(answer);\n\t}",
"String getUser();",
"String getUser();",
"void getContributeToday(String phone);",
"public static String toStringCurrentUser() {\n return new StringBuilder()\n .append(CURRENT_USER.getName())\n .append(\" - \")\n .append(CURRENT_USER.getEmployee().getName())\n .toString();\n }",
"public String getUserReport(String username)\r\n\t{\r\n\t\tArrayBasedList<LogEntry> subList = new ArrayBasedList<LogEntry>();\r\n\t\tfor (int i = 0; i < list.size(); i++) {\r\n\t \tLogEntry log = list.get(i);\r\n\t \tif (log.getName().equals(username)) {\r\n\t \t\tsubList.add(log);\r\n\t \t}\r\n\t }\r\n\t\tStringBuilder sb = new StringBuilder();\r\n\t sb.append(\"Activity Report for \");\r\n\t sb.append(username);\r\n\t if (subList.size() == 0) {\t\r\n\t\t sb.append(\"[\\n\");\r\n\t \tsb.append(\" No activity was recorded.\\n]\");\r\n\t\t return sb.toString();\r\n\t }\r\n\t SimpleDateFormat dateFormat = new SimpleDateFormat(\"MM/dd/yyyy hh:mm:ssaa\", Locale.US);\r\n\t subList.sort();\r\n\t sb.append(\"[\\r\\n\");\r\n\t for (int i = 0; i < subList.size(); i++) {\r\n\t \tsb.append(\" \");\r\n\t \tsb.append(dateFormat.format(subList.get(i).getTime()));\r\n\t \tsb.append(\" - \");\r\n\t \tsb.append(subList.get(i).getActivity());\r\n\t \tsb.append(\"\\r\\n\");\r\n\t }\r\n\t sb.append(\"]\");\r\n\t return sb.toString();\r\n\t}",
"@Override\n\tpublic java.lang.String getNote() {\n\t\treturn _esfShooterAffiliationChrono.getNote();\n\t}",
"String extractUserNameFromData(String userInfoDataFromServer);",
"@AutoEscape\n\tpublic String getUser_name();",
"public String[] getUserDate() {\n\t\treturn this.userDate;\n\t}",
"public String getAuthor()\r\n {\r\n return(\"Judy O'Brien\");\r\n }",
"public String getUsername()\r\n/* 11: */ {\r\n/* 12:30 */ return this.username;\r\n/* 13: */ }",
"public GETINFO(int time, String userName) {\n\t\tsuper(Operation.GETINFO);\n\t\tusername = userName;\n\t\tthis.time = time;\n\t\t //this.operation = Operation.GETINFO;\n\t}",
"User getUserInformation(Long user_id);",
"public String getJP_AcctDate();",
"public java.lang.String getUser(){\r\n return localUser;\r\n }",
"public java.lang.String getUser(){\r\n return localUser;\r\n }",
"public java.lang.String getUser(){\r\n return localUser;\r\n }",
"public String getAuthor() {\n\t\treturn \"Prasoon, Vikas, Shantanu\";\n\t}",
"private static String getStamp() {\n\t\t\t return new SimpleDateFormat(\"yyyyMMddHHmmss\").format(new Date());\r\n\t\t}",
"public String toString() {\n return authorName + \" - \" + timestamp + \": \" + text;\n }",
"private void userReport() {\n reportText.appendText(\"Report of appointments per User\\n\\n\");\n for (User user: Data.getUsers()) {\n reportText.appendText(\"\\n\\nUser: \" + user.getUsername() + \"\\n\");\n for (Appointment appointment: Data.getAppointments()) {\n if (appointment.getUser() == user.getId()) {\n reportText.appendText(\"Appointment ID: \" + appointment.getId() +\n \" \\tTitle: \" + appointment.getTitle() +\n \"\\tType: \" + appointment.getType() +\n \"\\tDescription: \" + appointment.getDescription() +\n \"\\tStart: \" + appointment.getStart() +\n \"\\tEnd: \" + appointment.getEnd() +\n \"\\tCustomer: \" + appointment.getCustomer() + \"\\n\");\n }\n System.out.println(\"\\n\\n\");\n }\n }\n\n }",
"@Override\n public String toString() {\n DateTimeFormatter df = DateTimeFormatter.ofPattern(\"dd MMM yyyy HHmm\");\n return \"[\" + super.getType() + \"]\" + super.toString() + \" (by: \" + df.format(this.date) + \")\";\n }",
"public String getDate() {\n\t\treturn logInfoSplit[0] + \"_\" + logInfoSplit[1];\n\t}",
"public String toString() {\r\n \t\treturn \"\\\"\" + _name + \"\\\" by \" + _creator;\r\n \t}",
"public String getFromUser(){\r\n\t\treturn fromUser;\r\n\t}",
"@Override\n public String toString() {\n DateTimeFormatter dtfDate = DateTimeFormatter.ofPattern(\"MMM dd yyyy\");\n DateTimeFormatter dtfTime = DateTimeFormatter.ISO_LOCAL_TIME;\n assert dtfDate instanceof DateTimeFormatter : \"date formatter has to be of type DateTimeFormatter\";\n assert dtfTime instanceof DateTimeFormatter : \"time formatter has to be of type DateTimeFormatter\";\n final String EVENT_STRING_SHOWED_TO_USER =\n \"[E]\" + super.toString() + this.stringOfTags + \" \" + \"(at: \" + this.date.format(dtfDate) +\n \" \" + this.time.format(dtfTime) + \")\";\n return EVENT_STRING_SHOWED_TO_USER;\n }",
"public static void main(String[] args) throws Exception{\n\t\t\t Date currentTime = new Date(95,7,6);\n\t\t\t SimpleDateFormat formatter = new SimpleDateFormat(\"dd/MMM/YYYY\");\n\t\t\t String dateString = formatter.format(currentTime);\n\t\t\t System.out.println(dateString);\n\t\t\t \n\t\t}",
"public String getEventLine(){\r\n\t\t\twhile(name.length()<20){\r\n\t\t\t\tname+= \" \";\r\n\t\t\t}\r\n\t\t\tString Tword;\r\n\t\t\tTword = String.format(\"%05d\", ticket);\r\n\t\t return Integer.toString(date)+ \" \" +Tword+\" \"+name;\r\n\t }",
"@Override\n public String toString(){\n return String.format(\"ApplicationUser ehrId: '%s', shimmerId: '%s', shimKey: '%s', is logged in: '%s'\", applicationUserId.getEhrId(), shimmerId, getApplicationUserId().getShimKey());\n }",
"public String getInsYmd() {\n return insYmd;\n }",
"UserInfo getUserInfo(String username);",
"@AutoEscape\n\tpublic String getCreatedByUser();",
"private void logUser() {\n }",
"@Override\n public String toString() {\n String outputDate = this.date.format(outputDateFormat);\n return \"[D]\" + super.toString() + \" (by: \" + outputDate + \")\";\n }",
"@Override\n public String toString() {\n return \"Username: \" + this.username + \"\\n\";\n }",
"public void displayUserInformations() {\n println(\"getLocation(): \"+user.getLocation());\n println(\"getFriendsCount(): \"+user.getFriendsCount());\n println(\"getFollowersCount(): \"+user.getFollowersCount());\n println(\"getDescription(): \"+user.getDescription());\n println(\"getCreatedAt() : \"+user.getCreatedAt() );\n println(\"getDescriptionURLEntities(): \"+user.getDescriptionURLEntities());\n println(\"getFavouritesCount() : \"+user.getFavouritesCount() );\n }",
"public static String PrintHeadings() \r\n\t{ \r\n\t\t// Shows the current date\r\n\t\tLocalDate now = LocalDate.now();\r\n\t\tDateTimeFormatter datetimeformat = DateTimeFormatter.ofPattern(\"yy/MM/dd\");\r\n\t\tSystem.out.print(\"-------------------------- REPORT -------------------------- \\n\");\r\n\t\tSystem.out.print(\"\\t\\t\\t\\t Date: \" + datetimeformat.format(now) + \" (YYMMDD)\\n\");\r\n\t\tSystem.out.print(\"\\nItem# | Type | Title | Loan | Date |\" );\r\n\t\tSystem.out.print(\"\\n\");\r\n\t\treturn null;\r\n\t}",
"public StrColumn getPdbDateOfAuthorApproval() {\n return delegate.getColumn(\"pdb_date_of_author_approval\", DelegatingStrColumn::new);\n }",
"@Override\n public String toString() {\n return username;\n }",
"@Override\n\tpublic String toString() {\n\t\treturn username;\n\t}",
"int getCreatedBy();",
"@Override\n public String toString() {\n return getUsername();\n }",
"java.lang.String getFoundingDate();",
"public String getEventLine(){\r\n\t\t\twhile(name.length()<20){\r\n\t\t\t\tname+= \" \";\r\n\t\t\t}\r\n\t\t\tString Tword;\r\n\t\t\tTword = String.format(\"%05d\", ticket);\r\n\t\t\treturn Integer.toString(date)+ \" \" +Tword+\" \"+name;\r\n\t\t}",
"public String toString() {\n\t\tSimpleDateFormat sdf = new SimpleDateFormat(\"M/d/yyyy\");\n\t\treturn employeeName + \" \" + EID + \" \" + address + \" \" + phoneNumber + \" \" + sdf.format(DOB) + \" \" + securityClearance;\n\t}",
"public String DateFormatted(){\n\t\tSimpleDateFormat simDate = new SimpleDateFormat(\"E, dd/MM/yy hh:mm:ss a\");\n\t\treturn simDate.format(date.getTime());\n\t}",
"@Override\n public String toString() {\n return \"\\r\\nUser: \" + user + \" Message: \" + message +\" \\r\\n\" ;\n }",
"public String extraInfo(){\n return by.format(DateTimeFormatter.ofPattern(\"MMM d yyyy\"));\n }",
"@Schema(description = \"Details of the user who created the worklog.\")\n public AllOfWorklogAuthor getAuthor() {\n return author;\n }",
"String getUserInfoFromServer(String userID);",
"public int getCreatedBy();",
"public int getCreatedBy();",
"public int getCreatedBy();",
"public int getCreatedBy();",
"public int getCreatedBy();",
"public int getCreatedBy();",
"public int getCreatedBy();",
"public int getCreatedBy();",
"public int getCreatedBy();",
"public int getCreatedBy();",
"public int getCreatedBy();",
"public int getCreatedBy();",
"public int getCreatedBy();",
"public static String[] getUserFriendlyDate(long ts) {\n Date date = new Date(ts);\r\n Calendar calendar = Calendar.getInstance();\r\n calendar.setTime(date);\r\n\r\n String year = null;\r\n String month = null;\r\n String day = null;\r\n\r\n String hour = null;\r\n String minute = null;\r\n String second = null;\r\n\r\n int iyear = calendar.get(Calendar.YEAR);\r\n int imonth = calendar.get(Calendar.MONTH)+1;\r\n int iday = calendar.get(Calendar.DAY_OF_MONTH);\r\n month = Integer.toString(imonth);\r\n day = Integer.toString(iday);\r\n if(month.length() == 1) {month = \"0\"+month;}\r\n if(day.length() == 1) {day = \"0\"+day;}\r\n String dateString = new String(iyear + \"/\" + month + \"/\" + day);\r\n\r\n int ihour = calendar.get(Calendar.HOUR_OF_DAY);\r\n int iminute = calendar.get(Calendar.MINUTE);\r\n int isecond = calendar.get(Calendar.SECOND);\r\n hour = Integer.toString(ihour);\r\n minute = Integer.toString(iminute);\r\n second = Integer.toString(isecond);\r\n if(hour.length() == 1) {hour = \"0\"+hour;}\r\n if(minute.length() == 1) {minute = \"0\"+minute;}\r\n if(second.length() == 1) {second = \"0\"+second;}\r\n String timeString = new String(hour + \":\" + minute + \":\" + second);\r\n\r\n return new String[] {dateString, timeString};\r\n }",
"@Override\n public String toString(){\n return title + \"\\n\" + date;\n }",
"public String getGovernor()\n\t{\n\t\tassert this.cursor != null;\n\t\treturn this.cursor.getString(2);\n\t}",
"private static UserInfo getUserInfoStandardSession(int idUser)\n {\n User user = null;\n Squad squad = null;\n int countPost = 0;\n int invitationsAvailable = 0;\n try\n {\n user = DAOFactory.getInstance().getUserDAO().getFetched(idUser);\n if (user == null)\n {\n return new UserInfo();\n }\n //squad = DAOFactory.getInstance().getSquadDAO().getFirstByIdUser(idUser);\n squad = user.getFirstSquad();\n countPost = DAOFactory.getInstance().getMatchCommentDAO().countByIdUser(idUser);\n invitationsAvailable = user.getMaxInvitations() - DAOFactory.getInstance().getUserInvitationDAO().getCountUsed(idUser);\n if (invitationsAvailable < 0)\n {\n invitationsAvailable = 0;\n }\n }\n catch (Exception ex)\n {\n logger.error(\"Error retrieving user info: \" + ex.getMessage());\n }\n boolean squadMarketEnabled = false;\n if (squad != null)\n {\n squadMarketEnabled = squad.getMarketEnabled() && !squad.getHiddenEnabled();\n }\n else\n {\n logger.error(String.format(\"Error on data about iduser %s: User must have almost one squad!!\", idUser));\n }\n // Set values\n Language language = ActionContext.getContext() != null ? UserContext.getInstance().getLanguage() : LanguageManager.chooseUserLanguage(user);\n Cobrand currentCobrand = ActionContext.getContext() != null ? UserContext.getInstance().getCurrentCobrand() : getCobrandByCode(user.getCobrandCode());\n UserInfo userInfo = new UserInfo();\n userInfo.setId(user.getId());\n userInfo.setName(user.getFirstName());\n userInfo.setAnonymousEnabled(user.getAnonymousEnabled());\n\n if (userInfo.isAnonymousEnabled())\n {\n userInfo.setSurname(StringUtils.left(user.getLastName(), 1) + '.');\n }\n else\n {\n userInfo.setSurname(user.getLastName());\n }\n\n userInfo.setCompleteSurname(user.getLastName());\n\n userInfo.setEmail(user.getEmail());\n userInfo.setRecordedMatches(user.getRecordedMatches());\n userInfo.setRecordedChallenges(user.getRecordedChallenges());\n userInfo.setPlayedMatches(user.getPlayedMatches());\n userInfo.setPlayedChallenges(user.getPlayedChallenges());\n userInfo.setCity(user.getCity().getName());\n userInfo.setProvince(user.getProvince().getName());\n userInfo.setCountry(user.getCountry().getName());\n userInfo.setIdCountry(user.getCountry().getId());\n userInfo.setIdProvince(user.getProvince() != null ? user.getProvince().getId() : 0);\n userInfo.setIdCity(user.getCity() != null ? user.getCity().getId() : 0);\n if (user.getNationalityCountry() != null)\n {\n userInfo.setIdNatCountry(user.getNationalityCountry().getId());\n userInfo.setNatCountry(user.getNationalityCountry().getName());\n }\n userInfo.setCreated(user.getCreated());\n userInfo.setBirthdayCity((user.getBirthdayCity() != null) ? user.getBirthdayCity().getName() : EMPTY_FIELD);\n userInfo.setBirthdayProvince((user.getBirthdayProvince() != null) ? user.getBirthdayProvince().getName() : EMPTY_FIELD);\n userInfo.setBirthdayCountry((user.getBirthdayCountry() != null) ? user.getBirthdayCountry().getName() : EMPTY_FIELD);\n userInfo.setPlayerFoot((user.getPlayerFoot() == null) ? EMPTY_FIELD : TranslationProvider.getTranslation(user.getPlayerFoot().getKeyName(), language, currentCobrand).getKeyValue());\n userInfo.setPlayerFootKeyName((user.getPlayerFoot() == null) ? EMPTY_FIELD : user.getPlayerFoot().getKeyName());\n userInfo.setPlayerShirtNumber((user.getPlayerShirtNumber() != null) ? (String.valueOf(user.getPlayerShirtNumber())) : EMPTY_FIELD);\n userInfo.setPlayerRole(user.getPlayerRole() == null ? EMPTY_FIELD : TranslationProvider.getTranslation(user.getPlayerRole().getKeyName(), language, currentCobrand).getKeyValue());\n userInfo.setIdPlayerRole(user.getPlayerRole().getId());\n userInfo.setPlayerRoleKey(user.getPlayerRole().getKeyName());\n userInfo.setPlayerMainFeature(user.getPlayerMainFeature() == null ? EMPTY_FIELD : user.getPlayerMainFeature());\n userInfo.setPlayerShirtNumber((user.getPlayerShirtNumber() != null) ? (String.valueOf(user.getPlayerShirtNumber())) : EMPTY_FIELD);\n userInfo.setAge((user.getBirthDay() != null) ? Utils.getAgefromDate(user.getBirthDay()) : EMPTY_FIELD);\n userInfo.setPlayerHeight((user.getPlayerHeight() != null) ? String.valueOf(user.getPlayerHeight()) : EMPTY_FIELD);\n userInfo.setPlayerWeight((user.getPlayerWeight() != null) ? String.valueOf(user.getPlayerWeight()) : EMPTY_FIELD);\n userInfo.setFootballTeam((user.getFootballTeam() != null) ? user.getFootballTeam().getName() : EMPTY_FIELD);\n userInfo.setPhysicalConditionKey((user.getPhysicalCondition() != null) ? user.getPhysicalCondition().getKeyName() : \"label.condizioneFisica.nonPervenuta\");\n userInfo.setIdPhysicalCondition((user.getPhysicalCondition() != null) ? String.valueOf(user.getPhysicalCondition().getId()) : EMPTY_FIELD);\n userInfo.setInfoFavouritePlayer((user.getInfoFavouritePlayer() != null) ? user.getInfoFavouritePlayer() : EMPTY_FIELD);\n userInfo.setInfoDream((user.getInfoDream() != null) ? user.getInfoDream() : EMPTY_FIELD);\n userInfo.setInfoHobby((user.getInfoHobby() != null) ? user.getInfoHobby() : EMPTY_FIELD);\n userInfo.setInfoAnnounce((user.getInfoAnnounce() != null) ? user.getInfoAnnounce() : EMPTY_FIELD);\n userInfo.setInfoDream((user.getInfoDream() != null) ? user.getInfoDream() : EMPTY_FIELD);\n userInfo.setPlayerTitle((user.getPlayerTitle() != null) ? user.getPlayerTitle() : EMPTY_FIELD);\n //userInfo.setPlayedMatches(user.getRecordedMatches() + user.getRecordedChallenges());//SBAGLIATO TODO,sono le organizzate\n userInfo.setCountryFlagName(String.format(\"%1$s%2$s\", Constants.COUNTRY_FLAG_IMAGE_PREFIX, user.getCountry().getId()));\n userInfo.setBirthday(user.getBirthDay());\n userInfo.setMarketEnabled(user.getMarketEnabled());\n userInfo.setSquadMarketEnabled(squadMarketEnabled);\n userInfo.setStatus(user.getEnumUserStatus());\n userInfo.setAlertOnMatchRegistrationOpen(user.getAlertOnRegistrationStart());\n //userInfo.setPlayedMatches(StatisticManager.getPlayed(userInfo.getId()));//Att è una query in piu'\n\n userInfo.setPostCount(countPost);\n userInfo.setInvitationsAvailable(invitationsAvailable);\n\n //Facebook\n userInfo.setFacebookIdUser(user.getFacebookIdUser());\n userInfo.setFacebookAccessToken(user.getFacebookAccessToken());\n userInfo.setFacebookPostOnMatchCreation(user.isFacebookPostOnMatchCreation());\n userInfo.setFacebookPostOnMatchRecorded(user.isFacebookPostOnMatchRecorded());\n userInfo.setFacebookPostOnMatchRegistration(user.isFacebookPostOnMatchRegistration());\n\n try\n {\n PictureCard pictureCard = null;\n if (user.getEnumUserStatus().equals(EnumUserStatus.Pending))\n {\n pictureCard = DAOFactory.getInstance().getPictureCardDAO().getByStatus(idUser, EnumPictureCardStatus.Pending);\n if (pictureCard != null)\n {\n userInfo.loadPictureCard(pictureCard);\n }\n }\n else\n {\n for (PictureCard pic : user.getPictureCards())\n {\n if (pic.getEnumPictureCardStatus().equals(EnumPictureCardStatus.Current))\n {\n userInfo.loadPictureCard(pic);\n break;\n }\n }\n }\n }\n catch (Exception ex)\n {\n logger.error(\"Error retrieving current picture card in getUserInfo()\", ex);\n }\n return userInfo;\n\n }",
"Map<Date, Set<String>> getFullUsers(Step step) throws SQLException;",
"public void user_details()\n {\n\t boolean userdetpresent =userdetails.size()>0;\n\t if(userdetpresent)\n\t {\n\t\t //System.out.println(\"User details report is PRESENT\");\n\t }\n\t else\n\t {\n\t\t System.out.println(\"User details report is not present\");\n\t }\n }",
"String getUserMail();",
"public void printUser() {\n\t\tSystem.out.println(\"First name: \" + this.firstname);\n\t\tSystem.out.println(\"Last name: \" + this.lastname);\n\t\tSystem.out.println(\"Age: \" + this.age);\n\t\tSystem.out.println(\"Email: \" + this.email);\n\t\tSystem.out.println(\"Gender: \" + this.gender);\n\t\tSystem.out.println(\"City: \" + this.city);\n\t\tSystem.out.println(\"State: \" + this.state + \"\\n\");\n\t}",
"String getUserMainEmail( int nUserId );",
"public String getAuthor() {\n \treturn metricMetadata.getAuthor();\n }",
"@Override\n public String toString() {\n SimpleDateFormat format = new SimpleDateFormat (\"MMM d yyyy\");\n String dateString = format.format(by);\n return \"[D]\" + super.toString() + \" (by: \" + dateString + \")\";\n }",
"public native final String getCreatedBy() /*-{\n return this[\"@CreatedBy\"];\n }-*/;",
"public String getUserName() {\n\t \t return userName; \n\t}"
] |
[
"0.6220873",
"0.57196754",
"0.5650903",
"0.55868304",
"0.55500567",
"0.5528258",
"0.5486137",
"0.54624325",
"0.54480404",
"0.54240906",
"0.5419408",
"0.54191196",
"0.54057086",
"0.5353582",
"0.53130245",
"0.53007203",
"0.5292785",
"0.5285653",
"0.52742577",
"0.52721334",
"0.52584696",
"0.5238705",
"0.52369815",
"0.5221348",
"0.5191669",
"0.5177635",
"0.5177635",
"0.51707244",
"0.51703984",
"0.51677203",
"0.51656157",
"0.51631856",
"0.5158288",
"0.5155392",
"0.51424336",
"0.51408947",
"0.51343346",
"0.5132482",
"0.5129405",
"0.5127072",
"0.5127072",
"0.5127072",
"0.51206774",
"0.5114304",
"0.5112382",
"0.5110836",
"0.5099172",
"0.5099134",
"0.50902957",
"0.50787103",
"0.5064601",
"0.50540537",
"0.50443596",
"0.5035925",
"0.503165",
"0.50228155",
"0.5019959",
"0.5019861",
"0.50184494",
"0.50177336",
"0.5016749",
"0.50164324",
"0.5015115",
"0.50110286",
"0.5005981",
"0.50008655",
"0.49982822",
"0.4993846",
"0.49911305",
"0.49889064",
"0.49873707",
"0.4983346",
"0.4981174",
"0.49807033",
"0.4975802",
"0.49702698",
"0.49702698",
"0.49702698",
"0.49702698",
"0.49702698",
"0.49702698",
"0.49702698",
"0.49702698",
"0.49702698",
"0.49702698",
"0.49702698",
"0.49702698",
"0.49702698",
"0.49678767",
"0.49671146",
"0.4957659",
"0.4956859",
"0.49537447",
"0.49537015",
"0.49516052",
"0.4947699",
"0.4946349",
"0.49461332",
"0.4944518",
"0.49435243",
"0.4933807"
] |
0.0
|
-1
|
Create payment provider notification for request
|
@Nonnull
List<PaymentProviderNotification> createPaymentProviderNotificationForRequest(@Nonnull final PaymentProviderNotificationRequest notificationRequest);
|
{
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
}
|
[
"public interface PaymentProviderNotificationProcessor {\n\n /**\n * Create payment provider notification for request\n *\n * @param notificationRequest\n * @return paymentProviderNotifications\n */\n @Nonnull\n List<PaymentProviderNotification> createPaymentProviderNotificationForRequest(@Nonnull final PaymentProviderNotificationRequest notificationRequest);\n\n /**\n * Process payment provider notification\n *\n * @param notification\n */\n void processPaymentProviderNotification(@Nonnull final PaymentProviderNotification notification);\n}",
"void processPaymentProviderNotification(@Nonnull final PaymentProviderNotification notification);",
"private void addPaymentStartEvent() {\n /*09th July 2019, Resolved Pyze library issue*/\n HashMap<String, Object> customAttributes = new HashMap<String, Object>();\n customAttributes.put(\"packageID\", String.valueOf(PackageID));\n customAttributes.put(\"userID\", String.valueOf(UserID));\n customAttributes.put(\"paymentType\", getIntent().getStringExtra(\"PaymentType\"));\n PyzeEvents.PyzeCommercePayment.postPaymentStarted(customAttributes);\n }",
"void onPaymentRequestParamsInitiated(PaymentRequestParams params);",
"Order sendNotificationNewOrder(Order order);",
"public PCEPNotification createNotificationMessage(ComputingResponse resp,long timer ){\n\t\tlog.info(\"Timer \"+timer);\n\t\tPCEPNotification notificationMsg = new PCEPNotification();\n\t\tNotify notify=new Notify();\n\t\tNotification notif=new Notification();\n\t\tnotif.setNotificationType(ObjectParameters.PCEP_NOTIFICATION_TYPE_PRERESERVE);\n\t\tLinkedList<Notification> notificationList=new LinkedList<Notification>();\n\t\tPathReservationTLV pathReservationTLV=new PathReservationTLV();\t\t\t\n\t\tpathReservationTLV.setERO(resp.getResponseList().getFirst().getPathList().getFirst().geteRO());\t\t\t\t\t\n\t\tboolean bidirect = resp.getResponseList().getFirst().getRequestParameters().isBidirect();\t\t\n\t\tpathReservationTLV.setTime(timer);\n\t\tpathReservationTLV.setBidirectional(bidirect);\n\t\tnotif.setNotificationTLV(pathReservationTLV);\n\t\tnotificationList.add(notif);\n\t\tnotify.setNotificationList(notificationList);\n\t\tnotificationMsg.addNotify(notify);\n\t\treturn notificationMsg;\t\n\t}",
"PaymentHandler createPaymentHandler();",
"void resolvePaymentRequestObserverCallback(long callbackPtr);",
"Notification createAppointmentRequestSubmissionConfirmationNotification(AppointmentRequest appointmentRequest, List<Appointment> appointments );",
"Notification createConnectionRequestNotification(Connection conn );",
"@Override\n\tpublic String addPayment(PaymentRequest paymentRequest) {\n\t\treturn \"Courier Booked successfully\";\n\t}",
"public String generateNotificationResponseMessage(NotificationResponseBo response);",
"protected void attachNotification(Txn txn) {\r\n }",
"@Override\n\tpublic boolean addPaymentNotify(NotifyInfo notifyInfo) throws Exception {\ntry {\n\t\t\t\n\t\t\tint ret = registerMapper.addPaymentNotify(notifyInfo);\n\t\t\tif(ret >0){\n\t\t\t\tStudent student = new Student() ;\n\t\t\t\t//student.setApp_info_code(payment.getApp_info_code()) ;\n\t\t\t\tstudent.setApp_id(notifyInfo.getAppid()) ;\n\t\t\t\tstudent.setCode(notifyInfo.getOpenid()) ;\n\t\t\t\tstudent.setPaid_amount(notifyInfo.getTotal_fee()/100) ;\n\t\t\t\tret = registerMapper.updateRegInfo(student) ;\n\t\t\t\tif(ret<1){\n\t\t\t\t\tthrow new Exception(\"更新总金额失败\");\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\treturn true ;\n\t\t\t}else{\n\t\t\t\tthrow new Exception(\"付费写入失败\") ;\n\t\t\t}\n\n\t\n\t\t} catch (Exception e) {\n\t\t\t// TODO: handle exception\n\t\t\t\n\t\t\tthrow new RunTimeException(e.getMessage()) ;\n\t\t}\n\t}",
"Notification createNewAppointmentNotification(Appointment appointment);",
"private void generateNotification(int type , Geofence current) {\n\t\t\n\t\tLog.i(\"LOC TRAN \" , \" \" + type + \" \" + current.getRequestId());\n }",
"void createInvitation(OutgoingEMailInvitation invitation, Boolean notify);",
"private void createNotificationForCustomer(Long emloyeeIdLogin, Long customerIdCreated, String customerName, int mode) {\n CreateNotificationRequest notificationReq = new CreateNotificationRequest();\n notificationReq.setDataNotification(new CreateNotificationInSubType1DTO(emloyeeIdLogin, 4, 1));\n ReceiverDTO receiverDTO = new ReceiverDTO();\n receiverDTO.setReceiverName(jwtTokenUtil.getEmployeeNameFromToken());\n List<ReceiverDTO> receiverList = new ArrayList<>();\n receiverList.add(receiverDTO);\n List<CreateNotificationInSubType6DTO> customerList = new ArrayList<>();\n CreateNotificationInSubType6DTO customerDTO = getCreateNotificationSubDTO(customerIdCreated, customerName);\n customerDTO.setReceivers(receiverList);\n customerDTO.setCustomerMode(mode);\n customerList.add(customerDTO);\n notificationReq.setCustomer(customerList);\n channelUtils.createNotification(notificationReq);\n }",
"private void handleConfirmBillPayment() {\n\t\t// TODO Auto-generated method stub\n\t\ttry {\n\t\t\tPaymentBiller request = new PaymentBiller();\n\t\t\tObjectFactory f = new ObjectFactory();\n\t\t\tCommonParam2 commonParam = f.createCommonParam2();\n\t\t\t\n\t\t\tcommonParam.setProcessingCode(f.createCommonParam2ProcessingCode(\"100601\"));\n\t\t\tcommonParam.setChannelId(f.createCommonParam2ChannelId(\"6018\"));\n\t\t\tcommonParam.setChannelType(f.createCommonParam2ChannelType(\"PB\"));\n\t\t\tcommonParam.setNode(f.createCommonParam2Node(\"WOW_CHANNEL\"));\n\t\t\tcommonParam.setCurrencyAmount(f.createCommonParam2CurrencyAmount(\"IDR\"));\n\t\t\tcommonParam.setAmount(f.createCommonParam2Amount(String.valueOf(billPayBean.getBillAmount())));\n\t\t\tcommonParam.setCurrencyfee(f.createCommonParam2Currencyfee(billPayBean.getFeeCurrency()));\n\t\t\tcommonParam.setFee(f.createCommonParam2Fee(String.valueOf(billPayBean.getFeeAmount())));\n\t\t\tcommonParam.setTransmissionDateTime(f.createCommonParam2TransmissionDateTime(PortalUtils.getSaveXMLGregorianCalendar(Calendar.getInstance()).toXMLFormat()));\n\t\t\tcommonParam.setRequestId(f.createCommonParam2RequestId(MobiliserUtils.getExternalReferenceNo(isystemEndpoint)));\n\t\t\tcommonParam.setAcqId(f.createCommonParam2AcqId(\"213\"));\n\t\t\tcommonParam.setReferenceNo(f.createCommonParam2ReferenceNo(String.valueOf(billPayBean.getReferenceNumber())));\n\t\t\tcommonParam.setTerminalId(f.createCommonParam2TerminalId(\"WOW\"));\n\t\t\tcommonParam.setTerminalName(f.createCommonParam2TerminalName(\"WOW\"));\n\t\t\tcommonParam.setOriginal(f.createCommonParam2Original(billPayBean.getAdditionalData()));\n\t\t\t\n\t\t\trequest.setCommonParam(commonParam);\n\t\t\tPhoneNumber phone = new PhoneNumber(this.getMobiliserWebSession().getBtpnLoggedInCustomer().getUsername());\n\t\t\trequest.setAccountNo(phone.getNationalFormat());\n\t\t\trequest.setBillerCustNo( billPayBean.getSelectedBillerId().getId()); \n\t\t\trequest.setDebitType(\"0\");\n\t\t\trequest.setInstitutionCode(billPayBean.getBillerId());\n\t\t\trequest.setProductID(billPayBean.getProductId());\n\t\t\trequest.setUnitId(\"0901\");\n\t\t\trequest.setProcessingCodeBiller(\"501000\");\n\t\t\t\n\t\t\tString desc1=\"Bill Payment\";\n\t\t\tString desc2= billPayBean.getBillerId();\n\t\t\tString desc3=\"\";\n\t\t\t\n\t\t\trequest.setAdditionalData1(desc1);\n\t\t\trequest.setAdditionalData2(desc2);\n\t\t\trequest.setAdditionalData3(desc3);\n\t\t\t\n\t\t\tPaymentBillerResponse response = new PaymentBillerResponse();\n\t\t\t\n\t\t\tresponse = (PaymentBillerResponse) webServiceTemplete.marshalSendAndReceive(request, \n\t\t\t\t\tnew WebServiceMessageCallback() {\n\t\t\t\t\n\t\t\t\t@Override\n\t\t\t\tpublic void doWithMessage(WebServiceMessage message) throws IOException,\n\t\t\t\t\t\tTransformerException {\n\t\t\t\t\t// TODO Auto-generated method stub\n\t\t\t\t\t((SoapMessage) message)\n\t\t\t\t\t.setSoapAction(\"com_btpn_biller_ws_provider_BtpnBillerWsTopup_Binder_paymentBiller\");\n\t\t\t\t}\n\t\t\t});\n\t\t\t\n\t\t\tif (response.getResponseCode().equals(\"00\")) {\n\t\t\t\tbillPayBean.setStatusMessage(getLocalizer().getString(\"success.perform.billpayment\", this));\n\t\t\t\tsetResponsePage(new BankBillPaymentStatusPage(billPayBean));\n\t\t\t}\n\t\t\telse {\n\t\t\t\terror(MobiliserUtils.errorMessage(response.getResponseCode(), response.getResponseDesc(), getLocalizer(), this));\n\t\t\t\t\n\t\t\t}\n\t\t} catch (Exception e) {\n\t\t\t// TODO: handle exception\n\t\t\terror(getLocalizer().getString(\"error.exception\", this));\n\t\t\tLOG.error(\"An exception was thrown\", e);\n\t\t}\n\t}",
"private void createNotification() {\n\t\tIntent notifyIntent = new Intent(this, BirthdayActivity.class);\r\n\t\t// Sets the Activity to start in a new, empty task\r\n\t\tnotifyIntent.setFlags(Intent.FLAG_ACTIVITY_NEW_TASK);\r\n\t\t// Creates the PendingIntent\r\n\t\tPendingIntent pendingIntent = PendingIntent.getActivity(this,\r\n\t\t\t\t(int) System.currentTimeMillis(), notifyIntent,\r\n\t\t\t\tPendingIntent.FLAG_UPDATE_CURRENT);\r\n\r\n\t\tNotificationManagerUtil notificationManagerUtil = NotificationManagerUtil\r\n\t\t\t\t.getInstance();\r\n\t\tnotificationManagerUtil.createNotifications(this, 1, \"Message\",\r\n\t\t\t\tpendingIntent);\r\n\t}",
"Notification createAppointmentConfirmationNotification(Appointment appointment);",
"public Notification(SystemUser sender, SystemUser recipient, String currency, BigDecimal amount, BigDecimal senderNewBalance, BigDecimal receiverNewBalance, Date transactionDate, boolean seen, boolean request, boolean rejected) {\r\n this.recipient = recipient;\r\n this.sender = sender;\r\n this.currency = currency;\r\n this.amount = amount.setScale(2, RoundingMode.HALF_UP);\r\n this.transactionDate = transactionDate;\r\n this.seen = seen;\r\n this.request = request;\r\n this.rejected = rejected;\r\n this.senderNewBalance = senderNewBalance;\r\n this.receiverNewBalance = receiverNewBalance;\r\n\r\n }",
"public interface PaymentRequestLifecycleObserver {\n /**\n * Called when all of the PaymentRequest parameters have been initiated and validated.\n * @param params The parameters.\n */\n void onPaymentRequestParamsInitiated(PaymentRequestParams params);\n\n /**\n * Called after {@link PaymentRequest#retry} is invoked.\n * @param errors The payment validation errors.\n */\n void onRetry(PaymentValidationErrors errors);\n}",
"public String generateNotificationMessage(NotificationBo notification);",
"@Override\n\tpublic void msgPaymentAccepted(Lord l,double amount) {\n\t\t\n\t}",
"RequestSender onAgree(Consumer<Message> consumer);",
"@Override\n\n public void onSuccess(CardToken cardToken) {\n RequestManager.getInstance().init(getBaseContext());\n RequestManager.getInstance().paymentRequest(cardToken.getId());\n\n }",
"public interface MakePaymentListener {\n public void goToPayment(String mode, HashMap<String, Object> data) throws JSONException;\n }",
"@Override\n\tpublic void createTicket(TicketData request , StreamObserver<TicketData> responseObserver) {\n\t\tSystem.out.println(\"Requested to store a new Ticket\");\n\n\t\tTicket t = SimpleTicketStore.CreateTicket(\n\t\t\t\trequest.getReporter()\n\t\t\t\t,request.getTopic()\n\t\t\t\t,de.uniba.rz.entities.Status.values()[request.getStatusValue()]\n\t\t\t\t\t\t,request.getDescription()\n\t\t\t\t\t\t,de.uniba.rz.entities.Type.values()[request.getTypeValue()]\n\t\t\t\t\t\t\t\t,Priority.values()[request.getPriorityValue()]\n\t\t\t\t);\n\n\t\tTicketData tdata = Ticket2TicketData(t);\n\n\t\tresponseObserver.onNext(tdata);\n\t\tresponseObserver.onCompleted();\n\n\t}",
"private void sendNotification() {\n }",
"public Notification(SystemUser sender, SystemUser recipient, String currency, BigDecimal amount, Date transactionDate, boolean seen, boolean request, boolean rejected) {\r\n this.recipient = recipient;\r\n this.sender = sender;\r\n this.currency = currency;\r\n this.amount = amount.setScale(2, RoundingMode.HALF_UP);\r\n this.transactionDate = transactionDate;\r\n this.seen = seen;\r\n this.request = request;\r\n this.rejected = rejected;\r\n\r\n }",
"public INotification createNotification()\n throws OculusException;",
"@Override\n public ResponseEntity<PaymentInfo> purchase(@RequestBody PaymentInfo request) {\n return new ResponseEntity<PaymentInfo>(request, HttpStatus.OK);\n }",
"public Notification(AGateway gateway)\r\n/* 11: */ {\r\n/* 12:31 */ setGateway(gateway);\r\n/* 13: */ }",
"public io.grpc.stub.StreamObserver<lnrpc.Rpc.SendRequest> sendPayment(\n io.grpc.stub.StreamObserver<lnrpc.Rpc.SendResponse> responseObserver) {\n return asyncBidiStreamingCall(\n getChannel().newCall(getSendPaymentMethod(), getCallOptions()), responseObserver);\n }",
"@NonNull\n\tNotificationBuilder newNotification();",
"private void createNotification(FoodEvents event) {\n Context context = getBaseContext();\n NotificationCompat.Builder mBuilder = new NotificationCompat.Builder(context).setSmallIcon(R.drawable.ic_launcher).setContentTitle(event.getTitle())\n .setContentText(event.getDescription());\n Intent resultIntent = new Intent(this, EventDetails.class);\n resultIntent.addFlags(Intent.FLAG_ACTIVITY_NEW_TASK);\n resultIntent.putExtra(EventDetails.EXTRA_EVENT, event);\n PendingIntent resultPendingIntent = PendingIntent.getActivity(getBaseContext(), 0, resultIntent, PendingIntent.FLAG_UPDATE_CURRENT, null);\n mBuilder.setContentIntent(resultPendingIntent);\n NotificationManager mNotificationManager = (NotificationManager) context.getSystemService(Context.NOTIFICATION_SERVICE);\n mNotificationManager.notify(MESSAGE_NOTIFICATION_ID, mBuilder.build());\n notifyMyWatch(event);\n }",
"public void savePendingRequest(PendingRequest pendingRequest);",
"private void createRequestDone() {\n final String providerId = FirebaseAuth.getInstance().getCurrentUser().getUid();\n providerReferen = FirebaseDatabase.getInstance().getReference().child(\"Users\").child(\"Providers\").child(providerId).child(\"requestDone\");\n providerReferen.addListenerForSingleValueEvent(new ValueEventListener() {\n @Override\n public void onDataChange(DataSnapshot dataSnapshot) {\n if(dataSnapshot.exists()){\n\n }else{\n HashMap donemap = new HashMap();\n donemap.put(\"consumerServiceRequest\", conSerReq);\n providerReferen.updateChildren(donemap);\n }\n }\n\n @Override\n public void onCancelled(DatabaseError databaseError) {\n\n }\n });\n\n\n /////////////////////////////////////////////////////////schedule control\n }",
"public static String createCharge(Request request, Response response) {\n Stripe.apiKey = \"sk_test_nKon8YMF1HyqAvNgvFpFHGbi\";\n CardChargeMakerParams cm = JsonUtil.getInstance().fromJson(request.body(), CardChargeMakerParams.class);\n\n // Get charge meta information\n String token = cm.getId();\n EntityManager em = DatabaseManager.getInstance().getEntityManager();\n TableSession session = em\n .find(TableSession.class, request.session().attribute(\"TableSessionKey\"));\n Transaction transaction = getCurrentTransaction(session.getRestaurantTable());\n int total = (int) (transaction.getTotal() * 100);\n\n // Create params\n Map<String, Object> params = new HashMap<>();\n params.put(\"amount\", total);\n params.put(\"currency\", \"gbp\");\n params.put(\"description\", \"Your meal at Oaxaca\");\n params.put(\"source\", token);\n\n try {\n // Charge customer card\n Charge charge = Charge.create(params);\n // Change status in database\n em.getTransaction().begin();\n\n Transaction temp = em.find(Transaction.class, transaction.getTransactionId());\n\n temp.setDatetimePaid(new Timestamp(System.currentTimeMillis()));\n temp.setIsPaid(true);\n session.getRestaurantTable().setStatus(TableStatus.NEEDS_CLEANING);\n em.getTransaction().commit();\n NotificationEndpoint.startNotificationService(temp);\n return \"success\";\n } catch (AuthenticationException | InvalidRequestException | CardException | APIConnectionException | APIException e) {\n e.printStackTrace();\n return \"failure\";\n } finally {\n em.close();\n }\n }",
"@Test\n public void shouldReceivePaymentNotification() {\n stubFinder.trigger(\"paymentReceived\");\n\n // when\n Payment actualPayment = paymentsQueuelistener.lastPayment;\n\n // then\n Payment expectedPayment = new Payment(\"abc\", \"Paid\");\n assertThat(actualPayment).isEqualTo(expectedPayment);\n }",
"@Override\n\n public void onClick(View v) {\n\n simplify.createCardToken(cardEditor.getCard(), new CardToken.Callback() {\n\n @Override\n\n public void onSuccess(CardToken cardToken) {\n\n //Toast.makeText(getBaseContext(), \"Success\", Toast.LENGTH_SHORT).show();\n //finish();\n RequestManager.getInstance().init(getBaseContext());\n RequestManager.getInstance().paymentRequest(cardToken.getId());\n\n }\n\n @Override\n\n public void onError(Throwable throwable) {\n\n Toast.makeText(getBaseContext(), \"Success\", Toast.LENGTH_SHORT).show();\n\n }\n\n });\n\n\n }",
"public void fetchVoicemailPayload(String providerData, Callback<VoicemailPayload> callback);",
"public void sendPaymentSync(lnrpc.Rpc.SendRequest request,\n io.grpc.stub.StreamObserver<lnrpc.Rpc.SendResponse> responseObserver) {\n asyncUnaryCall(\n getChannel().newCall(getSendPaymentSyncMethod(), getCallOptions()), request, responseObserver);\n }",
"private void createNotificationChannel() {\n if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.O) {\n if(status.connection_status == enums.connection_status.connected)\n {\n CharSequence name = \"Sample VPN\";\n String description = \"VPN notification\";\n int importance = NotificationManager.IMPORTANCE_DEFAULT;\n NotificationChannel channel = new NotificationChannel(CHANNEL_ID, name, importance);\n channel.setDescription(description);\n // Register the channel with the system; you can't change the importance\n // or other notification behaviors after this\n NotificationManager notificationManager = home_model.getInstance().getHomeInstance().getSystemService(NotificationManager.class);\n notificationManager.createNotificationChannel(channel);\n }\n }\n }",
"public Notifications(Integer postID, Integer requesterID, Integer providerID,\n Boolean accepted, String type){\n //PostID, requesterID, providerID,locationOfRequester need to create variable?\n status = accepted;\n this.type = type;\n this.requestID = Integer.toString(requesterID);\n this.setProvider(providerID);\n this.type = type;\n this.postID = postID;\n\n }",
"@Override\r\n\tpublic void makePayment(Payment p, int amount) {\n\t\t\r\n\t}",
"@ResponseBody\n @RequestMapping(value = \"/pay_notify.html\")\n public Object payCallback(AliPayBackModel model,HttpServletRequest request){\n if(this.validateSign(request)){\n this.payRecordService.pay(model);\n return \"success\";\n }\n return \"fail\";\n }",
"public Notifications(Integer postID, Integer requesterID, Integer providerID,\n String locationOfRequester, String type){\n //PostID, requesterID, providerID,locationOfRequester need to create variable?\n this.postID = postID;\n this.requesterID = requesterID;\n this.userId = providerID;\n\n this.type = type;\n this.setActiveStatus(true);\n //idk if we want to add this or not\n this.beginTime = \"N/A\";\n this.endTime = \"N/A\";\n this.category = null;\n this.tags = null;\n this.location = locationOfRequester;\n\n\n }",
"public void sendAlert(String notificationInfo, ILabMember personInCharge) {\n }",
"RequestSender onInform(Consumer<Message> consumer);",
"void pay(Payment payment) {\n\n\t}",
"public void sendPaymentSync(lnrpc.Rpc.SendRequest request,\n io.grpc.stub.StreamObserver<lnrpc.Rpc.SendResponse> responseObserver) {\n asyncUnimplementedUnaryCall(getSendPaymentSyncMethod(), responseObserver);\n }",
"@Override\n\tpublic String requstPDDDataFlowNotify(MYNotifyDataFlowReq req) {\n\t\t// TODO Auto-generated method stub\n\t\tString status = req.getStatus().equals(\"4\")?\"SUCCESS\":\"FAIL\";\n\t\t\n\t\tMap<String,String> map = new HashMap<String,String>();\n\t\t\t\t\n\t\tmap.put(\"order_sn\", req.getOutTradeNo());\n\t\tmap.put(\"outer_order_sn\", req.getTaskID());\n\t\tmap.put(\"status\", status);\n\t\tmap.put(\"mall_id\", \"637786\");\n\t\tDate date = new Date();\n\t\tString timestamp = (date.getTime()/1000-60)+\"\";\n\t\tmap.put(\"type\", \"pdd.virtual.mobile.charge.notify\");\n\t\tmap.put(\"data_type\", \"JSON\");\n\t\tmap.put(\"timestamp\", timestamp);\n\t\t\t\t\n\t\tString sign = maiYuanService.PDD_Md5(map,Util.getMaiYuanConfig(\"PDD_SecretKey\"));\n\t\t\t\t\n\t\tString PDD_Url=\"http://open.yangkeduo.com/api/router?type=pdd.virtual.mobile.charge.notify&data_type=JSON×tamp=\"+timestamp\n\t\t\t\t\t\t+\"&order_sn=\"+req.getOutTradeNo()\n\t\t\t\t\t\t+\"&outer_order_sn=\"+req.getTaskID()\n\t\t\t\t\t\t+\"&status=\"+status\n\t\t\t\t\t\t+\"&mall_id=637786&sign=\"+sign;\n\t\t\t\t\n\t\ttry {\n\t\t\tSystem.out.println(\"拼多多请求:\"+PDD_Url);\n\t\t\tString resp = Request.Post(PDD_Url).execute().returnContent().asString();\n\t\t\tSystem.out.println(\"拼多多回调数据:\"+resp);\n\t\t\treturn resp;\n\t\t\t\t\t\n\t\t} catch (Exception e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t}\n\t\treturn \"FAIL\";\n\t}",
"private void processPayment(ProcessPaymentEvent event) {\n try {\r\n message.setInt(\"invoiceId\", event.getInvoiceId());\r\n message.setInt(\"processId\", (event.getProcessId() == null) ? -1 : event.getProcessId());\r\n message.setInt(\"runId\", (event.getRunId() == null) ? -1 : event.getRunId());\r\n message.setStringProperty(\"type\", \"payment\");\r\n \r\n // add additional fields from the associated plug-in\r\n IAsyncPaymentParameters task = getPluggableTask(entityId, \r\n Constants.PLUGGABLE_TASK_ASYNC_PAYMENT_PARAMS);\r\n task.addParameters(message);\r\n } catch (Exception e) {\r\n throw new SessionInternalError(\"Error transforming message \", \r\n this.getClass(), e);\r\n }\r\n }",
"String makePayment(String userName, String teamName, Payment payment) throws RemoteException, InterruptedException;",
"public io.grpc.stub.StreamObserver<lnrpc.Rpc.SendRequest> sendPayment(\n io.grpc.stub.StreamObserver<lnrpc.Rpc.SendResponse> responseObserver) {\n return asyncUnimplementedStreamingCall(getSendPaymentMethod(), responseObserver);\n }",
"public void startPayment() {\r\n final Activity activity = this;\r\n\r\n final Checkout co = new Checkout();\r\n\r\n try {\r\n JSONObject options = new JSONObject();\r\n options.put(\"name\", \"Farm2Home\");\r\n options.put(\"description\", \"Consumption charges\");\r\n //You can omit the image option to fetch the image from dashboard\r\n // options.put(\"image\", \"https://rzp-mobile.s3.amazonaws.com/images/rzp.png\");\r\n options.put(\"currency\", \"INR\");\r\n options.put(\"amount\", \"500\");\r\n\r\n // JSONObject preFill = new JSONObject();\r\n // preFill.put(\"email\", \"sm@razorpay.com\");\r\n // preFill.put(\"contact\", \"9876543210\");\r\n\r\n // options.put(\"prefill\", preFill);\r\n\r\n co.open(activity, options);\r\n } catch (Exception e) {\r\n Toast.makeText(activity, \"Error in payment: \" + e.getMessage(), Toast.LENGTH_SHORT)\r\n .show();\r\n e.printStackTrace();\r\n }\r\n }",
"ch.crif_online.www.webservices.crifsoapservice.v1_00.PaymentDelay addNewPaymentDelay();",
"public void createInviteNotification(Event e, Users u) {\n Invite invite= new Invite();\n invite.setUser(u);\n invite.setStatus(Invite.InviteStatus.invited);\n invite.setEvent(e);\n em.persist(invite);\n Notification notification = new Notification();\n notification.setType(NotificationType.invite);\n notification.setNotificatedUser(u);\n notification.setRelatedEvent(e);\n notification.setSeen(false);\n notification.setGenerationDate(new Date());\n em.persist(notification);\n mailManager.sendMail(u.getEmail(), \"New Invite\", \"Hi! You have received a new invite\");\n }",
"@Override\r\n public void addGrantedNotification(NotificationDetail notificationDetail) {\n }",
"private static void createNotification(Activity a, CustomFBProfile prof) {\n NotificationCompat.Builder mBuilder =\n new NotificationCompat.Builder(a)\n .setSmallIcon(R.drawable.acba)\n .setContentTitle(\"New Message\")\n .setTicker(\"New Message!!\");\n NotificationCompat.InboxStyle inboxStyle = new NotificationCompat.InboxStyle();\n mBuilder.setStyle(inboxStyle);\n mBuilder.setVibrate(new long[]{2000, 500, 500, 250});\n mBuilder.setLights(Color.YELLOW, 3000, 3000);\n mBuilder.setSound(RingtoneManager.getDefaultUri(RingtoneManager.TYPE_NOTIFICATION));\n mBuilder.setAutoCancel(true);\n\n// Creates an explicit intent for an Activity in your app\n Intent resultIntent = new Intent(a, LoginActivity.class);\n\n// The stack builder object will contain an artificial back stack for the\n// started Activity.\n// This ensures that navigating backward from the Activity leads out of\n// your application to the Home screen.\n TaskStackBuilder stackBuilder = TaskStackBuilder.create(a);\n// Adds the back stack for the Intent (but not the Intent itself)\n stackBuilder.addParentStack(LoginActivity.class);\n// Adds the Intent that starts the Activity to the top of the stack\n stackBuilder.addNextIntent(resultIntent);\n PendingIntent resultPendingIntent =\n stackBuilder.getPendingIntent(\n 0,\n PendingIntent.FLAG_UPDATE_CURRENT\n );\n mBuilder.setContentIntent(resultPendingIntent);\n NotificationManager mNotificationManager =\n (NotificationManager) a.getSystemService(Context.NOTIFICATION_SERVICE);\n// mId allows you to update the notification later on.\n mNotificationManager.notify(1, mBuilder.build());\n }",
"private PageAction getNewPaymentAction() {\n return new PageAction() {\n @Override\n public void run() { \n Parameters params = new Parameters();\n BasicMember member = data.getTransfer().getBasicMember();\n // Set if there is a member payment or system payment\n if(member != null) { \n params.set(ParameterKey.ID, member.getId()); \n } else {\n params.set(ParameterKey.IS_SYSTEM_ACCOUNT, true);\n }\n Navigation.get().go(PageAnchor.MAKE_PAYMENT, params);\n }\n @Override\n public String getLabel() { \n return messages.newPayment();\n } \n };\n }",
"public Action<PaymentState, PaymentEvent> preAuthAction(){\n\n// this is where you will implement business logic, like API call, check value in DB ect ...\n return context -> {\n System.out.println(\"preAuth was called !!\");\n\n if(new Random().nextInt(10) < 8){\n System.out.println(\"Approved\");\n\n // Send an event to the state machine to APPROVED the auth request\n context.getStateMachine().sendEvent(MessageBuilder.withPayload(PaymentEvent.PRE_AUTH_APPROVED)\n .setHeader(PaymentServiceImpl.PAYMENT_ID_HEADER, context.getMessageHeader(PaymentServiceImpl.PAYMENT_ID_HEADER))\n .build());\n } else {\n System.out.println(\"Declined No Credit !!\");\n\n // Send an event to the state machine to DECLINED the auth request, and add the\n context.getStateMachine().sendEvent(MessageBuilder.withPayload(PaymentEvent.PRE_AUTH_DECLINED)\n .setHeader(PaymentServiceImpl.PAYMENT_ID_HEADER, context.getMessageHeader(PaymentServiceImpl.PAYMENT_ID_HEADER))\n .build());\n }\n };\n }",
"public interface INotificationService {\n\n public boolean notifyForLeaseRequest(String userId, double duration, String reason, String nameOfTool);\n\n public boolean notifyForLeaseRequest(Lease lease);\n\n}",
"public interface IAliPayService {\n\n //获取二维码\n public AliResponse getQrcode(AliPay pay) throws Exception;\n\n //用户下单通知\n public NotifyResponse returnNotify(Map param,String charset) throws Exception;\n\n public static class CallbackResponse {\n private String success;\n\n public String getSuccess() {\n return success;\n }\n\n public void setSuccess(String success) {\n this.success = success;\n }\n\n }\n\n public static class NotifyData{\n\n private String partner;\n private String qrcode;\n //商品名称\n private String subject;\n //支付宝交易号\n private String trade_no;\n //商户网站唯一订单号\n private String out_trade_no;\n //交易总金额\n private String total_fee;\n //交易状态\n private String trade_status;\n //买家支付宝账号\n private String buyer_email;\n //交易创建时间 yyyy-MM-dd HH:mm:ss\n private String gmt_create;\n //交易付款时间 yyyy-MM-dd HH:mm:ss\n private String gmt_payment;\n\n public String getPartner() {\n return partner;\n }\n\n public void setPartner(String partner) {\n this.partner = partner;\n }\n\n public String getQrcode() {\n return qrcode;\n }\n\n public void setQrcode(String qrcode) {\n this.qrcode = qrcode;\n }\n\n public String getSubject() {\n return subject;\n }\n\n public void setSubject(String subject) {\n this.subject = subject;\n }\n\n public String getTrade_no() {\n return trade_no;\n }\n\n public void setTrade_no(String trade_no) {\n this.trade_no = trade_no;\n }\n\n public String getOut_trade_no() {\n return out_trade_no;\n }\n\n public void setOut_trade_no(String out_trade_no) {\n this.out_trade_no = out_trade_no;\n }\n\n public String getTotal_fee() {\n return total_fee;\n }\n\n public void setTotal_fee(String total_fee) {\n this.total_fee = total_fee;\n }\n\n public String getTrade_status() {\n return trade_status;\n }\n\n public void setTrade_status(String trade_status) {\n this.trade_status = trade_status;\n }\n\n public String getBuyer_email() {\n return buyer_email;\n }\n\n public void setBuyer_email(String buyer_email) {\n this.buyer_email = buyer_email;\n }\n\n public String getGmt_create() {\n return gmt_create;\n }\n\n public void setGmt_create(String gmt_create) {\n this.gmt_create = gmt_create;\n }\n\n public String getGmt_payment() {\n return gmt_payment;\n }\n\n public void setGmt_payment(String gmt_payment) {\n this.gmt_payment = gmt_payment;\n }\n\n public boolean isSuccess() throws Exception{\n return \"TRADE_FINISHED\".equals(trade_status) || \"TRADE_SUCCESS\".equals(trade_status);\n }\n }\n\n public static class NotifyResponse{\n\n private String out_trade_no;\n private String is_success;\n private String error_code;\n\n public String getOut_trade_no() {\n return out_trade_no;\n }\n\n public void setOut_trade_no(String out_trade_no) {\n this.out_trade_no = out_trade_no;\n }\n\n public String getIs_success() {\n return is_success;\n }\n\n public void setIs_success(String is_success) {\n this.is_success = is_success;\n }\n\n public String getError_code() {\n return error_code;\n }\n\n public void setError_code(String error_code) {\n this.error_code = error_code;\n }\n\n @JsonIgnore\n public boolean isSuccess() {\n return \"T\".equals(is_success);\n }\n\n }\n\n public static class NotifyPay {\n //买家支付宝账号对应的支付宝唯一用户号。以2088开头的纯16位数字\n private String user_id;\n //二维码\n private String qrcode;\n //用户下单的商品编号\n private String goods_id;\n //用户下单的商品名称\n private String goods_name;\n //用户购买指定商品的数量\n private String quantity;\n //用户购买商品的总价,单位元,精确到小数点后2位\n private String price;\n //通常表示规格、颜色、款式等\n private String sku_id;\n //商品属性名称\n private String sku_name;\n //只有个别支付宝特约商户才需要处理该返回值,其他商户不需要解析该字段\n private String context_data;\n\n //收货人所在省份\n private String prov;\n //收货人所在城市\n private String city;\n //收货人所在县区名称\n private String area;\n //收货人详细地址\n private String address;\n //收货人姓名\n private String buyer_name;\n //收货人地址的邮政编码\n private String post_code;\n //收货人联系电话\n private String phone;\n\n //签名\n private String sign;\n public String getUser_id() {\n return user_id;\n }\n\n public void setUser_id(String user_id) {\n this.user_id = user_id;\n }\n\n public String getQrcode() {\n return qrcode;\n }\n\n public void setQrcode(String qrcode) {\n this.qrcode = qrcode;\n }\n\n public String getGoods_id() {\n return goods_id;\n }\n\n public void setGoods_id(String goods_id) {\n this.goods_id = goods_id;\n }\n\n public String getGoods_name() {\n return goods_name;\n }\n\n public void setGoods_name(String goods_name) {\n this.goods_name = goods_name;\n }\n\n public String getQuantity() {\n return quantity;\n }\n\n public void setQuantity(String quantity) {\n this.quantity = quantity;\n }\n\n public String getPrice() {\n return price;\n }\n\n public void setPrice(String price) {\n this.price = price;\n }\n\n public String getSku_id() {\n return sku_id;\n }\n\n public void setSku_id(String sku_id) {\n this.sku_id = sku_id;\n }\n\n public String getSku_name() {\n return sku_name;\n }\n\n public void setSku_name(String sku_name) {\n this.sku_name = sku_name;\n }\n\n public String getContext_data() {\n return context_data;\n }\n\n public void setContext_data(String context_data) {\n this.context_data = context_data;\n }\n\n public String getProv() {\n return prov;\n }\n\n public void setProv(String prov) {\n this.prov = prov;\n }\n\n public String getCity() {\n return city;\n }\n\n public void setCity(String city) {\n this.city = city;\n }\n\n public String getArea() {\n return area;\n }\n\n public void setArea(String area) {\n this.area = area;\n }\n\n public String getAddress() {\n return address;\n }\n\n public void setAddress(String address) {\n this.address = address;\n }\n\n public String getBuyer_name() {\n return buyer_name;\n }\n\n public void setBuyer_name(String buyer_name) {\n this.buyer_name = buyer_name;\n }\n\n public String getPost_code() {\n return post_code;\n }\n\n public void setPost_code(String post_code) {\n this.post_code = post_code;\n }\n\n public String getPhone() {\n return phone;\n }\n\n public void setPhone(String phone) {\n this.phone = phone;\n }\n\n public String getSign() {\n return sign;\n }\n\n public void setSign(String sign) {\n this.sign = sign;\n }\n\n }\n\n public static class ResponseKey{\n public String name;\n @JacksonXmlText\n public String value;\n\n public String getName() {\n return name;\n }\n\n public void setName(String name) {\n this.name = name;\n }\n\n public String getValue() {\n return value;\n }\n\n public void setValue(String value) {\n this.value = value;\n }\n }\n\n public static class AliPay{\n\n //接口名称 alipay.mobile.qrcode.manage\n private String service;\n //合作者身份ID\n private String partner;\n //参数编码字符集\n private String _input_charset;\n //sign_type MD5\n private String sign_type;\n //签名\n private String sign;\n //接口调用时间\n private String timestamp;\n //动作 add modify stop restart\n private String method;\n //二维码 “https://qr.alipay.com/”开头,加上一串字符串。\n private String qrcode;\n //业务类型 10:商品码;9:商户码(友宝售货机码),友宝目前只支持9;11:链接码;12:链接码(预授权业务)。\n private String biz_type;\n //业务数据\n private BizData biz_data;\n\n public static class BizData{\n\n //交易类型 1:即时到账 2:担保交易 当本参数设置为2时,need_address必须为T。\n private String trade_type;\n //是否需要收货地址 T:需要 F:不需要\n private String need_address;\n //商品明细\n private GoodsInfo goods_info;\n //通知商户下单URL\n private String return_url;\n //通知商户支付结果url\n private String notify_url;\n //查询商品信息url\n private String query_url;\n //扩展属性\n private ExtInfo ext_info;\n //备注\n private String memo;\n //链接地址\n private String url;\n\n public String getUrl() {\n return url;\n }\n\n public void setUrl(String url) {\n this.url = url;\n }\n\n public String getTrade_type() {\n return trade_type;\n }\n\n public void setTrade_type(String trade_type) {\n this.trade_type = trade_type;\n }\n\n public String getNeed_address() {\n return need_address;\n }\n\n public void setNeed_address(String need_address) {\n this.need_address = need_address;\n }\n\n public GoodsInfo getGoods_info() {\n return goods_info;\n }\n\n public void setGoods_info(GoodsInfo goods_info) {\n this.goods_info = goods_info;\n }\n\n public String getReturn_url() {\n return return_url;\n }\n\n public void setReturn_url(String return_url) {\n this.return_url = return_url;\n }\n\n public String getNotify_url() {\n return notify_url;\n }\n\n public void setNotify_url(String notify_url) {\n this.notify_url = notify_url;\n }\n\n public String getQuery_url() {\n return query_url;\n }\n\n public void setQuery_url(String query_url) {\n this.query_url = query_url;\n }\n\n public ExtInfo getExt_info() {\n return ext_info;\n }\n\n public void setExt_info(ExtInfo ext_info) {\n this.ext_info = ext_info;\n }\n\n public String getMemo() {\n return memo;\n }\n\n public void setMemo(String memo) {\n this.memo = memo;\n }\n public static class GoodsInfo{\n\n //商品编号\n private String id;\n //商品名称\n private String name;\n //商品价格\n private String price;\n //商品总库存\n private String inventory;\n //商品属性标题\n private String sku_title;\n //商品属性\n private List<Sku> sku;\n //商品有效期\n private String expiry_date;\n //商品描述\n private String desc;\n\n public String getId() {\n return id;\n }\n\n public void setId(String id) {\n this.id = id;\n }\n\n public String getName() {\n return name;\n }\n\n public void setName(String name) {\n this.name = name;\n }\n\n public String getPrice() {\n return price;\n }\n\n public void setPrice(String price) {\n this.price = price;\n }\n\n public String getInventory() {\n return inventory;\n }\n\n public void setInventory(String inventory) {\n this.inventory = inventory;\n }\n\n public String getSku_title() {\n return sku_title;\n }\n\n public void setSku_title(String sku_title) {\n this.sku_title = sku_title;\n }\n\n public List<Sku> getSku() {\n return sku;\n }\n\n public void setSku(List<Sku> sku) {\n this.sku = sku;\n }\n\n public String getExpiry_date() {\n return expiry_date;\n }\n\n public void setExpiry_date(String expiry_date) {\n this.expiry_date = expiry_date;\n }\n\n public String getDesc() {\n return desc;\n }\n\n public void setDesc(String desc) {\n this.desc = desc;\n }\n\n public static class Sku{\n\n private String sku_id;\n private String sku_name;\n private String sku_price;\n private String sku_inventory;\n\n public String getSku_id() {\n return sku_id;\n }\n\n public void setSku_id(String sku_id) {\n this.sku_id = sku_id;\n }\n\n public String getSku_name() {\n return sku_name;\n }\n\n public void setSku_name(String sku_name) {\n this.sku_name = sku_name;\n }\n\n public String getSku_price() {\n return sku_price;\n }\n\n public void setSku_price(String sku_price) {\n this.sku_price = sku_price;\n }\n\n public String getSku_inventory() {\n return sku_inventory;\n }\n\n public void setSku_inventory(String sku_inventory) {\n this.sku_inventory = sku_inventory;\n }\n }\n }\n public static class ExtInfo{\n\n //单次购买上限\n private String single_limit;\n //单用户购买上限\n private String user_limit;\n //支付超时时间\n private String pay_timeout;\n //二维码logo名称\n private String logo_name;\n //自定义收集用户信息扩展字段\n private String ext_field;\n\n public String getSingle_limit() {\n return single_limit;\n }\n\n public void setSingle_limit(String single_limit) {\n this.single_limit = single_limit;\n }\n\n public String getUser_limit() {\n return user_limit;\n }\n\n public void setUser_limit(String user_limit) {\n this.user_limit = user_limit;\n }\n\n public String getPay_timeout() {\n return pay_timeout;\n }\n\n public void setPay_timeout(String pay_timeout) {\n this.pay_timeout = pay_timeout;\n }\n\n public String getLogo_name() {\n return logo_name;\n }\n\n public void setLogo_name(String logo_name) {\n this.logo_name = logo_name;\n }\n\n public String getExt_field() {\n return ext_field;\n }\n\n public void setExt_field(String ext_field) {\n this.ext_field = ext_field;\n }\n }\n }\n\n\n public String getService() {\n return service;\n }\n\n public void setService(String service) {\n this.service = service;\n }\n\n public String getPartner() {\n return partner;\n }\n\n public void setPartner(String partner) {\n this.partner = partner;\n }\n\n public String get_input_charset() {\n return _input_charset;\n }\n\n public void set_input_charset(String _input_charset) {\n this._input_charset = _input_charset;\n }\n\n public String getSign_type() {\n return sign_type;\n }\n\n public void setSign_type(String sign_type) {\n this.sign_type = sign_type;\n }\n\n public String getSign() {\n return sign;\n }\n\n public void setSign(String sign) {\n this.sign = sign;\n }\n\n public String getTimestamp() {\n return timestamp;\n }\n\n public void setTimestamp(String timestamp) {\n this.timestamp = timestamp;\n }\n\n public String getMethod() {\n return method;\n }\n\n public void setMethod(String method) {\n this.method = method;\n }\n\n public String getQrcode() {\n return qrcode;\n }\n\n public void setQrcode(String qrcode) {\n this.qrcode = qrcode;\n }\n\n public String getBiz_type() {\n return biz_type;\n }\n\n public void setBiz_type(String biz_type) {\n this.biz_type = biz_type;\n }\n\n public BizData getBiz_data() {\n return biz_data;\n }\n\n public void setBiz_data(BizData biz_data) {\n this.biz_data = biz_data;\n }\n }\n\n public class AliResponse {\n private String is_success;\n private String error;\n private Request request;\n\n private Response response;\n\n private String sign;\n\n private String sign_type;\n\n public String getIs_success() {\n return is_success;\n }\n\n public void setIs_success(String is_success) {\n this.is_success = is_success;\n }\n\n public String getError() {\n return error;\n }\n\n public void setError(String error) {\n this.error = error;\n }\n\n public Request getRequest() {\n return request;\n }\n\n public void setRequest(Request request) {\n this.request = request;\n }\n\n public Response getResponse() {\n return response;\n }\n\n public void setResponse(Response response) {\n this.response = response;\n }\n\n public String getSign() {\n return sign;\n }\n\n public void setSign(String sign) {\n this.sign = sign;\n }\n\n public String getSign_type() {\n return sign_type;\n }\n\n public void setSign_type(String sign_type) {\n this.sign_type = sign_type;\n }\n\n public static class Request{\n @JacksonXmlElementWrapper(useWrapping = false)\n private List<ResponseKey> param;\n\n public List<ResponseKey> getParam() {\n return param;\n }\n\n public void setParam(List<ResponseKey> param) {\n this.param = param;\n }\n }\n\n public static class Response{\n private Alipay alipay;\n\n public Alipay getAlipay() {\n return alipay;\n }\n\n public void setAlipay(Alipay alipay) {\n this.alipay = alipay;\n }\n\n public static class Alipay{\n private String qrcode;\n private String qrcode_img_url;\n private String result_code;\n private String error_message;\n\n public String getQrcode() {\n return qrcode;\n }\n\n public void setQrcode(String qrcode) {\n this.qrcode = qrcode;\n }\n\n public String getQrcode_img_url() {\n return qrcode_img_url;\n }\n\n public void setQrcode_img_url(String qrcode_img_url) {\n this.qrcode_img_url = qrcode_img_url;\n }\n\n public String getResult_code() {\n return result_code;\n }\n\n public void setResult_code(String result_code) {\n this.result_code = result_code;\n }\n\n public String getError_message() {\n return error_message;\n }\n\n public void setError_message(String error_message) {\n this.error_message = error_message;\n }\n\n public boolean isSuccess(){\n return \"SUCCESS\".equals(result_code);\n }\n }\n\n }\n\n public boolean isSucess() throws Exception{\n return \"T\".equals(is_success);\n }\n\n }\n\n\n}",
"private void addPaymentAbandonedEvent() {\n /*09th July 2019, Resolved Pyze library issue*/\n HashMap<String, Object> customAttributes = new HashMap<String, Object>();\n customAttributes.put(\"packageID\", String.valueOf(PackageID));\n customAttributes.put(\"userID\", String.valueOf(UserID));\n customAttributes.put(\"paymentType\", getIntent().getStringExtra(\"PaymentType\"));\n PyzeEvents.PyzeCommercePayment.postPaymentAbandoned(customAttributes);\n\n sendToMixpanel(false, true);\n\n }",
"public Payment createPayment(PaymentEvent paymentEvt, String idempKey) {\n\n\t\tLOGGER.info(\"Procesando pago para el usuario -> {}, currency -> {}, amount -> {}, idempkey -> {} \", paymentEvt.getUser_id(), paymentEvt.getCurrency(), paymentEvt.getAmount(), idempKey);\n\n\t\t//check paramas + unicidad del pago\n\t\tcheckPaymentEvt(paymentEvt, idempKey);\n\n\t\t//convierte a la moneda default el monto recibido \n\t\tDouble originalAmount = paymentEvt.getAmount();\n\t\tDouble amountInCurrencyDefault = currencyService.convertToCurrencyDefault(paymentEvt.getCurrency(), originalAmount);\n\n\t\t//se obtiene los cargos con deuda\n\t\tList<ChargeTO> pendingCharges = chargeService.getPendingCharges(paymentEvt.getUser_id());\n\t\tDouble totalDebt = pendingCharges.stream().map(c -> c.getAmountPending()).reduce(0d, (v1,v2) -> v1+v2 ).doubleValue();\n\t\t\n\t\t//monto del pago <= deuda total\n\t\tcheckDebtTotal(totalDebt, amountInCurrencyDefault);\n\t\n\t\t//se agregan los cargos pagados a la lista de cargos del pago\n\t\tPayment payment = new Payment(paymentEvt, amountInCurrencyDefault, idempKey);\n\t\tDouble pagoAmount = payment.getAmount();\n\t\tfor(ChargeTO chargeTO : pendingCharges) {\n\t\t\tif(pagoAmount > 0) {\n\t\t\t\tDouble amountToUSe = Math.min(pagoAmount, chargeTO.getAmountPending());\n\t\t\t\tpagoAmount = pagoAmount - amountToUSe;\n\t\t\t\tpayment.getCharges().add(new Charge(chargeTO, amountToUSe));\n\t\t\t}\n\t\t}\n\n\t\t//se graba el pago\n\t\tPayment paymentInserted = paymentRepo.insert(payment);\n\n\t\t//se encola el pago en la cola de cargos\n\t\tqueueChargeService.enqueuePayment(paymentInserted);\n\n\t\treturn paymentInserted;\n\t}",
"private void createNotificationChannel() {\n if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.O) {\r\n CharSequence name = \"Picture upload\";\r\n String description =\"PRIKACENA SLIKA\";\r\n int importance = NotificationManager.IMPORTANCE_DEFAULT;\r\n NotificationChannel channel = new NotificationChannel(\"slika1\", name, importance);\r\n channel.setDescription(description);\r\n // Register the channel with the system; you can't change the importance\r\n // or other notification behaviors after this\r\n NotificationManager notificationManager = getSystemService(NotificationManager.class);\r\n notificationManager.createNotificationChannel(channel);\r\n }\r\n }",
"private void pay() {\r\n System.out.println(\"Customer sent payment\");\r\n }",
"Delivery createDelivery();",
"public void createCard(final WebsiteInterface.WebsiteResult verification){\n Response.Listener<JSONObject> createCard = setResponse(verification);\n //start the network request\n NetworkRequest networkRequest = new NetworkRequest(this.appContext);\n //Set the api endpoint\n String api = WebsiteInterface.CREATE_CARD;\n //set method to be POST request\n int method = networkRequest.getMethod(\"POST\");\n try {\n //set the body of the json post request\n JSONObject toPost = new JSONObject(\n \"{\\\"id\\\": \"+ id + \", \\\"front\\\": \"+ question + \", \\\"back\\\": \"+ answer + \"}\"\n );\n //send the network request to the Volley queue\n networkRequest.addToRequestQueue(new JsonObjectRequest(\n method,\n api,\n toPost,\n createCard,\n error\n ));\n } catch (JSONException e) {\n Log.e(\"FlashCard insertcard\", e.getMessage());\n }\n }",
"public void createNotification(View view) {\n Intent intent = new Intent(this, Status1.class);\r\n PendingIntent pIntent = PendingIntent.getActivity(this, 0, intent, 0);\r\n\r\n // Build notification\r\n // Actions are just fake\r\n Notification noti = new Notification.Builder(this)\r\n .setContentTitle(\"RKC App \")\r\n .setContentText(\"Click To Enter \").setSmallIcon(R.drawable.arc)\r\n .setContentIntent(pIntent)\r\n .addAction(R.drawable.ironman, \"Back\", pIntent)\r\n .addAction(R.drawable.gun, \"More\", pIntent)\r\n .build();\r\n NotificationManager notificationManager = (NotificationManager) getSystemService(NOTIFICATION_SERVICE);\r\n // hide the notification after its selected\r\n noti.flags |= Notification.FLAG_AUTO_CANCEL;\r\n\r\n notificationManager.notify(0, noti);\r\n\r\n }",
"protected void notificationOnExpiration() {\n }",
"public Notifications(Integer postID, Integer receiversID,\n Integer providerID, String type){\n //PostID, requesterID, providerID need to create variable?\n this.type = type;\n this.postID = postID;\n this.requesterID = receiversID;\n this.providerID = providerID;\n this.setProvider(providerID);\n }",
"private void createRequest() {\n GoogleSignInOptions gso = new GoogleSignInOptions.Builder(GoogleSignInOptions.DEFAULT_SIGN_IN)\n .requestIdToken(getString(default_web_client_id))\n .requestEmail()\n .build();\n\n mGoogleSignInClient = GoogleSignIn.getClient(Signup.this, gso);\n\n\n }",
"Message create(MessageInvoice invoice);",
"@Override\n public void createNotification(Notification notification) {\n Player p = Bukkit.getPlayer(notification.getPlayer()); //TODO uuid\n if (p != null && p.isOnline()) {\n showNotification(notification, false);\n }\n try {\n notificationIntegerDao.createIfNotExists(notification);\n } catch (SQLException e) {\n logSQLError(e);\n }\n }",
"@Override\r\n\tpublic Notification createEmailNotification() {\n\t\treturn null;\r\n\t}",
"public Action<PaymentState, PaymentEvent> getOverrideCode(){\n\n return ctx -> {\n log.info(\"<<< Override Code service has been called >>>\");\n if(new Random().nextInt(10) < 8){\n log.info(\"Override auth request Approved\");\n log.info(\"<<< Setting event to BAL_OK which should move the state to MAKE_PAYMENT>>>\");\n ctx.getStateMachine().sendEvent(MessageBuilder.withPayload(PaymentEvent.OVERDRAFT_OK).setHeader(PaymentServiceImpl.PAYMENT_ID_HEADER, ctx.getMessageHeader(PaymentServiceImpl.PAYMENT_ID_HEADER)).build());\n } else {\n log.info(\"Override auth request Rejected\");\n log.info(\"<<< Setting event to BAL_KO which should move the state to DENY_PAYMENT>>>\");\n ctx.getStateMachine().sendEvent(MessageBuilder.withPayload(PaymentEvent.OVERDRAFT_KO).setHeader(PaymentServiceImpl.PAYMENT_ID_HEADER, ctx.getMessageHeader(PaymentServiceImpl.PAYMENT_ID_HEADER)).build());\n }\n\n };\n }",
"@Override\n public void onNext(RequestData request) {\n System.out.println(\"Requestor:\" + request.getName());\n System.out.println(\"Request Message:\" + request.getMessage());\n responseObserver.onNext(ResponseData.newBuilder().setMessage(request.getMessage() + \" - \" + request.getName()).build());\n }",
"void purchaseMade();",
"public void makePayment(String amount, String paymentRef) {\n JudoSDKManager.setKeyAndSecret(getApplicationContext(), API_TOKEN, API_SECRET);\n\n// Set environment to Sandbox\n JudoSDKManager.setSandboxMode(getApplicationContext());\n\n String customerRef = Settings.Secure.getString(getApplicationContext().getContentResolver(),\n Settings.Secure.ANDROID_ID);\n\n Intent intent = JudoSDKManager.makeAPayment(getApplicationContext(), JUDO_ID, \"GBP\", amount, paymentRef, customerRef, null);\n startActivityForResult(intent, ACTION_CARD_PAYMENT);\n }",
"public interface ApnsNotification {\r\n\r\n /**\r\n * Returns the binary representation of the device token.\r\n */\r\n public byte[] getDeviceToken();\r\n\r\n /**\r\n * Returns the binary representation of the payload.\r\n *\r\n */\r\n public byte[] getPayload();\r\n\r\n /**\r\n * Returns the identifier of the current message. The\r\n * identifier is an application generated identifier.\r\n *\r\n * @return the notification identifier\r\n */\r\n public int getIdentifier();\r\n\r\n /**\r\n * Returns the expiry date of the notification, a fixed UNIX\r\n * epoch date expressed in seconds\r\n *\r\n * @return the expiry date of the notification\r\n */\r\n public int getExpiry();\r\n\r\n /**\r\n * Returns the binary representation of the message as expected by the\r\n * APNS server.\r\n *\r\n * The returned array can be used to sent directly to the APNS server\r\n * (on the wire/socket) without any modification.\r\n */\r\n public byte[] marshall();\r\n}",
"@RequestMapping(value = \"/api/v1/device/notify\", method = RequestMethod.POST, consumes = \"application/json\", produces = \"application/json\")\n\tpublic RestResponse notify(@RequestBody NotifyConfigurationRequest request) {\n\t\tRestResponse response = new RestResponse();\n\n\t\ttry {\n\t\t\tAuthenticatedUser user = this.authenticate(request.getCredentials(), EnumRole.ROLE_USER);\n\n\t\t\tdeviceRepository.notifyConfiguration(user.getKey(), request.getDeviceKey(), request.getVersion(),\n\t\t\t\t\t\t\tnew DateTime(request.getUpdatedOn()));\n\t\t} catch (Exception ex) {\n\t\t\tlogger.error(ex.getMessage(), ex);\n\n\t\t\tresponse.add(this.getError(ex));\n\t\t}\n\n\t\treturn response;\n\t}",
"public void startPayment() {\n double ruppes = Double.parseDouble(price);\n final Activity activity = this;\n final Checkout co = new Checkout();\n try {\n JSONObject options = new JSONObject();\n options.put(\"name\", getResources().getString(R.string.application_name));\n options.put(\"description\", \"\");\n //You can omit the image option to fetch the image from dashboard\n options.put(\"image\", getResources().getDrawable(R.mipmap.ic_app_logo));\n options.put(\"currency\", \"INR\");\n options.put(\"amount\", ruppes * 100);\n JSONObject preFill = new JSONObject();\n preFill.put(\"email\", \"multipz.paresh@gmail.com\");\n preFill.put(\"contact\", \"8758689113\");\n options.put(\"prefill\", preFill);\n co.open(activity, options);\n } catch (Exception e) {\n Toast.makeText(activity, \"Error in payment: \" + e.getMessage(), Toast.LENGTH_SHORT)\n .show();\n e.printStackTrace();\n }\n }",
"Provider createProvider(Provider prov, Aggregator agr) throws RepoxException;",
"Provider createProvider(Provider prov, Aggregator agr) throws RepoxException;",
"public void createDelayNotification (Invite inv) {\n Notification notification = new Notification();\n notification.setRelatedEvent(inv.getEvent());\n notification.setNotificatedUser(inv.getUser());\n notification.setSeen(false);\n notification.setType(NotificationType.delayedEvent);\n notification.setGenerationDate(new Date());\n em.persist(notification);\n \n \n }",
"public static Notification createNotification(XmlAppConfigurationProvider appConfigurationProvider,\n Context context, String title, String content, Bundle intentExtras) {\n int smallNotificationIconResourceId = appConfigurationProvider.getSmallNotificationIconResourceId();\n if (smallNotificationIconResourceId == 0) {\n Log.d(TAG, \"Small notification icon resource was not found. Will use the app icon when \" +\n \"displaying notifications.\");\n smallNotificationIconResourceId = appConfigurationProvider.getApplicationIconResourceId();\n }\n\n NotificationCompat.Builder notificationBuilder = new NotificationCompat.Builder(context);\n notificationBuilder.setTicker(title);\n notificationBuilder.setAutoCancel(true);\n\n // Create broadcast intent that will fire when the notification has been opened. To action on these messages,\n // register a broadcast receiver that listens to intent <your_package_name>.intent.APPBOY_NOTIFICATION_OPENED\n // and <your_package_name>.intent.APPBOY_PUSH_RECEIVED.\n String pushOpenedAction = context.getPackageName() + \".intent.APPBOY_NOTIFICATION_OPENED\";\n Intent pushOpenedIntent = new Intent(pushOpenedAction);\n if (intentExtras != null) {\n pushOpenedIntent.putExtras(intentExtras);\n }\n PendingIntent pushOpenedPendingIntent = PendingIntent.getBroadcast(context, 0, pushOpenedIntent, PendingIntent.FLAG_ONE_SHOT);\n notificationBuilder.setContentIntent(pushOpenedPendingIntent);\n\n\n // Sets the icon used in the notification bar itself.\n notificationBuilder.setSmallIcon(smallNotificationIconResourceId);\n notificationBuilder.setContentTitle(title);\n notificationBuilder.setContentText(content);\n\n // Setting notification sounds are supported after Honeycomb.\n if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.HONEYCOMB && intentExtras != null) {\n // Retrieve sound uri if included in intentExtras bundle.\n if (intentExtras.containsKey(Constants.APPBOY_PUSH_NOTIFICATION_SOUND_KEY)) {\n String soundURI = intentExtras.getString(Constants.APPBOY_PUSH_NOTIFICATION_SOUND_KEY);\n if(soundURI != null) {\n if (soundURI.equals(Constants.APPBOY_PUSH_NOTIFICATION_SOUND_DEFAULT_VALUE)) {\n notificationBuilder.setDefaults(Notification.DEFAULT_SOUND);\n } else {\n notificationBuilder.setSound(Uri.parse(soundURI));\n }\n\n }\n }\n }\n\n // From Honeycomb to ICS, we can use a custom view for our notifications which will allow them to be taller than\n // the standard one line of text.\n if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.HONEYCOMB && Build.VERSION.SDK_INT < Build.VERSION_CODES.JELLY_BEAN) {\n Resources resources = context.getResources();\n String packageName = context.getPackageName();\n\n int layoutResourceId = resources.getIdentifier(APPBOY_NOTIFICATION_ID, \"layout\", packageName);\n int titleResourceId = resources.getIdentifier(APPBOY_NOTIFICATION_TITLE_ID, \"id\", packageName);\n int contentResourceId = resources.getIdentifier(APPBOY_NOTIFICATION_CONTENT_ID, \"id\", packageName);\n int iconResourceId = resources.getIdentifier(APPBOY_NOTIFICATION_ICON_ID, \"id\", packageName);\n int timeViewResourceId = resources.getIdentifier(APPBOY_NOTIFICATION_TIME_ID, \"id\", packageName);\n int twentyFourHourFormatResourceId = resources.getIdentifier(APPBOY_NOTIFICATION_TWENTY_FOUR_HOUR_FORMAT_ID, \"string\", packageName);\n int twelveHourFormatResourceId = resources.getIdentifier(APPBOY_NOTIFICATION_TWELVE_HOUR_FORTMAT_ID, \"string\", packageName);\n\n String twentyFourHourTimeFormat = getOptionalStringResource(resources,\n twentyFourHourFormatResourceId, Constants.DEFAULT_TWENTY_FOUR_HOUR_TIME_FORMAT);\n String twelveHourTimeFormat = getOptionalStringResource(resources,\n twelveHourFormatResourceId, Constants.DEFAULT_TWELVE_HOUR_TIME_FORMAT);\n\n if (layoutResourceId == 0 || titleResourceId == 0 || contentResourceId == 0 || iconResourceId == 0\n || timeViewResourceId == 0) {\n Log.w(TAG, String.format(\"Couldn't find all resource IDs for custom notification view, extended view will \" +\n \"not be used for push notifications. Received %d for layout, %d for title, %d for content, %d for icon, \" +\n \"and %d for time.\",\n layoutResourceId, titleResourceId, contentResourceId, iconResourceId, timeViewResourceId));\n } else {\n Log.d(TAG, \"Using RemoteViews for rendering of push notification.\");\n RemoteViews remoteViews = new RemoteViews(packageName, layoutResourceId);\n remoteViews.setTextViewText(titleResourceId, title);\n remoteViews.setTextViewText(contentResourceId, content);\n remoteViews.setImageViewResource(iconResourceId, smallNotificationIconResourceId);\n\n // Custom views cannot be used as part of a RemoteViews so we're using a TextView widget instead. This\n // view will always display the time without date information (even after the day has changed).\n SimpleDateFormat timeFormat = new SimpleDateFormat(\n android.text.format.DateFormat.is24HourFormat(context) ? twentyFourHourTimeFormat : twelveHourTimeFormat);\n String notificationTime = timeFormat.format(new Date());\n remoteViews.setTextViewText(timeViewResourceId, notificationTime);\n notificationBuilder.setContent(remoteViews);\n return notificationBuilder.build();\n }\n }\n\n // If we're using Jelly Bean, we can use the Big View Style, which lets the notification layout size grow to\n // accommodate longer text and images.\n if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.JELLY_BEAN) {\n\n // Summary text which appears with content in expanded view.\n String summaryText = \"\";\n\n // If there is an image url found in the extras payload and the image can be downloaded, then\n // use the android BigPictureStyle as the notification. Else, use the BigTextStyle instead.\n if (intentExtras != null) {\n\n // Retrieve summary text if included in intentExtras bundle.\n if (intentExtras.containsKey(Constants.APPBOY_PUSH_SUMMARY_TEXT_KEY)) {\n summaryText = intentExtras.getString(Constants.APPBOY_PUSH_SUMMARY_TEXT_KEY);\n }\n\n // Set a custom notification priority if defined in the bundle.\n notificationBuilder.setPriority(getNotificationPriority(intentExtras));\n\n Bundle extrasBundle = getExtrasBundle(intentExtras);\n if (extrasBundle!=null && extrasBundle.containsKey(Constants.APPBOY_PUSH_BIG_IMAGE_URL_KEY)) {\n String imageUrl = extrasBundle.getString(Constants.APPBOY_PUSH_BIG_IMAGE_URL_KEY);\n Bitmap imageBitmap = downloadImageBitmap(imageUrl);\n if (imageBitmap != null) {\n Log.d(TAG, \"Rendering push notification with BigPictureStyle\");\n\n return getBigPictureNotification(notificationBuilder, imageBitmap, content, summaryText);\n } else {\n Log.d(TAG, \"Bitmap download failed for push notification\");\n }\n }\n }\n Log.d(TAG, \"Rendering push notification with BigTextStyle\");\n return getBigTextNotification(notificationBuilder, content, summaryText);\n }\n return notificationBuilder.build();\n }",
"private static void generateNotification(Context context, Bundle bundle) {\n\t\tint icon = R.drawable.icon;\n\t\tlong when = System.currentTimeMillis();\n\t\tString message = bundle.getString(\"message\");\n\t\tNotificationManager notificationManager = (NotificationManager) context\n\t\t\t\t.getSystemService(Context.NOTIFICATION_SERVICE);\n\t\tNotification notification = new Notification(icon, message, when);\n\t\tString title = context.getString(R.string.app_name);\n\t\tIntent notificationIntent = new Intent(context, NetasDemoActivity.class);\n\n\t\tnotificationIntent.putExtras(bundle);\n\n\t\t// set intent so it does not start a new activity\n\t\tnotificationIntent.setFlags(Intent.FLAG_ACTIVITY_CLEAR_TOP\n\t\t\t\t| Intent.FLAG_ACTIVITY_NEW_TASK);\n\t\tPendingIntent intent = PendingIntent.getActivity(context, 0,\n\t\t\t\tnotificationIntent, PendingIntent.FLAG_UPDATE_CURRENT);\n\t\tnotification.defaults |= Notification.DEFAULT_SOUND\n\t\t\t\t| notification.DEFAULT_LIGHTS | notification.DEFAULT_VIBRATE;\n\t\t// long[] vibrate = {0,100,200,300};\n\t\t// notification.vibrate = vibrate;\n\t\tnotification.setLatestEventInfo(context, title, message, intent);\n\t\tnotification.flags |= Notification.FLAG_AUTO_CANCEL\n\t\t\t\t| Notification.FLAG_SHOW_LIGHTS;\n\t\tnotification.ledOnMS = 1000; // light on in milliseconds\n\t\tnotification.ledOffMS = 4000; // light off in milliseconds\n\t\tnotificationManager.notify(0, notification);\n\t}",
"public void makePayment() {\r\n System.out.println(\"pay\");\r\n setPayed(true);\r\n }",
"public\n synchronized void processRegister(Request request, SipProvider sipProvider,\n ServerTransaction serverTransaction ) {\n try{\n MessageFactory messageFactory=proxy.getMessageFactory();\n \n String key=getKey(request);\n\n // Add the key if it is a new user:\n if (ProxyDebug.debug){\n ProxyDebug.println\n (\"Registrar, processRegister(), key: \\\"\"+key+\"\\\"\");\n }\n if (key==null){\n if (ProxyDebug.debug) {\n ProxyDebug.println\n (\"Registrar, processRegister(), key is null\"+\n \" 400 INVALID REQUEST replied\");\n }\n Response response=messageFactory.createResponse\n (Response.BAD_REQUEST,request);\n if (serverTransaction!=null)\n serverTransaction.sendResponse(response);\n else sipProvider.sendResponse(response);\n return ;\n }\n \n // RFC 3261: 10.3:\n /* 6. The registrar checks whether the request contains the Contact\n header field. If not, it skips to the last step. If the\n Contact header field is present, the registrar checks if there\n is one Contact field value that contains the special value \"*\"\n and an Expires field. If the request has additional Contact\n fields or an expiration time other than zero, the request is\n invalid, and the server MUST return a 400 (Invalid Request) and\n skip the remaining steps. If not, the registrar checks whether\n the Call-ID agrees with the value stored for each binding. If\n not, it MUST remove the binding. If it does agree, it MUST\n remove the binding only if the CSeq in the request is higher\n than the value stored for that binding. Otherwise, the update\n MUST be aborted and the request fails.\n */\n \n if ( !hasContactHeaders(request) ) {\n Vector contactHeaders=getContactHeaders(key);\n Response response=messageFactory.createResponse\n (Response.OK,request);\n if ( contactHeaders!=null ) {\n for (int i = 0 ; i < contactHeaders.size(); i++) {\n ContactHeader contact = (ContactHeader)\n contactHeaders.elementAt(i);\n response.addHeader(contact);\n }\n }\n \n if (serverTransaction!=null)\n serverTransaction.sendResponse(response);\n else sipProvider.sendResponse(response);\n if (ProxyDebug.debug) {\n ProxyDebug.println\n (\"Registrar, processRegister(), response sent:\"+response.toString());\n }\n return;\n }\n \n \n // bug report by Alistair Coles\n if ( hasStar(request) ) {\n Vector contactHeaders=getContactHeaders(key);\n if (contactHeaders.size()>1) {\n if (ProxyDebug.debug) {\n ProxyDebug.println\n (\"Registrar, processRegister(), more than one contact header\"+\n \" is present at the same time as a wild card.\"+\n \" 400 INVALID REQUEST replied\");\n }\n Response response=messageFactory.createResponse\n (Response.BAD_REQUEST,request);\n if (serverTransaction!=null)\n serverTransaction.sendResponse(response);\n else sipProvider.sendResponse(response);\n if (ProxyDebug.debug) {\n ProxyDebug.println\n (\"Registrar, processRegister(), response sent:\");\n ProxyDebug.print(response.toString());\n }\n return ;\n }\n \n if ( !hasExpiresZero(request) ) {\n if (ProxyDebug.debug) {\n ProxyDebug.println\n (\"Registrar, processRegister(), expires time different from\"+\n \" 0 with a wild card.\"+\n \" 400 INVALID REQUEST replied\");\n }\n Response response=messageFactory.createResponse\n (Response.BAD_REQUEST,request);\n \n if (serverTransaction!=null)\n serverTransaction.sendResponse(response);\n else sipProvider.sendResponse(response); \n if (ProxyDebug.debug) {\n ProxyDebug.println\n (\"Registrar, processRegister(), response sent:\");\n ProxyDebug.print(response.toString());\n }\n return ;\n }\n \n if (ProxyDebug.debug) {\n ProxyDebug.println\n (\"Registrar, processRegister(), (* and expires=0) \"+\n \" we remove the registration!!\");\n }\n registrationsTable.removeRegistration(key);\n \n Response response=messageFactory.createResponse\n (Response.OK,request);\n \n if (serverTransaction!=null)\n serverTransaction.sendResponse(response);\n else sipProvider.sendResponse(response); \n \n if (ProxyDebug.debug) {\n ProxyDebug.println\n (\"Registrar, processRegister(), response sent:\");\n ProxyDebug.print(response.toString());\n }\n return;\n }\n \n \n if ( registrationsTable.hasRegistration(key) ) {\n registrationsTable.updateRegistration(key,request);\n\n\t\tif ( proxy.getConfiguration().rfc2543Compatible && \n\t\tkey.indexOf(\":5060\") < 0 ) {\n\t\t //\n\t\t // Hack for Cisco IP Phone which registers incorrectly\n\t\t // by not specifying :5060.\n\t\t //\n\t\t key += \":5060\";\n\n\t\t System.out.println(\"CISCO IP PHONE FIX: \"\n\t\t\t+ \"Updating proper registration for \" \n\t\t\t+ key);\n\n registrationsTable.updateRegistration(key, request);\n\t\t}\n\n Vector contactHeaders=getContactHeaders(key);\n Response response=\n messageFactory.createResponse(Response.OK,request);\n\t\ttry{\n if ( hasExpiresZero(request) ) {\n response.addHeader(request.getHeader(ExpiresHeader.NAME));\n }\n }\n catch(Exception e){\n e.printStackTrace();\n }\n if ( contactHeaders!=null ) {\n for (int i = 0; i < contactHeaders.size(); i++) {\n ContactHeader contact = (ContactHeader)\n contactHeaders.elementAt(i);\n response.addHeader(contact);\n }\n }\n \n if (serverTransaction!=null)\n serverTransaction.sendResponse(response);\n else sipProvider.sendResponse(response); \n \n if (ProxyDebug.debug) {\n ProxyDebug.println\n (\"Registrar, processRegister(), response sent:\");\n ProxyDebug.print(response.toString());\n }\n }\n else {\n // Let's check the Expires header:\n if ( hasExpiresZero(request) ) {\n // This message is lost....\n\t\t proxy.getPresenceServer();\n ProxyDebug.println(\"Registrar, processRegister(), \"+\n \"we don't have any record for this REGISTER.\");\n Response response=messageFactory.createResponse\n (Response.OK,request);\n \n if (serverTransaction!=null)\n serverTransaction.sendResponse(response);\n else sipProvider.sendResponse(response); \n if (ProxyDebug.debug) {\n ProxyDebug.println\n (\"Registrar, processRegister(), response sent:\");\n ProxyDebug.print(response.toString());\n }\n return;\n }\n \n registrationsTable.addRegistration(key,request);\n \n\t\tif (proxy.getConfiguration().rfc2543Compatible &&\n\t\t key.indexOf(\":5060\") < 0) {\n\t\t //\n\t\t // Hack for Cisco IP Phone which registers incorrectly\n\t\t // by not specifying :5060.\n\t\t //\n\t\t key += \":5060\";\n\n\t\t System.out.println(\"CISCO IP PHONE FIX: \"\n\t\t\t+ \"adding proper registration for \" + key);\n\n registrationsTable.addRegistration(key, request);\n\t\t}\n\n // we have to forward SUBSCRIBE if the presence server\n // is enabled:\n \n if (proxy.isPresenceServer()) {\n PresenceServer presenceServer=\n proxy.getPresenceServer();\n ProxyDebug.println(\"Registrar, processRegister(), \"+\n \" we have to check if we have some SUBSCRIBE stored.\");\n }\n \n Vector contactHeaders=getContactHeaders(key);\n Response response=\n messageFactory.createResponse(Response.OK,request);\n if ( contactHeaders!=null ) {\n for (int i = 0; i < contactHeaders.size(); i++) {\n ContactHeader contact = (ContactHeader)\n contactHeaders.elementAt(i);\n response.addHeader(contact);\n }\n }\n \n if (serverTransaction!=null)\n serverTransaction.sendResponse(response);\n else sipProvider.sendResponse(response); \n \n if (ProxyDebug.debug) {\n ProxyDebug.println\n (\"Registrar, processRegister(), response sent:\");\n ProxyDebug.print(response.toString());\n }\n }\n } catch (IOException ex) {\n if (ProxyDebug.debug) {\n ProxyDebug.println(\"Registrar exception raised:\");\n ProxyDebug.logException(ex);\n\t }\n\t} catch (SipException ex) {\n if (ProxyDebug.debug) {\n ProxyDebug.println(\"Registrar exception raised:\");\n ProxyDebug.logException(ex);\n\t }\n } catch(Exception ex) {\n if (ProxyDebug.debug) {\n ProxyDebug.println\n\t\t(\"Registrar, processRegister(), internal error, \"+\n \"exception raised:\");\n ProxyDebug.logException(ex);\n }\n }\n }",
"public void createNotificacion(Notificacion notificacion) {\n\t\tlogger.info(\"Create Notificacion\");\n\n\t\tWebResource webResource = client.resource(this.config\n\t\t\t\t.getProperty(\"API_URL\")\n\t\t\t\t+ this.config.getProperty(\"API_RESOURCE_NOTIFICACION\"));\n\n\t\tClientResponse response = webResource.type(MediaType.APPLICATION_JSON)\n\t\t\t\t.header(\"ApiKey\", this.apiKey)\n\t\t\t\t.post(ClientResponse.class, notificacion);\n\n\t\thandleResponse(response);\n\n\t\tresponse.close();\n\n\t\t// System.out.println(\"Notificacion created successfully ! {\" +\n\t\t// notificacion + \"}\");\n\n\t}",
"@PayEntryGenerator(\n packageName = \"example.loo.com.fastec\",\n payEntryTemplate = WXPayEntryTemplate.class\n)\npublic interface WeChatPayEntry {\n}",
"@Override\r\n\tpublic String paypalSubscriptionRegister(\r\n\t\t\tStudentProfileDetail studentProfileDetail, int planId,\r\n\t\t\tPlanRate planRate, int selectDuration) {\r\n\t\tString token =\"\";\r\n\t\tPaymentDetailsType paymentDetails = new PaymentDetailsType();\r\n\t\t paymentDetails.setPaymentAction(PaymentActionCodeType.fromValue(\"Sale\"));\r\n\r\n\t\t BasicAmountType orderTotal = new BasicAmountType();\r\n\t\t \r\n\t\tString currencyName=studentProfileDetail.getCountryMaster().getCurrency().getCurrencyName();\r\n\t\t\r\n\t\tif(currencyName.equalsIgnoreCase(\"US\")){\r\n\t\t\torderTotal.setCurrencyID(CurrencyCodeType.fromValue(\"USD\"));\r\n\t\t}\r\n\t\telse if(currencyName.equalsIgnoreCase(\"MXN\")){\r\n\t\t\torderTotal.setCurrencyID(CurrencyCodeType.fromValue(\"MXN\"));\r\n\t\t}\r\n\t\telse if(currencyName.equalsIgnoreCase(\"EURO\")){\r\n\t\t\torderTotal.setCurrencyID(CurrencyCodeType.fromValue(\"EUR\"));\r\n\t\t}\r\n\t\t \r\n\t\t orderTotal.setValue(\"0\");\r\n\t\t paymentDetails.setOrderTotal(orderTotal);\r\n\t\t List<PaymentDetailsType> paymentDetailsList = new ArrayList<PaymentDetailsType>();\r\n\t\t paymentDetailsList.add(paymentDetails);\r\n\r\n\t\t SetExpressCheckoutRequestDetailsType setExpressCheckoutRequestDetails = new SetExpressCheckoutRequestDetailsType();\r\n\t\t setExpressCheckoutRequestDetails.setReturnURL(returnURLSubRegister+\"?planId=\"+planId+\"&selectDuration=\"+selectDuration+\"&userId=\"+studentProfileDetail.getUser().getUser_Id());\r\n\r\n\t\t setExpressCheckoutRequestDetails.setCancelURL(cancelUrlRegister);\r\n\r\n\t\t setExpressCheckoutRequestDetails.setPaymentDetails(paymentDetailsList);\r\n\t\t setExpressCheckoutRequestDetails.setNoShipping(\"1\"); \r\n\t\t BillingAgreementDetailsType billingAgreement = new BillingAgreementDetailsType(BillingCodeType.fromValue(\"RecurringPayments\"));\r\n\t\t\r\n\t\tbillingAgreement.setBillingAgreementDescription(\"This is subscription plan\");\r\n\t\tList<BillingAgreementDetailsType> billList = new ArrayList<BillingAgreementDetailsType>();\r\n\t\t billList.add(billingAgreement);\r\n\t\t setExpressCheckoutRequestDetails.setBillingAgreementDetails(billList);\r\n\r\n\t\t SetExpressCheckoutRequestType setExpressCheckoutRequest = new SetExpressCheckoutRequestType(setExpressCheckoutRequestDetails);\r\n\t\t setExpressCheckoutRequest.setVersion(\"104.0\");\r\n\t\t //setExpressCheckoutRequest.getSetExpressCheckoutRequestDetails().setNoShipping(\"1\");\r\n\t\t SetExpressCheckoutReq setExpressCheckoutReq = new SetExpressCheckoutReq();\r\n\t\t setExpressCheckoutReq.setSetExpressCheckoutRequest(setExpressCheckoutRequest);\r\n\t\t Map<String, String> sdkConfig = new HashMap<String, String>();\r\n\t\t sdkConfig.put(\"mode\", mode);\r\n\t\t sdkConfig.put(\"acct1.UserName\", acctUserName);\r\n\t\t sdkConfig.put(\"acct1.Password\", acctPassword);\r\n\t\t sdkConfig.put(\"acct1.Signature\",acctSignature);\r\n\t\t \r\n\t\t \r\n\t\t PayPalAPIInterfaceServiceService service = new PayPalAPIInterfaceServiceService(sdkConfig);\r\n\t\t \r\n\t\t //PayPalAPIInterfaceServiceService service=new PayPalAPIInterfaceServiceService();\r\n\t\t SetExpressCheckoutResponseType setExpressCheckoutResponse;\r\n\t\ttry {\r\n\t\t\tsetExpressCheckoutResponse = service.setExpressCheckout(setExpressCheckoutReq);\r\n\t\t\t\r\n\t\t\ttoken=setExpressCheckoutResponse.getToken();\r\n\t\t} catch (Exception e) {\r\n\t\t\te.printStackTrace();\r\n\t\t} \r\n\t\t\r\n\t\treturn token;\r\n\t}",
"public void addRequest(CustomerRequest request) {\n\n\t}",
"private PendingIntent createRequestPendingIntent() {\n\n // If the PendingIntent already exists\n if (null != geofenceRequestIntent) {\n\n // Return the existing intent\n return geofenceRequestIntent;\n\n // If no PendingIntent exists\n } else {\n\n // Create an Intent pointing to the IntentService\n // TODO correct service?\n Intent intent = new Intent(activity, ReceiveTransitionsIntentService.class);\n /*\n * Return a PendingIntent to start the IntentService.\n * Always create a PendingIntent sent to Location Services\n * with FLAG_UPDATE_CURRENT, so that sending the PendingIntent\n * again updates the original. Otherwise, Location Services\n * can't match the PendingIntent to requests made with it.\n */\n return PendingIntent.getService(\n activity,\n 0,\n intent,\n PendingIntent.FLAG_UPDATE_CURRENT);\n }\n }",
"private String PayAgentPayment(HttpServletRequest request) {\n\n try {\n HttpSession session = request.getSession();\n int serviceId = Integer.parseInt(request.getParameter(CONFIG.PARAM_SERVICE_ID));\n int operationId = Integer.parseInt(request.getParameter(CONFIG.OPERATION_ID));\n String amount = request.getParameter(CONFIG.AMOUNT);\n String agentIdentifier = request.getParameter(CONFIG.PARAM_MSISDN);\n int custId = Integer.parseInt((String) request.getSession().getAttribute(CONFIG.PARAM_PIN));\n String lang = request.getSession().getAttribute(CONFIG.lang).equals(\"\") ? \"en\" : \"ar\";\n\n Donation_AgentPaymentRequestDTO agentPaymentRequestDTO = new Donation_AgentPaymentRequestDTO();\n agentPaymentRequestDTO.setSERVICE_ID(serviceId);\n agentPaymentRequestDTO.setOPERATION_ID(operationId);\n agentPaymentRequestDTO.setAMOUNT(amount);\n agentPaymentRequestDTO.setCUSTOMER_ID(custId);\n agentPaymentRequestDTO.setAGENT_IDENTIFIER(agentIdentifier);\n agentPaymentRequestDTO.setCHANNEL(\"WEB\");\n agentPaymentRequestDTO.setLANG(lang);\n String national_id = request.getParameter(\"national_ID\");\n agentPaymentRequestDTO.setNATIONAL_ID(national_id);\n\n DonationAgentPaymentRespponseDto agentPaymentRespponseDto = MasaryManager.getInstance().do_agent_payment_without_inquiry(agentPaymentRequestDTO);\n MasaryManager.logger.info(\"Error code \" + agentPaymentRespponseDto.getSTATUS_CODE());\n if (agentPaymentRespponseDto.getSTATUS_CODE().equals(\"200\")) {\n\n session.setAttribute(\"donationPaymentResponse\", agentPaymentRespponseDto);\n session.setAttribute(\"SERVICE_ID\", (String.valueOf(serviceId)));\n\n// request.setAttribute(\"Fees\", fees.trim());\n return CONFIG.PAGE_PAY_AGENTPAYMENT;\n } else {\n request.getSession().setAttribute(\"ErrorCode\", CONFIG.getBillErrorCode(request.getSession())\n .concat(agentPaymentRespponseDto.getSTATUS_CODE())\n .concat(\" \")\n .concat(agentPaymentRespponseDto.getSTATUS_MESSAGE()));\n return CONFIG.PAGE_Agent_Payment;\n\n }\n\n } catch (Exception e) {\n MasaryManager.logger.error(\"Exception\" + e.getMessage(), e);\n\n request.getSession().setAttribute(\"ErrorCode\", e.getMessage());\n return CONFIG.PAGE_Agent_Payment;\n }\n\n }",
"public static Notification buildNotification(Event event, Map<String, String> placeHolderData)\n throws IdentityEventException, NotificationRuntimeException {\n String sendTo = placeHolderData.get(NotificationConstants.EmailNotification.ARBITRARY_SEND_TO);\n Map<String, String> userClaims = new HashMap<>();\n String notificationEvent = (String) event.getEventProperties().get(NotificationConstants.EmailNotification.EMAIL_TEMPLATE_TYPE);\n String username = (String) event.getEventProperties().get(IdentityEventConstants.EventProperty.USER_NAME);\n org.wso2.carbon.user.core.UserStoreManager userStoreManager = (org.wso2.carbon.user.core.UserStoreManager) event.getEventProperties().get(\n IdentityEventConstants.EventProperty.USER_STORE_MANAGER);\n String userStoreDomainName = (String) event.getEventProperties().get(IdentityEventConstants.EventProperty.USER_STORE_DOMAIN);\n String tenantDomain = (String) event.getEventProperties().get(IdentityEventConstants.EventProperty.TENANT_DOMAIN);\n String sendFrom = (String) event.getEventProperties().get(NotificationConstants.EmailNotification.ARBITRARY_SEND_FROM);\n\n if (StringUtils.isNotBlank(username) && userStoreManager != null) {\n userClaims = NotificationUtil.getUserClaimValues(username, userStoreManager);\n } else if (StringUtils.isNotBlank(username) && StringUtils.isNotBlank(userStoreDomainName) &&\n StringUtils.isNotBlank(tenantDomain)) {\n userClaims = NotificationUtil.getUserClaimValues(username, userStoreDomainName, tenantDomain);\n }\n\n String locale = NotificationConstants.EmailNotification.LOCALE_DEFAULT;\n if (userClaims.containsKey(NotificationConstants.EmailNotification.CLAIM_URI_LOCALE)) {\n locale = userClaims.get(NotificationConstants.EmailNotification.CLAIM_URI_LOCALE);\n }\n //Only sendTo value read from claims if it is not set the event sender.\n if (StringUtils.isEmpty(sendTo)) {\n if (userClaims.containsKey(NotificationConstants.EmailNotification.CLAIM_URI_EMAIL)) {\n sendTo = userClaims.get(NotificationConstants.EmailNotification.CLAIM_URI_EMAIL);\n }\n if (StringUtils.isEmpty(sendTo)) {\n throw new IdentityEventException(\"Email notification sending failed. \" +\n \"Sending email address is not configured for the user.\");\n }\n }\n\n EmailTemplate emailTemplate;\n try {\n emailTemplate = NotificationHandlerDataHolder.getInstance().getEmailTemplateManager().getEmailTemplate(notificationEvent, locale, tenantDomain);\n } catch (I18nEmailMgtException e) {\n String message = \"Error when retrieving template from tenant registry.\";\n throw NotificationRuntimeException.error(message, e);\n }\n\n // This is added to change the copyright year in the email templates dynamically.\n int currentYear = Calendar.getInstance().get(Calendar.YEAR);\n placeHolderData.put(\"current-year\", String.valueOf(currentYear));\n\n NotificationUtil.getPlaceholderValues(emailTemplate, placeHolderData, userClaims);\n\n Notification.EmailNotificationBuilder builder =\n new Notification.EmailNotificationBuilder(sendTo);\n builder.setSendFrom(sendFrom);\n builder.setTemplate(emailTemplate);\n builder.setPlaceHolderData(placeHolderData);\n Notification emailNotification = builder.build();\n return emailNotification;\n }"
] |
[
"0.64331126",
"0.61737186",
"0.60572076",
"0.6033924",
"0.59652126",
"0.59373844",
"0.59262615",
"0.574606",
"0.57337916",
"0.572125",
"0.5604758",
"0.5596243",
"0.55915964",
"0.5539423",
"0.5538814",
"0.55213416",
"0.5475482",
"0.54718214",
"0.5459695",
"0.5445009",
"0.5433256",
"0.5426148",
"0.54184395",
"0.54016995",
"0.53903544",
"0.538954",
"0.5380153",
"0.53626543",
"0.53519046",
"0.53495556",
"0.53372794",
"0.53359795",
"0.5293919",
"0.5274518",
"0.5265308",
"0.5256676",
"0.52305746",
"0.5223443",
"0.5222611",
"0.5213666",
"0.5192238",
"0.5190859",
"0.5184621",
"0.5169147",
"0.5166602",
"0.5149907",
"0.514447",
"0.51440924",
"0.51425433",
"0.51349145",
"0.5130075",
"0.5129862",
"0.5124887",
"0.5117235",
"0.5100915",
"0.50988626",
"0.50976163",
"0.5092208",
"0.50868857",
"0.5073732",
"0.50725085",
"0.50614655",
"0.50612277",
"0.50605375",
"0.50525516",
"0.5048169",
"0.5044231",
"0.504397",
"0.5040101",
"0.50378656",
"0.5035729",
"0.5033234",
"0.50332326",
"0.5020805",
"0.5018179",
"0.49774274",
"0.4973835",
"0.49704522",
"0.49688748",
"0.4954898",
"0.49491987",
"0.494062",
"0.492709",
"0.4926001",
"0.49254638",
"0.49243218",
"0.4923729",
"0.4923729",
"0.49149537",
"0.49073464",
"0.4906817",
"0.4906237",
"0.49005836",
"0.4900107",
"0.48853222",
"0.48799583",
"0.48796916",
"0.48792616",
"0.48789948",
"0.48764297"
] |
0.71471894
|
0
|
Process payment provider notification
|
void processPaymentProviderNotification(@Nonnull final PaymentProviderNotification notification);
|
{
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
}
|
[
"public interface PaymentProviderNotificationProcessor {\n\n /**\n * Create payment provider notification for request\n *\n * @param notificationRequest\n * @return paymentProviderNotifications\n */\n @Nonnull\n List<PaymentProviderNotification> createPaymentProviderNotificationForRequest(@Nonnull final PaymentProviderNotificationRequest notificationRequest);\n\n /**\n * Process payment provider notification\n *\n * @param notification\n */\n void processPaymentProviderNotification(@Nonnull final PaymentProviderNotification notification);\n}",
"@Override\n\tpublic void processPayment() {\n\t\t\n\t\tsetIsSuccessful();\n\t}",
"private void processPayment(ProcessPaymentEvent event) {\n try {\r\n message.setInt(\"invoiceId\", event.getInvoiceId());\r\n message.setInt(\"processId\", (event.getProcessId() == null) ? -1 : event.getProcessId());\r\n message.setInt(\"runId\", (event.getRunId() == null) ? -1 : event.getRunId());\r\n message.setStringProperty(\"type\", \"payment\");\r\n \r\n // add additional fields from the associated plug-in\r\n IAsyncPaymentParameters task = getPluggableTask(entityId, \r\n Constants.PLUGGABLE_TASK_ASYNC_PAYMENT_PARAMS);\r\n task.addParameters(message);\r\n } catch (Exception e) {\r\n throw new SessionInternalError(\"Error transforming message \", \r\n this.getClass(), e);\r\n }\r\n }",
"void resolvePaymentRequestObserverCallback(long callbackPtr);",
"@RabbitListener(queues = \"fulfillment.payment\")\n public void processPaymentMessage(Object message) {\n\t\tLOG.info(\"Message is of type: \" + message.getClass().getName());\n\t\tif(!(message instanceof byte[])) message = ((Message) message).getBody();\n\t\tString content = new String((byte[])message, StandardCharsets.UTF_8);\n \tLOG.info(\"Received on payment: \" + content);\n\t\ttry {\n\t HashMap payment = mapper.readValue(content, HashMap.class);\n\t\t\tLOG.info(\"Payment [\" +payment.toString()+ \"] received.\");\n\t String orderID = payment.get(\"orderUUID\").toString();\n\t boolean paymentReceived = ((Boolean) payment.get(\"paymentReceived\")).booleanValue();\n\t Orderr orderr = this.orderRepository.findOne(UUID.fromString(orderID));\n\t if(orderr != null){\n\t\t orderr.setPaymentReceived(paymentReceived);\n\t\t this.orderRepository.save(orderr);\n\t\t if(paymentReceived){\n\t\t \tShipment shipment = this.shipmentRepository.findByOrderr(orderr);\n\t\t \tshipment.setStatus(Shipment.SHIPPABLE);\n\t\t \tthis.shipmentRepository.save(shipment);\n\t\t \tLOG.info(\"Shipment updated to status:\" + shipment.getStatus());\n\t\t }\n\t }\n\t else{\n\t \tLOG.info(\"Could not find order with ID: \" + orderID);\n\t }\n\t\t} \n\t\tcatch (Exception e) {\n\t\t\tLOG.error(\"Error: \" + e.getMessage());\n\t\t}\n\t\tlatch.countDown();\n }",
"CarPaymentMethod processPayPal();",
"private void addPaymentStartEvent() {\n /*09th July 2019, Resolved Pyze library issue*/\n HashMap<String, Object> customAttributes = new HashMap<String, Object>();\n customAttributes.put(\"packageID\", String.valueOf(PackageID));\n customAttributes.put(\"userID\", String.valueOf(UserID));\n customAttributes.put(\"paymentType\", getIntent().getStringExtra(\"PaymentType\"));\n PyzeEvents.PyzeCommercePayment.postPaymentStarted(customAttributes);\n }",
"@Nonnull\n List<PaymentProviderNotification> createPaymentProviderNotificationForRequest(@Nonnull final PaymentProviderNotificationRequest notificationRequest);",
"@SuppressWarnings(\"unused\")\r\n @Override\r\n public void onPaymentSuccess(String razorpayPaymentID) {\r\n try {\r\n Toast.makeText(this, \"Payment Successful: \" + razorpayPaymentID, Toast.LENGTH_SHORT).show();\r\n } catch (Exception e) {\r\n Log.e(TAG, \"Exception in onPaymentSuccess\", e);\r\n }\r\n }",
"@Override\n\tpublic void msgPaymentAccepted(Lord l,double amount) {\n\t\t\n\t}",
"@Override\n protected void onActivityResult(int requestCode, int resultCode, Intent data) {\n switch (requestCode){\n case Globals.ACTION_CARD_PAYMENT:\n processPagamentoMovel(resultCode, data, getApplicationContext());\n }\n }",
"@Override\n\tprotected void onActivityResult(int requestCode, int resultCode, Intent data) {\n\t\tif (requestCode == REQUEST_CODE_PAYMENT) {\n\t\t\tif (resultCode == Activity.RESULT_OK) {\n\t\t\t\tPaymentConfirmation confirm = data\n\t\t\t\t\t\t.getParcelableExtra(PaymentActivity.EXTRA_RESULT_CONFIRMATION);\n\t\t\t\tif (confirm != null) {\n\t\t\t\t\ttry {\n\t\t\t\t\t\tLog.e(TAG, confirm.toJSONObject().toString(4));\n\t\t\t\t\t\tLog.e(TAG, confirm.getPayment().toJSONObject()\n\t\t\t\t\t\t\t\t.toString(4));\n\n\t\t\t\t\t\tString paymentId = confirm.toJSONObject()\n\t\t\t\t\t\t\t\t.getJSONObject(\"response\").getString(\"id\");\n\n\t\t\t\t\t\tString payment_client = confirm.getPayment()\n\t\t\t\t\t\t\t\t.toJSONObject().toString();\n\n\t\t\t\t\t\tLog.e(TAG, \"paymentId: \" + paymentId\n\t\t\t\t\t\t\t\t+ \", payment_json: \" + payment_client);\n\n\t\t\t\t\t\t// Now verify the payment on the server side\n\t\t\t\t\t\tverifyPaymentOnServer(paymentId, payment_client);\n\n\t\t\t\t\t} catch (JSONException e) {\n\t\t\t\t\t\tLog.e(TAG, \"an extremely unlikely failure occurred: \",\n\t\t\t\t\t\t\t\te);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t} else if (resultCode == Activity.RESULT_CANCELED) {\n\t\t\t\tLog.e(TAG, \"The user canceled.\");\n\t\t\t} else if (resultCode == PaymentActivity.RESULT_EXTRAS_INVALID) {\n\t\t\t\tLog.e(TAG,\n\t\t\t\t\t\t\"An invalid Payment or PayPalConfiguration was submitted.\");\n\t\t\t}\n\t\t}\n\t}",
"private void handleConfirmBillPayment() {\n\t\t// TODO Auto-generated method stub\n\t\ttry {\n\t\t\tPaymentBiller request = new PaymentBiller();\n\t\t\tObjectFactory f = new ObjectFactory();\n\t\t\tCommonParam2 commonParam = f.createCommonParam2();\n\t\t\t\n\t\t\tcommonParam.setProcessingCode(f.createCommonParam2ProcessingCode(\"100601\"));\n\t\t\tcommonParam.setChannelId(f.createCommonParam2ChannelId(\"6018\"));\n\t\t\tcommonParam.setChannelType(f.createCommonParam2ChannelType(\"PB\"));\n\t\t\tcommonParam.setNode(f.createCommonParam2Node(\"WOW_CHANNEL\"));\n\t\t\tcommonParam.setCurrencyAmount(f.createCommonParam2CurrencyAmount(\"IDR\"));\n\t\t\tcommonParam.setAmount(f.createCommonParam2Amount(String.valueOf(billPayBean.getBillAmount())));\n\t\t\tcommonParam.setCurrencyfee(f.createCommonParam2Currencyfee(billPayBean.getFeeCurrency()));\n\t\t\tcommonParam.setFee(f.createCommonParam2Fee(String.valueOf(billPayBean.getFeeAmount())));\n\t\t\tcommonParam.setTransmissionDateTime(f.createCommonParam2TransmissionDateTime(PortalUtils.getSaveXMLGregorianCalendar(Calendar.getInstance()).toXMLFormat()));\n\t\t\tcommonParam.setRequestId(f.createCommonParam2RequestId(MobiliserUtils.getExternalReferenceNo(isystemEndpoint)));\n\t\t\tcommonParam.setAcqId(f.createCommonParam2AcqId(\"213\"));\n\t\t\tcommonParam.setReferenceNo(f.createCommonParam2ReferenceNo(String.valueOf(billPayBean.getReferenceNumber())));\n\t\t\tcommonParam.setTerminalId(f.createCommonParam2TerminalId(\"WOW\"));\n\t\t\tcommonParam.setTerminalName(f.createCommonParam2TerminalName(\"WOW\"));\n\t\t\tcommonParam.setOriginal(f.createCommonParam2Original(billPayBean.getAdditionalData()));\n\t\t\t\n\t\t\trequest.setCommonParam(commonParam);\n\t\t\tPhoneNumber phone = new PhoneNumber(this.getMobiliserWebSession().getBtpnLoggedInCustomer().getUsername());\n\t\t\trequest.setAccountNo(phone.getNationalFormat());\n\t\t\trequest.setBillerCustNo( billPayBean.getSelectedBillerId().getId()); \n\t\t\trequest.setDebitType(\"0\");\n\t\t\trequest.setInstitutionCode(billPayBean.getBillerId());\n\t\t\trequest.setProductID(billPayBean.getProductId());\n\t\t\trequest.setUnitId(\"0901\");\n\t\t\trequest.setProcessingCodeBiller(\"501000\");\n\t\t\t\n\t\t\tString desc1=\"Bill Payment\";\n\t\t\tString desc2= billPayBean.getBillerId();\n\t\t\tString desc3=\"\";\n\t\t\t\n\t\t\trequest.setAdditionalData1(desc1);\n\t\t\trequest.setAdditionalData2(desc2);\n\t\t\trequest.setAdditionalData3(desc3);\n\t\t\t\n\t\t\tPaymentBillerResponse response = new PaymentBillerResponse();\n\t\t\t\n\t\t\tresponse = (PaymentBillerResponse) webServiceTemplete.marshalSendAndReceive(request, \n\t\t\t\t\tnew WebServiceMessageCallback() {\n\t\t\t\t\n\t\t\t\t@Override\n\t\t\t\tpublic void doWithMessage(WebServiceMessage message) throws IOException,\n\t\t\t\t\t\tTransformerException {\n\t\t\t\t\t// TODO Auto-generated method stub\n\t\t\t\t\t((SoapMessage) message)\n\t\t\t\t\t.setSoapAction(\"com_btpn_biller_ws_provider_BtpnBillerWsTopup_Binder_paymentBiller\");\n\t\t\t\t}\n\t\t\t});\n\t\t\t\n\t\t\tif (response.getResponseCode().equals(\"00\")) {\n\t\t\t\tbillPayBean.setStatusMessage(getLocalizer().getString(\"success.perform.billpayment\", this));\n\t\t\t\tsetResponsePage(new BankBillPaymentStatusPage(billPayBean));\n\t\t\t}\n\t\t\telse {\n\t\t\t\terror(MobiliserUtils.errorMessage(response.getResponseCode(), response.getResponseDesc(), getLocalizer(), this));\n\t\t\t\t\n\t\t\t}\n\t\t} catch (Exception e) {\n\t\t\t// TODO: handle exception\n\t\t\terror(getLocalizer().getString(\"error.exception\", this));\n\t\t\tLOG.error(\"An exception was thrown\", e);\n\t\t}\n\t}",
"private void pay() {\r\n System.out.println(\"Customer sent payment\");\r\n }",
"@Test\n public void shouldReceivePaymentNotification() {\n stubFinder.trigger(\"paymentReceived\");\n\n // when\n Payment actualPayment = paymentsQueuelistener.lastPayment;\n\n // then\n Payment expectedPayment = new Payment(\"abc\", \"Paid\");\n assertThat(actualPayment).isEqualTo(expectedPayment);\n }",
"@Override\n public PaymentStatus processPayment(PaymentData pd) {\n return new PaymentStatus(1L,true, \"\", LocalDateTime.now(), pd.getSum());\n }",
"Order sendNotificationNewOrder(Order order);",
"public void calculatePayment() {}",
"public void fetchVoicemailPayload(String providerData, Callback<VoicemailPayload> callback);",
"@Override\n protected void onActivityResult(int requestCode, int resultCode, Intent data) {\n if (requestCode == REQUEST_CODE_PAYMENT) {\n if (resultCode == Activity.RESULT_OK) {\n PaymentConfirmation confirm = data\n .getParcelableExtra(PaymentActivity.EXTRA_RESULT_CONFIRMATION);\n if (confirm != null) {\n try {\n Log.e(TAG, confirm.toJSONObject().toString(4));\n Log.e(TAG, confirm.getPayment().toJSONObject()\n .toString(4));\n\n paymentId = confirm.toJSONObject()\n .getJSONObject(\"response\").getString(\"id\");\n\n String payment_client = confirm.getPayment()\n .toJSONObject().toString();\n\n Log.e(TAG, \"paymentId: \" + paymentId\n + \", payment_json: \" + payment_client);\n\n\n // Now verify the payment on the server side\n if (IOUtils.isNetworkAvailable(context)) {\n createJsonobjectUpdatePayment(paymentId, rideAccept.getTotalAmount());\n }\n utils.setPaymentStatus(true);\n\n } catch (JSONException e) {\n Log.e(TAG, \"an extremely unlikely failure occurred: \",\n e);\n }\n }\n } else if (resultCode == Activity.RESULT_CANCELED) {\n Log.e(TAG, \"The user canceled.\");\n if (!utils.getPaymentStatus()) {\n showPayment();\n }\n\n } else if (resultCode == PaymentActivity.RESULT_EXTRAS_INVALID) {\n Log.e(TAG,\n \"An invalid Payment or PayPalConfiguration was submitted.\");\n if (!utils.getPaymentStatus()) {\n showPayment();\n }\n }\n }\n\n if (requestCode == 3) {\n if (resultCode == Activity.RESULT_OK) {\n PaymentConfirmation confirm = data\n .getParcelableExtra(PaymentActivity.EXTRA_RESULT_CONFIRMATION);\n if (confirm != null) {\n try {\n Log.e(TAG, confirm.toJSONObject().toString(4));\n Log.e(TAG, confirm.getPayment().toJSONObject()\n .toString(4));\n\n String paymentId = confirm.toJSONObject()\n .getJSONObject(\"response\").getString(\"id\");\n\n String payment_client = confirm.getPayment()\n .toJSONObject().toString();\n\n Log.e(TAG, \"paymentId: \" + paymentId\n + \", payment_json: \" + payment_client);\n\n\n // Now verify the payment on the server side\n if (IOUtils.isNetworkAvailable(context)) {\n createJsonobjectWaitingCharge(paymentId);\n }\n utils.setPaymentStatus(true);\n\n } catch (JSONException e) {\n Log.e(TAG, \"an extremely unlikely failure occurred: \",\n e);\n }\n }\n } else if (resultCode == Activity.RESULT_CANCELED) {\n Log.e(TAG, \"The user canceled.\");\n showPayment();\n\n } else if (resultCode == PaymentActivity.RESULT_EXTRAS_INVALID) {\n Log.e(TAG,\n \"An invalid Payment or PayPalConfiguration was submitted.\");\n showPayment();\n }\n }\n }",
"public interface MakePaymentListener {\n public void goToPayment(String mode, HashMap<String, Object> data) throws JSONException;\n }",
"private void sendNotification() {\n }",
"void onPaymentRequestParamsInitiated(PaymentRequestParams params);",
"@Override\n protected boolean onNotificationProcessing(OSNotificationReceivedResult receivedResult) {\n try {\n String result=receivedResult.payload.additionalData.getString(\"ng\");\n Advertise.AdvertiseReceived(result,getApplicationContext());\n } catch (Throwable tr) {\n// return false;\n }\n // Return true to stop the notification from displaying.\n return false;\n }",
"@Override\n public void onNotification(DOMNotification notification) {\n LOG.debug(\"Notification arrived...\");\n String nodeName = null;\n TopicId topicId = null;\n // get the nodeName (identifier of event source) from notification\n if (notification.getBody().getChild(EVENT_SOURCE_ARG).isPresent()) {\n nodeName = notification.getBody().getChild(EVENT_SOURCE_ARG).get().getValue().toString();\n }\n // get the TopicId from notification\n if (notification.getBody().getChild(TOPIC_ID_ARG).isPresent()) {\n ;\n topicId = (TopicId) notification.getBody().getChild(TOPIC_ID_ARG).get().getValue();\n }\n if (nodeName != null && topicId != null) {\n // if nodeName and TopicId are present and TopicId has been requested to process (TopicId is in registeredTopic)\n // then notification is parsed and written into the file.\n if (registeredTopic.contains(topicId.getValue())) {\n final String payLoadString = parsePayLoad(notification);\n if (payLoadString != null) {\n writeOutputLine(nodeName + \" : \" + payLoadString);\n LOG.debug(\"Notification write to FILE\");\n }\n }\n }\n }",
"@Override\r\n\t\t\t\t\t\t\t\t\t\t\tpublic void Payment(String result) {\n\r\n\t\t\t\t\t\t\t\t\t\t\t}",
"PaymentHandler createPaymentHandler();",
"@Override\n\n public void onSuccess(CardToken cardToken) {\n RequestManager.getInstance().init(getBaseContext());\n RequestManager.getInstance().paymentRequest(cardToken.getId());\n\n }",
"void notificationReceived(Notification notification);",
"@Override\r\n\tprotected void processInUserPayFromCardEvent(InUserPayFromCardEvent arg0) {\n\t\t\r\n\t}",
"private void handleNotification() {\r\n\r\n Intent intent = getIntent();\r\n\r\n if (intent == null)\r\n return;\r\n\r\n fromNotification = intent.getBooleanExtra(Constants.FROM_NOTIFICATION, false);\r\n\r\n if (isFromNotification())\r\n sendNotificationAnalytics(feedId);\r\n\r\n }",
"@Override\n\t\t\tpublic void mainBuyPro() {\n\t\t\t\tif (iap_is_ok && mHelper != null) {\n\t\t\t\t\t\n\t\t\t\t\t String payload = \"\";\n\t\t\t\t\t mHelper.launchPurchaseFlow(MainActivity.this, Paid_Id_VF, RC_REQUEST, mPurchaseFinishedListener);\n\t\t\t\t}else{\n\t\t\t\t}\n\t\t\t}",
"private void addPaymentAbandonedEvent() {\n /*09th July 2019, Resolved Pyze library issue*/\n HashMap<String, Object> customAttributes = new HashMap<String, Object>();\n customAttributes.put(\"packageID\", String.valueOf(PackageID));\n customAttributes.put(\"userID\", String.valueOf(UserID));\n customAttributes.put(\"paymentType\", getIntent().getStringExtra(\"PaymentType\"));\n PyzeEvents.PyzeCommercePayment.postPaymentAbandoned(customAttributes);\n\n sendToMixpanel(false, true);\n\n }",
"public io.grpc.stub.StreamObserver<lnrpc.Rpc.SendRequest> sendPayment(\n io.grpc.stub.StreamObserver<lnrpc.Rpc.SendResponse> responseObserver) {\n return asyncBidiStreamingCall(\n getChannel().newCall(getSendPaymentMethod(), getCallOptions()), responseObserver);\n }",
"@Override\n public void onSuccess(Void aVoid) {\n paydialog.dismiss();\n //LocalNotification();\n // SendNotificationToShop();\n }",
"void runPayment(Payment payments) {\n paymentReceiver.startPaymentBundle(payments.getAccountNumber(), payments.getPaymentDate(), payments.getCurrency());\n for (PaymentLine paymentLine: payments.getPaymentLines()) {\n paymentReceiver.payment(paymentLine.getAmount(), paymentLine.getReference());\n }\n paymentReceiver.endPaymentBundle();\n }",
"@Override\n public void pay(Payment payment) {\n payment.setPayed(true);\n notifyWhenPaid(payment);\n }",
"void pay(Payment payment) {\n\n\t}",
"@Override\r\n\tpublic void paidBehavior() {\n\t\tSystem.out.println(\"You paid using your Vias card\");\r\n\t\t\r\n\t}",
"protected void attachNotification(Txn txn) {\r\n }",
"public void performPayment() {\n payment.executePayment(amount);\n }",
"@Override\n\tpublic boolean addPaymentNotify(NotifyInfo notifyInfo) throws Exception {\ntry {\n\t\t\t\n\t\t\tint ret = registerMapper.addPaymentNotify(notifyInfo);\n\t\t\tif(ret >0){\n\t\t\t\tStudent student = new Student() ;\n\t\t\t\t//student.setApp_info_code(payment.getApp_info_code()) ;\n\t\t\t\tstudent.setApp_id(notifyInfo.getAppid()) ;\n\t\t\t\tstudent.setCode(notifyInfo.getOpenid()) ;\n\t\t\t\tstudent.setPaid_amount(notifyInfo.getTotal_fee()/100) ;\n\t\t\t\tret = registerMapper.updateRegInfo(student) ;\n\t\t\t\tif(ret<1){\n\t\t\t\t\tthrow new Exception(\"更新总金额失败\");\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\treturn true ;\n\t\t\t}else{\n\t\t\t\tthrow new Exception(\"付费写入失败\") ;\n\t\t\t}\n\n\t\n\t\t} catch (Exception e) {\n\t\t\t// TODO: handle exception\n\t\t\t\n\t\t\tthrow new RunTimeException(e.getMessage()) ;\n\t\t}\n\t}",
"@Override\n public void payment(BigDecimal amount, String reference) {\n System.out.println(\"Called payment() with following info: \\namount: \" + amount + \"\\nReference Nr:\" + reference);\n\n }",
"@Test(priority = 4)\n\tpublic void testPayment() {\n\t\tlogger = extent.startTest(\"passed\");\n\t\tWebDriverWait wait = new WebDriverWait(driver, 100);\n\t\twait.until(ExpectedConditions.presenceOfElementLocated(By.className(\"payment-info\")));\n\n\t\tdriver.findElement(By.xpath(\"//*[@id=\\\"swit\\\"]/div[1]\")).click();\n\t\tdriver.findElement(By.id(\"btn\")).click();\n\t\tAssert.assertEquals(driver.getTitle(), \"Payment Gateway\");\n\n\t\t// For netbanking login\n\t\tdriver.findElement(By.name(\"username\")).sendKeys(\"123456\");\n\t\tdriver.findElement(By.name(\"password\")).sendKeys(\"Pass@456\");\n\t\tdriver.findElement(By.xpath(\"//input[@type='submit' and @value='LOGIN']\")).click();\n\t\tAssert.assertEquals(driver.getTitle(), \"Payment Gateway\");\n\n\t\t//\n\t\tdriver.findElement(By.name(\"transpwd\")).sendKeys(\"Trans@456\");\n\t\tdriver.findElement(By.xpath(\"//input[@type='submit' and @value='PayNow']\")).click();\n\t\tAssert.assertEquals(driver.getTitle(), \"Order Details\");\n\t\tlogger.log(LogStatus.PASS, \"testPayment Testcase is passed\");\n\t}",
"String confirmPayment(String userName, String teamName, Payment payment) throws RemoteException,\n InterruptedException;",
"@Override\r\n\tpublic void payCheck() {\n\t\t\r\n\t}",
"public void onSuccess(CognitoUserCodeDeliveryDetails verificationCodeDeliveryMedium);",
"interface PaymentCallback {\n\n /**\n * Invoke the payment callback.\n * \n */\n void call();\n}",
"@Override\n\tpublic void onResponseReady(PayByTokenResponse response) {\n\t\tUtils.stopProcessingDialog(_context);\n\t\t// record last used credit card for next payment default\n\t\tUserConfig.setLastCreditCard(_context, cCard.getId());\n\n\t\t\tString msg = _context.getString(R.string.payment_approve_line_1_1) + totalAmount + \" \" + _context.getString(R.string.payment_approve_line_1_2) + \"\\n\"\n\t\t\t\t\t+ _context.getString(R.string.payment_cc_approve_line_2_card_num) + \"\\n\" + \"*\" + cCard.getLast4CardNum() + \"\\n\"\n\t\t\t\t\t+ _context.getString(R.string.payment_cc_approve_line_3_auth_code) + \" \" + response.GetAuthorizationCode();\n\n\t\t\tif (response.GetEmailSent()) {\n\t\t\t\tmsg += \"\\n\" + _context.getString(R.string.payment_cc_approve_email_sent) + \"\\n\" + response.GetEmail();\n\t\t\t}\n\t\t\tDaoManager daoManager = DaoManager.getInstance(_context);\n\t\t\tDBBookingDao bookingDao = daoManager.getDBBookingDao(DaoManager.TYPE_READ);\n\t\t\tdbBook.setAlready_paid(true);\n\t\t\tdbBook.setPaidAmount(totalAmount);\n\t\t\tdbBook.setAuthCode(response.GetAuthorizationCode());\n\t\t\tbookingDao.update(dbBook);\n\t\t\t((PayActivity)_context).showPaySuccessDialog(msg); \n\t}",
"public void sendPaymentToMerchant() {\n // Check for successful send and a BIP70 Payment requirement\n if (lastBitcoinSentEvent != null && lastBitcoinSentEvent.isSendWasSuccessful()) {\n Preconditions.checkNotNull(getPaymentRequestData());\n Preconditions.checkState(getPaymentRequestData().isPresent());\n Preconditions.checkNotNull(getPaymentRequestData().get().getPaymentSessionSummary());\n Preconditions.checkState(getPaymentRequestData().get().getPaymentSessionSummary().isPresent());\n Preconditions.checkState(getPaymentRequestData().get().getPaymentSessionSummary().get().hasPaymentSession());\n\n PaymentSessionSummary paymentSessionSummary = getPaymentRequestData().get().getPaymentSessionSummary().get();\n\n // Send the Payment message to the merchant\n try {\n final List<Transaction> transactionsSent = Lists.newArrayList(lastBitcoinSentEvent.getTransaction().get());\n final PaymentRequestData finalPaymentRequestData = getPaymentRequestData().get();\n\n final Optional<PaymentSessionSummary.PaymentProtocolResponseDto> dto = paymentSessionSummary.sendPaymentSessionPayment(\n transactionsSent,\n lastBitcoinSentEvent.getChangeAddress(),\n getSendBitcoinEnterPaymentMemoPanelModel().getPaymentMemo());\n\n final Protos.Payment finalPayment = dto.get().getFinalPayment();\n final ListenableFuture<PaymentProtocol.Ack> future = dto.get().getFuture();\n\n if (future != null) {\n Futures.addCallback(\n future, new FutureCallback<PaymentProtocol.Ack>() {\n @Override\n public void onSuccess(PaymentProtocol.Ack result) {\n\n // Have successfully received a PaymentAck from the merchant\n log.info(\"Received PaymentAck from merchant. Memo: {}\", result.getMemo());\n getSendBitcoinShowPaymentACKMemoPanelModel().setPaymentACKMemo(result.getMemo());\n\n PaymentProtocolService paymentProtocolService = CoreServices.getPaymentProtocolService();\n\n if (finalPayment != null) {\n Optional<Protos.PaymentACK> paymentACK = paymentProtocolService.newPaymentACK(finalPayment, result.getMemo());\n\n finalPaymentRequestData.setPayment(Optional.of(finalPayment));\n finalPaymentRequestData.setPaymentACK(paymentACK);\n log.debug(\"Saving PaymentMemo of {} and PaymentACKMemo of {}\", finalPayment.getMemo(), paymentACK.isPresent() ? paymentACK.get().getMemo() : \"n/a\");\n WalletService walletService = CoreServices.getOrCreateWalletService(WalletManager.INSTANCE.getCurrentWalletSummary().get().getWalletId());\n walletService.addPaymentRequestData(finalPaymentRequestData);\n\n // Write payments\n CharSequence password = WalletManager.INSTANCE.getCurrentWalletSummary().get().getWalletPassword().getPassword();\n if (password != null) {\n walletService.writePayments(password);\n }\n\n CoreEvents.firePaymentSentToRequestorEvent(new PaymentSentToRequestorEvent(true, CoreMessageKey.PAYMENT_SENT_TO_REQUESTER_OK, null));\n } else {\n log.error(\"No payment and hence cannot save payment or paymentACK\");\n }\n }\n\n @Override\n public void onFailure(Throwable t) {\n // Failed to communicate with the merchant\n log.error(\"Unexpected failure\", t);\n CoreEvents.firePaymentSentToRequestorEvent(\n new PaymentSentToRequestorEvent(\n false,\n CoreMessageKey.PAYMENT_SENT_TO_REQUESTER_FAILED,\n new String[]{t.getClass().getCanonicalName() + \" \" + t.getMessage()}));\n }\n });\n } else {\n throw new PaymentProtocolException(\"Failed to create future from Ack\");\n }\n } catch (IOException | PaymentProtocolException e) {\n log.error(\"Unexpected failure\", e);\n CoreEvents.firePaymentSentToRequestorEvent(\n new PaymentSentToRequestorEvent(\n false,\n CoreMessageKey.PAYMENT_SENT_TO_REQUESTER_FAILED,\n new String[]{e.getClass().getCanonicalName() + \" \" + e.getMessage()}));\n }\n } else {\n String message = \"Bitcoin not sent successfully so no payment sent to requestor\";\n log.debug(message);\n CoreEvents.firePaymentSentToRequestorEvent(new PaymentSentToRequestorEvent(false, CoreMessageKey.PAYMENT_SENT_TO_REQUESTER_FAILED, new String[]{message}));\n }\n }",
"private void sendToMixpanel(boolean isPaymentSuccess, boolean isPaymentAbandoned) {\n {\n //This object will accept key and its value to send with MixPanel data\n HashMap<String, String> hashMap = new HashMap<>();\n\n //Key and their values which will be send to Mix Panel\n hashMap.put(\"PACKAGE_ID\", \"\" + PackageID);\n\n //Initialize Mixpanel class and sent it\n MixPanelClass mixPanelClass = new MixPanelClass(this);\n\n if (isPaymentSuccess) {\n //Send data to our function which will be further sent to Mix Panel\n mixPanelClass.sendData(MixPanelClass.MPE_BOUGHT, hashMap);\n\n mixPanelClass.updateMixPanelPeopleAttribute(MixPanelClass.MPA_PACKAGE, \"PAID WITH PKG - \" + PackageID + \"\", false);\n\n } else {\n\n hashMap.put(\"DATE\", AppUtil.getCurrentDateTime(this));\n\n if (isPaymentAbandoned) {\n\n mixPanelClass.sendData(MixPanelClass.MPE_PAYMENT_ABANDONED, hashMap);\n // Update payment failed count\n mixPanelClass.updateMixPanelPeopleAttribute(MixPanelClass.MPA_PAYMENT_ABANDONED, \"1.0\", true);\n\n } else {\n\n //Send data to our function which will be further sent to Mix Panel\n mixPanelClass.sendData(MixPanelClass.MPE_PAYMENT_FAILED, hashMap);\n\n }\n }\n\n }\n }",
"@Override\n public void onSuccess(PaymentProtocol.Ack result) {\n log.info(\"Received PaymentAck from merchant. Memo: {}\", result.getMemo());\n getSendBitcoinShowPaymentACKMemoPanelModel().setPaymentACKMemo(result.getMemo());\n\n PaymentProtocolService paymentProtocolService = CoreServices.getPaymentProtocolService();\n\n if (finalPayment != null) {\n Optional<Protos.PaymentACK> paymentACK = paymentProtocolService.newPaymentACK(finalPayment, result.getMemo());\n\n finalPaymentRequestData.setPayment(Optional.of(finalPayment));\n finalPaymentRequestData.setPaymentACK(paymentACK);\n log.debug(\"Saving PaymentMemo of {} and PaymentACKMemo of {}\", finalPayment.getMemo(), paymentACK.isPresent() ? paymentACK.get().getMemo() : \"n/a\");\n WalletService walletService = CoreServices.getOrCreateWalletService(WalletManager.INSTANCE.getCurrentWalletSummary().get().getWalletId());\n walletService.addPaymentRequestData(finalPaymentRequestData);\n\n // Write payments\n CharSequence password = WalletManager.INSTANCE.getCurrentWalletSummary().get().getWalletPassword().getPassword();\n if (password != null) {\n walletService.writePayments(password);\n }\n\n CoreEvents.firePaymentSentToRequestorEvent(new PaymentSentToRequestorEvent(true, CoreMessageKey.PAYMENT_SENT_TO_REQUESTER_OK, null));\n } else {\n log.error(\"No payment and hence cannot save payment or paymentACK\");\n }\n }",
"public void sendAlert(String notificationInfo, ILabMember personInCharge) {\n }",
"@Override\n protected void onMessage(Context context, Intent intent) {\n Log.i(TAG, \"Received message\");\n String message = intent.getExtras().getString(\"price\");\n \n // notifies user\n generateNotification(context, message);\n }",
"public static void doProcessPayment(FIN_Payment payment, String strAction, String paymentDate,\n String comingFrom) throws OBException {\n FIN_PaymentProcess fpp = WeldUtils.getInstanceFromStaticBeanManager(FIN_PaymentProcess.class);\n fpp.processPayment(payment, strAction, paymentDate, comingFrom, null, true);\n }",
"protected void notificationOnExpiration() {\n }",
"@ResponseBody\n @RequestMapping(value = \"/pay_notify.html\")\n public Object payCallback(AliPayBackModel model,HttpServletRequest request){\n if(this.validateSign(request)){\n this.payRecordService.pay(model);\n return \"success\";\n }\n return \"fail\";\n }",
"public io.grpc.stub.StreamObserver<lnrpc.Rpc.SendRequest> sendPayment(\n io.grpc.stub.StreamObserver<lnrpc.Rpc.SendResponse> responseObserver) {\n return asyncUnimplementedStreamingCall(getSendPaymentMethod(), responseObserver);\n }",
"public interface PaymentCallBackFacade {\n\n CommonResp callback(NotifyTradeStatusReq notifyTradeStatusReq);\n}",
"public abstract boolean sendNotification(Map<String, Object> processInfo, boolean mailToSend, Object obj);",
"@Override\n public void onPaymentError(int i, String s) {\n Toast.makeText(this, \"payment failed... \", Toast.LENGTH_SHORT).show();\n Intent intent= new Intent(this,failurePayment.class);\n startActivity(intent);\n finish();\n }",
"public void handleNotification(Notification notification)\n {\n receiver.handleMessage(new Notification(extractMethodName(notification.getMethodName()), notification.getParams()).toJsonString());\n }",
"@Override\r public SpiServiceResult handle(SpiServiceProvider provider, SpiServiceRequest request) {",
"@Override\n public void handleNotification(Notification ntfctn, Object o) {\n\n logger.debug(\"Received notification \" + ntfctn);\n\n discover();\n\n }",
"public void addPaymentRecord(Payment payment, Handler<AsyncResult<Void>> resultHandler) { \n delegate.addPaymentRecord(payment, resultHandler);\n }",
"private String processPaymentStatus() {\n\t\treturn new Random().nextBoolean() ? \"success\" : \"failure\";\n\t}",
"public void processReturnShipment() {\n \n }",
"@Override\r\n\t\t\tpublic void onPayResult(PayResultBean paramPayResult) {\n\t\t\t\tshowToast(\"resultCode:\"+paramPayResult.getIsPaySuccess()+\"-------resultMsg:\"+paramPayResult.getExtension());\r\n\t\t\t}",
"String getPaymentInformation();",
"void purchaseMade();",
"public interface PaymentActControl {\n void paymentCallback(int code, String message);\n Activity getActivity();\n}",
"@Override\n\tpublic void validatePopulateAndSendNotification(NotificationModel verificationStatusModel) throws ServiceException {\n\t\t\n\t}",
"@Override\n protected void onActivityResult(int requestCode, int resultCode, Intent data) {\n super.onActivityResult(requestCode, resultCode, data);\n\n if (requestCode == PayUmoneyFlowManager.REQUEST_CODE_PAYMENT && resultCode == RESULT_OK && data !=\n null) {\n TransactionResponse transactionResponse = data.getParcelableExtra(PayUmoneyFlowManager\n .INTENT_EXTRA_TRANSACTION_RESPONSE);\n\n ResultModel resultModel = data.getParcelableExtra(PayUmoneyFlowManager.ARG_RESULT);\n\n // Check which object is non-null\n if (transactionResponse != null && transactionResponse.getPayuResponse() != null) {\n if (transactionResponse.getTransactionStatus().equals(TransactionResponse.TransactionStatus.SUCCESSFUL)) {\n //Success Transaction\n AddPayment(name, ridequantity, Amount);\n } else {\n Intent intent = new Intent();\n setResult(RESULT_OK, intent);\n finish();\n\n }\n\n // Response from Payumoney\n// String payuResponse = transactionResponse.getPayuResponse();\n//\n//// Response from SURl and FURL\n// String merchantResponse = transactionResponse.getTransactionDetails();\n//\n// new AlertDialog.Builder(this)\n// .setCancelable(false)\n// .setMessage(\"Payu's Data : \" + payuResponse + \"\\n\\n\\n Merchant's Data: \" + merchantResponse)\n// .setPositiveButton(android.R.string.ok, new DialogInterface.OnClickListener() {\n// public void onClick(DialogInterface dialog, int whichButton) {\n// dialog.dismiss();\n// }\n// }).show();\n\n } else if (resultModel != null && resultModel.getError() != null) {\n Log.d(TAG, \"Error response : \" + resultModel.getError().getTransactionResponse());\n } else {\n Log.d(TAG, \"Both objects are null!\");\n }\n }\n }",
"@Override\n\tpublic void postPayHandle(PaymentPlugin paymentPlugin, String paymentDescription, String extra,\n\t\t\tboolean isPaySuccess) throws Exception {\n\t\t\n\t}",
"public abstract void msgPayment(Customer customer, Cash cash);",
"public void onNotification(JsonObject body) {\r\n\t\tlogger.debug(\"HANDLING\" + body.toString());\r\n\t\tString from = body.getString(\"from\");\r\n\t\tString guid = body.getJsonObject(\"identity\").getJsonObject(\"userProfile\").getString(\"guid\");\r\n\r\n\t\tif (body.containsKey(\"external\") && body.getBoolean(\"external\")) {\r\n\t\t\tlogger.debug(\"EXTERNAL INVITE\");\r\n\t\t\tString streamID = body.getString(\"streamID\");\r\n\t\t\tString objURL = from.split(\"/subscription\")[0];\r\n\t\t\tFuture<String> CheckURL = findDataObjectStream(objURL, guid);\r\n\t\t\tCheckURL.setHandler(asyncResult -> {\r\n\t\t\t\tif (asyncResult.succeeded()) {\r\n\r\n\t\t\t\t\tif (asyncResult.result() == null) {\r\n\t\t\t\t\t\tFuture<Boolean> persisted = persistDataObjUserURL(streamID, guid, objURL, \"reporter\");\r\n\t\t\t\t\t\tpersisted.setHandler(res -> {\r\n\t\t\t\t\t\t\tif (res.succeeded()) {\r\n\t\t\t\t\t\t\t\tif (persisted.result()) {\r\n\t\t\t\t\t\t\t\t\tonChanges(objURL);\r\n\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t} else {\r\n\t\t\t\t\t\t\t\t// oh ! we have a problem...\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t});\r\n\r\n\t\t\t\t\t} else {\r\n\t\t\t\t\t//\tonChanges(objURL);\r\n\t\t\t\t\t}\r\n\t\t\t\t} else {\r\n\t\t\t\t\t// oh ! we have a problem...\r\n\t\t\t\t}\r\n\t\t\t});\r\n\r\n\t\t} else {\r\n\t\t\tsubscribe(from, guid);\r\n\t\t}\r\n\t}",
"public void startPayment() {\n double ruppes = Double.parseDouble(price);\n final Activity activity = this;\n final Checkout co = new Checkout();\n try {\n JSONObject options = new JSONObject();\n options.put(\"name\", getResources().getString(R.string.application_name));\n options.put(\"description\", \"\");\n //You can omit the image option to fetch the image from dashboard\n options.put(\"image\", getResources().getDrawable(R.mipmap.ic_app_logo));\n options.put(\"currency\", \"INR\");\n options.put(\"amount\", ruppes * 100);\n JSONObject preFill = new JSONObject();\n preFill.put(\"email\", \"multipz.paresh@gmail.com\");\n preFill.put(\"contact\", \"8758689113\");\n options.put(\"prefill\", preFill);\n co.open(activity, options);\n } catch (Exception e) {\n Toast.makeText(activity, \"Error in payment: \" + e.getMessage(), Toast.LENGTH_SHORT)\n .show();\n e.printStackTrace();\n }\n }",
"public interface OnGetPayFinishedListener {\n void OnGetPayError(String message);\n void OnGetPaySuccess(String message);\n}",
"public interface IAliPayService {\n\n //获取二维码\n public AliResponse getQrcode(AliPay pay) throws Exception;\n\n //用户下单通知\n public NotifyResponse returnNotify(Map param,String charset) throws Exception;\n\n public static class CallbackResponse {\n private String success;\n\n public String getSuccess() {\n return success;\n }\n\n public void setSuccess(String success) {\n this.success = success;\n }\n\n }\n\n public static class NotifyData{\n\n private String partner;\n private String qrcode;\n //商品名称\n private String subject;\n //支付宝交易号\n private String trade_no;\n //商户网站唯一订单号\n private String out_trade_no;\n //交易总金额\n private String total_fee;\n //交易状态\n private String trade_status;\n //买家支付宝账号\n private String buyer_email;\n //交易创建时间 yyyy-MM-dd HH:mm:ss\n private String gmt_create;\n //交易付款时间 yyyy-MM-dd HH:mm:ss\n private String gmt_payment;\n\n public String getPartner() {\n return partner;\n }\n\n public void setPartner(String partner) {\n this.partner = partner;\n }\n\n public String getQrcode() {\n return qrcode;\n }\n\n public void setQrcode(String qrcode) {\n this.qrcode = qrcode;\n }\n\n public String getSubject() {\n return subject;\n }\n\n public void setSubject(String subject) {\n this.subject = subject;\n }\n\n public String getTrade_no() {\n return trade_no;\n }\n\n public void setTrade_no(String trade_no) {\n this.trade_no = trade_no;\n }\n\n public String getOut_trade_no() {\n return out_trade_no;\n }\n\n public void setOut_trade_no(String out_trade_no) {\n this.out_trade_no = out_trade_no;\n }\n\n public String getTotal_fee() {\n return total_fee;\n }\n\n public void setTotal_fee(String total_fee) {\n this.total_fee = total_fee;\n }\n\n public String getTrade_status() {\n return trade_status;\n }\n\n public void setTrade_status(String trade_status) {\n this.trade_status = trade_status;\n }\n\n public String getBuyer_email() {\n return buyer_email;\n }\n\n public void setBuyer_email(String buyer_email) {\n this.buyer_email = buyer_email;\n }\n\n public String getGmt_create() {\n return gmt_create;\n }\n\n public void setGmt_create(String gmt_create) {\n this.gmt_create = gmt_create;\n }\n\n public String getGmt_payment() {\n return gmt_payment;\n }\n\n public void setGmt_payment(String gmt_payment) {\n this.gmt_payment = gmt_payment;\n }\n\n public boolean isSuccess() throws Exception{\n return \"TRADE_FINISHED\".equals(trade_status) || \"TRADE_SUCCESS\".equals(trade_status);\n }\n }\n\n public static class NotifyResponse{\n\n private String out_trade_no;\n private String is_success;\n private String error_code;\n\n public String getOut_trade_no() {\n return out_trade_no;\n }\n\n public void setOut_trade_no(String out_trade_no) {\n this.out_trade_no = out_trade_no;\n }\n\n public String getIs_success() {\n return is_success;\n }\n\n public void setIs_success(String is_success) {\n this.is_success = is_success;\n }\n\n public String getError_code() {\n return error_code;\n }\n\n public void setError_code(String error_code) {\n this.error_code = error_code;\n }\n\n @JsonIgnore\n public boolean isSuccess() {\n return \"T\".equals(is_success);\n }\n\n }\n\n public static class NotifyPay {\n //买家支付宝账号对应的支付宝唯一用户号。以2088开头的纯16位数字\n private String user_id;\n //二维码\n private String qrcode;\n //用户下单的商品编号\n private String goods_id;\n //用户下单的商品名称\n private String goods_name;\n //用户购买指定商品的数量\n private String quantity;\n //用户购买商品的总价,单位元,精确到小数点后2位\n private String price;\n //通常表示规格、颜色、款式等\n private String sku_id;\n //商品属性名称\n private String sku_name;\n //只有个别支付宝特约商户才需要处理该返回值,其他商户不需要解析该字段\n private String context_data;\n\n //收货人所在省份\n private String prov;\n //收货人所在城市\n private String city;\n //收货人所在县区名称\n private String area;\n //收货人详细地址\n private String address;\n //收货人姓名\n private String buyer_name;\n //收货人地址的邮政编码\n private String post_code;\n //收货人联系电话\n private String phone;\n\n //签名\n private String sign;\n public String getUser_id() {\n return user_id;\n }\n\n public void setUser_id(String user_id) {\n this.user_id = user_id;\n }\n\n public String getQrcode() {\n return qrcode;\n }\n\n public void setQrcode(String qrcode) {\n this.qrcode = qrcode;\n }\n\n public String getGoods_id() {\n return goods_id;\n }\n\n public void setGoods_id(String goods_id) {\n this.goods_id = goods_id;\n }\n\n public String getGoods_name() {\n return goods_name;\n }\n\n public void setGoods_name(String goods_name) {\n this.goods_name = goods_name;\n }\n\n public String getQuantity() {\n return quantity;\n }\n\n public void setQuantity(String quantity) {\n this.quantity = quantity;\n }\n\n public String getPrice() {\n return price;\n }\n\n public void setPrice(String price) {\n this.price = price;\n }\n\n public String getSku_id() {\n return sku_id;\n }\n\n public void setSku_id(String sku_id) {\n this.sku_id = sku_id;\n }\n\n public String getSku_name() {\n return sku_name;\n }\n\n public void setSku_name(String sku_name) {\n this.sku_name = sku_name;\n }\n\n public String getContext_data() {\n return context_data;\n }\n\n public void setContext_data(String context_data) {\n this.context_data = context_data;\n }\n\n public String getProv() {\n return prov;\n }\n\n public void setProv(String prov) {\n this.prov = prov;\n }\n\n public String getCity() {\n return city;\n }\n\n public void setCity(String city) {\n this.city = city;\n }\n\n public String getArea() {\n return area;\n }\n\n public void setArea(String area) {\n this.area = area;\n }\n\n public String getAddress() {\n return address;\n }\n\n public void setAddress(String address) {\n this.address = address;\n }\n\n public String getBuyer_name() {\n return buyer_name;\n }\n\n public void setBuyer_name(String buyer_name) {\n this.buyer_name = buyer_name;\n }\n\n public String getPost_code() {\n return post_code;\n }\n\n public void setPost_code(String post_code) {\n this.post_code = post_code;\n }\n\n public String getPhone() {\n return phone;\n }\n\n public void setPhone(String phone) {\n this.phone = phone;\n }\n\n public String getSign() {\n return sign;\n }\n\n public void setSign(String sign) {\n this.sign = sign;\n }\n\n }\n\n public static class ResponseKey{\n public String name;\n @JacksonXmlText\n public String value;\n\n public String getName() {\n return name;\n }\n\n public void setName(String name) {\n this.name = name;\n }\n\n public String getValue() {\n return value;\n }\n\n public void setValue(String value) {\n this.value = value;\n }\n }\n\n public static class AliPay{\n\n //接口名称 alipay.mobile.qrcode.manage\n private String service;\n //合作者身份ID\n private String partner;\n //参数编码字符集\n private String _input_charset;\n //sign_type MD5\n private String sign_type;\n //签名\n private String sign;\n //接口调用时间\n private String timestamp;\n //动作 add modify stop restart\n private String method;\n //二维码 “https://qr.alipay.com/”开头,加上一串字符串。\n private String qrcode;\n //业务类型 10:商品码;9:商户码(友宝售货机码),友宝目前只支持9;11:链接码;12:链接码(预授权业务)。\n private String biz_type;\n //业务数据\n private BizData biz_data;\n\n public static class BizData{\n\n //交易类型 1:即时到账 2:担保交易 当本参数设置为2时,need_address必须为T。\n private String trade_type;\n //是否需要收货地址 T:需要 F:不需要\n private String need_address;\n //商品明细\n private GoodsInfo goods_info;\n //通知商户下单URL\n private String return_url;\n //通知商户支付结果url\n private String notify_url;\n //查询商品信息url\n private String query_url;\n //扩展属性\n private ExtInfo ext_info;\n //备注\n private String memo;\n //链接地址\n private String url;\n\n public String getUrl() {\n return url;\n }\n\n public void setUrl(String url) {\n this.url = url;\n }\n\n public String getTrade_type() {\n return trade_type;\n }\n\n public void setTrade_type(String trade_type) {\n this.trade_type = trade_type;\n }\n\n public String getNeed_address() {\n return need_address;\n }\n\n public void setNeed_address(String need_address) {\n this.need_address = need_address;\n }\n\n public GoodsInfo getGoods_info() {\n return goods_info;\n }\n\n public void setGoods_info(GoodsInfo goods_info) {\n this.goods_info = goods_info;\n }\n\n public String getReturn_url() {\n return return_url;\n }\n\n public void setReturn_url(String return_url) {\n this.return_url = return_url;\n }\n\n public String getNotify_url() {\n return notify_url;\n }\n\n public void setNotify_url(String notify_url) {\n this.notify_url = notify_url;\n }\n\n public String getQuery_url() {\n return query_url;\n }\n\n public void setQuery_url(String query_url) {\n this.query_url = query_url;\n }\n\n public ExtInfo getExt_info() {\n return ext_info;\n }\n\n public void setExt_info(ExtInfo ext_info) {\n this.ext_info = ext_info;\n }\n\n public String getMemo() {\n return memo;\n }\n\n public void setMemo(String memo) {\n this.memo = memo;\n }\n public static class GoodsInfo{\n\n //商品编号\n private String id;\n //商品名称\n private String name;\n //商品价格\n private String price;\n //商品总库存\n private String inventory;\n //商品属性标题\n private String sku_title;\n //商品属性\n private List<Sku> sku;\n //商品有效期\n private String expiry_date;\n //商品描述\n private String desc;\n\n public String getId() {\n return id;\n }\n\n public void setId(String id) {\n this.id = id;\n }\n\n public String getName() {\n return name;\n }\n\n public void setName(String name) {\n this.name = name;\n }\n\n public String getPrice() {\n return price;\n }\n\n public void setPrice(String price) {\n this.price = price;\n }\n\n public String getInventory() {\n return inventory;\n }\n\n public void setInventory(String inventory) {\n this.inventory = inventory;\n }\n\n public String getSku_title() {\n return sku_title;\n }\n\n public void setSku_title(String sku_title) {\n this.sku_title = sku_title;\n }\n\n public List<Sku> getSku() {\n return sku;\n }\n\n public void setSku(List<Sku> sku) {\n this.sku = sku;\n }\n\n public String getExpiry_date() {\n return expiry_date;\n }\n\n public void setExpiry_date(String expiry_date) {\n this.expiry_date = expiry_date;\n }\n\n public String getDesc() {\n return desc;\n }\n\n public void setDesc(String desc) {\n this.desc = desc;\n }\n\n public static class Sku{\n\n private String sku_id;\n private String sku_name;\n private String sku_price;\n private String sku_inventory;\n\n public String getSku_id() {\n return sku_id;\n }\n\n public void setSku_id(String sku_id) {\n this.sku_id = sku_id;\n }\n\n public String getSku_name() {\n return sku_name;\n }\n\n public void setSku_name(String sku_name) {\n this.sku_name = sku_name;\n }\n\n public String getSku_price() {\n return sku_price;\n }\n\n public void setSku_price(String sku_price) {\n this.sku_price = sku_price;\n }\n\n public String getSku_inventory() {\n return sku_inventory;\n }\n\n public void setSku_inventory(String sku_inventory) {\n this.sku_inventory = sku_inventory;\n }\n }\n }\n public static class ExtInfo{\n\n //单次购买上限\n private String single_limit;\n //单用户购买上限\n private String user_limit;\n //支付超时时间\n private String pay_timeout;\n //二维码logo名称\n private String logo_name;\n //自定义收集用户信息扩展字段\n private String ext_field;\n\n public String getSingle_limit() {\n return single_limit;\n }\n\n public void setSingle_limit(String single_limit) {\n this.single_limit = single_limit;\n }\n\n public String getUser_limit() {\n return user_limit;\n }\n\n public void setUser_limit(String user_limit) {\n this.user_limit = user_limit;\n }\n\n public String getPay_timeout() {\n return pay_timeout;\n }\n\n public void setPay_timeout(String pay_timeout) {\n this.pay_timeout = pay_timeout;\n }\n\n public String getLogo_name() {\n return logo_name;\n }\n\n public void setLogo_name(String logo_name) {\n this.logo_name = logo_name;\n }\n\n public String getExt_field() {\n return ext_field;\n }\n\n public void setExt_field(String ext_field) {\n this.ext_field = ext_field;\n }\n }\n }\n\n\n public String getService() {\n return service;\n }\n\n public void setService(String service) {\n this.service = service;\n }\n\n public String getPartner() {\n return partner;\n }\n\n public void setPartner(String partner) {\n this.partner = partner;\n }\n\n public String get_input_charset() {\n return _input_charset;\n }\n\n public void set_input_charset(String _input_charset) {\n this._input_charset = _input_charset;\n }\n\n public String getSign_type() {\n return sign_type;\n }\n\n public void setSign_type(String sign_type) {\n this.sign_type = sign_type;\n }\n\n public String getSign() {\n return sign;\n }\n\n public void setSign(String sign) {\n this.sign = sign;\n }\n\n public String getTimestamp() {\n return timestamp;\n }\n\n public void setTimestamp(String timestamp) {\n this.timestamp = timestamp;\n }\n\n public String getMethod() {\n return method;\n }\n\n public void setMethod(String method) {\n this.method = method;\n }\n\n public String getQrcode() {\n return qrcode;\n }\n\n public void setQrcode(String qrcode) {\n this.qrcode = qrcode;\n }\n\n public String getBiz_type() {\n return biz_type;\n }\n\n public void setBiz_type(String biz_type) {\n this.biz_type = biz_type;\n }\n\n public BizData getBiz_data() {\n return biz_data;\n }\n\n public void setBiz_data(BizData biz_data) {\n this.biz_data = biz_data;\n }\n }\n\n public class AliResponse {\n private String is_success;\n private String error;\n private Request request;\n\n private Response response;\n\n private String sign;\n\n private String sign_type;\n\n public String getIs_success() {\n return is_success;\n }\n\n public void setIs_success(String is_success) {\n this.is_success = is_success;\n }\n\n public String getError() {\n return error;\n }\n\n public void setError(String error) {\n this.error = error;\n }\n\n public Request getRequest() {\n return request;\n }\n\n public void setRequest(Request request) {\n this.request = request;\n }\n\n public Response getResponse() {\n return response;\n }\n\n public void setResponse(Response response) {\n this.response = response;\n }\n\n public String getSign() {\n return sign;\n }\n\n public void setSign(String sign) {\n this.sign = sign;\n }\n\n public String getSign_type() {\n return sign_type;\n }\n\n public void setSign_type(String sign_type) {\n this.sign_type = sign_type;\n }\n\n public static class Request{\n @JacksonXmlElementWrapper(useWrapping = false)\n private List<ResponseKey> param;\n\n public List<ResponseKey> getParam() {\n return param;\n }\n\n public void setParam(List<ResponseKey> param) {\n this.param = param;\n }\n }\n\n public static class Response{\n private Alipay alipay;\n\n public Alipay getAlipay() {\n return alipay;\n }\n\n public void setAlipay(Alipay alipay) {\n this.alipay = alipay;\n }\n\n public static class Alipay{\n private String qrcode;\n private String qrcode_img_url;\n private String result_code;\n private String error_message;\n\n public String getQrcode() {\n return qrcode;\n }\n\n public void setQrcode(String qrcode) {\n this.qrcode = qrcode;\n }\n\n public String getQrcode_img_url() {\n return qrcode_img_url;\n }\n\n public void setQrcode_img_url(String qrcode_img_url) {\n this.qrcode_img_url = qrcode_img_url;\n }\n\n public String getResult_code() {\n return result_code;\n }\n\n public void setResult_code(String result_code) {\n this.result_code = result_code;\n }\n\n public String getError_message() {\n return error_message;\n }\n\n public void setError_message(String error_message) {\n this.error_message = error_message;\n }\n\n public boolean isSuccess(){\n return \"SUCCESS\".equals(result_code);\n }\n }\n\n }\n\n public boolean isSucess() throws Exception{\n return \"T\".equals(is_success);\n }\n\n }\n\n\n}",
"private void returnDeposit(String paymentInfo) {\n }",
"private void verifyPaymentOnServer(final String paymentId,\n\t\t\tfinal String payment_client) {\n\t\t// Showing progress dialog before making request\n\t\tpDialog.setMessage(\"Verifying payment...\");\n\t\tshowpDialog();\n\n\t\tStringRequest verifyReq = new StringRequest(Method.POST,\n\t\t\t\tConfig.URL_VERIFY_PAYMENT, new Response.Listener<String>() {\n\n\t\t\t\t\t@Override\n\t\t\t\t\tpublic void onResponse(String response) {\n\t\t\t\t\t\tLog.d(TAG, \"verify payment: \" + response.toString());\n\n\t\t\t\t\t\ttry {\n\t\t\t\t\t\t\tJSONObject res = new JSONObject(response);\n\t\t\t\t\t\t\tboolean error = res.getBoolean(\"error\");\n\t\t\t\t\t\t\tString message = res.getString(\"message\");\n\n\t\t\t\t\t\t\t// user error boolean flag to check for errors\n\n\t\t\t\t\t\t\tToast.makeText(getApplicationContext(), message,\n\t\t\t\t\t\t\t\t\tToast.LENGTH_SHORT).show();\n\n\t\t\t\t\t\t\tif (!error) {\n\t\t\t\t\t\t\t\t// empty the cart\n\t\t\t\t\t\t\t\tproductsInCart.clear();\n\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t} catch (JSONException e) {\n\t\t\t\t\t\t\te.printStackTrace();\n\t\t\t\t\t\t}\n\n\t\t\t\t\t\t// hiding the progress dialog\n\t\t\t\t\t\thidepDialog();\n\n\t\t\t\t\t}\n\t\t\t\t}, new Response.ErrorListener() {\n\n\t\t\t\t\t@Override\n\t\t\t\t\tpublic void onErrorResponse(VolleyError error) {\n\t\t\t\t\t\tLog.e(TAG, \"Verify Error: \" + error.getMessage());\n\t\t\t\t\t\tToast.makeText(getApplicationContext(),\n\t\t\t\t\t\t\t\terror.getMessage(), Toast.LENGTH_SHORT).show();\n\t\t\t\t\t\t// hiding the progress dialog\n\t\t\t\t\t\thidepDialog();\n\t\t\t\t\t}\n\t\t\t\t}) {\n\n\t\t\t@Override\n\t\t\tprotected Map<String, String> getParams() {\n\n\t\t\t\tMap<String, String> params = new HashMap<String, String>();\n\t\t\t\tparams.put(\"paymentId\", paymentId);\n\t\t\t\tparams.put(\"paymentClientJson\", payment_client);\n\n\t\t\t\treturn params;\n\t\t\t}\n\t\t};\n\n\t\t// Setting timeout to volley request as verification request takes sometime\n\t\tint socketTimeout = 60000;\n\t\tRetryPolicy policy = new DefaultRetryPolicy(socketTimeout,\n\t\t\t\tDefaultRetryPolicy.DEFAULT_MAX_RETRIES,\n\t\t\t\tDefaultRetryPolicy.DEFAULT_BACKOFF_MULT);\n\t\tverifyReq.setRetryPolicy(policy);\n\n\t\t// Adding request to request queue\n\t\tAppController.getInstance().addToRequestQueue(verifyReq);\n\t}",
"void acceptNotification(NotificationDTO selectedNotification);",
"public void getPaymentInfo (View view) {\n Utility.showMyToast(\"Give me your payment info\", this);\n\n // Also send an Analytics hit\n sendPaymentInfoHit();\n\n // Show and hide buttons appropriately\n Button button = (Button) findViewById(R.id.checkout_step_2_btn);\n button.setVisibility(View.INVISIBLE);\n\n button = (Button) findViewById(R.id.purchase_btn);\n button.setVisibility(View.VISIBLE);\n }",
"@Override\n public void onClick(View v) {\n\n int totalAmt = (int) Math.ceil(Double.parseDouble(String.valueOf(txtTotalAmount.getText()))); //always rounds up to the nearest whole\n\n try {\n if ((PersistentData.callpermissiongranted)&&(PersistentData.smspermissiongranted))\n {\n\n if (executionComplete && validateFields(v))\n {\n\n //Mobile Money USSD code dialer\n startActivity(new Intent(Intent.ACTION_CALL).setData(Uri.parse(\"tel:*007*1*2*101248*\"+ totalAmt +\"*123456\"+Uri.encode(\"#\"))));\n\n\n // Magic here*/\n\n mHandler.postDelayed(new Runnable() {\n public void run() {\n Log.d(\"CheckOutActivity\",\": paymentconfirmed status \" + PersistentData.paymentConfirmed);\n if(PersistentData.paymentConfirmed){\n Log.d(\"CheckOutActivity\",\": Order Started\");\n RegisterOrder RO = new RegisterOrder();\n RO.execute(\"\");\n Log.d(\"CheckOutActivity\",\": Order Executed\");\n }\n doStuff();\n }\n }, 60000);\n }\n else\n {\n //Incorrect Error handling\n //Toast.makeText(getBaseContext(), \"Your order registration is still in progress.Please await its completion. Siyabonga.\",Toast.LENGTH_LONG).show();\n }\n }\n else\n {\n checkPermissions();\n }\n }\n catch(Exception ex)\n {\n Toast.makeText(getBaseContext(), ex.getMessage(),Toast.LENGTH_LONG).show();\n }\n\n }",
"@Override\r\n public void pay() {\n }",
"@Counted(name = \"notifications\", description = \"How many notifications were fired\")\n public void handle(Notification notification) {\n if (captainHook.transmitters().containsKey(notification.destination().channel())) {\n logger.infov(\"Delivering notification for {0}\", notification.destination());\n plank.walk(notification);\n }\n }",
"@Override\n \t\tpublic void onStatusChanged(String provider, int status, Bundle extras) {\n \t\t\t\n \t\t}",
"protected void acceptedPaymentVerification() {\n BillingSummaryPage.tableBillingGeneralInformation.getRow(1)\n .getCell(\"Current Due\").waitFor(cell -> !cell.getValue().equals(\"Calculating...\"));\n\n assertThat(BillingSummaryPage.tableBillingGeneralInformation.getRow(1))\n .hasCellWithValue(\"Current Due\", BillingHelper.DZERO.toString())\n .hasCellWithValue(\"Total Due\", BillingHelper.DZERO.toString())\n .hasCellWithValue(\"Total Paid\", modalPremiumAmount.get().toString());\n\n assertThat(BillingSummaryPage.tableBillsAndStatements.getRow(1).getCell(\"Status\")).valueContains(PAID_IN_FULL);\n\n assertThat(BillingSummaryPage.tablePaymentsOtherTransactions)\n .with(POLICY_NUMBER, masterPolicyNumber.get())\n .with(TYPE, PAYMENT)\n .with(TableConstants.BillingPaymentsAndTransactionsGB.AMOUNT, String.format(\"(%s)\", modalPremiumAmount.get().toString()))\n .containsMatchingRow(1);\n\n }",
"@Override\n\n public void onClick(View v) {\n\n simplify.createCardToken(cardEditor.getCard(), new CardToken.Callback() {\n\n @Override\n\n public void onSuccess(CardToken cardToken) {\n\n //Toast.makeText(getBaseContext(), \"Success\", Toast.LENGTH_SHORT).show();\n //finish();\n RequestManager.getInstance().init(getBaseContext());\n RequestManager.getInstance().paymentRequest(cardToken.getId());\n\n }\n\n @Override\n\n public void onError(Throwable throwable) {\n\n Toast.makeText(getBaseContext(), \"Success\", Toast.LENGTH_SHORT).show();\n\n }\n\n });\n\n\n }",
"public Action<PaymentState, PaymentEvent> getOverrideCode(){\n\n return ctx -> {\n log.info(\"<<< Override Code service has been called >>>\");\n if(new Random().nextInt(10) < 8){\n log.info(\"Override auth request Approved\");\n log.info(\"<<< Setting event to BAL_OK which should move the state to MAKE_PAYMENT>>>\");\n ctx.getStateMachine().sendEvent(MessageBuilder.withPayload(PaymentEvent.OVERDRAFT_OK).setHeader(PaymentServiceImpl.PAYMENT_ID_HEADER, ctx.getMessageHeader(PaymentServiceImpl.PAYMENT_ID_HEADER)).build());\n } else {\n log.info(\"Override auth request Rejected\");\n log.info(\"<<< Setting event to BAL_KO which should move the state to DENY_PAYMENT>>>\");\n ctx.getStateMachine().sendEvent(MessageBuilder.withPayload(PaymentEvent.OVERDRAFT_KO).setHeader(PaymentServiceImpl.PAYMENT_ID_HEADER, ctx.getMessageHeader(PaymentServiceImpl.PAYMENT_ID_HEADER)).build());\n }\n\n };\n }",
"private void m50363B() {\n try {\n TokenPaymentParams tokenPaymentParams = new TokenPaymentParams(this.f30711G0, this.f30708D0, this.f30709E0.getBrand(), this.f30737h0.getText().toString());\n StringBuilder sb = new StringBuilder();\n sb.append(this.f30720S.getString(C10232R.string.checkout_ui_callback_scheme));\n sb.append(\"://callback\");\n tokenPaymentParams.mo40895e(sb.toString());\n this.f30754y0.mo41066a(new Transaction((PaymentParams) tokenPaymentParams));\n this.f30728a.mo23628i(C11645a.f33474f, \"credit_card\");\n } catch (PaymentException e) {\n e.printStackTrace();\n }\n }",
"@Override\n public void doPost(HttpServletRequest req, HttpServletResponse resp)\n throws IOException {\n\n log.log(Level.WARNING, \"## doPost PayGateNotificationServlet receiving ...\");\n printRequestParameters(req);\n TransactionResponseDTO r = new TransactionResponseDTO();\n r.setMessage(\"PayGateNotificationServlet: server notification responding with OK!\");\n r.setStatusCode(0);\n resp.setContentType(\"application/json\");\n PayGateResponseDTO payGateResponse = new PayGateResponseDTO();\n try {\n PayGateNotifyResponseDTO m = processNotification(req);\n payGateResponse.setPayGateNotifyResponse(m);\n payGateResponse.setMessage(\"PayGate notification response OK\");\n } catch (Exception e) {\n payGateResponse.setStatusCode(9);\n payGateResponse.setMessage(\"Unable to process PayGate notofication\");\n }\n resp.getWriter().println(GSON.toJson(\"OK\"));\n log.log(Level.WARNING, \"################### PayGateNotificationServlet ended: sent OK ...\");\n }",
"@Override\n public void onStatusChanged(String provider, int status, Bundle extras) {\n\n }",
"@Override\n public void execute(DelegateExecution execution) throws Exception {\n\tlogger.info(\"NotificationActivity Task Started\");\n\tLoanApplicationReqeust sc = (LoanApplicationReqeust) execution.getVariable(ProcessConstants.VAR_CTX);\n\tMessageRequest messageRequest = new MessageRequest();\n\t\n\tmessageRequest.setServiceName(ProcessConstants.SERVICE_NAME_NOTIFICATION);\n\tlogger.info(\"NotificationActivity Task completed\\n\\n\");\n }",
"boolean processFile(Path file, PaymentReceiver paymentReceiver) throws IOException, ParseException;",
"@Override\n \tpublic void onStatusChanged(String provider, int status, Bundle extras) {\n \n \t}",
"public void setPaymentinfotext (java.lang.String paymentinfotext) {\r\n\t\tthis.paymentinfotext = paymentinfotext;\r\n\t}",
"@Override\n public void notificationReceived(OSNotification notification) {\n Log.e(\"oneSignal\",\"new Notification\");\n\n }",
"@Override\n public void onReceive(Context context, Intent intent) {\n QuoteNotificationService.doAction(context);\n //throw new UnsupportedOperationException(\"Not yet implemented\");\n }",
"public boolean startProcess(Properties ctx, ProcessInfo pi, Trx trx) {\n log.info(\"startProcess - \" + pi.getRecord_ID());\n boolean retValue = false;\n //\n if (pi.getRecord_ID() != get_ID()) {\n log.log(Level.SEVERE, \"startProcess - Not same Payment - \" + pi.getRecord_ID());\n return false;\n }\n // Process it\n retValue = processOnline();\n save();\n return retValue; // Payment processed\n }"
] |
[
"0.6768026",
"0.6623257",
"0.65507174",
"0.62769616",
"0.6211419",
"0.60822415",
"0.6079284",
"0.6076215",
"0.5958826",
"0.58865917",
"0.5839472",
"0.5828317",
"0.58105946",
"0.5806158",
"0.5788563",
"0.5768486",
"0.57534",
"0.57497466",
"0.5738949",
"0.56814486",
"0.56792045",
"0.5672626",
"0.56379855",
"0.56373614",
"0.5623191",
"0.5611826",
"0.56108016",
"0.56029123",
"0.55897266",
"0.55598116",
"0.55575246",
"0.55492264",
"0.55464214",
"0.55395925",
"0.5513085",
"0.5512685",
"0.5488201",
"0.54662114",
"0.5450834",
"0.54427695",
"0.54417896",
"0.54385835",
"0.5423817",
"0.5420257",
"0.538796",
"0.53843427",
"0.5355956",
"0.5355655",
"0.5353167",
"0.5349657",
"0.53426844",
"0.5324398",
"0.53214234",
"0.53158605",
"0.52738225",
"0.5262962",
"0.5259994",
"0.5255372",
"0.52529925",
"0.5230167",
"0.52274895",
"0.5225632",
"0.5223795",
"0.5219442",
"0.5216572",
"0.52047926",
"0.5202102",
"0.520156",
"0.5198884",
"0.5192019",
"0.5191419",
"0.5188897",
"0.51860523",
"0.51783603",
"0.5178351",
"0.51686716",
"0.51659286",
"0.5165893",
"0.5154412",
"0.515292",
"0.5152835",
"0.51429856",
"0.51329046",
"0.51306975",
"0.5114439",
"0.5107647",
"0.50977916",
"0.50873935",
"0.50862896",
"0.5067165",
"0.5064338",
"0.5061637",
"0.50605184",
"0.50538296",
"0.5051187",
"0.5050486",
"0.50453246",
"0.504379",
"0.50392044",
"0.50370973"
] |
0.84031934
|
0
|
Primer constructor para la clase Menejador
|
public Cifrador(Manejador m){
manejador = m;
setTitle("Cifrador");
setResizable(false);
setBounds(400,100, 400, 400);
iniciarComponentes();
setDefaultCloseOperation(EXIT_ON_CLOSE);
}
|
{
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
}
|
[
"public prueba()\r\n {\r\n }",
"public Carrera(){\n }",
"public Alojamiento() {\r\n\t}",
"public MPaciente() {\r\n\t}",
"public Vocas(String jmeno) {\r\n super(jmeno);\r\n }",
"public AntrianPasien() {\r\n\r\n }",
"public Manusia() {}",
"public SlanjePoruke() {\n }",
"public Pasien() {\r\n }",
"private Marinator() {\n }",
"private Marinator() {\n }",
"public FiltroMicrorregiao() {\r\n }",
"public MorteSubita() {\n }",
"public Carrinho() {\n\t\tsuper();\n\t}",
"public Pitonyak_09_02() {\r\n }",
"public Mannschaft() {\n }",
"public Constructor(){\n\t\t\n\t}",
"public PghModulo() {\r\n }",
"Constructor() {\r\n\t\t \r\n\t }",
"public Clade() {}",
"public Perro() {\n// super(\"No define\", \"NN\", 0); en caso el constructor de animal tenga parametros\n this.pelaje = \"corto\";\n }",
"public Exercicio(){\n \n }",
"public Vehiculo() {\r\n }",
"public Candidatura (){\n \n }",
"public Achterbahn() {\n }",
"public Prova() {}",
"public NhanVien()\n {\n }",
"public CrearQuedadaVista() {\n }",
"public Jovem(String identificador) {\n super(identificador);\n numAulas = DEFAULT_N_AULAS;\n }",
"public Mueble() {\n }",
"public Mitarbeit() {\r\n }",
"public Postoj() {}",
"public Hazmat() {\n }",
"public Plato(){\n\t\t\n\t}",
"public Magazzino() {\r\n }",
"public Poem(){}",
"public Empleado() { }",
"public Respuesta() {\n }",
"private UsineJoueur() {}",
"public Corso() {\n\n }",
"public Livro() {\n\n\t}",
"public Aritmetica(){ }",
"public MecanismoMultiplicacionPrimo(int numPrimo)\n {\n super(numPrimo) ;\n\n }",
"public Funcionario() {\r\n\t\t\r\n\t}",
"public Articulo(){\r\n\t\t\r\n\t}",
"public Propuestas() {}",
"private Pares(){\n\t\t\tprimero=null;\n\t\t\tsegundo=null;\n\t\t\tdistancia=0;\n\t\t}",
"public Persona(){\n /*super(nombresPosibles\n [r.nextInt(nombresPosibles.length)],(byte)r.nextInt(101));\n */\n super(\"Anónimo\",(byte)5);\n String[] nombresPosibles={\"Patracio\",\"Eusequio\",\"Bartolo\",\"Mortadelo\",\"Piorroncho\",\"Tiburcio\"};\n String[] apellidosPosibles={\"Sánchez\",\"López\",\"Martínez\",\"González\",\"Páramos\",\"Jiménez\",\"Parra\"};\n String[] nacionalidadesPosibles={\"Española\",\"Francesa\",\"Alemana\",\"Irlandesa\",\"Japonesa\",\"Congoleña\",\"Bielorrusa\",\"Mauritana\"};\n Random r=new Random();\n this.apellido=apellidosPosibles\n [r.nextInt(apellidosPosibles.length)];\n this.nacionalidad=nacionalidadesPosibles\n [r.nextInt(nacionalidadesPosibles.length)];\n mascota=new Mascota[5];\n this.saldo=r.nextInt(101);\n }",
"public Funcionaria(){\n\n }",
"public Venda() {\n }",
"public Comprador(String e, String n, String p, String d, String m) {\n // initialise instance variables\n super(1,e,n,p,d,m);\n favoritos = new ArrayList<String>();\n }",
"public RptPotonganGaji() {\n }",
"private GrupoCuenta(String nombre, int operacion)\r\n/* 11: */ {\r\n/* 12:31 */ this.nombre = nombre;\r\n/* 13:32 */ this.operacion = operacion;\r\n/* 14: */ }",
"private ControleurAcceuil(){ }",
"public YonetimliNesne() {\n }",
"public CorreoElectronico() {\n }",
"public Chauffeur() {\r\n\t}",
"public VotacaoSegundoDia() {\n\n\t}",
"public AfiliadoVista() {\r\n }",
"public Persona() {\n\t}",
"public CMN() {\n\t}",
"defaultConstructor(){}",
"public QLNhanVien(){\n \n }",
"public EnsembleLettre() {\n\t\t\n\t}",
"public Persona() {\n \t\n }",
"public Kullanici() {}",
"public Unidadmedida() {\r\n\t}",
"public Excellon ()\n {}",
"public Classe() {\r\n }",
"public Busca(){\n }",
"public Dinamica(){\n\t\tprimer=null;\n\t\tanterior=null;\n\t\tn_equips = 0;\n\t\t\n\t}",
"public Oveja() {\r\n this.nombreOveja = \"Oveja\";\r\n }",
"public TebakNusantara()\n {\n }",
"public _355() {\n\n }",
"public Caso_de_uso () {\n }",
"public Promo(String n){\nnom = n;\n}",
"public DetArqueoRunt () {\r\n\r\n }",
"public Nota() {\n }",
"Petunia() {\r\n\t\t}",
"public ContasCorrentes(){\n this(0,\"\",0.0,0.0,0);\n }",
"public cola_de_un_banco(){// se crea nuestro metodo costructor \r\n primero=null;//se crea el tipo de indicaciones con valor a null\r\n ultimo=null;\r\n}",
"private void __sep__Constructors__() {}",
"public Firma() {\n }",
"public Cgg_jur_anticipo(){}",
"public Jugador(int dorsal)\n {\n Random rmd = new Random();\n edad = rmd.nextInt(23)+18 ;\n estadoForma = rmd.nextInt(11);\n int nom = rmd.nextInt(33);\n Nombres nomb = new Nombres();\n nombre = nomb.getNombre(nom);\n this.dorsal = dorsal;\n this.nombre = nombre;\n }",
"public PSRelation()\n {\n }",
"public Coche() {\n super();\n }",
"private QuadradoPerfeito() {\n }",
"public Higiene(){\n\t\t\n\t}",
"public Persona(){\n \n }",
"public Persona(){\n \n }",
"public CampoModelo(String valor, String etiqueta, Integer longitud)\n/* 10: */ {\n/* 11:17 */ this.valor = valor;\n/* 12:18 */ this.etiqueta = etiqueta;\n/* 13:19 */ this.longitud = longitud;\n/* 14: */ }",
"public Aanbieder() {\r\n\t\t}",
"public ExamMB() {\n }",
"public Partage() {\n }",
"public Sobre() {\n\t\tsuper();\n\t\tinitialize();\n\t}",
"public Moto(float cilindrada,String _patente, int _cantRuedas)\n {\n super(_patente, _cantRuedas, eMarca.ZANELLA);\n this._cilindrada=cilindrada;\n }",
"public Camion(int peso,Marcas marca,int kilometraje,int antiguedad) {\n super(peso,marca,kilometraje,antiguedad);\n if (super.getMarca().equals(\"FORD\")|| super.getMarca().equals(\"FIAT\"))\n {\n super.setArticulado();\n }\n if(super.getArticulado() && getPeso()<3000)\n {\n super.setCumpleNormativa();\n }\n if(!super.getArticulado() && getPeso()<2000)\n {\n super.setCumpleNormativa();\n }\n\n }",
"public Rol() {}",
"public Anschrift() {\r\n }",
"public Simulador(){\n }"
] |
[
"0.7224217",
"0.72239345",
"0.7202316",
"0.7193612",
"0.6996022",
"0.69878846",
"0.6976005",
"0.6955824",
"0.6925814",
"0.68722904",
"0.68722904",
"0.6859452",
"0.6855601",
"0.68346167",
"0.6826513",
"0.6825916",
"0.68256545",
"0.6799014",
"0.6781381",
"0.6777331",
"0.6776543",
"0.6755569",
"0.6748585",
"0.6741158",
"0.67258525",
"0.67169684",
"0.67012864",
"0.66919553",
"0.66729826",
"0.6669222",
"0.6661349",
"0.6652473",
"0.66409105",
"0.66391045",
"0.6638266",
"0.66299915",
"0.6606655",
"0.65947914",
"0.6594289",
"0.6573248",
"0.6548494",
"0.6542451",
"0.6523936",
"0.6520355",
"0.6515105",
"0.65019155",
"0.6492658",
"0.6487273",
"0.6486399",
"0.64860034",
"0.6484734",
"0.64829856",
"0.6467423",
"0.6466638",
"0.64652485",
"0.6457555",
"0.6455148",
"0.6454693",
"0.64489114",
"0.64479756",
"0.6447197",
"0.64450717",
"0.6443948",
"0.64409524",
"0.6435373",
"0.64345264",
"0.6433636",
"0.6432809",
"0.64241",
"0.64225185",
"0.64224684",
"0.64205694",
"0.64146596",
"0.64144045",
"0.6411708",
"0.6402785",
"0.6389977",
"0.63856286",
"0.6382527",
"0.63808453",
"0.638046",
"0.63740665",
"0.6373759",
"0.63693964",
"0.63640076",
"0.6363474",
"0.6359709",
"0.635892",
"0.6349982",
"0.63497037",
"0.63497037",
"0.6348786",
"0.6342999",
"0.63392663",
"0.63384926",
"0.6337011",
"0.633443",
"0.63328487",
"0.633166",
"0.6331433",
"0.63298255"
] |
0.0
|
-1
|
Metodo que inicia todos los componentes del frame
|
public void iniciarComponentes(){
crearPanel();
colocarBotones();
}
|
{
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
}
|
[
"private void iniciarComponentesInterface() {\n\t\tPanelchildren panelchildren = new Panelchildren();\r\n\t\tpanelchildren.setParent(this);\r\n\t\tlistBox = new Listbox();\r\n\t\tlistBox.setHeight(\"300px\");\r\n\t\tlistBox.setCheckmark(true);\r\n\t\tlistBox.setMultiple(false);\r\n\t\tlistBox.setParent(panelchildren);\r\n\t\tListhead listHead = new Listhead();\r\n\t\tlistHead.setParent(listBox);\r\n\t\tListheader listHeader = new Listheader(\"Projeto\");\r\n\t\tlistHeader.setParent(listHead);\r\n\r\n\t\t// Botões OK e Cancelar\r\n\t\tDiv div = new Div();\r\n\t\tdiv.setParent(panelchildren);\r\n\t\tdiv.setStyle(\"float: right;\");\r\n\t\tSeparator separator = new Separator();\r\n\t\tseparator.setParent(div);\r\n\t\tButton botaoOK = new Button(\"OK\");\r\n\t\tbotaoOK.addEventListener(\"onClick\", new EventListenerOK());\r\n\t\tbotaoOK.setWidth(\"100px\");\r\n\t\tbotaoOK.setStyle(\"margin-right: 5px\");\r\n\t\tbotaoOK.setParent(div);\r\n\t\tButton botaoCancelar = new Button(\"Cancelar\");\r\n\t\tbotaoCancelar.addEventListener(\"onClick\", new EventListenerCancelar());\r\n\t\tbotaoCancelar.setWidth(\"100px\");\r\n\t\tbotaoCancelar.setParent(div);\r\n\t}",
"public FrameOpcoesAgenda() {\n initComponents();\n }",
"private void initComponents() {\n\t\t\n\t}",
"private void initComponents() {\n\t\t\n\t}",
"public FrameCriarListadeProdutos() {\n initComponents();\n }",
"public Jframe() {\n initComponents();\n setIndice();\n loadTextBoxs();\n }",
"private void colocaComponentes() {\r\n\t\tJLabel lblId = new JLabel(\"Id\");\r\n\t\tlblId.setBounds(10, 11, 46, 14);\r\n\t\tadd(lblId);\r\n\t\t\r\n\t\tJLabel lblApellido = new JLabel(\"1er Apellido\");\r\n\t\tlblApellido.setBounds(168, 11, 131, 14);\r\n\t\tadd(lblApellido);\r\n\t\t\r\n\t\ttextId = new JTextField();\r\n\t\ttextId.setBounds(10, 36, 86, 20);\r\n\t\tadd(textId);\r\n\t\ttextId.setColumns(10);\r\n\t\t\r\n\t\ttextApellido = new JTextField();\r\n\t\ttextApellido.setBounds(168, 36, 118, 20);\r\n\t\tadd(textApellido);\r\n\t\ttextApellido.setColumns(10);\r\n\t\t\r\n\t\tbtnComprobar = new JButton(\"Comprobar\");\r\n\t\tbtnComprobar.addActionListener(new ActionListener() {\r\n\t\t\tpublic void actionPerformed(ActionEvent arg0) {\r\n\t\t\t\tconsultaDatos();\r\n\t\t\t}\r\n\t\t});\r\n\t\tbtnComprobar.setBounds(10, 83, 362, 23);\r\n\t\tadd(btnComprobar);\r\n\t\t\r\n\t\ttextMensaje = new JTextField();\r\n\t\ttextMensaje.setEditable(false);\r\n\t\ttextMensaje.setBounds(10, 117, 362, 20);\r\n\t\tadd(textMensaje);\r\n\t\ttextMensaje.setColumns(10);\r\n\t\t\r\n\t\tbtnAtras = new JButton(\"Atras\");\r\n\t\tbtnAtras.setBounds(10, 254, 89, 23);\r\n\t\tadd(btnAtras);\r\n\t\tbtnAtras.addActionListener(new ActionListener() {\r\n\t\t\t@Override\r\n\t\t\tpublic void actionPerformed(ActionEvent e) {\r\n\t\t\t\tcambiaPanelAnterior();\r\n\t\t\t}\r\n\t\t});\r\n\t}",
"private void setUIComponents() {\n\t\tframe.setTitle(\"Departamento de ventas\");\n\t\tframe.setMinimumSize(new Dimension(700, 500));\n\n\t\t/*\n\t\t * Paneles externos. Solo hay que añadir en el bottomPanel\n\t\t */\n\t\tJPanel topPanel = new JPanel();\n\t\tframe.getContentPane().add(topPanel, BorderLayout.NORTH);\n\t\ttopPanel.setBackground(new Color(233, 196, 106));\n\t\ttopPanel.setBounds(100, 100, 100, 100);\n\n\t\tJPanel leftPanel = new JPanel();\n\t\tframe.getContentPane().add(leftPanel, BorderLayout.WEST);\n\t\tleftPanel.setBackground(new Color(233, 196, 106));\n\n\t\tJPanel rightPanel = new JPanel();\n\t\tframe.getContentPane().add(rightPanel, BorderLayout.EAST);\n\t\trightPanel.setBackground(new Color(233, 196, 106));\n\n\t\tJPanel bottomPanel = new JPanel();\n\t\tframe.getContentPane().add(bottomPanel, BorderLayout.SOUTH);\n\t\tbottomPanel.setBackground(new Color(233, 196, 106));\n\t\tbottomPanel.setLayout(new FlowLayout(FlowLayout.RIGHT, 5, 0));\n\t\t// Se añaden los componentes al bottomPanel\n\t\tbtnLogOut = new JButton(\"Cerrar Sesión\");\n\t\tbtnLogOut.setCursor(Cursor.getPredefinedCursor(Cursor.HAND_CURSOR));\n\t\tbtnLogOut.setBorder(null);\n\t\tbtnLogOut.setBackground(new Color(233, 196, 106));\n\t\tbtnLogOut.setFont(new Font(\"SansSerif\", Font.BOLD, 12));\n\t\tbottomPanel.add(btnLogOut);\n\n\t\tJLabel lblLogOut = new JLabel(\"X\");\n\t\tlblLogOut.setForeground(new Color(220, 20, 60));\n\t\tlblLogOut.setFont(new Font(\"SansSerif\", Font.BOLD, 13));\n\t\tbottomPanel.add(lblLogOut);\n\n\t\t/*\n\t\t * mainPanel. Dentro se crean otros paneles para añadir los distintos\n\t\t * componentes.\n\t\t */\n\t\tJPanel mainPanel = new JPanel();\n\t\tmainPanel.setBorder(new MatteBorder(2, 2, 1, 1, (Color) new Color(0, 0, 0)));\n\t\tframe.getContentPane().add(mainPanel);\n\t\tGridBagLayout gbl_mainPanel = new GridBagLayout();\n\t\tgbl_mainPanel.columnWidths = new int[] { 1061, 0 };\n\t\tgbl_mainPanel.rowHeights = new int[] { 137, 298, 328, 0 };\n\t\tgbl_mainPanel.columnWeights = new double[] { 0.0, Double.MIN_VALUE };\n\t\tgbl_mainPanel.rowWeights = new double[] { 0.0, 0.0, 0.0, Double.MIN_VALUE };\n\t\tmainPanel.setLayout(gbl_mainPanel);\n\n\t\t// Paneles que componen el mainPanel\n\n\t\tJPanel clientPanel = new JPanel();\n\t\tGridBagConstraints gbc_clientesPanel = new GridBagConstraints();\n\t\tgbc_clientesPanel.fill = GridBagConstraints.BOTH;\n\t\tgbc_clientesPanel.insets = new Insets(0, 0, 5, 0);\n\t\tgbc_clientesPanel.gridx = 0;\n\t\tgbc_clientesPanel.gridy = 0;\n\t\tmainPanel.add(clientPanel, gbc_clientesPanel);\n\t\tclientPanel.setLayout(new BorderLayout());\n\t\tclientPanel.setPreferredSize(new Dimension(10, 50));\n\n\t\t// Añadir Jlabel a clientesPanel\n\t\tJLabel lblClientData = new JLabel(\"Datos del cliente\");\n\t\tlblClientData.setHorizontalAlignment(SwingConstants.CENTER);\n\t\tlblClientData.setFont(new Font(\"SansSerif\", Font.BOLD, 25));\n\t\tclientPanel.add(lblClientData, BorderLayout.CENTER);\n\n\t\t// Panel para rellenar datos de cliente.\n\t\tJPanel clientDataPanel = new JPanel();\n\t\tGridBagConstraints gbc_datosClientePanel = new GridBagConstraints();\n\t\tgbc_datosClientePanel.fill = GridBagConstraints.BOTH;\n\t\tgbc_datosClientePanel.insets = new Insets(0, 0, 5, 0);\n\t\tgbc_datosClientePanel.gridx = 0;\n\t\tgbc_datosClientePanel.gridy = 1;\n\t\tmainPanel.add(clientDataPanel, gbc_datosClientePanel);\n\t\tclientDataPanel.setLayout(new GridLayout(1, 2));\n\n\t\tJPanel clientDataPanelLeft = new JPanel();\n\t\tclientDataPanel.add(clientDataPanelLeft);\n\t\tSpringLayout sl_datosClientePanelLeft = new SpringLayout();\n\t\tclientDataPanelLeft.setLayout(sl_datosClientePanelLeft);\n\n\t\t// Componentes panel derecho\n\t\t// Añadir Jlabel y JText para los distintos datos del ciente\n\t\tJLabel lblCod = new JLabel(\"Código de cliente:\");\n\t\tsl_datosClientePanelLeft.putConstraint(SpringLayout.NORTH, lblCod, 26, SpringLayout.NORTH, clientDataPanelLeft);\n\t\tsl_datosClientePanelLeft.putConstraint(SpringLayout.WEST, lblCod, 70, SpringLayout.WEST, clientDataPanelLeft);\n\t\tlblCod.setFont(new Font(\"SansSerif\", Font.PLAIN, 15));\n\t\tclientDataPanelLeft.add(lblCod);\n\n\t\ttxtCod = new JTextField();\n\t\ttxtCod.setEnabled(false);\n\t\tsl_datosClientePanelLeft.putConstraint(SpringLayout.NORTH, txtCod, -3, SpringLayout.NORTH, lblCod);\n\t\tsl_datosClientePanelLeft.putConstraint(SpringLayout.WEST, txtCod, 74, SpringLayout.EAST, lblCod);\n\t\ttxtCod.setFont(new Font(\"SansSerif\", Font.PLAIN, 15));\n\t\ttxtCod.setColumns(10);\n\t\tclientDataPanelLeft.add(txtCod);\n\n\t\t// Añadir Jlabel y JText para los distintos datos del ciente\n\t\tJLabel lblNombreCliente = new JLabel(\"Nombre:\");\n\t\tsl_datosClientePanelLeft.putConstraint(SpringLayout.NORTH, lblNombreCliente, 26, SpringLayout.SOUTH, lblCod);\n\t\tsl_datosClientePanelLeft.putConstraint(SpringLayout.WEST, lblNombreCliente, 0, SpringLayout.WEST, lblCod);\n\t\tlblNombreCliente.setFont(new Font(\"SansSerif\", Font.PLAIN, 15));\n\t\tclientDataPanelLeft.add(lblNombreCliente);\n\n\t\ttxtName = new JTextField();\n\t\tsl_datosClientePanelLeft.putConstraint(SpringLayout.NORTH, txtName, -3, SpringLayout.NORTH, lblNombreCliente);\n\t\tsl_datosClientePanelLeft.putConstraint(SpringLayout.WEST, txtName, 0, SpringLayout.WEST, txtCod);\n\t\ttxtName.setFont(new Font(\"SansSerif\", Font.PLAIN, 15));\n\t\ttxtName.setColumns(10);\n\t\tclientDataPanelLeft.add(txtName);\n\n\t\t// Añadir Jlabel y JText para los distintos datos del ciente\n\t\tJLabel lblSurnames = new JLabel(\"Apellidos:\");\n\t\tsl_datosClientePanelLeft.putConstraint(SpringLayout.NORTH, lblSurnames, 26, SpringLayout.SOUTH,\n\t\t\t\tlblNombreCliente);\n\t\tsl_datosClientePanelLeft.putConstraint(SpringLayout.WEST, lblSurnames, 0, SpringLayout.WEST, lblCod);\n\t\tlblSurnames.setFont(new Font(\"SansSerif\", Font.PLAIN, 15));\n\t\tclientDataPanelLeft.add(lblSurnames);\n\n\t\ttxtSurnames = new JTextField();\n\t\tsl_datosClientePanelLeft.putConstraint(SpringLayout.NORTH, txtSurnames, -3, SpringLayout.NORTH, lblSurnames);\n\t\tsl_datosClientePanelLeft.putConstraint(SpringLayout.WEST, txtSurnames, 0, SpringLayout.WEST, txtCod);\n\t\ttxtSurnames.setFont(new Font(\"SansSerif\", Font.PLAIN, 15));\n\t\ttxtSurnames.setColumns(10);\n\t\tclientDataPanelLeft.add(txtSurnames);\n\n\t\tJLabel lblDni = new JLabel(\"DNI:\");\n\t\tsl_datosClientePanelLeft.putConstraint(SpringLayout.NORTH, lblDni, 26, SpringLayout.SOUTH, lblSurnames);\n\t\tsl_datosClientePanelLeft.putConstraint(SpringLayout.WEST, lblDni, 0, SpringLayout.WEST, lblCod);\n\t\tlblDni.setFont(new Font(\"SansSerif\", Font.PLAIN, 15));\n\t\tclientDataPanelLeft.add(lblDni);\n\n\t\ttxtDni = new JTextField();\n\t\tsl_datosClientePanelLeft.putConstraint(SpringLayout.NORTH, txtDni, -3, SpringLayout.NORTH, lblDni);\n\t\tsl_datosClientePanelLeft.putConstraint(SpringLayout.WEST, txtDni, 0, SpringLayout.WEST, txtCod);\n\t\ttxtDni.setFont(new Font(\"SansSerif\", Font.PLAIN, 15));\n\t\ttxtDni.setColumns(10);\n\t\tclientDataPanelLeft.add(txtDni);\n\n\t\t// Añadir Jlabel y JText para los distintos datos del ciente\n\t\tJLabel lblTelephone = new JLabel(\"Teléfono:\");\n\t\tsl_datosClientePanelLeft.putConstraint(SpringLayout.NORTH, lblTelephone, 26, SpringLayout.SOUTH, lblDni);\n\t\tsl_datosClientePanelLeft.putConstraint(SpringLayout.WEST, lblTelephone, 0, SpringLayout.WEST, lblCod);\n\t\tlblTelephone.setFont(new Font(\"SansSerif\", Font.PLAIN, 15));\n\t\tclientDataPanelLeft.add(lblTelephone);\n\n\t\ttxtTelephone = new JTextField();\n\t\tsl_datosClientePanelLeft.putConstraint(SpringLayout.NORTH, txtTelephone, -3, SpringLayout.NORTH, lblTelephone);\n\t\tsl_datosClientePanelLeft.putConstraint(SpringLayout.WEST, txtTelephone, 0, SpringLayout.WEST, txtCod);\n\t\ttxtTelephone.setFont(new Font(\"SansSerif\", Font.PLAIN, 15));\n\t\ttxtTelephone.setColumns(10);\n\t\tclientDataPanelLeft.add(txtTelephone);\n\n\t\tJPanel clientDataPanelRight = new JPanel();\n\t\tclientDataPanel.add(clientDataPanelRight);\n\n\t\tJPanel bottonPanel = new JPanel();\n\t\tGridBagConstraints gbc_botonPanel = new GridBagConstraints();\n\t\tgbc_botonPanel.fill = GridBagConstraints.BOTH;\n\t\tgbc_botonPanel.gridx = 0;\n\t\tgbc_botonPanel.gridy = 2;\n\t\tmainPanel.add(bottonPanel, gbc_botonPanel);\n\t\tbottonPanel.setLayout(new FlowLayout(1, 250, 100));\n\n\t\t// Botones\n\t\tbackButton = new JButton(\"Volver al menú\");\n\t\tbackButton.setCursor(Cursor.getPredefinedCursor(Cursor.HAND_CURSOR));\n\t\tbackButton.setFont(new Font(\"SansSerif\", Font.BOLD, 15));\n\t\tbackButton.setBackground(new Color(244, 162, 97));\n\t\tbackButton.setForeground(Color.WHITE);\n\t\tbottonPanel.add(backButton);\n\n\t\tregisterButton = new JButton(\"Añadir cliente\");\n\t\tregisterButton.setCursor(Cursor.getPredefinedCursor(Cursor.HAND_CURSOR));\n\t\tregisterButton.setFont(new Font(\"SansSerif\", Font.BOLD, 15));\n\t\tregisterButton.setBackground(new Color(231, 111, 81));\n\t\tregisterButton.setForeground(Color.WHITE);\n\t\tbottonPanel.add(registerButton);\n\n\t}",
"public FrameNuevaCategoria() {\n initComponents();\n limpiar();\n }",
"private void initialize() {\r\n\t\t\r\n\t\tfrmAtividades = new JFrame();\r\n\t\tfrmAtividades.setTitle(\"Atividades\");\r\n\t\tfrmAtividades.setBounds(100, 100, 640, 480);\r\n\t\tfrmAtividades.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\r\n\t\t\r\n\t\tJPanel panel = new JPanel();\r\n\t\tGroupLayout groupLayout = new GroupLayout(frmAtividades.getContentPane());\r\n\t\tgroupLayout.setHorizontalGroup(\r\n\t\t\tgroupLayout.createParallelGroup(Alignment.LEADING)\r\n\t\t\t\t.addComponent(panel, Alignment.TRAILING, GroupLayout.DEFAULT_SIZE, 624, Short.MAX_VALUE)\r\n\t\t);\r\n\t\tgroupLayout.setVerticalGroup(\r\n\t\t\tgroupLayout.createParallelGroup(Alignment.LEADING)\r\n\t\t\t\t.addComponent(panel, Alignment.TRAILING, GroupLayout.DEFAULT_SIZE, 442, Short.MAX_VALUE)\r\n\t\t);\r\n\t\t\r\n\t\t//TODO Popular a lista dinamicamente;\r\n\t\t\r\n\t\tlist = new JList();\r\n\t\t\r\n\t\tlist.setModel(new AbstractListModel() {\r\n\t\t\tString[] values = new String[] {\"Clique 1\", \"Clique 2\"};\r\n\t\t\tpublic int getSize() {\r\n\t\t\t\treturn values.length;\r\n\t\t\t}\r\n\t\t\tpublic Object getElementAt(int index) {\r\n\t\t\t\treturn values[index];\r\n\t\t\t}\r\n\t\t});\r\n\t\t\r\n\t\tlist.addMouseListener(new MouseAdapter() {\r\n\t\t\t@Override\r\n\t\t\tpublic void mouseClicked(MouseEvent arg0) {\r\n\t\t\t\t//TODO Seria interessante passar o controle como parametro, afim de usa-lo no listener dos botoes;\r\n\t\t\t\tjanelaDeRecursos = new ViewDesalocarRecurso();\r\n\t\t\r\n\t\t\t}\r\n\t\t});\r\n\t\t\r\n\t\tJLabel lblAtividadesPendendentes = new JLabel(\"Atividades Alocadas:\");\r\n\t\t\r\n\t\tbtnFechar = new JButton(\"Fechar\");\r\n\t\tbtnFechar.addMouseListener(new MouseAdapter() {\r\n\t\t\t@Override\r\n\t\t\tpublic void mouseClicked(MouseEvent arg0) {\r\n\t\t\t\t\r\n\t\t\t\tfrmAtividades.dispose();\r\n\t\t\t\t\r\n\t\t\t}\r\n\t\t});\r\n\t\tGroupLayout gl_panel = new GroupLayout(panel);\r\n\t\tgl_panel.setHorizontalGroup(\r\n\t\t\tgl_panel.createParallelGroup(Alignment.LEADING)\r\n\t\t\t\t.addGroup(gl_panel.createSequentialGroup()\r\n\t\t\t\t\t.addContainerGap()\r\n\t\t\t\t\t.addGroup(gl_panel.createParallelGroup(Alignment.LEADING)\r\n\t\t\t\t\t\t.addComponent(list, Alignment.TRAILING, GroupLayout.DEFAULT_SIZE, 604, Short.MAX_VALUE)\r\n\t\t\t\t\t\t.addComponent(btnFechar, Alignment.TRAILING)\r\n\t\t\t\t\t\t.addComponent(lblAtividadesPendendentes))\r\n\t\t\t\t\t.addContainerGap())\r\n\t\t);\r\n\t\tgl_panel.setVerticalGroup(\r\n\t\t\tgl_panel.createParallelGroup(Alignment.LEADING)\r\n\t\t\t\t.addGroup(Alignment.TRAILING, gl_panel.createSequentialGroup()\r\n\t\t\t\t\t.addContainerGap(38, Short.MAX_VALUE)\r\n\t\t\t\t\t.addComponent(lblAtividadesPendendentes)\r\n\t\t\t\t\t.addPreferredGap(ComponentPlacement.UNRELATED)\r\n\t\t\t\t\t.addComponent(list, GroupLayout.PREFERRED_SIZE, 338, GroupLayout.PREFERRED_SIZE)\r\n\t\t\t\t\t.addPreferredGap(ComponentPlacement.UNRELATED)\r\n\t\t\t\t\t.addComponent(btnFechar)\r\n\t\t\t\t\t.addGap(7))\r\n\t\t);\r\n\t\tpanel.setLayout(gl_panel);\r\n\t\tfrmAtividades.getContentPane().setLayout(groupLayout);\r\n\t}",
"public frameCliclistas() {\n initComponents();\n setLocationRelativeTo(this);\n show_ciclistas();\n }",
"public void initComponents();",
"public FrameControl() {\n initComponents();\n }",
"public JFrameRelatorios() {\n initComponents();\n }",
"protected void CriarComponentes(){\n\n //VINCULANDO A LISTA DA TELA AO LISTVIEW QUE DECLARAMOS\n ListMenu = (ListView) this.findViewById(R.id.ListMenu);\n }",
"private void componentsProperties() {\r\n\t\tfrmVehiculos.setBounds(100, 100, 450, 550);\r\n\t\tfrmVehiculos.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\r\n\r\n\t\tlblNewLabel.setFont(new Font(\"Tahoma\", Font.PLAIN, 11));\r\n\t\tlblNewLabel.setBounds(37, 53, 64, 19);\r\n\r\n\t\tlblNewLabel_1.setFont(new Font(\"Tahoma\", Font.PLAIN, 11));\r\n\t\tlblNewLabel_1.setBounds(37, 86, 53, 19);\r\n\r\n\t\tlblModelo.setFont(new Font(\"Tahoma\", Font.PLAIN, 11));\r\n\t\tlblModelo.setBounds(37, 116, 64, 19);\r\n\r\n\t\tlblPuertas.setFont(new Font(\"Tahoma\", Font.PLAIN, 11));\r\n\t\tlblPuertas.setBounds(37, 151, 64, 14);\r\n\t\trb_3puertas.setBounds(160, 145, 38, 23);\r\n\t\trb_5puertas.setBounds(200, 145, 38, 23);\r\n\r\n\t\tlblAnioMatriculacion.setFont(new Font(\"Tahoma\", Font.PLAIN, 11));\r\n\t\tlblAnioMatriculacion.setBounds(37, 215, 98, 14);\r\n\r\n\t\tlblCaballos.setFont(new Font(\"Tahoma\", Font.PLAIN, 11));\r\n\t\tlblCaballos.setBounds(37, 310, 64, 14);\r\n\r\n\t\tlblTipoCombustible.setFont(new Font(\"Tahoma\", Font.PLAIN, 11));\r\n\t\tlblTipoCombustible.setBounds(37, 348, 73, 14);\r\n\r\n\t\tbtnClientes.setFont(new Font(\"Tahoma\", Font.PLAIN, 15));\r\n\t\tbtnClientes.setBounds(262, 12, 147, 108);\r\n\r\n\t\tbtnRepararVehvulo.setFont(new Font(\"Tahoma\", Font.PLAIN, 15));\r\n\t\tbtnRepararVehvulo.setBounds(262, 139, 147, 108);\r\n\r\n\t\tbtnAtrs.setFont(new Font(\"Tahoma\", Font.PLAIN, 15));\r\n\t\tbtnAtrs.setBounds(262, 416, 147, 94);\r\n\r\n\t\tlabelContadorVehiculos.setFont(new Font(\"Tahoma\", Font.PLAIN, 20));\r\n\t\tlabelContadorVehiculos.setBounds(120, 423, 38, 23);\r\n\r\n\t\tbuttonLeftArrow.setBounds(37, 417, 53, 93);\r\n\r\n\t\tbuttonRightArrow.setBounds(185, 417, 53, 93);\r\n\r\n\t\tbtnGuardar.setFont(new Font(\"Tahoma\", Font.PLAIN, 17));\r\n\t\tbtnGuardar.setBounds(88, 448, 98, 62);\r\n\r\n\t\tlbl_cv.setFont(new Font(\"Tahoma\", Font.BOLD, 11));\r\n\t\tlbl_cv.setText(\"CV\");\r\n\t\tlbl_cv.setBounds(208, 307, 30, 24);\r\n\t\tlbl_cv.setColumns(10);\r\n\r\n\t\ttxt_marca.setColumns(10);\r\n\t\ttxt_marca.setBounds(120, 83, 118, 24);\r\n\r\n\t\ttxt_matricula.setColumns(10);\r\n\t\ttxt_matricula.setBounds(120, 52, 118, 24);\r\n\r\n\t\ttxt_modelo.setColumns(10);\r\n\t\ttxt_modelo.setBounds(120, 115, 118, 24);\r\n\r\n\t\ttxt_potencia.setColumns(10);\r\n\t\ttxt_potencia.setBounds(120, 307, 89, 24);\r\n\r\n\t\tcbox_dia.setModel(new DefaultComboBoxModel<Integer>(dias));\r\n\t\tcbox_dia.setBounds(120, 212, 118, 20);\r\n\r\n\t\tcbox_mes.setModel(new DefaultComboBoxModel(Meses.values()));\r\n\t\tcbox_mes.setBounds(120, 242, 118, 20);\r\n\r\n\t\tcbox_ano.setModel(new DefaultComboBoxModel<Integer>(anios));\r\n\t\tcbox_ano.setBounds(120, 274, 118, 20);\r\n\r\n\t\tcbTipoCombustible.setModel(new DefaultComboBoxModel(TipoCombustible.values()));\r\n\t\tcbTipoCombustible.setBounds(120, 343, 118, 20);\r\n\r\n\t\tlblTipoVehiculo.setFont(new Font(\"Tahoma\", Font.PLAIN, 11));\r\n\t\tlblTipoVehiculo.setBounds(37, 179, 69, 20);\r\n\r\n\t\tcb_TipoVehiculo.setModel(new DefaultComboBoxModel(TipoVehiculo.values()));\r\n\t\tcb_TipoVehiculo.setBounds(120, 179, 118, 20);\r\n\r\n\t\tbtnBorrarVehiculo.setFont(new Font(\"Tahoma\", Font.PLAIN, 15));\r\n\t\tbtnBorrarVehiculo.setBounds(262, 279, 147, 108);\r\n\r\n\t\trb_2puertas.setFont(new Font(\"Tahoma\", Font.PLAIN, 14));\r\n\t\trb_2puertas.setBounds(122, 145, 36, 23);\r\n\r\n\t\tlblCamposObligatorios.setBounds(37, 373, 105, 14);\r\n\r\n\t\tlblNifCliente.setBounds(37, 28, 73, 14);\r\n\r\n\t\tcb_nifCliente.setBounds(120, 26, 95, 21);\r\n\t\tcb_nifCliente.setModel(new DefaultComboBoxModel(ContenedorPrincipal.getContenedorPrincipal().getContenedorClientes().getNifs()));\r\n\r\n\r\n\t\tbtnRefrescarnifs.setIcon(\r\n\t\t\t\tnew ImageIcon(VentanaVehiculos.class.getResource(\"/com/sun/javafx/scene/web/skin/Redo_16x16_JFX.png\")));\r\n\t\tbtnRefrescarnifs.setBounds(214, 25, 25, 23);\r\n\t}",
"private void makeContent(JFrame frame){\n Container content = frame.getContentPane();\n content.setSize(700,700);\n\n makeButtons();\n makeRooms();\n makeLabels();\n\n content.add(inputPanel,BorderLayout.SOUTH);\n content.add(roomPanel, BorderLayout.CENTER);\n content.add(infoPanel, BorderLayout.EAST);\n\n }",
"public JFramePelis() {\n initComponents();\n }",
"public FrameDesign() {\n initComponents();\n }",
"public MercadoFrame() {\n initComponents();\n }",
"private void initComponents() {\r\n\r\n lbBurro = new javax.swing.JLabel();\r\n canvas1 = new java.awt.Canvas();\r\n canvas2 = new java.awt.Canvas();\r\n jInternalFrame2 = new javax.swing.JInternalFrame();\r\n jScrollPane1 = new javax.swing.JScrollPane();\r\n Mostra = new javax.swing.JTextPane();\r\n jInternalFrame1 = new javax.swing.JInternalFrame();\r\n jButton5 = new javax.swing.JButton();\r\n jButton7 = new javax.swing.JButton();\r\n jButton8 = new javax.swing.JButton();\r\n jButton6 = new javax.swing.JButton();\r\n cbMidi = new javax.swing.JComboBox();\r\n jLabel4 = new javax.swing.JLabel();\r\n jButton3 = new javax.swing.JButton();\r\n jLabel1 = new javax.swing.JLabel();\r\n jLabel10 = new javax.swing.JLabel();\r\n JtmInicial = new javax.swing.JTextField();\r\n jtmFinal = new javax.swing.JTextField();\r\n jButton9 = new javax.swing.JButton();\r\n jpAngulo = new javax.swing.JProgressBar();\r\n jpDistancia = new javax.swing.JProgressBar();\r\n jpVelocidade = new javax.swing.JProgressBar();\r\n jLabel11 = new javax.swing.JLabel();\r\n jLabel12 = new javax.swing.JLabel();\r\n jLabel13 = new javax.swing.JLabel();\r\n jInternalFrame3 = new javax.swing.JInternalFrame();\r\n jLabel3 = new javax.swing.JLabel();\r\n edTempo = new javax.swing.JTextField();\r\n jLabel5 = new javax.swing.JLabel();\r\n edPos = new javax.swing.JTextField();\r\n jLabel2 = new javax.swing.JLabel();\r\n edId = new javax.swing.JTextField();\r\n jLabel7 = new javax.swing.JLabel();\r\n jLabel8 = new javax.swing.JLabel();\r\n edDis = new javax.swing.JTextField();\r\n edVel = new javax.swing.JTextField();\r\n jLabel6 = new javax.swing.JLabel();\r\n edMTempo = new javax.swing.JTextField();\r\n edMTempo2 = new javax.swing.JTextField();\r\n jLabel9 = new javax.swing.JLabel();\r\n edPtGoogle = new javax.swing.JTextField();\r\n jInternalFrame4 = new javax.swing.JInternalFrame();\r\n jButton1 = new javax.swing.JButton();\r\n jButton2 = new javax.swing.JButton();\r\n jButton4 = new javax.swing.JButton();\r\n jSlider1 = new javax.swing.JSlider();\r\n CbMapa = new javax.swing.JCheckBox();\r\n jSeparator1 = new javax.swing.JSeparator();\r\n jSeparator3 = new javax.swing.JSeparator();\r\n jPanel1 = new javax.swing.JPanel();\r\n GPSGoogle = new javax.swing.JLabel();\r\n jMenuBar1 = new javax.swing.JMenuBar();\r\n jMenu1 = new javax.swing.JMenu();\r\n jMenuItem1 = new javax.swing.JMenuItem();\r\n jMenuItem2 = new javax.swing.JMenuItem();\r\n jMenu2 = new javax.swing.JMenu();\r\n jMenu3 = new javax.swing.JMenu();\r\n\r\n setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE);\r\n setTitle(\"HAPAX - GPSMIDI Conectado ao Servidor ***\");\r\n setCursor(new java.awt.Cursor(java.awt.Cursor.DEFAULT_CURSOR));\r\n setFocusTraversalPolicyProvider(true);\r\n setFocusable(false);\r\n setForeground(java.awt.Color.white);\r\n\r\n lbBurro.setFont(new java.awt.Font(\"Tahoma\", 1, 14));\r\n lbBurro.setForeground(new java.awt.Color(255, 0, 51));\r\n lbBurro.setText(\"HAPAX GPS MIDI Client - Gerador de Eventos MIDI - GPS\");\r\n\r\n canvas1.setBackground(new java.awt.Color(255, 255, 51));\r\n canvas1.setForeground(java.awt.Color.black);\r\n canvas1.setVisible(false);\r\n\r\n jInternalFrame2.setDefaultCloseOperation(javax.swing.WindowConstants.HIDE_ON_CLOSE);\r\n jInternalFrame2.setTitle(\"Server\");\r\n jInternalFrame2.setMinimumSize(new java.awt.Dimension(86, 35));\r\n jInternalFrame2.setOpaque(true);\r\n jInternalFrame2.setRequestFocusEnabled(false);\r\n jInternalFrame2.setVisible(true);\r\n\r\n Mostra.setBorder(javax.swing.BorderFactory.createEtchedBorder());\r\n Mostra.setCursor(new java.awt.Cursor(java.awt.Cursor.TEXT_CURSOR));\r\n Mostra.setFocusCycleRoot(false);\r\n Mostra.setRequestFocusEnabled(false);\r\n jScrollPane1.setViewportView(Mostra);\r\n\r\n org.jdesktop.layout.GroupLayout jInternalFrame2Layout = new org.jdesktop.layout.GroupLayout(jInternalFrame2.getContentPane());\r\n jInternalFrame2.getContentPane().setLayout(jInternalFrame2Layout);\r\n jInternalFrame2Layout.setHorizontalGroup(\r\n jInternalFrame2Layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)\r\n .add(jScrollPane1, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, 344, Short.MAX_VALUE)\r\n );\r\n jInternalFrame2Layout.setVerticalGroup(\r\n jInternalFrame2Layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)\r\n .add(jScrollPane1, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, 135, Short.MAX_VALUE)\r\n );\r\n\r\n jInternalFrame1.setBorder(new javax.swing.border.SoftBevelBorder(javax.swing.border.BevelBorder.RAISED));\r\n jInternalFrame1.setDefaultCloseOperation(javax.swing.WindowConstants.HIDE_ON_CLOSE);\r\n jInternalFrame1.setIconifiable(true);\r\n jInternalFrame1.setResizable(true);\r\n jInternalFrame1.setTitle(\"MIDI\");\r\n jInternalFrame1.setLayer(1);\r\n jInternalFrame1.setVisible(true);\r\n jInternalFrame1.addInternalFrameListener(new javax.swing.event.InternalFrameListener() {\r\n public void internalFrameOpened(javax.swing.event.InternalFrameEvent evt) {\r\n jInternalFrame1InternalFrameOpened(evt);\r\n }\r\n public void internalFrameClosing(javax.swing.event.InternalFrameEvent evt) {\r\n }\r\n public void internalFrameClosed(javax.swing.event.InternalFrameEvent evt) {\r\n }\r\n public void internalFrameIconified(javax.swing.event.InternalFrameEvent evt) {\r\n jInternalFrame1InternalFrameIconified(evt);\r\n }\r\n public void internalFrameDeiconified(javax.swing.event.InternalFrameEvent evt) {\r\n }\r\n public void internalFrameActivated(javax.swing.event.InternalFrameEvent evt) {\r\n }\r\n public void internalFrameDeactivated(javax.swing.event.InternalFrameEvent evt) {\r\n }\r\n });\r\n\r\n jButton5.setText(\"SC_A_80\");\r\n jButton5.addMouseListener(new java.awt.event.MouseAdapter() {\r\n public void mouseClicked(java.awt.event.MouseEvent evt) {\r\n jButton5MouseClicked(evt);\r\n }\r\n });\r\n\r\n jButton7.setText(\"SC_D_82\");\r\n jButton7.addMouseListener(new java.awt.event.MouseAdapter() {\r\n public void mouseClicked(java.awt.event.MouseEvent evt) {\r\n jButton7MouseClicked(evt);\r\n }\r\n });\r\n\r\n jButton8.setText(\"BC_V_83\");\r\n jButton8.addMouseListener(new java.awt.event.MouseAdapter() {\r\n public void mouseClicked(java.awt.event.MouseEvent evt) {\r\n jButton8MouseClicked(evt);\r\n }\r\n });\r\n\r\n jButton6.setText(\"SC_V_81\");\r\n jButton6.addMouseListener(new java.awt.event.MouseAdapter() {\r\n public void mouseClicked(java.awt.event.MouseEvent evt) {\r\n jButton6MouseClicked(evt);\r\n }\r\n });\r\n\r\n cbMidi.setAutoscrolls(true);\r\n cbMidi.addItemListener(new java.awt.event.ItemListener() {\r\n public void itemStateChanged(java.awt.event.ItemEvent evt) {\r\n cbMidiItemStateChanged(evt);\r\n }\r\n });\r\n\r\n jLabel4.setFont(new java.awt.Font(\"Tahoma\", 0, 13)); // NOI18N\r\n jLabel4.setText(\" Dispositivo MIDI\");\r\n\r\n jButton3.setBackground(javax.swing.UIManager.getDefaults().getColor(\"InternalFrame.borderLight\"));\r\n jButton3.setText(\"TesteMIDI\");\r\n jButton3.addMouseListener(new java.awt.event.MouseAdapter() {\r\n public void mouseClicked(java.awt.event.MouseEvent evt) {\r\n jButton3MouseClicked(evt);\r\n }\r\n });\r\n\r\n jLabel1.setFont(new java.awt.Font(\"Tahoma\", 0, 14));\r\n jLabel1.setText(\"Inicial\");\r\n\r\n jLabel10.setFont(new java.awt.Font(\"Tahoma\", 0, 14));\r\n jLabel10.setText(\"Final\");\r\n\r\n JtmInicial.setFont(new java.awt.Font(\"Tahoma\", 0, 12));\r\n JtmInicial.setText(\"80\");\r\n JtmInicial.setAutoscrolls(false);\r\n\r\n jtmFinal.setFont(new java.awt.Font(\"Tahoma\", 0, 12));\r\n jtmFinal.setText(\"83\");\r\n jtmFinal.setAutoscrolls(false);\r\n\r\n jButton9.setFont(new java.awt.Font(\"Tahoma\", 1, 14));\r\n jButton9.setText(\"Set\");\r\n jButton9.addMouseListener(new java.awt.event.MouseAdapter() {\r\n public void mouseClicked(java.awt.event.MouseEvent evt) {\r\n jButton9MouseClicked(evt);\r\n }\r\n });\r\n\r\n jpAngulo.setBackground(new java.awt.Color(255, 255, 255));\r\n jpAngulo.setFont(new java.awt.Font(\"Tahoma\", 1, 11));\r\n jpAngulo.setForeground(new java.awt.Color(153, 255, 0));\r\n jpAngulo.setMaximum(360);\r\n jpAngulo.setBorder(javax.swing.BorderFactory.createLineBorder(new java.awt.Color(0, 0, 0)));\r\n jpAngulo.setString(\"0 graus\");\r\n jpAngulo.setStringPainted(true);\r\n\r\n jpDistancia.setBackground(new java.awt.Color(255, 255, 255));\r\n jpDistancia.setFont(new java.awt.Font(\"Tahoma\", 1, 11));\r\n jpDistancia.setForeground(new java.awt.Color(0, 102, 255));\r\n jpDistancia.setBorder(javax.swing.BorderFactory.createLineBorder(new java.awt.Color(0, 0, 0)));\r\n jpDistancia.setString(\"0 m\");\r\n jpDistancia.setStringPainted(true);\r\n\r\n jpVelocidade.setBackground(new java.awt.Color(255, 255, 255));\r\n jpVelocidade.setFont(new java.awt.Font(\"Tahoma\", 1, 11));\r\n jpVelocidade.setForeground(new java.awt.Color(255, 0, 51));\r\n jpVelocidade.setBorder(javax.swing.BorderFactory.createLineBorder(new java.awt.Color(0, 0, 0)));\r\n jpVelocidade.setString(\"0 Km/h\");\r\n jpVelocidade.setStringPainted(true);\r\n\r\n jLabel11.setFont(new java.awt.Font(\"Tahoma\", 1, 14));\r\n jLabel11.setText(\"A\");\r\n\r\n jLabel12.setFont(new java.awt.Font(\"Tahoma\", 1, 14));\r\n jLabel12.setText(\"D\");\r\n\r\n jLabel13.setFont(new java.awt.Font(\"Tahoma\", 1, 14));\r\n jLabel13.setText(\"V\");\r\n\r\n org.jdesktop.layout.GroupLayout jInternalFrame1Layout = new org.jdesktop.layout.GroupLayout(jInternalFrame1.getContentPane());\r\n jInternalFrame1.getContentPane().setLayout(jInternalFrame1Layout);\r\n jInternalFrame1Layout.setHorizontalGroup(\r\n jInternalFrame1Layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)\r\n .add(jInternalFrame1Layout.createSequentialGroup()\r\n .add(jInternalFrame1Layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)\r\n .add(jInternalFrame1Layout.createSequentialGroup()\r\n .add(17, 17, 17)\r\n .add(jInternalFrame1Layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)\r\n .add(jInternalFrame1Layout.createSequentialGroup()\r\n .add(jInternalFrame1Layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)\r\n .add(jLabel1)\r\n .add(jLabel10))\r\n .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED)\r\n .add(jInternalFrame1Layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING, false)\r\n .add(jtmFinal)\r\n .add(JtmInicial, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, 38, Short.MAX_VALUE))\r\n .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED)\r\n .add(jButton9))\r\n .add(jInternalFrame1Layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)\r\n .add(jInternalFrame1Layout.createSequentialGroup()\r\n .add(jpAngulo, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, 174, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)\r\n .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED)\r\n .add(jLabel11, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, 17, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE))\r\n .add(jInternalFrame1Layout.createSequentialGroup()\r\n .add(jpDistancia, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, 174, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)\r\n .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED)\r\n .add(jLabel12, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, 17, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE))\r\n .add(jInternalFrame1Layout.createSequentialGroup()\r\n .add(jpVelocidade, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, 174, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)\r\n .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED)\r\n .add(jLabel13, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, 17, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE))\r\n .add(jButton3, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, 208, Short.MAX_VALUE))\r\n .add(cbMidi, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, 208, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)))\r\n .add(jInternalFrame1Layout.createSequentialGroup()\r\n .add(27, 27, 27)\r\n .add(jInternalFrame1Layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)\r\n .add(jInternalFrame1Layout.createSequentialGroup()\r\n .add(91, 91, 91)\r\n .add(jInternalFrame1Layout.createParallelGroup(org.jdesktop.layout.GroupLayout.TRAILING)\r\n .add(jButton6)\r\n .add(jButton8)))\r\n .add(org.jdesktop.layout.GroupLayout.TRAILING, jInternalFrame1Layout.createSequentialGroup()\r\n .add(jInternalFrame1Layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)\r\n .add(jButton7)\r\n .add(jButton5, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, 77, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE))\r\n .add(91, 91, 91)))))\r\n .add(18, 18, 18))\r\n .add(jInternalFrame1Layout.createSequentialGroup()\r\n .add(jLabel4, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, 223, Short.MAX_VALUE)\r\n .addContainerGap())\r\n );\r\n\r\n jInternalFrame1Layout.linkSize(new java.awt.Component[] {jButton5, jButton6, jButton7, jButton8}, org.jdesktop.layout.GroupLayout.HORIZONTAL);\r\n\r\n jInternalFrame1Layout.setVerticalGroup(\r\n jInternalFrame1Layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)\r\n .add(jInternalFrame1Layout.createSequentialGroup()\r\n .addContainerGap()\r\n .add(jLabel4)\r\n .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED)\r\n .add(cbMidi, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)\r\n .add(jInternalFrame1Layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)\r\n .add(jInternalFrame1Layout.createSequentialGroup()\r\n .add(24, 24, 24)\r\n .add(jInternalFrame1Layout.createParallelGroup(org.jdesktop.layout.GroupLayout.BASELINE)\r\n .add(jLabel1)\r\n .add(JtmInicial, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE))\r\n .add(15, 15, 15)\r\n .add(jInternalFrame1Layout.createParallelGroup(org.jdesktop.layout.GroupLayout.BASELINE)\r\n .add(jLabel10)\r\n .add(jtmFinal, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)))\r\n .add(jInternalFrame1Layout.createSequentialGroup()\r\n .add(35, 35, 35)\r\n .add(jButton9, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, 31, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)))\r\n .add(35, 35, 35)\r\n .add(jInternalFrame1Layout.createParallelGroup(org.jdesktop.layout.GroupLayout.BASELINE)\r\n .add(jButton5)\r\n .add(jButton6))\r\n .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED)\r\n .add(jInternalFrame1Layout.createParallelGroup(org.jdesktop.layout.GroupLayout.BASELINE)\r\n .add(jButton7)\r\n .add(jButton8))\r\n .add(16, 16, 16)\r\n .add(jButton3, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, 56, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)\r\n .add(18, 18, 18)\r\n .add(jInternalFrame1Layout.createParallelGroup(org.jdesktop.layout.GroupLayout.BASELINE)\r\n .add(jpAngulo, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)\r\n .add(jLabel11))\r\n .add(15, 15, 15)\r\n .add(jInternalFrame1Layout.createParallelGroup(org.jdesktop.layout.GroupLayout.BASELINE)\r\n .add(jpDistancia, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)\r\n .add(jLabel12))\r\n .add(14, 14, 14)\r\n .add(jInternalFrame1Layout.createParallelGroup(org.jdesktop.layout.GroupLayout.BASELINE)\r\n .add(jpVelocidade, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)\r\n .add(jLabel13))\r\n .addContainerGap(org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))\r\n );\r\n\r\n jInternalFrame3.setDefaultCloseOperation(javax.swing.WindowConstants.HIDE_ON_CLOSE);\r\n jInternalFrame3.setIconifiable(true);\r\n jInternalFrame3.setResizable(true);\r\n jInternalFrame3.setTitle(\"Utilitys\");\r\n jInternalFrame3.setVisible(true);\r\n\r\n jLabel3.setFont(new java.awt.Font(\"Tahoma\", 0, 13));\r\n jLabel3.setText(\"Tempo\");\r\n\r\n edTempo.setText(\"1000\");\r\n edTempo.addActionListener(new java.awt.event.ActionListener() {\r\n public void actionPerformed(java.awt.event.ActionEvent evt) {\r\n edTempoActionPerformed(evt);\r\n }\r\n });\r\n\r\n jLabel5.setFont(new java.awt.Font(\"Tahoma\", 0, 13));\r\n jLabel5.setText(\"Pos\");\r\n\r\n edPos.setText(\"0\");\r\n\r\n jLabel2.setFont(new java.awt.Font(\"Tahoma\", 0, 13));\r\n jLabel2.setText(\"ServerId\");\r\n\r\n edId.setText(\"l2.dat\");\r\n\r\n jLabel7.setFont(new java.awt.Font(\"Tahoma\", 0, 13));\r\n jLabel7.setText(\"Vel. Max.\");\r\n\r\n jLabel8.setFont(new java.awt.Font(\"Tahoma\", 0, 13));\r\n jLabel8.setText(\"Dis. Max.\");\r\n\r\n edDis.setText(\"5\");\r\n\r\n edVel.setText(\"3\");\r\n\r\n jLabel6.setFont(new java.awt.Font(\"Tahoma\", 0, 13));\r\n jLabel6.setText(\"Tempo Msg\");\r\n\r\n edMTempo.setText(\"5000\");\r\n\r\n edMTempo2.setText(\"260\");\r\n\r\n jLabel9.setFont(new java.awt.Font(\"Tahoma\", 0, 13));\r\n jLabel9.setText(\"Pts\");\r\n\r\n edPtGoogle.setText(\"60\");\r\n\r\n jInternalFrame4.setBackground(new java.awt.Color(255, 255, 153));\r\n jInternalFrame4.setBorder(javax.swing.BorderFactory.createMatteBorder(2, 2, 2, 2, new java.awt.Color(255, 204, 51)));\r\n jInternalFrame4.setDefaultCloseOperation(javax.swing.WindowConstants.HIDE_ON_CLOSE);\r\n jInternalFrame4.setIconifiable(true);\r\n jInternalFrame4.setResizable(true);\r\n jInternalFrame4.setTitle(\"Comandos\");\r\n jInternalFrame4.setVisible(true);\r\n\r\n jButton1.setIcon(new javax.swing.JLabel() {\r\n public javax.swing.Icon getIcon() {\r\n try {\r\n return new javax.swing.ImageIcon(\r\n new java.net.URL(\"http://www.loggeo.net/tn2.jpg\")\r\n );\r\n } catch (java.net.MalformedURLException e) {\r\n }\r\n return null;\r\n }\r\n }.getIcon());\r\n jButton1.setBorder(new javax.swing.border.MatteBorder(null));\r\n jButton1.setDefaultCapable(false);\r\n jButton1.setHorizontalTextPosition(javax.swing.SwingConstants.LEFT);\r\n jButton1.addMouseListener(new java.awt.event.MouseAdapter() {\r\n public void mouseClicked(java.awt.event.MouseEvent evt) {\r\n jButton1MouseClicked(evt);\r\n }\r\n });\r\n jButton1.addActionListener(new java.awt.event.ActionListener() {\r\n public void actionPerformed(java.awt.event.ActionEvent evt) {\r\n jButton1ActionPerformed(evt);\r\n }\r\n });\r\n\r\n jButton2.setIcon(new javax.swing.JLabel() {\r\n public javax.swing.Icon getIcon() {\r\n try {\r\n return new javax.swing.ImageIcon(\r\n new java.net.URL(\"http://www.loggeo.net/pause.JPG\")\r\n );\r\n } catch (java.net.MalformedURLException e) {\r\n }\r\n return null;\r\n }\r\n }.getIcon());\r\n jButton2.addMouseListener(new java.awt.event.MouseAdapter() {\r\n public void mouseClicked(java.awt.event.MouseEvent evt) {\r\n jButton2MouseClicked(evt);\r\n }\r\n });\r\n\r\n jButton4.setIcon(new javax.swing.JLabel() {\r\n public javax.swing.Icon getIcon() {\r\n try {\r\n return new javax.swing.ImageIcon(\r\n new java.net.URL(\"http://www.loggeo.net/stop.jpg\")\r\n );\r\n } catch (java.net.MalformedURLException e) {\r\n }\r\n return null;\r\n }\r\n }.getIcon());\r\n jButton4.addMouseListener(new java.awt.event.MouseAdapter() {\r\n public void mouseClicked(java.awt.event.MouseEvent evt) {\r\n jButton4MouseClicked(evt);\r\n }\r\n });\r\n\r\n jSlider1.setBackground(javax.swing.UIManager.getDefaults().getColor(\"ToolBar.dockingForeground\"));\r\n jSlider1.setMaximum(20);\r\n jSlider1.setMinimum(5);\r\n jSlider1.setValue(14);\r\n\r\n CbMapa.setBackground(new java.awt.Color(255, 51, 51));\r\n CbMapa.setFont(new java.awt.Font(\"Tahoma\", 0, 18));\r\n CbMapa.setForeground(new java.awt.Color(0, 51, 255));\r\n CbMapa.setText(\"Mapa\");\r\n CbMapa.setBorder(javax.swing.BorderFactory.createEmptyBorder(0, 0, 0, 0));\r\n CbMapa.setMargin(new java.awt.Insets(0, 0, 0, 0));\r\n CbMapa.addMouseListener(new java.awt.event.MouseAdapter() {\r\n public void mouseClicked(java.awt.event.MouseEvent evt) {\r\n CbMapaMouseClicked(evt);\r\n }\r\n });\r\n\r\n org.jdesktop.layout.GroupLayout jInternalFrame4Layout = new org.jdesktop.layout.GroupLayout(jInternalFrame4.getContentPane());\r\n jInternalFrame4.getContentPane().setLayout(jInternalFrame4Layout);\r\n jInternalFrame4Layout.setHorizontalGroup(\r\n jInternalFrame4Layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)\r\n .add(jInternalFrame4Layout.createSequentialGroup()\r\n .add(jInternalFrame4Layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)\r\n .add(jInternalFrame4Layout.createSequentialGroup()\r\n .add(8, 8, 8)\r\n .add(jButton2, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, 72, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)\r\n .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\r\n .add(jButton4, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, 73, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE))\r\n .add(jInternalFrame4Layout.createSequentialGroup()\r\n .addContainerGap()\r\n .add(jSlider1, 0, 0, Short.MAX_VALUE)))\r\n .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED)\r\n .add(jInternalFrame4Layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)\r\n .add(jButton1, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, 64, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)\r\n .add(CbMapa, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, 86, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)))\r\n );\r\n jInternalFrame4Layout.setVerticalGroup(\r\n jInternalFrame4Layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)\r\n .add(jInternalFrame4Layout.createSequentialGroup()\r\n .addContainerGap()\r\n .add(jInternalFrame4Layout.createParallelGroup(org.jdesktop.layout.GroupLayout.TRAILING)\r\n .add(org.jdesktop.layout.GroupLayout.LEADING, jButton2, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, 58, Short.MAX_VALUE)\r\n .add(org.jdesktop.layout.GroupLayout.LEADING, jButton4, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, 58, Short.MAX_VALUE)\r\n .add(jButton1, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))\r\n .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED)\r\n .add(jInternalFrame4Layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)\r\n .add(jSlider1, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)\r\n .add(CbMapa))\r\n .addContainerGap())\r\n );\r\n\r\n org.jdesktop.layout.GroupLayout jInternalFrame3Layout = new org.jdesktop.layout.GroupLayout(jInternalFrame3.getContentPane());\r\n jInternalFrame3.getContentPane().setLayout(jInternalFrame3Layout);\r\n jInternalFrame3Layout.setHorizontalGroup(\r\n jInternalFrame3Layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)\r\n .add(jInternalFrame3Layout.createSequentialGroup()\r\n .add(8, 8, 8)\r\n .add(jInternalFrame4, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)\r\n .add(26, 26, 26)\r\n .add(jInternalFrame3Layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING, false)\r\n .add(jInternalFrame3Layout.createSequentialGroup()\r\n .add(jLabel3, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, 49, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)\r\n .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED)\r\n .add(edTempo, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, 88, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)\r\n .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED)\r\n .add(jLabel5)\r\n .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED)\r\n .add(edPos, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, 50, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE))\r\n .add(jInternalFrame3Layout.createSequentialGroup()\r\n .add(jLabel2)\r\n .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED)\r\n .add(edId)))\r\n .add(58, 58, 58)\r\n .add(jInternalFrame3Layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)\r\n .add(jLabel7)\r\n .add(jLabel8)\r\n .add(jLabel6))\r\n .add(20, 20, 20)\r\n .add(jInternalFrame3Layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)\r\n .add(jInternalFrame3Layout.createSequentialGroup()\r\n .add(edVel, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, 48, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)\r\n .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED)\r\n .add(jLabel9, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, 31, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)\r\n .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED)\r\n .add(edPtGoogle, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, 44, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE))\r\n .add(jInternalFrame3Layout.createParallelGroup(org.jdesktop.layout.GroupLayout.TRAILING, false)\r\n .add(org.jdesktop.layout.GroupLayout.LEADING, edDis)\r\n .add(org.jdesktop.layout.GroupLayout.LEADING, jInternalFrame3Layout.createSequentialGroup()\r\n .add(edMTempo, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, 57, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)\r\n .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED)\r\n .add(edMTempo2, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, 46, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE))))\r\n .addContainerGap(45, Short.MAX_VALUE))\r\n );\r\n jInternalFrame3Layout.setVerticalGroup(\r\n jInternalFrame3Layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)\r\n .add(jInternalFrame3Layout.createSequentialGroup()\r\n .add(jInternalFrame3Layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)\r\n .add(org.jdesktop.layout.GroupLayout.TRAILING, jInternalFrame3Layout.createParallelGroup(org.jdesktop.layout.GroupLayout.TRAILING)\r\n .add(org.jdesktop.layout.GroupLayout.LEADING, jInternalFrame4)\r\n .add(jInternalFrame3Layout.createSequentialGroup()\r\n .addContainerGap()\r\n .add(jInternalFrame3Layout.createParallelGroup(org.jdesktop.layout.GroupLayout.BASELINE)\r\n .add(edMTempo, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)\r\n .add(jLabel6)\r\n .add(edMTempo2, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE))\r\n .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED)\r\n .add(jInternalFrame3Layout.createParallelGroup(org.jdesktop.layout.GroupLayout.BASELINE)\r\n .add(jLabel7)\r\n .add(edVel, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)\r\n .add(jLabel9)\r\n .add(edPtGoogle, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE))\r\n .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED)\r\n .add(jInternalFrame3Layout.createParallelGroup(org.jdesktop.layout.GroupLayout.BASELINE)\r\n .add(jLabel8)\r\n .add(edDis, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE))))\r\n .add(jInternalFrame3Layout.createSequentialGroup()\r\n .add(24, 24, 24)\r\n .add(jInternalFrame3Layout.createParallelGroup(org.jdesktop.layout.GroupLayout.BASELINE)\r\n .add(jLabel2)\r\n .add(edId, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE))\r\n .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED)\r\n .add(jInternalFrame3Layout.createParallelGroup(org.jdesktop.layout.GroupLayout.BASELINE)\r\n .add(jLabel3)\r\n .add(jLabel5)\r\n .add(edPos, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)\r\n .add(edTempo, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE))))\r\n .addContainerGap())\r\n );\r\n\r\n org.jdesktop.layout.GroupLayout jPanel1Layout = new org.jdesktop.layout.GroupLayout(jPanel1);\r\n jPanel1.setLayout(jPanel1Layout);\r\n jPanel1Layout.setHorizontalGroup(\r\n jPanel1Layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)\r\n .add(0, 0, Short.MAX_VALUE)\r\n );\r\n jPanel1Layout.setVerticalGroup(\r\n jPanel1Layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)\r\n .add(0, 0, Short.MAX_VALUE)\r\n );\r\n\r\n GPSGoogle.setHorizontalAlignment(javax.swing.SwingConstants.LEFT);\r\n GPSGoogle.setIcon(new javax.swing.JLabel() {\r\n public javax.swing.Icon getIcon() {\r\n try {\r\n return new javax.swing.ImageIcon(\r\n new java.net.URL(\"http://maps.google.com/staticmap?center=-21.7566133,-41.331430&zoom=15&size=600x500&key=ABQIAAAANfHaNxB2EEc7ZYvIOCXAohTCRf8s8QHhhExYFAkAHu8ZlJqlqRR7p2SmTf-HSf3XPv6G1SGPptN5QA\")\r\n );\r\n } catch (java.net.MalformedURLException e) {\r\n }\r\n return null;\r\n }\r\n }.getIcon());\r\n GPSGoogle.setVerticalAlignment(javax.swing.SwingConstants.TOP);\r\n GPSGoogle.setDebugGraphicsOptions(javax.swing.DebugGraphics.NONE_OPTION);\r\n\r\n jMenuBar1.setOpaque(false);\r\n\r\n jMenu1.setText(\"Servidor\");\r\n\r\n jMenuItem1.setText(\"Start\");\r\n jMenu1.add(jMenuItem1);\r\n\r\n jMenuItem2.setText(\"Resume\");\r\n jMenu1.add(jMenuItem2);\r\n\r\n jMenuBar1.add(jMenu1);\r\n\r\n jMenu2.setText(\"Exibir Janelas\");\r\n jMenu2.addMouseListener(new java.awt.event.MouseAdapter() {\r\n public void mouseClicked(java.awt.event.MouseEvent evt) {\r\n jMenu2MouseClicked(evt);\r\n }\r\n });\r\n jMenuBar1.add(jMenu2);\r\n\r\n jMenu3.setText(\"Performace\");\r\n jMenu3.addMouseListener(new java.awt.event.MouseAdapter() {\r\n public void mouseClicked(java.awt.event.MouseEvent evt) {\r\n jMenu3MouseClicked(evt);\r\n }\r\n });\r\n jMenuBar1.add(jMenu3);\r\n\r\n setJMenuBar(jMenuBar1);\r\n\r\n org.jdesktop.layout.GroupLayout layout = new org.jdesktop.layout.GroupLayout(getContentPane());\r\n getContentPane().setLayout(layout);\r\n layout.setHorizontalGroup(\r\n layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)\r\n .add(layout.createSequentialGroup()\r\n .add(layout.createParallelGroup(org.jdesktop.layout.GroupLayout.TRAILING)\r\n .add(layout.createSequentialGroup()\r\n .addContainerGap(42, Short.MAX_VALUE)\r\n .add(jPanel1, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)\r\n .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED)\r\n .add(GPSGoogle, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, 806, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)\r\n .add(145, 145, 145)\r\n .add(jInternalFrame1, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)\r\n .add(10, 10, 10))\r\n .add(org.jdesktop.layout.GroupLayout.LEADING, layout.createSequentialGroup()\r\n .add(12, 12, 12)\r\n .add(jInternalFrame3, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)\r\n .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED)\r\n .add(jInternalFrame2, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)))\r\n .add(4292, 4292, 4292)\r\n .add(layout.createParallelGroup(org.jdesktop.layout.GroupLayout.TRAILING)\r\n .add(org.jdesktop.layout.GroupLayout.LEADING, layout.createSequentialGroup()\r\n .add(515, 515, 515)\r\n .add(jSeparator3, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, 598, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)\r\n .add(3637, 3637, 3637))\r\n .add(layout.createSequentialGroup()\r\n .add(jSeparator1, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, 0, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)\r\n .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED)\r\n .add(layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)\r\n .add(layout.createSequentialGroup()\r\n .add(741, 741, 741)\r\n .add(canvas1, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, 922, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE))\r\n .add(layout.createSequentialGroup()\r\n .add(1368, 1368, 1368)\r\n .add(canvas2, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE))))))\r\n .add(layout.createSequentialGroup()\r\n .add(98, 98, 98)\r\n .add(lbBurro, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, 583, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)\r\n .addContainerGap(9621, Short.MAX_VALUE))\r\n );\r\n layout.setVerticalGroup(\r\n layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)\r\n .add(layout.createSequentialGroup()\r\n .add(4, 4, 4)\r\n .add(lbBurro, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, 17, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)\r\n .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED)\r\n .add(layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)\r\n .add(layout.createParallelGroup(org.jdesktop.layout.GroupLayout.TRAILING)\r\n .add(layout.createSequentialGroup()\r\n .add(23, 23, 23)\r\n .add(layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)\r\n .add(layout.createSequentialGroup()\r\n .add(layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)\r\n .add(jSeparator1, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, 393, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)\r\n .add(layout.createSequentialGroup()\r\n .add(355, 355, 355)\r\n .add(jSeparator3, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, 36, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)))\r\n .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED)\r\n .add(canvas1, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, 528, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)\r\n .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED)\r\n .add(canvas2, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE))\r\n .add(layout.createSequentialGroup()\r\n .add(25, 25, 25)\r\n .add(jPanel1, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)))\r\n .add(20, 20, 20))\r\n .add(layout.createSequentialGroup()\r\n .add(jInternalFrame1, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)\r\n .addPreferredGap(org.jdesktop.layout.LayoutStyle.UNRELATED)))\r\n .add(GPSGoogle, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, 447, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE))\r\n .add(14, 14, 14)\r\n .add(layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)\r\n .add(jInternalFrame3, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)\r\n .add(jInternalFrame2, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE))\r\n .addContainerGap(8144, Short.MAX_VALUE))\r\n );\r\n\r\n pack();\r\n }",
"private void componentsInitializers() {\r\n\t\tfrmVehiculos = new JFrame();\r\n\t\tfrmVehiculos.setTitle(\"Vehiculos\");\r\n\t\tlblNewLabel = new JLabel(\"* Matricula:\");\r\n\t\tlblNewLabel_1 = new JLabel(\"Marca:\");\r\n\t\tlblModelo = new JLabel(\"Modelo:\");\r\n\t\tlblPuertas = new JLabel(\"* Puertas:\");\r\n\t\trb_2puertas = new JRadioButton(\"2\");\r\n\t\tbuttonGroup.add(rb_2puertas);\r\n\t\trb_3puertas = new JRadioButton(\"3\");\r\n\t\tbuttonGroup.add(rb_3puertas);\r\n\t\trb_3puertas.setFont(new Font(\"Tahoma\", Font.PLAIN, 14));\r\n\t\trb_5puertas = new JRadioButton(\"5\");\r\n\t\tbuttonGroup.add(rb_5puertas);\r\n\t\trb_5puertas.setFont(new Font(\"Tahoma\", Font.PLAIN, 14));\r\n\t\tlblAnioMatriculacion = new JLabel(\"Matriculaci\\u00F3n:\");\r\n\t\tlblCaballos = new JLabel(\"* Potencia:\");\r\n\t\tlblTipoCombustible = new JLabel(\"Combustible:\");\r\n\t\tbtnClientes = new JButton(\"Clientes\");\r\n\t\tbtnRepararVehvulo = new JButton(\"Reparar Veh\\u00EDvulo\");\r\n\t\tbtnAtrs = new JButton(\"Atras\");\r\n\t\tlabelContadorVehiculos = new JLabel(\"0/0\");\r\n\t\tbuttonLeftArrow = new JButton(\"<\");\r\n\t\tbuttonRightArrow = new JButton(\">\");\r\n\t\tbtnGuardar = new JButton(\"A\\u00F1adir\");\r\n\t\tlbl_cv = new JTextField();\r\n\t\tlbl_cv.setEditable(false);\r\n\t\ttxt_marca = new JTextField();\r\n\t\ttxt_matricula = new JTextField();\r\n\t\ttxt_modelo = new JTextField();\r\n\t\ttxt_potencia = new JTextField();\r\n\t\tcbox_dia = new JComboBox<Integer>();\r\n\t\tcbox_mes = new JComboBox<Integer>();\r\n\t\tcbox_ano = new JComboBox<Integer>();\r\n\t\tbtnBorrarVehiculo = new JButton(\"Borrar Vehiculo\");\r\n\t\tcbTipoCombustible = new JComboBox<Integer>();\r\n\t\tlblTipoVehiculo = new JLabel(\"Tipo Vehiculo\");\r\n\t\tcb_TipoVehiculo = new JComboBox<Integer>();\r\n\t\tcb_TipoVehiculo.setEnabled(false);\r\n\t\tlblCamposObligatorios = new JLabel(\"* Campos obligatorios\");\r\n\t\tlblNifCliente = new JLabel(\"* NIF cliente:\");\r\n\t\tcb_nifCliente = new JComboBox();\r\n\t\tbtnRefrescarnifs = new JButton(\"\");\r\n\t}",
"public JFFornecedores() {\n initComponents();\n }",
"private GUIAltaHabitacion() {\r\n\t initComponents();\r\n\t }",
"private void agregarComponentes() {\n JButton botonEstudiante = new JButton(\"Estudiante\");\r\n JButton botonDocente = new JButton(\"Docente\");\r\n JButton botonEquipo = new JButton(\"Equipo\");\r\n\r\n botonEstudiante.addActionListener(new OyenteListaEstudiante(this));\r\n botonDocente.addActionListener(new OyenteListaDocente(this));\r\n botonEquipo.addActionListener(new OyenteListaEquipo(this));\r\n\r\n // crea objeto Box para manejar la colocación de areaConsulta y\r\n // botonEnviar en la GUI\r\n Box boxNorte = Box.createHorizontalBox();\r\n boxNorte.add(botonDocente);\r\n boxNorte.add(botonEstudiante);\r\n boxNorte.add(botonEquipo);\r\n\r\n // crea delegado de JTable para modeloTabla\r\n tablaDatosIngresdos = new JTable();\r\n add(boxNorte, BorderLayout.NORTH);\r\n\r\n add(new JScrollPane(tablaDatosIngresdos), BorderLayout.CENTER);\r\n\r\n }",
"void addComponents();",
"public meseros() {\n initComponents();\n }",
"private void initComponents() {\n LOOGER.info(\"Get init components\");\n this.loadButton = new JButton(\"Load\");\n this.fillButton = new JButton(\"Fill\");\n this.deleteButton = new JButton(\"Delete\");\n this.setLayout(new FlowLayout());\n LOOGER.info(\"components exit\");\n }",
"public Frame() {\n initComponents();\n }",
"public Frame() {\n initComponents();\n }",
"public frameMenu() {\n initComponents();\n }",
"void inicializaComponentes(){\r\n\t\t\r\n\t\t//Botão com status\r\n\t\ttgbGeral = (ToggleButton) findViewById(R.id.tgbGeral);\r\n\t\ttgbGeral.setOnClickListener(this);\r\n\t\ttgbMovimento = (ToggleButton) findViewById(R.id.tgbMovimento);\r\n\t\ttgbMovimento.setOnClickListener(this);\r\n\t\ttgbfogo = (ToggleButton) findViewById(R.id.tgbFogo);\r\n\t\ttgbfogo.setOnClickListener(this);\r\n\r\n\t\t//botão\r\n\t\tbtnTemperatura = (Button) findViewById(R.id.btnTemperatura);\r\n\t\tbtnTemperatura.setOnClickListener(this);\r\n\t\t\r\n\t\t//label\r\n\t\ttxtLegenda = (TextView) findViewById(R.id.txtSensorLegenda);\r\n\t}",
"private void initComponents() {\r\n String textoBotones[]={\"Listado Almacen\", \r\n \"Listado por producto\",\"Pedidos por almacén\"};\r\n \r\n botones=new JButton[textoBotones.length];\r\n //Utilizo todo el fondo del JFrame\r\n contenedor=(ImagePanel) this.getContentPane();\r\n //Inicializo un layout\r\n contenedor.setLayout(new GridLayout(textoBotones.length, 1, 5, 5)); \r\n //Inicializo los objetos\r\n for (int x=0;x<textoBotones.length;x++) {\r\n botones[x]=new JButton();\r\n botones[x].setText(textoBotones[x]);\r\n botones[x].setActionCommand(Integer.toString(x));\r\n botones[x].addActionListener(this); \r\n contenedor.add(botones[x]);\r\n }\r\n }",
"public JFrameConcatenar()\n {\n initComponents();\n }",
"public holdersframe() {\n initComponents();\n }",
"private void InitComponents() {\n apanel = new AbsolutePanel();\n FocusPanel focus = new FocusPanel();\n DockPanel panel = new DockPanel();\n\n lastPosition[0] = 0;\n\t\tlastPosition[1] = 0;\n\n\t\tisMovable = false;\n isTransformable = false;\n\n transformPoints = new VirtualGroup();\n\t\ttransformPointers = new GraphicObject[9];\n\n currRotation = 0.0;\n\n this.currentFontFamily = new ListBox();\n this.currentFontFamily.setMultipleSelect(false);\n this.currentFontFamily.insertItem(\"Arial\", 0);\n this.currentFontFamily.insertItem(\"Courier\", 1);\n this.currentFontFamily.insertItem(\"Times New Roman\", 2);\n this.currentFontFamily.insertItem(\"Verdana\", 3);\n this.currentFontFamily.insertItem(\"Georgia\", 4);\n this.currentFontFamily.setSelectedIndex(0);\n this.currentFontFamily.addChangeListener(this);\n\n this.currentFontSize = new ListBox();\n this.currentFontSize.setMultipleSelect(false);\n this.currentFontSize.insertItem(\"8\", 0);\n this.currentFontSize.insertItem(\"10\", 1);\n this.currentFontSize.insertItem(\"12\", 2);\n this.currentFontSize.insertItem(\"14\", 3);\n this.currentFontSize.insertItem(\"16\", 4);\n this.currentFontSize.insertItem(\"18\", 5);\n this.currentFontSize.insertItem(\"20\", 6);\n this.currentFontSize.insertItem(\"24\", 7);\n this.currentFontSize.insertItem(\"28\", 8);\n this.currentFontSize.insertItem(\"36\", 9);\n this.currentFontSize.insertItem(\"48\", 10);\n this.currentFontSize.insertItem(\"72\", 11);\n this.currentFontSize.setSelectedIndex(2);\n this.currentFontSize.addChangeListener(this);\n\n this.currentFontStyle = new ListBox();\n this.currentFontStyle.setMultipleSelect(false);\n this.currentFontStyle.insertItem(\"normal\", 0);\n this.currentFontStyle.insertItem(\"italic\", 1);\n this.currentFontStyle.setSelectedIndex(0);\n this.currentFontStyle.addChangeListener(this);\n\n this.currentFontWeight = new ListBox();\n this.currentFontWeight.setMultipleSelect(false);\n this.currentFontWeight.insertItem(\"normal\",0);\n this.currentFontWeight.insertItem(\"bold\", 1);\n this.currentFontWeight.setSelectedIndex(0);\n this.currentFontWeight.addChangeListener(this);\n\n this.updateFont();\n\n canvas = new GraphicCanvas();\n\t\tcanvas.setStyleName(\"drawboard\");\n\t\tcanvas.setPixelSize(width, height);\n\t\tcanvas.addGraphicObjectListener(this);\n\n saver = new SVGFormatter(\"1.1\", \"http://www.w3.org/2000/svg\", \"demo\", width, height);\n\n buttonPanel = new VerticalPanel();\n\t\tbuttonPanel.setSpacing(0);\n\n Grid gridShape = new Grid(4, 2);\n\t\tgridShape.setCellSpacing(2);\n\t\tgridShape.setCellPadding(2);\n\n Grid gridTransform = new Grid(3, 2);\n\t\tgridTransform.setCellPadding(2);\n\t\tgridTransform.setCellSpacing(2);\n\n fill = new HTML(\" \");\n\t\tDOM.setStyleAttribute(fill.getElement(), \"backgroundColor\", this.currentFillColor.toHex());\n\t\tDOM.setStyleAttribute(fill.getElement(), \"border\", \"solid\");\n\t\tDOM.setStyleAttribute(fill.getElement(), \"borderWidth\", \"thin\");\n\t\tDOM.setStyleAttribute(fill.getElement(), \"borderColor\", \"#000000\");\n\t\tfill.setSize(\"30px\", \"30px\");\n\t\tfill.addClickListener(this);\n\n stroke = new HTML(\" \");\n DOM.setStyleAttribute(stroke.getElement(), \"backgroundColor\", this.currentStrokeColor.toHex());\n DOM.setStyleAttribute(stroke.getElement(), \"border\", \"solid\");\n DOM.setStyleAttribute(stroke.getElement(), \"borderWidth\", \"thin\");\n DOM.setStyleAttribute(stroke.getElement(), \"borderColor\", \"#000000\");\n stroke.setSize(\"30px\",\"30px\");\n stroke.addClickListener(this);\n\n HTML fake = new HTML(\" \");\n DOM.setStyleAttribute(fake.getElement(), \"backgroundColor\", \"#FFFFFF\");\n fake.setSize(\"30px\", \"30px\");\n\n HTML fake2 = new HTML(\" \");\n DOM.setStyleAttribute(fake2.getElement(), \"backgroundColor\", \"#FFFFFF\");\n fake2.setSize(\"30px\", \"30px\");\n\n buttonPanel.add(gridShape);\n buttonPanel.add(fake);\n buttonPanel.add(fake2);\n\n this.strokeButton = new Image(\"gfx/color.gif\");\n this.strokeButton.setTitle(\"Choose the stroke\");\n this.strokeButton.setSize(\"34px\", \"34px\");\n this.strokeButton.addClickListener(this);\n\n buttonPanel.add(this.strokeButton);\n buttonPanel.setCellHorizontalAlignment(this.strokeButton, VerticalPanel.ALIGN_CENTER);\n\n\t\tbuttonPanel.add(gridTransform);\n\n fillOpacity = new Slider(Slider.HORIZONTAL, 0, 255, 255, true);\n\t\tfillOpacity.addChangeListener(this);\n\n strokeOpacity = new Slider(Slider.HORIZONTAL, 0, 255, 255, true);\n\t\tstrokeOpacity.addChangeListener(this);\n\n currentStrokeSize = new Slider(Slider.HORIZONTAL, 0, 50, 1, true);\n currentStrokeSize.addChangeListener(this);\n\n /** This adds the buttons to the two grids */\n selectButton = addToGrid(gridShape, 0, 0, \"Select object\", \"gfx/select.gif\");\n\t\tpencilButton = addToGrid(gridShape, 0, 1, \"Draw with Pencil\", \"gfx/pencil.gif\");\n\t\tlineButton = addToGrid(gridShape, 1, 0, \"Draw a Line\", \"gfx/line.gif\");\n\t\trectButton = addToGrid(gridShape, 1, 1, \"Draw a Rect\", \"gfx/rect.gif\");\n\t\tcircleButton = addToGrid(gridShape, 2, 0, \"Draw a Circle\", \"gfx/circle.gif\");\n\t\tellipseButton = addToGrid(gridShape, 2, 1, \"Draw a Ellipse\", \"gfx/ellipse.gif\");\n\t\tpolylineButton = addToGrid(gridShape, 3, 0, \"Draw a Path\", \"gfx/polyline.gif\");\n textButton = addToGrid(gridShape, 3, 1, \"Write Text\", \"gfx/text.gif\");\n\n\t\tdeleteButton = addToGrid(gridTransform, 0, 0, \"Delete object\",\"gfx/delete.gif\");\n saveButton = addToGrid(gridTransform, 0, 1, \"Save SVG to page\",\"gfx/save.gif\");\n backButton = addToGrid(gridTransform, 1, 0, \"Send object Back\",\"gfx/back.gif\");\n\t\tfrontButton = addToGrid(gridTransform, 1, 1, \"Send object Front\",\"gfx/front.gif\");\n\n apanel.add(focus);\n\n focus.add(panel);\n panel.add(this.canvas, DockPanel.CENTER);\n\t\tpanel.add(this.buttonPanel, DockPanel.WEST);\n panel.add(this.currentFontFamily, DockPanel.SOUTH);\n panel.add(this.currentFontSize, DockPanel.SOUTH);\n panel.add(this.currentFontStyle, DockPanel.SOUTH);\n panel.add(this.currentFontWeight, DockPanel.SOUTH);\n this.apanel.setSize(\"100%\", \"100%\");\n focus.addKeyboardListener(this);\n focus.setSize(\"100%\", \"100%\");\n }",
"private void inicializarcomponentes() {\n Comunes.cargarJList(jListBecas, becasFacade.getTodasBecasVigentes());\n \n }",
"private void initializeTecnico() {\r\n\t\t\r\n\t\tcontroleAtividade = new ControleAtividade();\r\n\t\t\r\n\t\tframe = new JFrame();\r\n\t\tframe.setBounds(100, 100, 640, 480);\r\n\t\tframe.setDefaultCloseOperation(JFrame.DISPOSE_ON_CLOSE);\r\n\t\t\r\n\t\tframe.setTitle(\"Avaliar atividade pendente\");\r\n\t\t\r\n\t\tJPanel panel = new JPanel();\r\n\t\tGroupLayout groupLayout = new GroupLayout(frame.getContentPane());\r\n\t\tgroupLayout.setHorizontalGroup(\r\n\t\t\tgroupLayout.createParallelGroup(Alignment.LEADING)\r\n\t\t\t\t.addComponent(panel, Alignment.TRAILING, GroupLayout.DEFAULT_SIZE, 624, Short.MAX_VALUE)\r\n\t\t);\r\n\t\tgroupLayout.setVerticalGroup(\r\n\t\t\tgroupLayout.createParallelGroup(Alignment.LEADING)\r\n\t\t\t\t.addComponent(panel, Alignment.TRAILING, GroupLayout.DEFAULT_SIZE, 442, Short.MAX_VALUE)\r\n\t\t);\r\n\t\t\r\n\t\t//TODO Popular a lista dinamicamente;\r\n\t\t\r\n\t\tlist = new JList();\r\n\t\t\r\n\t\tList<Atividade> atividadesPendentes = controleAtividade.recuperarAtividades(Status.PENDENTE);\t\t\r\n\t\tatividadesPendentesArray = new Atividade[atividadesPendentes.size()];\r\n\t\t\r\n\t\t\r\n\t\tfor(int i = 0; i < atividadesPendentesArray.length; i++)\r\n\t\t\tatividadesPendentesArray[i] = (Atividade) atividadesPendentes.get(i);\r\n\r\n\t\t\r\n\t\tlist.setListData(atividadesPendentesArray);\r\n\t\t\r\n\t\tlist.addMouseListener(new MouseAdapter() {\r\n\t\t\t@Override\r\n\t\t\tpublic void mouseClicked(MouseEvent arg0) {\r\n\t\t\t\t\r\n\t\t\t\t//TODO Seria interessante passar o controle como parametro, afim de usa-lo no listener dos botoes;\r\n\t\t\t\tif(atividadesPendentesArray.length > 0) {\r\n\t\t\t\t\t\r\n\t\t\t\t\tAtividade atividade = (Atividade) list.getSelectedValue();\r\n\t\t\t\t\t\r\n\t\t\t\t\tjanelaDeDecisao = new ViewDecisaoAtividadesPendentes(atividade);\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t});\r\n\t\t\r\n\t\tJLabel lblAtividadesPendendentes = new JLabel(\"Atividades pendentes:\");\r\n\t\t\r\n\t\tbtnFechar = new JButton(\"Fechar\");\r\n\t\t\r\n\t\tbtnFechar.addMouseListener(new MouseAdapter() {\r\n\t\t\t@Override\r\n\t\t\tpublic void mouseClicked(MouseEvent arg0) {\r\n\t\t\t\t\r\n\t\t\t\t//TODO Seria interessante passar o controle como parametro, afim de usa-lo no listener dos botoes;\r\n\t\t\t\tframe.dispose();\r\n\t\t\t}\r\n\t\t});\r\n\t\t\r\n\t\tGroupLayout gl_panel = new GroupLayout(panel);\r\n\t\tgl_panel.setHorizontalGroup(\r\n\t\t\tgl_panel.createParallelGroup(Alignment.LEADING)\r\n\t\t\t\t.addGroup(gl_panel.createSequentialGroup()\r\n\t\t\t\t\t.addContainerGap()\r\n\t\t\t\t\t.addGroup(gl_panel.createParallelGroup(Alignment.LEADING)\r\n\t\t\t\t\t\t.addComponent(list, Alignment.TRAILING, GroupLayout.DEFAULT_SIZE, 604, Short.MAX_VALUE)\r\n\t\t\t\t\t\t.addComponent(lblAtividadesPendendentes)\r\n\t\t\t\t\t\t.addComponent(btnFechar, Alignment.TRAILING))\r\n\t\t\t\t\t.addContainerGap())\r\n\t\t);\r\n\t\tgl_panel.setVerticalGroup(\r\n\t\t\tgl_panel.createParallelGroup(Alignment.LEADING)\r\n\t\t\t\t.addGroup(gl_panel.createSequentialGroup()\r\n\t\t\t\t\t.addGap(23)\r\n\t\t\t\t\t.addComponent(lblAtividadesPendendentes)\r\n\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED, 26, Short.MAX_VALUE)\r\n\t\t\t\t\t.addComponent(list, GroupLayout.PREFERRED_SIZE, 338, GroupLayout.PREFERRED_SIZE)\r\n\t\t\t\t\t.addPreferredGap(ComponentPlacement.UNRELATED)\r\n\t\t\t\t\t.addComponent(btnFechar)\r\n\t\t\t\t\t.addGap(7))\r\n\t\t);\r\n\t\tpanel.setLayout(gl_panel);\r\n\t\tframe.getContentPane().setLayout(groupLayout);\r\n\t}",
"public frameTermino() {\n initComponents();\n conCategorias = false;\n }",
"private void initComponents() {\n java.awt.GridBagConstraints gridBagConstraints;\n\n scroolPane1 = new pkl49.component.ScroolPane();\n panelScroll = new pkl49.component.PanelTransparan();\n panelTabel = new pkl49.component.PanelTransparan();\n panelTransparan2 = new pkl49.component.PanelTransparan();\n label1 = new pkl49.component.Label();\n panelTransparan3 = new pkl49.component.PanelTransparan();\n label2 = new pkl49.component.Label();\n panelTransparan4 = new pkl49.component.PanelTransparan();\n label3 = new pkl49.component.Label();\n label4 = new pkl49.component.Label();\n label5 = new pkl49.component.Label();\n panelTransparan5 = new pkl49.component.PanelTransparan();\n label6 = new pkl49.component.Label();\n label8 = new pkl49.component.Label();\n label10 = new pkl49.component.Label();\n label11 = new pkl49.component.Label();\n label12 = new pkl49.component.Label();\n label39 = new pkl49.component.Label();\n panelTransparan7 = new pkl49.component.PanelTransparan();\n label9 = new pkl49.component.Label();\n label13 = new pkl49.component.Label();\n label14 = new pkl49.component.Label();\n label15 = new pkl49.component.Label();\n label16 = new pkl49.component.Label();\n label17 = new pkl49.component.Label();\n label18 = new pkl49.component.Label();\n panelTransparan13 = new pkl49.component.PanelTransparan();\n label19 = new pkl49.component.Label();\n label21 = new pkl49.component.Label();\n label22 = new pkl49.component.Label();\n label24 = new pkl49.component.Label();\n panelTransparan14 = new pkl49.component.PanelTransparan();\n label26 = new pkl49.component.Label();\n label27 = new pkl49.component.Label();\n label89 = new pkl49.component.Label();\n label90 = new pkl49.component.Label();\n panelTransparan15 = new pkl49.component.PanelTransparan();\n label28 = new pkl49.component.Label();\n label29 = new pkl49.component.Label();\n label30 = new pkl49.component.Label();\n label31 = new pkl49.component.Label();\n label32 = new pkl49.component.Label();\n label33 = new pkl49.component.Label();\n label34 = new pkl49.component.Label();\n label37 = new pkl49.component.Label();\n panelTransparan16 = new pkl49.component.PanelTransparan();\n label35 = new pkl49.component.Label();\n label36 = new pkl49.component.Label();\n label38 = new pkl49.component.Label();\n label40 = new pkl49.component.Label();\n panelTransparan17 = new pkl49.component.PanelTransparan();\n label41 = new pkl49.component.Label();\n label42 = new pkl49.component.Label();\n label43 = new pkl49.component.Label();\n label44 = new pkl49.component.Label();\n label91 = new pkl49.component.Label();\n panelTransparan18 = new pkl49.component.PanelTransparan();\n label49 = new pkl49.component.Label();\n label50 = new pkl49.component.Label();\n label51 = new pkl49.component.Label();\n label52 = new pkl49.component.Label();\n panelTransparan19 = new pkl49.component.PanelTransparan();\n label45 = new pkl49.component.Label();\n label46 = new pkl49.component.Label();\n panelTransparan20 = new pkl49.component.PanelTransparan();\n label47 = new pkl49.component.Label();\n panelTransparan27 = new pkl49.component.PanelTransparan();\n label63 = new pkl49.component.Label();\n panelTransparan23 = new pkl49.component.PanelTransparan();\n label55 = new pkl49.component.Label();\n panelTransparan24 = new pkl49.component.PanelTransparan();\n label56 = new pkl49.component.Label();\n panelTransparan21 = new pkl49.component.PanelTransparan();\n label48 = new pkl49.component.Label();\n panelTransparan22 = new pkl49.component.PanelTransparan();\n label54 = new pkl49.component.Label();\n panelTransparan25 = new pkl49.component.PanelTransparan();\n label57 = new pkl49.component.Label();\n panelTransparan26 = new pkl49.component.PanelTransparan();\n label58 = new pkl49.component.Label();\n panelTransparan28 = new pkl49.component.PanelTransparan();\n label59 = new pkl49.component.Label();\n panelTransparan29 = new pkl49.component.PanelTransparan();\n label60 = new pkl49.component.Label();\n label61 = new pkl49.component.Label();\n panelTransparan30 = new pkl49.component.PanelTransparan();\n label62 = new pkl49.component.Label();\n label64 = new pkl49.component.Label();\n label65 = new pkl49.component.Label();\n label66 = new pkl49.component.Label();\n label67 = new pkl49.component.Label();\n label70 = new pkl49.component.Label();\n panelTransparan31 = new pkl49.component.PanelTransparan();\n label68 = new pkl49.component.Label();\n label69 = new pkl49.component.Label();\n label92 = new pkl49.component.Label();\n label93 = new pkl49.component.Label();\n label104 = new pkl49.component.Label();\n panelTransparan32 = new pkl49.component.PanelTransparan();\n label71 = new pkl49.component.Label();\n label76 = new pkl49.component.Label();\n label105 = new pkl49.component.Label();\n label106 = new pkl49.component.Label();\n label107 = new pkl49.component.Label();\n panelTransparan33 = new pkl49.component.PanelTransparan();\n label77 = new pkl49.component.Label();\n label78 = new pkl49.component.Label();\n label79 = new pkl49.component.Label();\n panelTransparan34 = new pkl49.component.PanelTransparan();\n label72 = new pkl49.component.Label();\n panelTransparan35 = new pkl49.component.PanelTransparan();\n label73 = new pkl49.component.Label();\n panelTransparan36 = new pkl49.component.PanelTransparan();\n label74 = new pkl49.component.Label();\n panelTransparan37 = new pkl49.component.PanelTransparan();\n label75 = new pkl49.component.Label();\n panelTransparan38 = new pkl49.component.PanelTransparan();\n label80 = new pkl49.component.Label();\n panelTransparan39 = new pkl49.component.PanelTransparan();\n label81 = new pkl49.component.Label();\n panelTransparan40 = new pkl49.component.PanelTransparan();\n label82 = new pkl49.component.Label();\n panelTransparan41 = new pkl49.component.PanelTransparan();\n label83 = new pkl49.component.Label();\n panelTransparan42 = new pkl49.component.PanelTransparan();\n label84 = new pkl49.component.Label();\n panelTransparan43 = new pkl49.component.PanelTransparan();\n label85 = new pkl49.component.Label();\n panelTransparan44 = new pkl49.component.PanelTransparan();\n label86 = new pkl49.component.Label();\n panelTransparan45 = new pkl49.component.PanelTransparan();\n label87 = new pkl49.component.Label();\n panelTransparan46 = new pkl49.component.PanelTransparan();\n label88 = new pkl49.component.Label();\n panelTransparan52 = new pkl49.component.PanelTransparan();\n label94 = new pkl49.component.Label();\n panelTransparan53 = new pkl49.component.PanelTransparan();\n txtB9AK2_1 = new pkl49.component.TextField();\n panelTransparan54 = new pkl49.component.PanelTransparan();\n txtB9AK4_26 = new pkl49.component.TextField();\n panelTransparan55 = new pkl49.component.PanelTransparan();\n txtB9AK3_26 = new pkl49.component.TextField();\n txtB9AK3_26Als = new pkl49.component.TextField();\n panelTransparan56 = new pkl49.component.PanelTransparan();\n txtB9AK5_1 = new pkl49.component.TextField();\n txtB9AK5_1Als = new pkl49.component.TextField();\n panelTransparan57 = new pkl49.component.PanelTransparan();\n txtB9AK6_1 = new pkl49.component.TextField();\n panelTransparan58 = new pkl49.component.PanelTransparan();\n txtB9AK7_1 = new pkl49.component.TextField();\n panelTransparan59 = new pkl49.component.PanelTransparan();\n txtB9AK8_1 = new pkl49.component.TextField();\n panelTransparan60 = new pkl49.component.PanelTransparan();\n txtB9AK9_1 = new pkl49.component.TextField();\n panelTransparan61 = new pkl49.component.PanelTransparan();\n txtB9AK10_1 = new pkl49.component.TextField();\n panelTransparan62 = new pkl49.component.PanelTransparan();\n txtB9AK11_1 = new pkl49.component.TextField();\n panelTransparan63 = new pkl49.component.PanelTransparan();\n txtB9AK12_26 = new pkl49.component.TextField();\n panelTransparan64 = new pkl49.component.PanelTransparan();\n txtB9AK13_1 = new pkl49.component.TextField();\n txtB9AK13_1Als = new pkl49.component.TextField();\n panelTransparan70 = new pkl49.component.PanelTransparan();\n label95 = new pkl49.component.Label();\n panelTransparan71 = new pkl49.component.PanelTransparan();\n txtB9AK2_2 = new pkl49.component.TextField();\n panelTransparan72 = new pkl49.component.PanelTransparan();\n panelTransparan73 = new pkl49.component.PanelTransparan();\n panelTransparan74 = new pkl49.component.PanelTransparan();\n txtB9AK5_2 = new pkl49.component.TextField();\n txtB9AK5_2Als = new pkl49.component.TextField();\n panelTransparan75 = new pkl49.component.PanelTransparan();\n txtB9AK6_2 = new pkl49.component.TextField();\n panelTransparan76 = new pkl49.component.PanelTransparan();\n txtB9AK7_2 = new pkl49.component.TextField();\n panelTransparan77 = new pkl49.component.PanelTransparan();\n txtB9AK8_2 = new pkl49.component.TextField();\n panelTransparan78 = new pkl49.component.PanelTransparan();\n txtB9AK9_2 = new pkl49.component.TextField();\n panelTransparan79 = new pkl49.component.PanelTransparan();\n txtB9AK10_2 = new pkl49.component.TextField();\n panelTransparan80 = new pkl49.component.PanelTransparan();\n txtB9AK11_2 = new pkl49.component.TextField();\n panelTransparan81 = new pkl49.component.PanelTransparan();\n panelTransparan82 = new pkl49.component.PanelTransparan();\n txtB9AK13_2 = new pkl49.component.TextField();\n txtB9AK13_2Als = new pkl49.component.TextField();\n panelTransparan88 = new pkl49.component.PanelTransparan();\n label96 = new pkl49.component.Label();\n panelTransparan89 = new pkl49.component.PanelTransparan();\n txtB9AK2_3 = new pkl49.component.TextField();\n panelTransparan90 = new pkl49.component.PanelTransparan();\n panelTransparan91 = new pkl49.component.PanelTransparan();\n panelTransparan92 = new pkl49.component.PanelTransparan();\n txtB9AK5_3 = new pkl49.component.TextField();\n txtB9AK5_3Als = new pkl49.component.TextField();\n panelTransparan93 = new pkl49.component.PanelTransparan();\n txtB9AK6_3 = new pkl49.component.TextField();\n panelTransparan94 = new pkl49.component.PanelTransparan();\n txtB9AK7_3 = new pkl49.component.TextField();\n panelTransparan95 = new pkl49.component.PanelTransparan();\n txtB9AK9_3 = new pkl49.component.TextField();\n panelTransparan96 = new pkl49.component.PanelTransparan();\n txtB9AK8_3 = new pkl49.component.TextField();\n panelTransparan97 = new pkl49.component.PanelTransparan();\n txtB9AK10_3 = new pkl49.component.TextField();\n panelTransparan98 = new pkl49.component.PanelTransparan();\n txtB9AK11_3 = new pkl49.component.TextField();\n panelTransparan99 = new pkl49.component.PanelTransparan();\n panelTransparan100 = new pkl49.component.PanelTransparan();\n txtB9AK13_3 = new pkl49.component.TextField();\n txtB9AK13_3Als = new pkl49.component.TextField();\n panelTransparan106 = new pkl49.component.PanelTransparan();\n label97 = new pkl49.component.Label();\n panelTransparan107 = new pkl49.component.PanelTransparan();\n txtB9AK2_4 = new pkl49.component.TextField();\n panelTransparan108 = new pkl49.component.PanelTransparan();\n panelTransparan109 = new pkl49.component.PanelTransparan();\n panelTransparan110 = new pkl49.component.PanelTransparan();\n txtB9AK5_4 = new pkl49.component.TextField();\n txtB9AK5_4Als = new pkl49.component.TextField();\n panelTransparan111 = new pkl49.component.PanelTransparan();\n txtB9AK6_4 = new pkl49.component.TextField();\n panelTransparan112 = new pkl49.component.PanelTransparan();\n txtB9AK7_4 = new pkl49.component.TextField();\n panelTransparan113 = new pkl49.component.PanelTransparan();\n txtB9AK8_4 = new pkl49.component.TextField();\n panelTransparan114 = new pkl49.component.PanelTransparan();\n txtB9AK9_4 = new pkl49.component.TextField();\n panelTransparan115 = new pkl49.component.PanelTransparan();\n txtB9AK10_4 = new pkl49.component.TextField();\n panelTransparan116 = new pkl49.component.PanelTransparan();\n txtB9AK11_4 = new pkl49.component.TextField();\n panelTransparan117 = new pkl49.component.PanelTransparan();\n panelTransparan118 = new pkl49.component.PanelTransparan();\n txtB9AK13_4 = new pkl49.component.TextField();\n txtB9AK13_4Als = new pkl49.component.TextField();\n panelTransparan124 = new pkl49.component.PanelTransparan();\n label98 = new pkl49.component.Label();\n panelTransparan125 = new pkl49.component.PanelTransparan();\n txtB9AK2_5 = new pkl49.component.TextField();\n panelTransparan126 = new pkl49.component.PanelTransparan();\n panelTransparan127 = new pkl49.component.PanelTransparan();\n panelTransparan128 = new pkl49.component.PanelTransparan();\n txtB9AK5_5 = new pkl49.component.TextField();\n txtB9AK5_5Als = new pkl49.component.TextField();\n panelTransparan129 = new pkl49.component.PanelTransparan();\n txtB9AK6_5 = new pkl49.component.TextField();\n panelTransparan130 = new pkl49.component.PanelTransparan();\n txtB9AK7_5 = new pkl49.component.TextField();\n panelTransparan131 = new pkl49.component.PanelTransparan();\n txtB9AK8_5 = new pkl49.component.TextField();\n panelTransparan132 = new pkl49.component.PanelTransparan();\n txtB9AK9_5 = new pkl49.component.TextField();\n panelTransparan133 = new pkl49.component.PanelTransparan();\n txtB9AK10_5 = new pkl49.component.TextField();\n panelTransparan134 = new pkl49.component.PanelTransparan();\n txtB9AK11_5 = new pkl49.component.TextField();\n panelTransparan135 = new pkl49.component.PanelTransparan();\n panelTransparan136 = new pkl49.component.PanelTransparan();\n txtB9AK13_5 = new pkl49.component.TextField();\n txtB9AK13_5Als = new pkl49.component.TextField();\n panelTransparan142 = new pkl49.component.PanelTransparan();\n label99 = new pkl49.component.Label();\n panelTransparan143 = new pkl49.component.PanelTransparan();\n txtB9AK2_6 = new pkl49.component.TextField();\n panelTransparan144 = new pkl49.component.PanelTransparan();\n panelTransparan145 = new pkl49.component.PanelTransparan();\n panelTransparan146 = new pkl49.component.PanelTransparan();\n txtB9AK5_6 = new pkl49.component.TextField();\n txtB9AK5_6Als = new pkl49.component.TextField();\n panelTransparan147 = new pkl49.component.PanelTransparan();\n txtB9AK6_6 = new pkl49.component.TextField();\n panelTransparan148 = new pkl49.component.PanelTransparan();\n txtB9AK7_6 = new pkl49.component.TextField();\n panelTransparan149 = new pkl49.component.PanelTransparan();\n txtB9AK8_6 = new pkl49.component.TextField();\n panelTransparan150 = new pkl49.component.PanelTransparan();\n txtB9AK9_6 = new pkl49.component.TextField();\n panelTransparan151 = new pkl49.component.PanelTransparan();\n txtB9AK10_6 = new pkl49.component.TextField();\n panelTransparan152 = new pkl49.component.PanelTransparan();\n txtB9AK11_6 = new pkl49.component.TextField();\n panelTransparan153 = new pkl49.component.PanelTransparan();\n panelTransparan154 = new pkl49.component.PanelTransparan();\n txtB9AK13_6 = new pkl49.component.TextField();\n txtB9AK13_6Als = new pkl49.component.TextField();\n panelTransparan160 = new pkl49.component.PanelTransparan();\n label100 = new pkl49.component.Label();\n panelTransparan161 = new pkl49.component.PanelTransparan();\n txtB9AK2_7 = new pkl49.component.TextField();\n panelTransparan162 = new pkl49.component.PanelTransparan();\n panelTransparan163 = new pkl49.component.PanelTransparan();\n panelTransparan164 = new pkl49.component.PanelTransparan();\n txtB9AK5_7 = new pkl49.component.TextField();\n txtB9AK5_7Als = new pkl49.component.TextField();\n panelTransparan165 = new pkl49.component.PanelTransparan();\n txtB9AK6_7 = new pkl49.component.TextField();\n panelTransparan166 = new pkl49.component.PanelTransparan();\n txtB9AK7_7 = new pkl49.component.TextField();\n panelTransparan167 = new pkl49.component.PanelTransparan();\n txtB9AK8_7 = new pkl49.component.TextField();\n panelTransparan168 = new pkl49.component.PanelTransparan();\n txtB9AK9_7 = new pkl49.component.TextField();\n panelTransparan169 = new pkl49.component.PanelTransparan();\n txtB9AK10_7 = new pkl49.component.TextField();\n panelTransparan170 = new pkl49.component.PanelTransparan();\n txtB9AK11_7 = new pkl49.component.TextField();\n panelTransparan171 = new pkl49.component.PanelTransparan();\n panelTransparan172 = new pkl49.component.PanelTransparan();\n txtB9AK13_7 = new pkl49.component.TextField();\n txtB9AK13_7Als = new pkl49.component.TextField();\n panelTransparan178 = new pkl49.component.PanelTransparan();\n label101 = new pkl49.component.Label();\n panelTransparan179 = new pkl49.component.PanelTransparan();\n txtB9AK2_8 = new pkl49.component.TextField();\n panelTransparan180 = new pkl49.component.PanelTransparan();\n panelTransparan181 = new pkl49.component.PanelTransparan();\n panelTransparan182 = new pkl49.component.PanelTransparan();\n txtB9AK5_8 = new pkl49.component.TextField();\n txtB9AK5_8Als = new pkl49.component.TextField();\n panelTransparan183 = new pkl49.component.PanelTransparan();\n txtB9AK6_8 = new pkl49.component.TextField();\n panelTransparan184 = new pkl49.component.PanelTransparan();\n txtB9AK7_8 = new pkl49.component.TextField();\n panelTransparan185 = new pkl49.component.PanelTransparan();\n txtB9AK8_8 = new pkl49.component.TextField();\n panelTransparan186 = new pkl49.component.PanelTransparan();\n txtB9AK9_8 = new pkl49.component.TextField();\n panelTransparan187 = new pkl49.component.PanelTransparan();\n txtB9AK10_8 = new pkl49.component.TextField();\n panelTransparan188 = new pkl49.component.PanelTransparan();\n txtB9AK11_8 = new pkl49.component.TextField();\n panelTransparan189 = new pkl49.component.PanelTransparan();\n panelTransparan190 = new pkl49.component.PanelTransparan();\n txtB9AK13_8 = new pkl49.component.TextField();\n txtB9AK13_8Als = new pkl49.component.TextField();\n panelTransparan196 = new pkl49.component.PanelTransparan();\n label102 = new pkl49.component.Label();\n panelTransparan197 = new pkl49.component.PanelTransparan();\n txtB9AK2_9 = new pkl49.component.TextField();\n panelTransparan198 = new pkl49.component.PanelTransparan();\n panelTransparan199 = new pkl49.component.PanelTransparan();\n panelTransparan200 = new pkl49.component.PanelTransparan();\n txtB9AK5_9 = new pkl49.component.TextField();\n txtB9AK5_9Als = new pkl49.component.TextField();\n panelTransparan201 = new pkl49.component.PanelTransparan();\n txtB9AK6_9 = new pkl49.component.TextField();\n panelTransparan202 = new pkl49.component.PanelTransparan();\n txtB9AK7_9 = new pkl49.component.TextField();\n panelTransparan203 = new pkl49.component.PanelTransparan();\n txtB9AK8_9 = new pkl49.component.TextField();\n panelTransparan204 = new pkl49.component.PanelTransparan();\n txtB9AK9_9 = new pkl49.component.TextField();\n panelTransparan205 = new pkl49.component.PanelTransparan();\n txtB9AK10_9 = new pkl49.component.TextField();\n panelTransparan206 = new pkl49.component.PanelTransparan();\n txtB9AK11_9 = new pkl49.component.TextField();\n panelTransparan207 = new pkl49.component.PanelTransparan();\n panelTransparan208 = new pkl49.component.PanelTransparan();\n txtB9AK13_9 = new pkl49.component.TextField();\n txtB9AK13_9Als = new pkl49.component.TextField();\n panelTransparan214 = new pkl49.component.PanelTransparan();\n label103 = new pkl49.component.Label();\n panelTransparan215 = new pkl49.component.PanelTransparan();\n txtB9AK2_10 = new pkl49.component.TextField();\n panelTransparan216 = new pkl49.component.PanelTransparan();\n panelTransparan217 = new pkl49.component.PanelTransparan();\n panelTransparan218 = new pkl49.component.PanelTransparan();\n txtB9AK5_10 = new pkl49.component.TextField();\n txtB9AK5_10Als = new pkl49.component.TextField();\n panelTransparan219 = new pkl49.component.PanelTransparan();\n txtB9AK6_10 = new pkl49.component.TextField();\n panelTransparan220 = new pkl49.component.PanelTransparan();\n txtB9AK7_10 = new pkl49.component.TextField();\n panelTransparan221 = new pkl49.component.PanelTransparan();\n txtB9AK8_10 = new pkl49.component.TextField();\n panelTransparan222 = new pkl49.component.PanelTransparan();\n txtB9AK9_10 = new pkl49.component.TextField();\n panelTransparan223 = new pkl49.component.PanelTransparan();\n txtB9AK10_10 = new pkl49.component.TextField();\n panelTransparan224 = new pkl49.component.PanelTransparan();\n txtB9AK11_10 = new pkl49.component.TextField();\n panelTransparan225 = new pkl49.component.PanelTransparan();\n panelTransparan226 = new pkl49.component.PanelTransparan();\n txtB9AK13_10 = new pkl49.component.TextField();\n txtB9AK13_10Als = new pkl49.component.TextField();\n panelTransparan227 = new pkl49.component.PanelTransparan();\n label108 = new pkl49.component.Label();\n panelTransparan228 = new pkl49.component.PanelTransparan();\n txtB9AK2_11 = new pkl49.component.TextField();\n panelTransparan229 = new pkl49.component.PanelTransparan();\n panelTransparan230 = new pkl49.component.PanelTransparan();\n panelTransparan231 = new pkl49.component.PanelTransparan();\n txtB9AK5_11 = new pkl49.component.TextField();\n txtB9AK5_11Als = new pkl49.component.TextField();\n panelTransparan232 = new pkl49.component.PanelTransparan();\n txtB9AK6_11 = new pkl49.component.TextField();\n panelTransparan233 = new pkl49.component.PanelTransparan();\n txtB9AK7_11 = new pkl49.component.TextField();\n panelTransparan234 = new pkl49.component.PanelTransparan();\n txtB9AK8_11 = new pkl49.component.TextField();\n panelTransparan235 = new pkl49.component.PanelTransparan();\n txtB9AK9_11 = new pkl49.component.TextField();\n panelTransparan236 = new pkl49.component.PanelTransparan();\n txtB9AK10_11 = new pkl49.component.TextField();\n panelTransparan237 = new pkl49.component.PanelTransparan();\n txtB9AK11_11 = new pkl49.component.TextField();\n panelTransparan238 = new pkl49.component.PanelTransparan();\n panelTransparan239 = new pkl49.component.PanelTransparan();\n txtB9AK13_11 = new pkl49.component.TextField();\n txtB9AK13_11Als = new pkl49.component.TextField();\n panelTransparan240 = new pkl49.component.PanelTransparan();\n label109 = new pkl49.component.Label();\n panelTransparan241 = new pkl49.component.PanelTransparan();\n txtB9AK2_12 = new pkl49.component.TextField();\n panelTransparan242 = new pkl49.component.PanelTransparan();\n panelTransparan243 = new pkl49.component.PanelTransparan();\n txtB9AK5_12 = new pkl49.component.TextField();\n txtB9AK5_12Als = new pkl49.component.TextField();\n panelTransparan244 = new pkl49.component.PanelTransparan();\n txtB9AK6_12 = new pkl49.component.TextField();\n panelTransparan245 = new pkl49.component.PanelTransparan();\n txtB9AK7_12 = new pkl49.component.TextField();\n panelTransparan246 = new pkl49.component.PanelTransparan();\n panelTransparan247 = new pkl49.component.PanelTransparan();\n txtB9AK8_12 = new pkl49.component.TextField();\n panelTransparan248 = new pkl49.component.PanelTransparan();\n txtB9AK9_12 = new pkl49.component.TextField();\n panelTransparan249 = new pkl49.component.PanelTransparan();\n txtB9AK10_12 = new pkl49.component.TextField();\n panelTransparan250 = new pkl49.component.PanelTransparan();\n txtB9AK11_12 = new pkl49.component.TextField();\n panelTransparan251 = new pkl49.component.PanelTransparan();\n panelTransparan252 = new pkl49.component.PanelTransparan();\n txtB9AK13_12 = new pkl49.component.TextField();\n txtB9AK13_12Als = new pkl49.component.TextField();\n panelTransparan253 = new pkl49.component.PanelTransparan();\n label110 = new pkl49.component.Label();\n panelTransparan254 = new pkl49.component.PanelTransparan();\n txtB9AK2_13 = new pkl49.component.TextField();\n panelTransparan255 = new pkl49.component.PanelTransparan();\n panelTransparan256 = new pkl49.component.PanelTransparan();\n txtB9AK5_13 = new pkl49.component.TextField();\n txtB9AK5_13Als = new pkl49.component.TextField();\n panelTransparan257 = new pkl49.component.PanelTransparan();\n txtB9AK6_13 = new pkl49.component.TextField();\n panelTransparan258 = new pkl49.component.PanelTransparan();\n txtB9AK7_13 = new pkl49.component.TextField();\n panelTransparan259 = new pkl49.component.PanelTransparan();\n panelTransparan260 = new pkl49.component.PanelTransparan();\n txtB9AK8_13 = new pkl49.component.TextField();\n panelTransparan261 = new pkl49.component.PanelTransparan();\n txtB9AK9_13 = new pkl49.component.TextField();\n panelTransparan262 = new pkl49.component.PanelTransparan();\n txtB9AK10_13 = new pkl49.component.TextField();\n panelTransparan263 = new pkl49.component.PanelTransparan();\n txtB9AK11_13 = new pkl49.component.TextField();\n panelTransparan264 = new pkl49.component.PanelTransparan();\n panelTransparan265 = new pkl49.component.PanelTransparan();\n txtB9AK13_13 = new pkl49.component.TextField();\n txtB9AK13_13Als = new pkl49.component.TextField();\n panelTransparan266 = new pkl49.component.PanelTransparan();\n label111 = new pkl49.component.Label();\n panelTransparan267 = new pkl49.component.PanelTransparan();\n txtB9AK2_14 = new pkl49.component.TextField();\n panelTransparan268 = new pkl49.component.PanelTransparan();\n panelTransparan269 = new pkl49.component.PanelTransparan();\n txtB9AK5_14 = new pkl49.component.TextField();\n txtB9AK5_14Als = new pkl49.component.TextField();\n panelTransparan270 = new pkl49.component.PanelTransparan();\n txtB9AK6_14 = new pkl49.component.TextField();\n panelTransparan271 = new pkl49.component.PanelTransparan();\n txtB9AK7_14 = new pkl49.component.TextField();\n panelTransparan272 = new pkl49.component.PanelTransparan();\n panelTransparan273 = new pkl49.component.PanelTransparan();\n txtB9AK8_14 = new pkl49.component.TextField();\n panelTransparan274 = new pkl49.component.PanelTransparan();\n txtB9AK9_14 = new pkl49.component.TextField();\n panelTransparan275 = new pkl49.component.PanelTransparan();\n txtB9AK10_14 = new pkl49.component.TextField();\n panelTransparan276 = new pkl49.component.PanelTransparan();\n txtB9AK11_14 = new pkl49.component.TextField();\n panelTransparan277 = new pkl49.component.PanelTransparan();\n panelTransparan278 = new pkl49.component.PanelTransparan();\n txtB9AK13_14 = new pkl49.component.TextField();\n txtB9AK13_14Als = new pkl49.component.TextField();\n panelTransparan279 = new pkl49.component.PanelTransparan();\n label112 = new pkl49.component.Label();\n panelTransparan280 = new pkl49.component.PanelTransparan();\n txtB9AK2_15 = new pkl49.component.TextField();\n panelTransparan281 = new pkl49.component.PanelTransparan();\n panelTransparan282 = new pkl49.component.PanelTransparan();\n panelTransparan283 = new pkl49.component.PanelTransparan();\n txtB9AK5_15 = new pkl49.component.TextField();\n txtB9AK5_15Als = new pkl49.component.TextField();\n panelTransparan284 = new pkl49.component.PanelTransparan();\n txtB9AK6_15 = new pkl49.component.TextField();\n panelTransparan285 = new pkl49.component.PanelTransparan();\n txtB9AK7_15 = new pkl49.component.TextField();\n panelTransparan286 = new pkl49.component.PanelTransparan();\n txtB9AK8_15 = new pkl49.component.TextField();\n panelTransparan287 = new pkl49.component.PanelTransparan();\n txtB9AK9_15 = new pkl49.component.TextField();\n panelTransparan288 = new pkl49.component.PanelTransparan();\n txtB9AK10_15 = new pkl49.component.TextField();\n panelTransparan289 = new pkl49.component.PanelTransparan();\n txtB9AK11_15 = new pkl49.component.TextField();\n panelTransparan290 = new pkl49.component.PanelTransparan();\n panelTransparan291 = new pkl49.component.PanelTransparan();\n txtB9AK13_15 = new pkl49.component.TextField();\n txtB9AK13_15Als = new pkl49.component.TextField();\n panelTransparan292 = new pkl49.component.PanelTransparan();\n label113 = new pkl49.component.Label();\n panelTransparan293 = new pkl49.component.PanelTransparan();\n txtB9AK2_16 = new pkl49.component.TextField();\n panelTransparan294 = new pkl49.component.PanelTransparan();\n panelTransparan295 = new pkl49.component.PanelTransparan();\n panelTransparan296 = new pkl49.component.PanelTransparan();\n txtB9AK5_16 = new pkl49.component.TextField();\n txtB9AK5_16Als = new pkl49.component.TextField();\n panelTransparan297 = new pkl49.component.PanelTransparan();\n txtB9AK6_16 = new pkl49.component.TextField();\n panelTransparan298 = new pkl49.component.PanelTransparan();\n txtB9AK7_16 = new pkl49.component.TextField();\n panelTransparan299 = new pkl49.component.PanelTransparan();\n txtB9AK8_16 = new pkl49.component.TextField();\n panelTransparan300 = new pkl49.component.PanelTransparan();\n txtB9AK9_16 = new pkl49.component.TextField();\n panelTransparan301 = new pkl49.component.PanelTransparan();\n txtB9AK10_16 = new pkl49.component.TextField();\n panelTransparan302 = new pkl49.component.PanelTransparan();\n txtB9AK11_16 = new pkl49.component.TextField();\n panelTransparan303 = new pkl49.component.PanelTransparan();\n panelTransparan304 = new pkl49.component.PanelTransparan();\n txtB9AK13_16 = new pkl49.component.TextField();\n txtB9AK13_16Als = new pkl49.component.TextField();\n panelTransparan305 = new pkl49.component.PanelTransparan();\n label114 = new pkl49.component.Label();\n panelTransparan306 = new pkl49.component.PanelTransparan();\n txtB9AK2_17 = new pkl49.component.TextField();\n panelTransparan307 = new pkl49.component.PanelTransparan();\n panelTransparan308 = new pkl49.component.PanelTransparan();\n panelTransparan309 = new pkl49.component.PanelTransparan();\n txtB9AK5_17 = new pkl49.component.TextField();\n txtB9AK5_17Als = new pkl49.component.TextField();\n panelTransparan310 = new pkl49.component.PanelTransparan();\n txtB9AK6_17 = new pkl49.component.TextField();\n panelTransparan311 = new pkl49.component.PanelTransparan();\n txtB9AK7_17 = new pkl49.component.TextField();\n panelTransparan312 = new pkl49.component.PanelTransparan();\n txtB9AK8_17 = new pkl49.component.TextField();\n panelTransparan313 = new pkl49.component.PanelTransparan();\n txtB9AK9_17 = new pkl49.component.TextField();\n panelTransparan314 = new pkl49.component.PanelTransparan();\n txtB9AK10_17 = new pkl49.component.TextField();\n panelTransparan315 = new pkl49.component.PanelTransparan();\n txtB9AK11_17 = new pkl49.component.TextField();\n panelTransparan316 = new pkl49.component.PanelTransparan();\n panelTransparan317 = new pkl49.component.PanelTransparan();\n txtB9AK13_17 = new pkl49.component.TextField();\n txtB9AK13_17Als = new pkl49.component.TextField();\n panelTransparan318 = new pkl49.component.PanelTransparan();\n label115 = new pkl49.component.Label();\n panelTransparan319 = new pkl49.component.PanelTransparan();\n txtB9AK2_18 = new pkl49.component.TextField();\n panelTransparan320 = new pkl49.component.PanelTransparan();\n panelTransparan321 = new pkl49.component.PanelTransparan();\n panelTransparan322 = new pkl49.component.PanelTransparan();\n txtB9AK5_18 = new pkl49.component.TextField();\n txtB9AK5_18Als = new pkl49.component.TextField();\n panelTransparan323 = new pkl49.component.PanelTransparan();\n txtB9AK6_18 = new pkl49.component.TextField();\n panelTransparan324 = new pkl49.component.PanelTransparan();\n txtB9AK7_18 = new pkl49.component.TextField();\n panelTransparan325 = new pkl49.component.PanelTransparan();\n txtB9AK8_18 = new pkl49.component.TextField();\n panelTransparan326 = new pkl49.component.PanelTransparan();\n txtB9AK9_18 = new pkl49.component.TextField();\n panelTransparan327 = new pkl49.component.PanelTransparan();\n txtB9AK10_18 = new pkl49.component.TextField();\n panelTransparan328 = new pkl49.component.PanelTransparan();\n txtB9AK11_18 = new pkl49.component.TextField();\n panelTransparan329 = new pkl49.component.PanelTransparan();\n panelTransparan330 = new pkl49.component.PanelTransparan();\n txtB9AK13_18 = new pkl49.component.TextField();\n txtB9AK13_18Als = new pkl49.component.TextField();\n panelTransparan331 = new pkl49.component.PanelTransparan();\n label116 = new pkl49.component.Label();\n panelTransparan332 = new pkl49.component.PanelTransparan();\n txtB9AK2_19 = new pkl49.component.TextField();\n panelTransparan333 = new pkl49.component.PanelTransparan();\n panelTransparan334 = new pkl49.component.PanelTransparan();\n panelTransparan335 = new pkl49.component.PanelTransparan();\n txtB9AK5_19 = new pkl49.component.TextField();\n txtB9AK5_19Als = new pkl49.component.TextField();\n panelTransparan336 = new pkl49.component.PanelTransparan();\n txtB9AK6_19 = new pkl49.component.TextField();\n panelTransparan337 = new pkl49.component.PanelTransparan();\n txtB9AK7_19 = new pkl49.component.TextField();\n panelTransparan338 = new pkl49.component.PanelTransparan();\n txtB9AK8_19 = new pkl49.component.TextField();\n panelTransparan339 = new pkl49.component.PanelTransparan();\n txtB9AK9_19 = new pkl49.component.TextField();\n panelTransparan340 = new pkl49.component.PanelTransparan();\n txtB9AK10_19 = new pkl49.component.TextField();\n panelTransparan341 = new pkl49.component.PanelTransparan();\n txtB9AK11_19 = new pkl49.component.TextField();\n panelTransparan342 = new pkl49.component.PanelTransparan();\n panelTransparan343 = new pkl49.component.PanelTransparan();\n txtB9AK13_19 = new pkl49.component.TextField();\n txtB9AK13_19Als = new pkl49.component.TextField();\n panelTransparan344 = new pkl49.component.PanelTransparan();\n label117 = new pkl49.component.Label();\n panelTransparan345 = new pkl49.component.PanelTransparan();\n txtB9AK2_20 = new pkl49.component.TextField();\n panelTransparan346 = new pkl49.component.PanelTransparan();\n panelTransparan347 = new pkl49.component.PanelTransparan();\n panelTransparan348 = new pkl49.component.PanelTransparan();\n txtB9AK5_20 = new pkl49.component.TextField();\n txtB9AK5_20Als = new pkl49.component.TextField();\n panelTransparan349 = new pkl49.component.PanelTransparan();\n txtB9AK6_20 = new pkl49.component.TextField();\n panelTransparan350 = new pkl49.component.PanelTransparan();\n txtB9AK7_20 = new pkl49.component.TextField();\n panelTransparan351 = new pkl49.component.PanelTransparan();\n txtB9AK8_20 = new pkl49.component.TextField();\n panelTransparan352 = new pkl49.component.PanelTransparan();\n txtB9AK9_20 = new pkl49.component.TextField();\n panelTransparan353 = new pkl49.component.PanelTransparan();\n txtB9AK10_20 = new pkl49.component.TextField();\n panelTransparan354 = new pkl49.component.PanelTransparan();\n txtB9AK11_20 = new pkl49.component.TextField();\n panelTransparan355 = new pkl49.component.PanelTransparan();\n panelTransparan356 = new pkl49.component.PanelTransparan();\n txtB9AK13_20 = new pkl49.component.TextField();\n txtB9AK13_20Als = new pkl49.component.TextField();\n panelTransparan357 = new pkl49.component.PanelTransparan();\n label118 = new pkl49.component.Label();\n panelTransparan358 = new pkl49.component.PanelTransparan();\n txtB9AK2_21 = new pkl49.component.TextField();\n panelTransparan359 = new pkl49.component.PanelTransparan();\n panelTransparan360 = new pkl49.component.PanelTransparan();\n panelTransparan361 = new pkl49.component.PanelTransparan();\n txtB9AK5_21 = new pkl49.component.TextField();\n txtB9AK5_21Als = new pkl49.component.TextField();\n panelTransparan362 = new pkl49.component.PanelTransparan();\n txtB9AK6_21 = new pkl49.component.TextField();\n panelTransparan363 = new pkl49.component.PanelTransparan();\n txtB9AK7_21 = new pkl49.component.TextField();\n panelTransparan364 = new pkl49.component.PanelTransparan();\n txtB9AK8_21 = new pkl49.component.TextField();\n panelTransparan365 = new pkl49.component.PanelTransparan();\n txtB9AK9_21 = new pkl49.component.TextField();\n panelTransparan366 = new pkl49.component.PanelTransparan();\n txtB9AK10_21 = new pkl49.component.TextField();\n panelTransparan367 = new pkl49.component.PanelTransparan();\n txtB9AK11_21 = new pkl49.component.TextField();\n panelTransparan368 = new pkl49.component.PanelTransparan();\n panelTransparan369 = new pkl49.component.PanelTransparan();\n txtB9AK13_21 = new pkl49.component.TextField();\n txtB9AK13_21Als = new pkl49.component.TextField();\n panelTransparan370 = new pkl49.component.PanelTransparan();\n label119 = new pkl49.component.Label();\n panelTransparan371 = new pkl49.component.PanelTransparan();\n txtB9AK2_22 = new pkl49.component.TextField();\n panelTransparan372 = new pkl49.component.PanelTransparan();\n panelTransparan373 = new pkl49.component.PanelTransparan();\n panelTransparan374 = new pkl49.component.PanelTransparan();\n txtB9AK5_22 = new pkl49.component.TextField();\n txtB9AK5_22Als = new pkl49.component.TextField();\n panelTransparan375 = new pkl49.component.PanelTransparan();\n txtB9AK6_22 = new pkl49.component.TextField();\n panelTransparan376 = new pkl49.component.PanelTransparan();\n txtB9AK7_22 = new pkl49.component.TextField();\n panelTransparan377 = new pkl49.component.PanelTransparan();\n txtB9AK8_22 = new pkl49.component.TextField();\n panelTransparan378 = new pkl49.component.PanelTransparan();\n txtB9AK9_22 = new pkl49.component.TextField();\n panelTransparan379 = new pkl49.component.PanelTransparan();\n txtB9AK10_22 = new pkl49.component.TextField();\n panelTransparan380 = new pkl49.component.PanelTransparan();\n txtB9AK11_22 = new pkl49.component.TextField();\n panelTransparan381 = new pkl49.component.PanelTransparan();\n panelTransparan382 = new pkl49.component.PanelTransparan();\n txtB9AK13_22 = new pkl49.component.TextField();\n txtB9AK13_22Als = new pkl49.component.TextField();\n panelTransparan383 = new pkl49.component.PanelTransparan();\n label120 = new pkl49.component.Label();\n panelTransparan384 = new pkl49.component.PanelTransparan();\n txtB9AK2_23 = new pkl49.component.TextField();\n panelTransparan385 = new pkl49.component.PanelTransparan();\n panelTransparan386 = new pkl49.component.PanelTransparan();\n panelTransparan387 = new pkl49.component.PanelTransparan();\n txtB9AK5_23 = new pkl49.component.TextField();\n txtB9AK5_23Als = new pkl49.component.TextField();\n panelTransparan388 = new pkl49.component.PanelTransparan();\n txtB9AK6_23 = new pkl49.component.TextField();\n panelTransparan389 = new pkl49.component.PanelTransparan();\n txtB9AK7_23 = new pkl49.component.TextField();\n panelTransparan390 = new pkl49.component.PanelTransparan();\n txtB9AK8_23 = new pkl49.component.TextField();\n panelTransparan391 = new pkl49.component.PanelTransparan();\n txtB9AK9_23 = new pkl49.component.TextField();\n panelTransparan392 = new pkl49.component.PanelTransparan();\n txtB9AK10_23 = new pkl49.component.TextField();\n panelTransparan393 = new pkl49.component.PanelTransparan();\n txtB9AK11_23 = new pkl49.component.TextField();\n panelTransparan394 = new pkl49.component.PanelTransparan();\n panelTransparan395 = new pkl49.component.PanelTransparan();\n txtB9AK13_23 = new pkl49.component.TextField();\n txtB9AK13_23Als = new pkl49.component.TextField();\n panelTransparan396 = new pkl49.component.PanelTransparan();\n label121 = new pkl49.component.Label();\n panelTransparan397 = new pkl49.component.PanelTransparan();\n txtB9AK2_24 = new pkl49.component.TextField();\n panelTransparan398 = new pkl49.component.PanelTransparan();\n panelTransparan399 = new pkl49.component.PanelTransparan();\n panelTransparan400 = new pkl49.component.PanelTransparan();\n txtB9AK5_24 = new pkl49.component.TextField();\n txtB9AK5_24Als = new pkl49.component.TextField();\n panelTransparan401 = new pkl49.component.PanelTransparan();\n txtB9AK6_24 = new pkl49.component.TextField();\n panelTransparan402 = new pkl49.component.PanelTransparan();\n txtB9AK7_24 = new pkl49.component.TextField();\n panelTransparan403 = new pkl49.component.PanelTransparan();\n txtB9AK8_24 = new pkl49.component.TextField();\n panelTransparan404 = new pkl49.component.PanelTransparan();\n txtB9AK9_24 = new pkl49.component.TextField();\n panelTransparan405 = new pkl49.component.PanelTransparan();\n txtB9AK10_24 = new pkl49.component.TextField();\n panelTransparan406 = new pkl49.component.PanelTransparan();\n txtB9AK11_24 = new pkl49.component.TextField();\n panelTransparan407 = new pkl49.component.PanelTransparan();\n panelTransparan408 = new pkl49.component.PanelTransparan();\n txtB9AK13_24 = new pkl49.component.TextField();\n txtB9AK13_24Als = new pkl49.component.TextField();\n panelTransparan409 = new pkl49.component.PanelTransparan();\n label122 = new pkl49.component.Label();\n panelTransparan410 = new pkl49.component.PanelTransparan();\n txtB9AK2_25 = new pkl49.component.TextField();\n panelTransparan411 = new pkl49.component.PanelTransparan();\n panelTransparan412 = new pkl49.component.PanelTransparan();\n panelTransparan413 = new pkl49.component.PanelTransparan();\n txtB9AK5_25 = new pkl49.component.TextField();\n txtB9AK5_25Als = new pkl49.component.TextField();\n panelTransparan414 = new pkl49.component.PanelTransparan();\n txtB9AK6_25 = new pkl49.component.TextField();\n panelTransparan415 = new pkl49.component.PanelTransparan();\n txtB9AK7_25 = new pkl49.component.TextField();\n panelTransparan416 = new pkl49.component.PanelTransparan();\n txtB9AK8_25 = new pkl49.component.TextField();\n panelTransparan417 = new pkl49.component.PanelTransparan();\n txtB9AK9_25 = new pkl49.component.TextField();\n panelTransparan418 = new pkl49.component.PanelTransparan();\n txtB9AK10_25 = new pkl49.component.TextField();\n panelTransparan419 = new pkl49.component.PanelTransparan();\n txtB9AK11_25 = new pkl49.component.TextField();\n panelTransparan420 = new pkl49.component.PanelTransparan();\n panelTransparan421 = new pkl49.component.PanelTransparan();\n txtB9AK13_25 = new pkl49.component.TextField();\n txtB9AK13_25Als = new pkl49.component.TextField();\n panelTransparan422 = new pkl49.component.PanelTransparan();\n panelTransparan423 = new pkl49.component.PanelTransparan();\n panelTransparan424 = new pkl49.component.PanelTransparan();\n panelTransparan425 = new pkl49.component.PanelTransparan();\n panelTransparan426 = new pkl49.component.PanelTransparan();\n panelTransparan427 = new pkl49.component.PanelTransparan();\n panelTransparan428 = new pkl49.component.PanelTransparan();\n panelTransparan429 = new pkl49.component.PanelTransparan();\n panelTransparan430 = new pkl49.component.PanelTransparan();\n panelTransparan431 = new pkl49.component.PanelTransparan();\n panelTransparan432 = new pkl49.component.PanelTransparan();\n panelTransparan433 = new pkl49.component.PanelTransparan();\n panelTransparan434 = new pkl49.component.PanelTransparan();\n\n setOpaque(false);\n setLayout(new java.awt.BorderLayout());\n\n panelTabel.setLayout(new java.awt.GridBagLayout());\n\n panelTransparan2.setAlpha(70);\n panelTransparan2.setLayout(new java.awt.GridBagLayout());\n\n label1.setText(\"VIII. PENGETAHUAN TENTANG PROGRAM KESEHATAN GRATIS, PROGRAM PENDIDIKAN GRATIS, DAN PENGETAHUAN TENTANG KESEHATAN\"); // NOI18N\n label1.setFont(new java.awt.Font(\"Tahoma\", 1, 12));\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.insets = new java.awt.Insets(2, 2, 2, 2);\n panelTransparan2.add(label1, gridBagConstraints);\n\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridwidth = 13;\n gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;\n panelTabel.add(panelTransparan2, gridBagConstraints);\n\n panelTransparan3.setAlpha(70);\n panelTransparan3.setLayout(new java.awt.GridBagLayout());\n\n label2.setText(\"VIII.A KESEHATAN DAN PENDIDIKAN GRATIS DALAM SATU TAHUN TERAKHIR\"); // NOI18N\n label2.setFont(new java.awt.Font(\"Tahoma\", 1, 12));\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.insets = new java.awt.Insets(2, 2, 2, 2);\n panelTransparan3.add(label2, gridBagConstraints);\n\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 0;\n gridBagConstraints.gridy = 1;\n gridBagConstraints.gridwidth = 13;\n gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;\n panelTabel.add(panelTransparan3, gridBagConstraints);\n\n panelTransparan4.setAlpha(50);\n panelTransparan4.setLayout(new java.awt.GridBagLayout());\n\n label3.setText(\"No.\"); // NOI18N\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.insets = new java.awt.Insets(2, 2, 2, 2);\n panelTransparan4.add(label3, gridBagConstraints);\n\n label4.setText(\"ART\"); // NOI18N\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 0;\n gridBagConstraints.gridy = 1;\n gridBagConstraints.insets = new java.awt.Insets(2, 2, 2, 2);\n panelTransparan4.add(label4, gridBagConstraints);\n\n label5.setText(\"Urut\"); // NOI18N\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 0;\n gridBagConstraints.gridy = 2;\n gridBagConstraints.insets = new java.awt.Insets(2, 2, 2, 2);\n panelTransparan4.add(label5, gridBagConstraints);\n\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 0;\n gridBagConstraints.gridy = 2;\n gridBagConstraints.gridheight = 4;\n gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;\n panelTabel.add(panelTransparan4, gridBagConstraints);\n\n panelTransparan5.setAlpha(50);\n panelTransparan5.setLayout(new java.awt.GridBagLayout());\n\n label6.setText(\"Apakah ART\"); // NOI18N\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.insets = new java.awt.Insets(2, 2, 2, 2);\n panelTransparan5.add(label6, gridBagConstraints);\n\n label8.setText(\"mempunyai jaminan\"); // NOI18N\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 0;\n gridBagConstraints.gridy = 1;\n gridBagConstraints.insets = new java.awt.Insets(2, 2, 2, 2);\n panelTransparan5.add(label8, gridBagConstraints);\n\n label10.setText(\"pembiayaan/asuransi\"); // NOI18N\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 0;\n gridBagConstraints.gridy = 2;\n gridBagConstraints.insets = new java.awt.Insets(2, 2, 2, 2);\n panelTransparan5.add(label10, gridBagConstraints);\n\n label11.setText(\"kesehatan untuk di\"); // NOI18N\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 0;\n gridBagConstraints.gridy = 3;\n gridBagConstraints.insets = new java.awt.Insets(2, 2, 2, 2);\n panelTransparan5.add(label11, gridBagConstraints);\n\n label12.setText(\"[Isikan kode]\"); // NOI18N\n label12.setFont(new java.awt.Font(\"Tahoma\", 2, 11));\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 0;\n gridBagConstraints.gridy = 5;\n gridBagConstraints.insets = new java.awt.Insets(2, 2, 2, 2);\n panelTransparan5.add(label12, gridBagConstraints);\n\n label39.setText(\"bawah ini?\"); // NOI18N\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 0;\n gridBagConstraints.gridy = 4;\n gridBagConstraints.insets = new java.awt.Insets(2, 2, 2, 2);\n panelTransparan5.add(label39, gridBagConstraints);\n\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 1;\n gridBagConstraints.gridy = 2;\n gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;\n panelTabel.add(panelTransparan5, gridBagConstraints);\n\n panelTransparan7.setAlpha(50);\n panelTransparan7.setLayout(new java.awt.GridBagLayout());\n\n label9.setText(\"0. Tidak punya\"); // NOI18N\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.insets = new java.awt.Insets(2, 2, 2, 2);\n panelTransparan7.add(label9, gridBagConstraints);\n\n label13.setText(\"1. Askes\"); // NOI18N\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 0;\n gridBagConstraints.gridy = 1;\n gridBagConstraints.insets = new java.awt.Insets(2, 2, 2, 2);\n panelTransparan7.add(label13, gridBagConstraints);\n\n label14.setText(\"2. Asabri\"); // NOI18N\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 0;\n gridBagConstraints.gridy = 2;\n gridBagConstraints.insets = new java.awt.Insets(2, 2, 2, 2);\n panelTransparan7.add(label14, gridBagConstraints);\n\n label15.setText(\"4. Jamsostek\"); // NOI18N\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 0;\n gridBagConstraints.gridy = 3;\n gridBagConstraints.insets = new java.awt.Insets(2, 2, 2, 2);\n panelTransparan7.add(label15, gridBagConstraints);\n\n label16.setText(\"8. Jamkes Swasta\"); // NOI18N\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 0;\n gridBagConstraints.gridy = 4;\n gridBagConstraints.insets = new java.awt.Insets(2, 2, 2, 2);\n panelTransparan7.add(label16, gridBagConstraints);\n\n label17.setText(\"16. Jamkesmas\"); // NOI18N\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 0;\n gridBagConstraints.gridy = 5;\n gridBagConstraints.insets = new java.awt.Insets(2, 2, 2, 2);\n panelTransparan7.add(label17, gridBagConstraints);\n\n label18.setText(\"32. Jamkes Mandiri\"); // NOI18N\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 0;\n gridBagConstraints.gridy = 6;\n gridBagConstraints.insets = new java.awt.Insets(2, 2, 2, 2);\n panelTransparan7.add(label18, gridBagConstraints);\n\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 1;\n gridBagConstraints.gridy = 3;\n gridBagConstraints.gridheight = 3;\n gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;\n panelTabel.add(panelTransparan7, gridBagConstraints);\n\n panelTransparan13.setAlpha(50);\n panelTransparan13.setLayout(new java.awt.GridBagLayout());\n\n label19.setText(\"Apakah ada ART yang\"); // NOI18N\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.insets = new java.awt.Insets(2, 2, 2, 2);\n panelTransparan13.add(label19, gridBagConstraints);\n\n label21.setText(\"mengetahui tentang\"); // NOI18N\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 0;\n gridBagConstraints.gridy = 1;\n gridBagConstraints.insets = new java.awt.Insets(2, 2, 2, 2);\n panelTransparan13.add(label21, gridBagConstraints);\n\n label22.setText(\"program pemerintah\"); // NOI18N\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 0;\n gridBagConstraints.gridy = 3;\n gridBagConstraints.insets = new java.awt.Insets(2, 2, 2, 2);\n panelTransparan13.add(label22, gridBagConstraints);\n\n label24.setText(\"Jamsoskes semesta?\"); // NOI18N\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 0;\n gridBagConstraints.gridy = 5;\n gridBagConstraints.insets = new java.awt.Insets(2, 2, 2, 2);\n panelTransparan13.add(label24, gridBagConstraints);\n\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 2;\n gridBagConstraints.gridy = 2;\n gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;\n panelTabel.add(panelTransparan13, gridBagConstraints);\n\n panelTransparan14.setAlpha(50);\n panelTransparan14.setLayout(new java.awt.GridBagLayout());\n\n label26.setText(\"1=ya [Sumber informasi]\"); // NOI18N\n label26.setFont(new java.awt.Font(\"Tahoma\", 2, 11));\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.insets = new java.awt.Insets(2, 2, 2, 2);\n panelTransparan14.add(label26, gridBagConstraints);\n\n label27.setText(\"2=tidak\"); // NOI18N\n label27.setFont(new java.awt.Font(\"Tahoma\", 2, 11));\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 0;\n gridBagConstraints.gridy = 1;\n gridBagConstraints.insets = new java.awt.Insets(2, 2, 2, 2);\n panelTransparan14.add(label27, gridBagConstraints);\n\n label89.setText(\"[Jika kode=2,\"); // NOI18N\n label89.setFont(new java.awt.Font(\"Tahoma\", 2, 11));\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 0;\n gridBagConstraints.gridy = 2;\n gridBagConstraints.insets = new java.awt.Insets(2, 2, 2, 2);\n panelTransparan14.add(label89, gridBagConstraints);\n\n label90.setText(\"lanjut ke K.12]\"); // NOI18N\n label90.setFont(new java.awt.Font(\"Tahoma\", 2, 11));\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 0;\n gridBagConstraints.gridy = 3;\n gridBagConstraints.insets = new java.awt.Insets(2, 2, 2, 2);\n panelTransparan14.add(label90, gridBagConstraints);\n\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 2;\n gridBagConstraints.gridy = 3;\n gridBagConstraints.gridheight = 3;\n gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;\n panelTabel.add(panelTransparan14, gridBagConstraints);\n\n panelTransparan15.setAlpha(50);\n panelTransparan15.setLayout(new java.awt.GridBagLayout());\n\n label28.setText(\"Apakah ada ART\"); // NOI18N\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.insets = new java.awt.Insets(2, 2, 2, 2);\n panelTransparan15.add(label28, gridBagConstraints);\n\n label29.setText(\"tentang siapa\"); // NOI18N\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 0;\n gridBagConstraints.gridy = 2;\n gridBagConstraints.insets = new java.awt.Insets(2, 2, 2, 2);\n panelTransparan15.add(label29, gridBagConstraints);\n\n label30.setText(\"yang mengetahui\"); // NOI18N\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 0;\n gridBagConstraints.gridy = 1;\n gridBagConstraints.insets = new java.awt.Insets(2, 2, 2, 2);\n panelTransparan15.add(label30, gridBagConstraints);\n\n label31.setText(\"yang berhak\"); // NOI18N\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 0;\n gridBagConstraints.gridy = 3;\n gridBagConstraints.insets = new java.awt.Insets(2, 2, 2, 2);\n panelTransparan15.add(label31, gridBagConstraints);\n\n label32.setText(\"pelayanan\"); // NOI18N\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 0;\n gridBagConstraints.gridy = 5;\n gridBagConstraints.insets = new java.awt.Insets(2, 2, 2, 2);\n panelTransparan15.add(label32, gridBagConstraints);\n\n label33.setText(\"Jamsoskes\"); // NOI18N\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 0;\n gridBagConstraints.gridy = 6;\n gridBagConstraints.insets = new java.awt.Insets(2, 2, 2, 2);\n panelTransparan15.add(label33, gridBagConstraints);\n\n label34.setText(\"semesta?\"); // NOI18N\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 0;\n gridBagConstraints.gridy = 7;\n gridBagConstraints.insets = new java.awt.Insets(2, 2, 2, 2);\n panelTransparan15.add(label34, gridBagConstraints);\n\n label37.setText(\"mendapatkan\"); // NOI18N\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 0;\n gridBagConstraints.gridy = 4;\n gridBagConstraints.insets = new java.awt.Insets(2, 2, 2, 2);\n panelTransparan15.add(label37, gridBagConstraints);\n\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 3;\n gridBagConstraints.gridy = 2;\n gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;\n panelTabel.add(panelTransparan15, gridBagConstraints);\n\n panelTransparan16.setAlpha(50);\n panelTransparan16.setLayout(new java.awt.GridBagLayout());\n\n label35.setText(\"1=ya\"); // NOI18N\n label35.setFont(new java.awt.Font(\"Tahoma\", 2, 11));\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 0;\n gridBagConstraints.gridy = 0;\n gridBagConstraints.insets = new java.awt.Insets(2, 2, 2, 2);\n panelTransparan16.add(label35, gridBagConstraints);\n\n label36.setText(\"2=tidak\"); // NOI18N\n label36.setFont(new java.awt.Font(\"Tahoma\", 2, 11));\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 0;\n gridBagConstraints.gridy = 1;\n gridBagConstraints.insets = new java.awt.Insets(2, 2, 2, 2);\n panelTransparan16.add(label36, gridBagConstraints);\n\n label38.setText(\"[Isikan jika\"); // NOI18N\n label38.setFont(new java.awt.Font(\"Tahoma\", 2, 11));\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 0;\n gridBagConstraints.gridy = 2;\n gridBagConstraints.insets = new java.awt.Insets(2, 2, 2, 2);\n panelTransparan16.add(label38, gridBagConstraints);\n\n label40.setText(\"K.3=1]\"); // NOI18N\n label40.setFont(new java.awt.Font(\"Tahoma\", 2, 11));\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 0;\n gridBagConstraints.gridy = 4;\n gridBagConstraints.insets = new java.awt.Insets(2, 2, 2, 2);\n panelTransparan16.add(label40, gridBagConstraints);\n\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 3;\n gridBagConstraints.gridy = 3;\n gridBagConstraints.gridheight = 3;\n gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;\n panelTabel.add(panelTransparan16, gridBagConstraints);\n\n panelTransparan17.setAlpha(50);\n panelTransparan17.setLayout(new java.awt.GridBagLayout());\n\n label41.setText(\"Apakah ART\"); // NOI18N\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.insets = new java.awt.Insets(2, 2, 2, 2);\n panelTransparan17.add(label41, gridBagConstraints);\n\n label42.setText(\"[Isikan jika K.2=0 dan\"); // NOI18N\n label42.setFont(new java.awt.Font(\"Tahoma\", 2, 11));\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 0;\n gridBagConstraints.gridy = 3;\n gridBagConstraints.insets = new java.awt.Insets(2, 2, 2, 2);\n panelTransparan17.add(label42, gridBagConstraints);\n\n label43.setText(\"jamsoskes?\"); // NOI18N\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 0;\n gridBagConstraints.gridy = 2;\n gridBagConstraints.insets = new java.awt.Insets(2, 2, 2, 2);\n panelTransparan17.add(label43, gridBagConstraints);\n\n label44.setText(\"K.3=1]\"); // NOI18N\n label44.setFont(new java.awt.Font(\"Tahoma\", 2, 11));\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 0;\n gridBagConstraints.gridy = 4;\n gridBagConstraints.insets = new java.awt.Insets(2, 2, 2, 2);\n panelTransparan17.add(label44, gridBagConstraints);\n\n label91.setText(\"memanfaatkan\"); // NOI18N\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 0;\n gridBagConstraints.gridy = 1;\n gridBagConstraints.insets = new java.awt.Insets(2, 2, 2, 2);\n panelTransparan17.add(label91, gridBagConstraints);\n\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 4;\n gridBagConstraints.gridy = 2;\n gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;\n panelTabel.add(panelTransparan17, gridBagConstraints);\n\n panelTransparan18.setAlpha(50);\n panelTransparan18.setLayout(new java.awt.GridBagLayout());\n\n label49.setText(\"1=ya\"); // NOI18N\n label49.setFont(new java.awt.Font(\"Tahoma\", 2, 11));\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 0;\n gridBagConstraints.gridy = 0;\n gridBagConstraints.insets = new java.awt.Insets(2, 2, 2, 2);\n panelTransparan18.add(label49, gridBagConstraints);\n\n label50.setText(\"2=tidak [alasan]\"); // NOI18N\n label50.setFont(new java.awt.Font(\"Tahoma\", 2, 11));\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 0;\n gridBagConstraints.gridy = 1;\n gridBagConstraints.insets = new java.awt.Insets(2, 2, 2, 2);\n panelTransparan18.add(label50, gridBagConstraints);\n\n label51.setText(\"[jika kode=2 Lanjut\"); // NOI18N\n label51.setFont(new java.awt.Font(\"Tahoma\", 2, 11));\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 0;\n gridBagConstraints.gridy = 2;\n gridBagConstraints.insets = new java.awt.Insets(2, 2, 2, 2);\n panelTransparan18.add(label51, gridBagConstraints);\n\n label52.setText(\"ke K12]\"); // NOI18N\n label52.setFont(new java.awt.Font(\"Tahoma\", 2, 11));\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 0;\n gridBagConstraints.gridy = 3;\n gridBagConstraints.insets = new java.awt.Insets(2, 2, 2, 2);\n panelTransparan18.add(label52, gridBagConstraints);\n\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 4;\n gridBagConstraints.gridy = 3;\n gridBagConstraints.gridheight = 3;\n gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;\n panelTabel.add(panelTransparan18, gridBagConstraints);\n\n panelTransparan19.setAlpha(50);\n panelTransparan19.setLayout(new java.awt.GridBagLayout());\n\n label45.setText(\"Jenis pelayanan yang pernah didapatkan dengan\"); // NOI18N\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.insets = new java.awt.Insets(2, 2, 2, 2);\n panelTransparan19.add(label45, gridBagConstraints);\n\n label46.setText(\"memanfaatkan jamsoskes\"); // NOI18N\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 0;\n gridBagConstraints.gridy = 1;\n gridBagConstraints.insets = new java.awt.Insets(2, 2, 2, 2);\n panelTransparan19.add(label46, gridBagConstraints);\n\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 5;\n gridBagConstraints.gridy = 2;\n gridBagConstraints.gridwidth = 6;\n gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;\n panelTabel.add(panelTransparan19, gridBagConstraints);\n\n panelTransparan20.setAlpha(50);\n panelTransparan20.setLayout(new java.awt.GridBagLayout());\n\n label47.setText(\"1=ya 2=tidak\"); // NOI18N\n label47.setFont(new java.awt.Font(\"Tahoma\", 2, 11));\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.insets = new java.awt.Insets(2, 2, 2, 2);\n panelTransparan20.add(label47, gridBagConstraints);\n\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 5;\n gridBagConstraints.gridy = 3;\n gridBagConstraints.gridwidth = 6;\n gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;\n panelTabel.add(panelTransparan20, gridBagConstraints);\n\n panelTransparan27.setAlpha(50);\n panelTransparan27.setLayout(new java.awt.GridBagLayout());\n\n label63.setText(\"Rawat Jalan\"); // NOI18N\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.insets = new java.awt.Insets(2, 2, 2, 2);\n panelTransparan27.add(label63, gridBagConstraints);\n\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 5;\n gridBagConstraints.gridy = 4;\n gridBagConstraints.gridwidth = 2;\n gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;\n panelTabel.add(panelTransparan27, gridBagConstraints);\n\n panelTransparan23.setAlpha(50);\n panelTransparan23.setLayout(new java.awt.GridBagLayout());\n\n label55.setText(\"Rawat Inap\"); // NOI18N\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.insets = new java.awt.Insets(2, 2, 2, 2);\n panelTransparan23.add(label55, gridBagConstraints);\n\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 7;\n gridBagConstraints.gridy = 4;\n gridBagConstraints.gridwidth = 2;\n gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;\n panelTabel.add(panelTransparan23, gridBagConstraints);\n\n panelTransparan24.setAlpha(50);\n panelTransparan24.setLayout(new java.awt.GridBagLayout());\n\n label56.setText(\"Gawat Darurat\"); // NOI18N\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.insets = new java.awt.Insets(2, 2, 2, 2);\n panelTransparan24.add(label56, gridBagConstraints);\n\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 9;\n gridBagConstraints.gridy = 4;\n gridBagConstraints.gridwidth = 2;\n gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;\n panelTabel.add(panelTransparan24, gridBagConstraints);\n\n panelTransparan21.setAlpha(50);\n panelTransparan21.setLayout(new java.awt.GridBagLayout());\n\n label48.setText(\"Tahap 1\"); // NOI18N\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.insets = new java.awt.Insets(2, 2, 2, 2);\n panelTransparan21.add(label48, gridBagConstraints);\n\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 5;\n gridBagConstraints.gridy = 5;\n gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;\n panelTabel.add(panelTransparan21, gridBagConstraints);\n\n panelTransparan22.setAlpha(50);\n panelTransparan22.setLayout(new java.awt.GridBagLayout());\n\n label54.setText(\"Lanjutan\"); // NOI18N\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.insets = new java.awt.Insets(2, 2, 2, 2);\n panelTransparan22.add(label54, gridBagConstraints);\n\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 6;\n gridBagConstraints.gridy = 5;\n gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;\n panelTabel.add(panelTransparan22, gridBagConstraints);\n\n panelTransparan25.setAlpha(50);\n panelTransparan25.setLayout(new java.awt.GridBagLayout());\n\n label57.setText(\"Tahap 1\"); // NOI18N\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.insets = new java.awt.Insets(2, 2, 2, 2);\n panelTransparan25.add(label57, gridBagConstraints);\n\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 7;\n gridBagConstraints.gridy = 5;\n gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;\n panelTabel.add(panelTransparan25, gridBagConstraints);\n\n panelTransparan26.setAlpha(50);\n panelTransparan26.setLayout(new java.awt.GridBagLayout());\n\n label58.setText(\"Lanjutan\"); // NOI18N\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.insets = new java.awt.Insets(2, 2, 2, 2);\n panelTransparan26.add(label58, gridBagConstraints);\n\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 8;\n gridBagConstraints.gridy = 5;\n gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;\n panelTabel.add(panelTransparan26, gridBagConstraints);\n\n panelTransparan28.setAlpha(50);\n panelTransparan28.setLayout(new java.awt.GridBagLayout());\n\n label59.setText(\"Puskesmas\"); // NOI18N\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.insets = new java.awt.Insets(2, 2, 2, 2);\n panelTransparan28.add(label59, gridBagConstraints);\n\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 9;\n gridBagConstraints.gridy = 5;\n gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;\n panelTabel.add(panelTransparan28, gridBagConstraints);\n\n panelTransparan29.setAlpha(50);\n panelTransparan29.setLayout(new java.awt.GridBagLayout());\n\n label60.setText(\"Rumah\"); // NOI18N\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.insets = new java.awt.Insets(2, 2, 2, 2);\n panelTransparan29.add(label60, gridBagConstraints);\n\n label61.setText(\"Sakit\"); // NOI18N\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 0;\n gridBagConstraints.gridy = 1;\n gridBagConstraints.insets = new java.awt.Insets(2, 2, 2, 2);\n panelTransparan29.add(label61, gridBagConstraints);\n\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 10;\n gridBagConstraints.gridy = 5;\n gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;\n panelTabel.add(panelTransparan29, gridBagConstraints);\n\n panelTransparan30.setAlpha(50);\n panelTransparan30.setLayout(new java.awt.GridBagLayout());\n\n label62.setText(\"Apakah ada ART\"); // NOI18N\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.insets = new java.awt.Insets(2, 2, 2, 2);\n panelTransparan30.add(label62, gridBagConstraints);\n\n label64.setText(\"tentang\"); // NOI18N\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 0;\n gridBagConstraints.gridy = 2;\n gridBagConstraints.insets = new java.awt.Insets(2, 2, 2, 2);\n panelTransparan30.add(label64, gridBagConstraints);\n\n label65.setText(\"yang mengetahui\"); // NOI18N\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 0;\n gridBagConstraints.gridy = 1;\n gridBagConstraints.insets = new java.awt.Insets(2, 2, 2, 2);\n panelTransparan30.add(label65, gridBagConstraints);\n\n label66.setText(\"program\"); // NOI18N\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 0;\n gridBagConstraints.gridy = 3;\n gridBagConstraints.insets = new java.awt.Insets(2, 2, 2, 2);\n panelTransparan30.add(label66, gridBagConstraints);\n\n label67.setText(\"gratis?\"); // NOI18N\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 0;\n gridBagConstraints.gridy = 5;\n gridBagConstraints.insets = new java.awt.Insets(2, 2, 2, 2);\n panelTransparan30.add(label67, gridBagConstraints);\n\n label70.setText(\"pendidikan\"); // NOI18N\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 0;\n gridBagConstraints.gridy = 4;\n gridBagConstraints.insets = new java.awt.Insets(2, 2, 2, 2);\n panelTransparan30.add(label70, gridBagConstraints);\n\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 11;\n gridBagConstraints.gridy = 2;\n gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;\n panelTabel.add(panelTransparan30, gridBagConstraints);\n\n panelTransparan31.setAlpha(50);\n panelTransparan31.setLayout(new java.awt.GridBagLayout());\n\n label68.setText(\"1=ya\"); // NOI18N\n label68.setFont(new java.awt.Font(\"Tahoma\", 2, 11));\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.insets = new java.awt.Insets(2, 2, 2, 2);\n panelTransparan31.add(label68, gridBagConstraints);\n\n label69.setText(\"[Jika kode=2\"); // NOI18N\n label69.setFont(new java.awt.Font(\"Tahoma\", 2, 11));\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 0;\n gridBagConstraints.gridy = 2;\n gridBagConstraints.insets = new java.awt.Insets(2, 2, 2, 2);\n panelTransparan31.add(label69, gridBagConstraints);\n\n label92.setText(\"Blok IX.B]\"); // NOI18N\n label92.setFont(new java.awt.Font(\"Tahoma\", 2, 11));\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 0;\n gridBagConstraints.gridy = 4;\n gridBagConstraints.insets = new java.awt.Insets(2, 2, 2, 2);\n panelTransparan31.add(label92, gridBagConstraints);\n\n label93.setText(\"2=tidak\"); // NOI18N\n label93.setFont(new java.awt.Font(\"Tahoma\", 2, 11));\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 0;\n gridBagConstraints.gridy = 1;\n gridBagConstraints.insets = new java.awt.Insets(2, 2, 2, 2);\n panelTransparan31.add(label93, gridBagConstraints);\n\n label104.setText(\"lanjut ke\"); // NOI18N\n label104.setFont(new java.awt.Font(\"Tahoma\", 2, 11));\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 0;\n gridBagConstraints.gridy = 3;\n gridBagConstraints.insets = new java.awt.Insets(2, 2, 2, 2);\n panelTransparan31.add(label104, gridBagConstraints);\n\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 11;\n gridBagConstraints.gridy = 3;\n gridBagConstraints.gridheight = 3;\n gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;\n panelTabel.add(panelTransparan31, gridBagConstraints);\n\n panelTransparan32.setAlpha(50);\n panelTransparan32.setLayout(new java.awt.GridBagLayout());\n\n label71.setText(\"Apakah ART\"); // NOI18N\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.insets = new java.awt.Insets(2, 2, 2, 2);\n panelTransparan32.add(label71, gridBagConstraints);\n\n label76.setText(\"pendidikan gratis?\"); // NOI18N\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 0;\n gridBagConstraints.gridy = 2;\n gridBagConstraints.insets = new java.awt.Insets(2, 2, 2, 2);\n panelTransparan32.add(label76, gridBagConstraints);\n\n label105.setText(\"memanfaatkan\"); // NOI18N\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 0;\n gridBagConstraints.gridy = 1;\n gridBagConstraints.insets = new java.awt.Insets(2, 2, 2, 2);\n panelTransparan32.add(label105, gridBagConstraints);\n\n label106.setText(\"7-18 tahun]\"); // NOI18N\n label106.setFont(new java.awt.Font(\"Tahoma\", 2, 11));\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 0;\n gridBagConstraints.gridy = 4;\n gridBagConstraints.insets = new java.awt.Insets(2, 2, 2, 2);\n panelTransparan32.add(label106, gridBagConstraints);\n\n label107.setText(\"[Ditanyakan untuk ART\"); // NOI18N\n label107.setFont(new java.awt.Font(\"Tahoma\", 2, 11));\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 0;\n gridBagConstraints.gridy = 3;\n gridBagConstraints.insets = new java.awt.Insets(2, 2, 2, 2);\n panelTransparan32.add(label107, gridBagConstraints);\n\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 12;\n gridBagConstraints.gridy = 2;\n gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;\n panelTabel.add(panelTransparan32, gridBagConstraints);\n\n panelTransparan33.setAlpha(50);\n panelTransparan33.setLayout(new java.awt.GridBagLayout());\n\n label77.setText(\"1=ya\"); // NOI18N\n label77.setFont(new java.awt.Font(\"Tahoma\", 2, 11));\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.insets = new java.awt.Insets(2, 2, 2, 2);\n panelTransparan33.add(label77, gridBagConstraints);\n\n label78.setText(\"alasan jika K.12=1]\"); // NOI18N\n label78.setFont(new java.awt.Font(\"Tahoma\", 2, 11));\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 0;\n gridBagConstraints.gridy = 2;\n gridBagConstraints.insets = new java.awt.Insets(2, 2, 2, 2);\n panelTransparan33.add(label78, gridBagConstraints);\n\n label79.setText(\"2=tidak [tanyakan\"); // NOI18N\n label79.setFont(new java.awt.Font(\"Tahoma\", 2, 11));\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 0;\n gridBagConstraints.gridy = 1;\n gridBagConstraints.insets = new java.awt.Insets(2, 2, 2, 2);\n panelTransparan33.add(label79, gridBagConstraints);\n\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 12;\n gridBagConstraints.gridy = 3;\n gridBagConstraints.gridheight = 3;\n gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;\n panelTabel.add(panelTransparan33, gridBagConstraints);\n\n panelTransparan34.setAlpha(30);\n panelTransparan34.setLayout(new java.awt.GridBagLayout());\n\n label72.setText(\"(1)\"); // NOI18N\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.insets = new java.awt.Insets(2, 2, 2, 2);\n panelTransparan34.add(label72, gridBagConstraints);\n\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 0;\n gridBagConstraints.gridy = 6;\n gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;\n panelTabel.add(panelTransparan34, gridBagConstraints);\n\n panelTransparan35.setAlpha(30);\n panelTransparan35.setLayout(new java.awt.GridBagLayout());\n\n label73.setText(\"(2)\"); // NOI18N\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.insets = new java.awt.Insets(2, 2, 2, 2);\n panelTransparan35.add(label73, gridBagConstraints);\n\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 1;\n gridBagConstraints.gridy = 6;\n gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;\n panelTabel.add(panelTransparan35, gridBagConstraints);\n\n panelTransparan36.setAlpha(30);\n panelTransparan36.setLayout(new java.awt.GridBagLayout());\n\n label74.setText(\"(3)\"); // NOI18N\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.insets = new java.awt.Insets(2, 2, 2, 2);\n panelTransparan36.add(label74, gridBagConstraints);\n\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 2;\n gridBagConstraints.gridy = 6;\n gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;\n panelTabel.add(panelTransparan36, gridBagConstraints);\n\n panelTransparan37.setAlpha(30);\n panelTransparan37.setLayout(new java.awt.GridBagLayout());\n\n label75.setText(\"(4)\"); // NOI18N\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.insets = new java.awt.Insets(2, 2, 2, 2);\n panelTransparan37.add(label75, gridBagConstraints);\n\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 3;\n gridBagConstraints.gridy = 6;\n gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;\n panelTabel.add(panelTransparan37, gridBagConstraints);\n\n panelTransparan38.setAlpha(30);\n panelTransparan38.setLayout(new java.awt.GridBagLayout());\n\n label80.setText(\"(5)\"); // NOI18N\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.insets = new java.awt.Insets(2, 2, 2, 2);\n panelTransparan38.add(label80, gridBagConstraints);\n\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 4;\n gridBagConstraints.gridy = 6;\n gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;\n panelTabel.add(panelTransparan38, gridBagConstraints);\n\n panelTransparan39.setAlpha(30);\n panelTransparan39.setLayout(new java.awt.GridBagLayout());\n\n label81.setText(\"(6)\"); // NOI18N\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.insets = new java.awt.Insets(2, 2, 2, 2);\n panelTransparan39.add(label81, gridBagConstraints);\n\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 5;\n gridBagConstraints.gridy = 6;\n gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;\n panelTabel.add(panelTransparan39, gridBagConstraints);\n\n panelTransparan40.setAlpha(30);\n panelTransparan40.setLayout(new java.awt.GridBagLayout());\n\n label82.setText(\"(7)\"); // NOI18N\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.insets = new java.awt.Insets(2, 2, 2, 2);\n panelTransparan40.add(label82, gridBagConstraints);\n\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 6;\n gridBagConstraints.gridy = 6;\n gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;\n panelTabel.add(panelTransparan40, gridBagConstraints);\n\n panelTransparan41.setAlpha(30);\n panelTransparan41.setLayout(new java.awt.GridBagLayout());\n\n label83.setText(\"(8)\"); // NOI18N\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.insets = new java.awt.Insets(2, 2, 2, 2);\n panelTransparan41.add(label83, gridBagConstraints);\n\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 7;\n gridBagConstraints.gridy = 6;\n gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;\n panelTabel.add(panelTransparan41, gridBagConstraints);\n\n panelTransparan42.setAlpha(30);\n panelTransparan42.setLayout(new java.awt.GridBagLayout());\n\n label84.setText(\"(9)\"); // NOI18N\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.insets = new java.awt.Insets(2, 2, 2, 2);\n panelTransparan42.add(label84, gridBagConstraints);\n\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 8;\n gridBagConstraints.gridy = 6;\n gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;\n panelTabel.add(panelTransparan42, gridBagConstraints);\n\n panelTransparan43.setAlpha(30);\n panelTransparan43.setLayout(new java.awt.GridBagLayout());\n\n label85.setText(\"(10)\"); // NOI18N\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.insets = new java.awt.Insets(2, 2, 2, 2);\n panelTransparan43.add(label85, gridBagConstraints);\n\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 9;\n gridBagConstraints.gridy = 6;\n gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;\n panelTabel.add(panelTransparan43, gridBagConstraints);\n\n panelTransparan44.setAlpha(30);\n panelTransparan44.setLayout(new java.awt.GridBagLayout());\n\n label86.setText(\"(11)\"); // NOI18N\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.insets = new java.awt.Insets(2, 2, 2, 2);\n panelTransparan44.add(label86, gridBagConstraints);\n\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 10;\n gridBagConstraints.gridy = 6;\n gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;\n panelTabel.add(panelTransparan44, gridBagConstraints);\n\n panelTransparan45.setAlpha(30);\n panelTransparan45.setLayout(new java.awt.GridBagLayout());\n\n label87.setText(\"(12)\"); // NOI18N\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.insets = new java.awt.Insets(2, 2, 2, 2);\n panelTransparan45.add(label87, gridBagConstraints);\n\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 11;\n gridBagConstraints.gridy = 6;\n gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;\n panelTabel.add(panelTransparan45, gridBagConstraints);\n\n panelTransparan46.setAlpha(30);\n panelTransparan46.setLayout(new java.awt.GridBagLayout());\n\n label88.setText(\"(13)\"); // NOI18N\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.insets = new java.awt.Insets(2, 2, 2, 2);\n panelTransparan46.add(label88, gridBagConstraints);\n\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 12;\n gridBagConstraints.gridy = 6;\n gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;\n panelTabel.add(panelTransparan46, gridBagConstraints);\n\n panelTransparan52.setLayout(new java.awt.GridBagLayout());\n\n label94.setText(\"1\"); // NOI18N\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.insets = new java.awt.Insets(2, 2, 2, 2);\n panelTransparan52.add(label94, gridBagConstraints);\n\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 0;\n gridBagConstraints.gridy = 8;\n gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;\n panelTabel.add(panelTransparan52, gridBagConstraints);\n\n txtB9AK2_1.setColumns(3);\n txtB9AK2_1.setLength(2);\n txtB9AK2_1.addFocusListener(new java.awt.event.FocusAdapter() {\n public void focusGained(java.awt.event.FocusEvent evt) {\n focusTxt(evt);\n }\n });\n panelTransparan53.add(txtB9AK2_1);\n\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 1;\n gridBagConstraints.gridy = 8;\n gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;\n panelTabel.add(panelTransparan53, gridBagConstraints);\n\n panelTransparan54.setAlpha(70);\n panelTransparan54.setLayout(new java.awt.GridBagLayout());\n\n txtB9AK4_26.setColumns(2);\n txtB9AK4_26.setMaxDigit('2');\n txtB9AK4_26.setMinDigit('1');\n txtB9AK4_26.addFocusListener(new java.awt.event.FocusAdapter() {\n public void focusGained(java.awt.event.FocusEvent evt) {\n focusTxt(evt);\n }\n });\n panelTransparan54.add(txtB9AK4_26, new java.awt.GridBagConstraints());\n\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 3;\n gridBagConstraints.gridy = 8;\n gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;\n panelTabel.add(panelTransparan54, gridBagConstraints);\n\n panelTransparan55.setAlpha(70);\n panelTransparan55.setLayout(new java.awt.GridBagLayout());\n\n txtB9AK3_26.setColumns(2);\n txtB9AK3_26.setMaxDigit('2');\n txtB9AK3_26.setMinDigit('1');\n txtB9AK3_26.addFocusListener(new java.awt.event.FocusAdapter() {\n public void focusGained(java.awt.event.FocusEvent evt) {\n focusTxt(evt);\n }\n });\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.insets = new java.awt.Insets(0, 2, 0, 2);\n panelTransparan55.add(txtB9AK3_26, gridBagConstraints);\n\n txtB9AK3_26Als.setColumns(3);\n txtB9AK3_26Als.setCharType(1);\n txtB9AK3_26Als.addFocusListener(new java.awt.event.FocusAdapter() {\n public void focusGained(java.awt.event.FocusEvent evt) {\n txtB9AK3_26AlsfocusTxt(evt);\n }\n });\n panelTransparan55.add(txtB9AK3_26Als, new java.awt.GridBagConstraints());\n\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 2;\n gridBagConstraints.gridy = 8;\n gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;\n panelTabel.add(panelTransparan55, gridBagConstraints);\n\n txtB9AK5_1.setColumns(2);\n txtB9AK5_1.setMaxDigit('2');\n txtB9AK5_1.setMinDigit('1');\n txtB9AK5_1.addFocusListener(new java.awt.event.FocusAdapter() {\n public void focusGained(java.awt.event.FocusEvent evt) {\n focusTxt(evt);\n }\n });\n panelTransparan56.add(txtB9AK5_1);\n\n txtB9AK5_1Als.setColumns(3);\n txtB9AK5_1Als.addFocusListener(new java.awt.event.FocusAdapter() {\n public void focusGained(java.awt.event.FocusEvent evt) {\n focusTxt(evt);\n }\n });\n panelTransparan56.add(txtB9AK5_1Als);\n\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 4;\n gridBagConstraints.gridy = 8;\n gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;\n panelTabel.add(panelTransparan56, gridBagConstraints);\n\n txtB9AK6_1.setColumns(2);\n txtB9AK6_1.setMaxDigit('2');\n txtB9AK6_1.setMinDigit('1');\n txtB9AK6_1.addFocusListener(new java.awt.event.FocusAdapter() {\n public void focusGained(java.awt.event.FocusEvent evt) {\n focusTxt(evt);\n }\n });\n panelTransparan57.add(txtB9AK6_1);\n\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 5;\n gridBagConstraints.gridy = 8;\n gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;\n panelTabel.add(panelTransparan57, gridBagConstraints);\n\n txtB9AK7_1.setColumns(2);\n txtB9AK7_1.setMaxDigit('2');\n txtB9AK7_1.setMinDigit('1');\n txtB9AK7_1.addFocusListener(new java.awt.event.FocusAdapter() {\n public void focusGained(java.awt.event.FocusEvent evt) {\n focusTxt(evt);\n }\n });\n panelTransparan58.add(txtB9AK7_1);\n\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 6;\n gridBagConstraints.gridy = 8;\n gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;\n panelTabel.add(panelTransparan58, gridBagConstraints);\n\n txtB9AK8_1.setColumns(2);\n txtB9AK8_1.setMaxDigit('2');\n txtB9AK8_1.setMinDigit('1');\n txtB9AK8_1.addFocusListener(new java.awt.event.FocusAdapter() {\n public void focusGained(java.awt.event.FocusEvent evt) {\n focusTxt(evt);\n }\n });\n panelTransparan59.add(txtB9AK8_1);\n\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 7;\n gridBagConstraints.gridy = 8;\n gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;\n panelTabel.add(panelTransparan59, gridBagConstraints);\n\n txtB9AK9_1.setColumns(2);\n txtB9AK9_1.setMaxDigit('2');\n txtB9AK9_1.setMinDigit('1');\n txtB9AK9_1.addFocusListener(new java.awt.event.FocusAdapter() {\n public void focusGained(java.awt.event.FocusEvent evt) {\n focusTxt(evt);\n }\n });\n panelTransparan60.add(txtB9AK9_1);\n\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 8;\n gridBagConstraints.gridy = 8;\n gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;\n panelTabel.add(panelTransparan60, gridBagConstraints);\n\n txtB9AK10_1.setColumns(2);\n txtB9AK10_1.setMaxDigit('2');\n txtB9AK10_1.setMinDigit('1');\n txtB9AK10_1.addFocusListener(new java.awt.event.FocusAdapter() {\n public void focusGained(java.awt.event.FocusEvent evt) {\n focusTxt(evt);\n }\n });\n panelTransparan61.add(txtB9AK10_1);\n\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 9;\n gridBagConstraints.gridy = 8;\n gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;\n panelTabel.add(panelTransparan61, gridBagConstraints);\n\n txtB9AK11_1.setColumns(2);\n txtB9AK11_1.setMaxDigit('2');\n txtB9AK11_1.setMinDigit('1');\n txtB9AK11_1.addFocusListener(new java.awt.event.FocusAdapter() {\n public void focusGained(java.awt.event.FocusEvent evt) {\n focusTxt(evt);\n }\n });\n panelTransparan62.add(txtB9AK11_1);\n\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 10;\n gridBagConstraints.gridy = 8;\n gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;\n panelTabel.add(panelTransparan62, gridBagConstraints);\n\n panelTransparan63.setAlpha(70);\n panelTransparan63.setLayout(new java.awt.GridBagLayout());\n\n txtB9AK12_26.setColumns(2);\n txtB9AK12_26.setMaxDigit('2');\n txtB9AK12_26.setMinDigit('1');\n txtB9AK12_26.addFocusListener(new java.awt.event.FocusAdapter() {\n public void focusGained(java.awt.event.FocusEvent evt) {\n focusTxt(evt);\n }\n });\n panelTransparan63.add(txtB9AK12_26, new java.awt.GridBagConstraints());\n\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 11;\n gridBagConstraints.gridy = 8;\n gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;\n panelTabel.add(panelTransparan63, gridBagConstraints);\n\n txtB9AK13_1.setColumns(2);\n txtB9AK13_1.setMaxDigit('2');\n txtB9AK13_1.setMinDigit('1');\n txtB9AK13_1.addFocusListener(new java.awt.event.FocusAdapter() {\n public void focusGained(java.awt.event.FocusEvent evt) {\n focusTxt(evt);\n }\n });\n panelTransparan64.add(txtB9AK13_1);\n\n txtB9AK13_1Als.setColumns(3);\n txtB9AK13_1Als.addFocusListener(new java.awt.event.FocusAdapter() {\n public void focusGained(java.awt.event.FocusEvent evt) {\n focusTxt(evt);\n }\n });\n panelTransparan64.add(txtB9AK13_1Als);\n\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 12;\n gridBagConstraints.gridy = 8;\n gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;\n panelTabel.add(panelTransparan64, gridBagConstraints);\n\n panelTransparan70.setLayout(new java.awt.GridBagLayout());\n\n label95.setText(\"4\"); // NOI18N\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.insets = new java.awt.Insets(2, 2, 2, 2);\n panelTransparan70.add(label95, gridBagConstraints);\n\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 0;\n gridBagConstraints.gridy = 11;\n gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;\n panelTabel.add(panelTransparan70, gridBagConstraints);\n\n txtB9AK2_2.setColumns(3);\n txtB9AK2_2.setLength(2);\n txtB9AK2_2.addFocusListener(new java.awt.event.FocusAdapter() {\n public void focusLost(java.awt.event.FocusEvent evt) {\n focusTxt(evt);\n }\n });\n panelTransparan71.add(txtB9AK2_2);\n\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 1;\n gridBagConstraints.gridy = 9;\n gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;\n panelTabel.add(panelTransparan71, gridBagConstraints);\n\n panelTransparan72.setAlpha(70);\n panelTransparan72.setLayout(new java.awt.GridBagLayout());\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 3;\n gridBagConstraints.gridy = 9;\n gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;\n panelTabel.add(panelTransparan72, gridBagConstraints);\n\n panelTransparan73.setAlpha(70);\n panelTransparan73.setLayout(new java.awt.GridBagLayout());\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 2;\n gridBagConstraints.gridy = 9;\n gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;\n panelTabel.add(panelTransparan73, gridBagConstraints);\n\n txtB9AK5_2.setColumns(2);\n txtB9AK5_2.setMaxDigit('2');\n txtB9AK5_2.setMinDigit('1');\n txtB9AK5_2.addFocusListener(new java.awt.event.FocusAdapter() {\n public void focusGained(java.awt.event.FocusEvent evt) {\n focusTxt(evt);\n }\n });\n panelTransparan74.add(txtB9AK5_2);\n\n txtB9AK5_2Als.setColumns(3);\n txtB9AK5_2Als.addFocusListener(new java.awt.event.FocusAdapter() {\n public void focusGained(java.awt.event.FocusEvent evt) {\n focusTxt(evt);\n }\n });\n panelTransparan74.add(txtB9AK5_2Als);\n\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 4;\n gridBagConstraints.gridy = 9;\n gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;\n panelTabel.add(panelTransparan74, gridBagConstraints);\n\n txtB9AK6_2.setColumns(2);\n txtB9AK6_2.setMaxDigit('2');\n txtB9AK6_2.setMinDigit('1');\n txtB9AK6_2.addFocusListener(new java.awt.event.FocusAdapter() {\n public void focusGained(java.awt.event.FocusEvent evt) {\n focusTxt(evt);\n }\n });\n panelTransparan75.add(txtB9AK6_2);\n\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 5;\n gridBagConstraints.gridy = 9;\n gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;\n panelTabel.add(panelTransparan75, gridBagConstraints);\n\n txtB9AK7_2.setColumns(2);\n txtB9AK7_2.setMaxDigit('2');\n txtB9AK7_2.setMinDigit('1');\n txtB9AK7_2.addFocusListener(new java.awt.event.FocusAdapter() {\n public void focusGained(java.awt.event.FocusEvent evt) {\n focusTxt(evt);\n }\n });\n panelTransparan76.add(txtB9AK7_2);\n\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 6;\n gridBagConstraints.gridy = 9;\n gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;\n panelTabel.add(panelTransparan76, gridBagConstraints);\n\n txtB9AK8_2.setColumns(2);\n txtB9AK8_2.setMaxDigit('2');\n txtB9AK8_2.setMinDigit('1');\n txtB9AK8_2.addFocusListener(new java.awt.event.FocusAdapter() {\n public void focusGained(java.awt.event.FocusEvent evt) {\n focusTxt(evt);\n }\n });\n panelTransparan77.add(txtB9AK8_2);\n\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 7;\n gridBagConstraints.gridy = 9;\n gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;\n panelTabel.add(panelTransparan77, gridBagConstraints);\n\n txtB9AK9_2.setColumns(2);\n txtB9AK9_2.setMaxDigit('2');\n txtB9AK9_2.setMinDigit('1');\n txtB9AK9_2.addFocusListener(new java.awt.event.FocusAdapter() {\n public void focusGained(java.awt.event.FocusEvent evt) {\n focusTxt(evt);\n }\n });\n panelTransparan78.add(txtB9AK9_2);\n\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 8;\n gridBagConstraints.gridy = 9;\n gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;\n panelTabel.add(panelTransparan78, gridBagConstraints);\n\n txtB9AK10_2.setColumns(2);\n txtB9AK10_2.setMaxDigit('2');\n txtB9AK10_2.setMinDigit('1');\n txtB9AK10_2.addFocusListener(new java.awt.event.FocusAdapter() {\n public void focusGained(java.awt.event.FocusEvent evt) {\n focusTxt(evt);\n }\n });\n panelTransparan79.add(txtB9AK10_2);\n\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 9;\n gridBagConstraints.gridy = 9;\n gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;\n panelTabel.add(panelTransparan79, gridBagConstraints);\n\n txtB9AK11_2.setColumns(2);\n txtB9AK11_2.setMaxDigit('2');\n txtB9AK11_2.setMinDigit('1');\n txtB9AK11_2.addFocusListener(new java.awt.event.FocusAdapter() {\n public void focusGained(java.awt.event.FocusEvent evt) {\n focusTxt(evt);\n }\n });\n panelTransparan80.add(txtB9AK11_2);\n\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 10;\n gridBagConstraints.gridy = 9;\n gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;\n panelTabel.add(panelTransparan80, gridBagConstraints);\n\n panelTransparan81.setAlpha(70);\n panelTransparan81.setLayout(new java.awt.GridBagLayout());\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 11;\n gridBagConstraints.gridy = 9;\n gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;\n panelTabel.add(panelTransparan81, gridBagConstraints);\n\n txtB9AK13_2.setColumns(2);\n txtB9AK13_2.setMaxDigit('2');\n txtB9AK13_2.setMinDigit('1');\n txtB9AK13_2.addFocusListener(new java.awt.event.FocusAdapter() {\n public void focusGained(java.awt.event.FocusEvent evt) {\n focusTxt(evt);\n }\n });\n panelTransparan82.add(txtB9AK13_2);\n\n txtB9AK13_2Als.setColumns(3);\n txtB9AK13_2Als.addFocusListener(new java.awt.event.FocusAdapter() {\n public void focusGained(java.awt.event.FocusEvent evt) {\n focusTxt(evt);\n }\n });\n panelTransparan82.add(txtB9AK13_2Als);\n\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 12;\n gridBagConstraints.gridy = 9;\n gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;\n panelTabel.add(panelTransparan82, gridBagConstraints);\n\n panelTransparan88.setLayout(new java.awt.GridBagLayout());\n\n label96.setText(\"5\"); // NOI18N\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.insets = new java.awt.Insets(2, 2, 2, 2);\n panelTransparan88.add(label96, gridBagConstraints);\n\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 0;\n gridBagConstraints.gridy = 12;\n gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;\n panelTabel.add(panelTransparan88, gridBagConstraints);\n\n txtB9AK2_3.setColumns(3);\n txtB9AK2_3.setLength(2);\n txtB9AK2_3.addFocusListener(new java.awt.event.FocusAdapter() {\n public void focusLost(java.awt.event.FocusEvent evt) {\n focusTxt(evt);\n }\n });\n panelTransparan89.add(txtB9AK2_3);\n\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 1;\n gridBagConstraints.gridy = 10;\n gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;\n panelTabel.add(panelTransparan89, gridBagConstraints);\n\n panelTransparan90.setAlpha(70);\n panelTransparan90.setLayout(new java.awt.GridBagLayout());\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 3;\n gridBagConstraints.gridy = 10;\n gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;\n panelTabel.add(panelTransparan90, gridBagConstraints);\n\n panelTransparan91.setAlpha(70);\n panelTransparan91.setLayout(new java.awt.GridBagLayout());\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 2;\n gridBagConstraints.gridy = 10;\n gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;\n panelTabel.add(panelTransparan91, gridBagConstraints);\n\n txtB9AK5_3.setColumns(2);\n txtB9AK5_3.setMaxDigit('2');\n txtB9AK5_3.setMinDigit('1');\n txtB9AK5_3.addFocusListener(new java.awt.event.FocusAdapter() {\n public void focusGained(java.awt.event.FocusEvent evt) {\n focusTxt(evt);\n }\n });\n panelTransparan92.add(txtB9AK5_3);\n\n txtB9AK5_3Als.setColumns(3);\n txtB9AK5_3Als.addFocusListener(new java.awt.event.FocusAdapter() {\n public void focusGained(java.awt.event.FocusEvent evt) {\n focusTxt(evt);\n }\n });\n panelTransparan92.add(txtB9AK5_3Als);\n\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 4;\n gridBagConstraints.gridy = 10;\n gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;\n panelTabel.add(panelTransparan92, gridBagConstraints);\n\n txtB9AK6_3.setColumns(2);\n txtB9AK6_3.setMaxDigit('2');\n txtB9AK6_3.setMinDigit('1');\n txtB9AK6_3.addFocusListener(new java.awt.event.FocusAdapter() {\n public void focusGained(java.awt.event.FocusEvent evt) {\n focusTxt(evt);\n }\n });\n panelTransparan93.add(txtB9AK6_3);\n\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 5;\n gridBagConstraints.gridy = 10;\n gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;\n panelTabel.add(panelTransparan93, gridBagConstraints);\n\n txtB9AK7_3.setColumns(2);\n txtB9AK7_3.setMaxDigit('2');\n txtB9AK7_3.setMinDigit('1');\n txtB9AK7_3.addFocusListener(new java.awt.event.FocusAdapter() {\n public void focusGained(java.awt.event.FocusEvent evt) {\n focusTxt(evt);\n }\n });\n panelTransparan94.add(txtB9AK7_3);\n\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 6;\n gridBagConstraints.gridy = 10;\n gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;\n panelTabel.add(panelTransparan94, gridBagConstraints);\n\n txtB9AK9_3.setColumns(2);\n txtB9AK9_3.setMaxDigit('2');\n txtB9AK9_3.setMinDigit('1');\n txtB9AK9_3.addFocusListener(new java.awt.event.FocusAdapter() {\n public void focusGained(java.awt.event.FocusEvent evt) {\n focusTxt(evt);\n }\n });\n panelTransparan95.add(txtB9AK9_3);\n\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 8;\n gridBagConstraints.gridy = 10;\n gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;\n panelTabel.add(panelTransparan95, gridBagConstraints);\n\n txtB9AK8_3.setColumns(2);\n txtB9AK8_3.setMaxDigit('2');\n txtB9AK8_3.setMinDigit('1');\n txtB9AK8_3.addFocusListener(new java.awt.event.FocusAdapter() {\n public void focusGained(java.awt.event.FocusEvent evt) {\n focusTxt(evt);\n }\n });\n panelTransparan96.add(txtB9AK8_3);\n\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 7;\n gridBagConstraints.gridy = 10;\n gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;\n panelTabel.add(panelTransparan96, gridBagConstraints);\n\n txtB9AK10_3.setColumns(2);\n txtB9AK10_3.setMaxDigit('2');\n txtB9AK10_3.setMinDigit('1');\n txtB9AK10_3.addFocusListener(new java.awt.event.FocusAdapter() {\n public void focusGained(java.awt.event.FocusEvent evt) {\n focusTxt(evt);\n }\n });\n panelTransparan97.add(txtB9AK10_3);\n\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 9;\n gridBagConstraints.gridy = 10;\n gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;\n panelTabel.add(panelTransparan97, gridBagConstraints);\n\n txtB9AK11_3.setColumns(2);\n txtB9AK11_3.setMaxDigit('2');\n txtB9AK11_3.setMinDigit('1');\n txtB9AK11_3.addFocusListener(new java.awt.event.FocusAdapter() {\n public void focusGained(java.awt.event.FocusEvent evt) {\n focusTxt(evt);\n }\n });\n panelTransparan98.add(txtB9AK11_3);\n\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 10;\n gridBagConstraints.gridy = 10;\n gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;\n panelTabel.add(panelTransparan98, gridBagConstraints);\n\n panelTransparan99.setAlpha(70);\n panelTransparan99.setLayout(new java.awt.GridBagLayout());\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 11;\n gridBagConstraints.gridy = 10;\n gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;\n panelTabel.add(panelTransparan99, gridBagConstraints);\n\n txtB9AK13_3.setColumns(2);\n txtB9AK13_3.setMaxDigit('2');\n txtB9AK13_3.setMinDigit('1');\n txtB9AK13_3.addFocusListener(new java.awt.event.FocusAdapter() {\n public void focusGained(java.awt.event.FocusEvent evt) {\n focusTxt(evt);\n }\n });\n panelTransparan100.add(txtB9AK13_3);\n\n txtB9AK13_3Als.setColumns(3);\n txtB9AK13_3Als.addFocusListener(new java.awt.event.FocusAdapter() {\n public void focusGained(java.awt.event.FocusEvent evt) {\n focusTxt(evt);\n }\n });\n panelTransparan100.add(txtB9AK13_3Als);\n\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 12;\n gridBagConstraints.gridy = 10;\n gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;\n panelTabel.add(panelTransparan100, gridBagConstraints);\n\n panelTransparan106.setLayout(new java.awt.GridBagLayout());\n\n label97.setText(\"3\"); // NOI18N\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.insets = new java.awt.Insets(2, 2, 2, 2);\n panelTransparan106.add(label97, gridBagConstraints);\n\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 0;\n gridBagConstraints.gridy = 10;\n gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;\n panelTabel.add(panelTransparan106, gridBagConstraints);\n\n txtB9AK2_4.setColumns(3);\n txtB9AK2_4.setLength(2);\n txtB9AK2_4.addFocusListener(new java.awt.event.FocusAdapter() {\n public void focusLost(java.awt.event.FocusEvent evt) {\n focusTxt(evt);\n }\n });\n panelTransparan107.add(txtB9AK2_4);\n\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 1;\n gridBagConstraints.gridy = 11;\n gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;\n panelTabel.add(panelTransparan107, gridBagConstraints);\n\n panelTransparan108.setAlpha(70);\n panelTransparan108.setLayout(new java.awt.GridBagLayout());\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 3;\n gridBagConstraints.gridy = 11;\n gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;\n panelTabel.add(panelTransparan108, gridBagConstraints);\n\n panelTransparan109.setAlpha(70);\n panelTransparan109.setLayout(new java.awt.GridBagLayout());\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 2;\n gridBagConstraints.gridy = 11;\n gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;\n panelTabel.add(panelTransparan109, gridBagConstraints);\n\n txtB9AK5_4.setColumns(2);\n txtB9AK5_4.setMaxDigit('2');\n txtB9AK5_4.setMinDigit('1');\n txtB9AK5_4.addFocusListener(new java.awt.event.FocusAdapter() {\n public void focusGained(java.awt.event.FocusEvent evt) {\n focusTxt(evt);\n }\n });\n panelTransparan110.add(txtB9AK5_4);\n\n txtB9AK5_4Als.setColumns(3);\n txtB9AK5_4Als.addFocusListener(new java.awt.event.FocusAdapter() {\n public void focusGained(java.awt.event.FocusEvent evt) {\n focusTxt(evt);\n }\n });\n panelTransparan110.add(txtB9AK5_4Als);\n\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 4;\n gridBagConstraints.gridy = 11;\n gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;\n panelTabel.add(panelTransparan110, gridBagConstraints);\n\n txtB9AK6_4.setColumns(2);\n txtB9AK6_4.setMaxDigit('2');\n txtB9AK6_4.setMinDigit('1');\n txtB9AK6_4.addFocusListener(new java.awt.event.FocusAdapter() {\n public void focusGained(java.awt.event.FocusEvent evt) {\n focusTxt(evt);\n }\n });\n panelTransparan111.add(txtB9AK6_4);\n\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 5;\n gridBagConstraints.gridy = 11;\n gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;\n panelTabel.add(panelTransparan111, gridBagConstraints);\n\n txtB9AK7_4.setColumns(2);\n txtB9AK7_4.setMaxDigit('2');\n txtB9AK7_4.setMinDigit('1');\n txtB9AK7_4.addFocusListener(new java.awt.event.FocusAdapter() {\n public void focusGained(java.awt.event.FocusEvent evt) {\n focusTxt(evt);\n }\n });\n panelTransparan112.add(txtB9AK7_4);\n\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 6;\n gridBagConstraints.gridy = 11;\n gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;\n panelTabel.add(panelTransparan112, gridBagConstraints);\n\n txtB9AK8_4.setColumns(2);\n txtB9AK8_4.setMaxDigit('2');\n txtB9AK8_4.setMinDigit('1');\n txtB9AK8_4.addFocusListener(new java.awt.event.FocusAdapter() {\n public void focusGained(java.awt.event.FocusEvent evt) {\n focusTxt(evt);\n }\n });\n panelTransparan113.add(txtB9AK8_4);\n\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 7;\n gridBagConstraints.gridy = 11;\n gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;\n panelTabel.add(panelTransparan113, gridBagConstraints);\n\n txtB9AK9_4.setColumns(2);\n txtB9AK9_4.setMaxDigit('2');\n txtB9AK9_4.setMinDigit('1');\n txtB9AK9_4.addFocusListener(new java.awt.event.FocusAdapter() {\n public void focusGained(java.awt.event.FocusEvent evt) {\n focusTxt(evt);\n }\n });\n panelTransparan114.add(txtB9AK9_4);\n\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 8;\n gridBagConstraints.gridy = 11;\n gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;\n panelTabel.add(panelTransparan114, gridBagConstraints);\n\n txtB9AK10_4.setColumns(2);\n txtB9AK10_4.setMaxDigit('2');\n txtB9AK10_4.setMinDigit('1');\n txtB9AK10_4.addFocusListener(new java.awt.event.FocusAdapter() {\n public void focusGained(java.awt.event.FocusEvent evt) {\n focusTxt(evt);\n }\n });\n panelTransparan115.add(txtB9AK10_4);\n\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 9;\n gridBagConstraints.gridy = 11;\n gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;\n panelTabel.add(panelTransparan115, gridBagConstraints);\n\n txtB9AK11_4.setColumns(2);\n txtB9AK11_4.setMaxDigit('2');\n txtB9AK11_4.setMinDigit('1');\n txtB9AK11_4.addFocusListener(new java.awt.event.FocusAdapter() {\n public void focusGained(java.awt.event.FocusEvent evt) {\n focusTxt(evt);\n }\n });\n panelTransparan116.add(txtB9AK11_4);\n\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 10;\n gridBagConstraints.gridy = 11;\n gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;\n panelTabel.add(panelTransparan116, gridBagConstraints);\n\n panelTransparan117.setAlpha(70);\n panelTransparan117.setLayout(new java.awt.GridBagLayout());\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 11;\n gridBagConstraints.gridy = 11;\n gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;\n panelTabel.add(panelTransparan117, gridBagConstraints);\n\n txtB9AK13_4.setColumns(2);\n txtB9AK13_4.setMaxDigit('2');\n txtB9AK13_4.setMinDigit('1');\n txtB9AK13_4.addFocusListener(new java.awt.event.FocusAdapter() {\n public void focusGained(java.awt.event.FocusEvent evt) {\n focusTxt(evt);\n }\n });\n panelTransparan118.add(txtB9AK13_4);\n\n txtB9AK13_4Als.setColumns(3);\n txtB9AK13_4Als.addFocusListener(new java.awt.event.FocusAdapter() {\n public void focusGained(java.awt.event.FocusEvent evt) {\n focusTxt(evt);\n }\n });\n panelTransparan118.add(txtB9AK13_4Als);\n\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 12;\n gridBagConstraints.gridy = 11;\n gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;\n panelTabel.add(panelTransparan118, gridBagConstraints);\n\n panelTransparan124.setLayout(new java.awt.GridBagLayout());\n\n label98.setText(\"6\"); // NOI18N\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.insets = new java.awt.Insets(2, 2, 2, 2);\n panelTransparan124.add(label98, gridBagConstraints);\n\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 0;\n gridBagConstraints.gridy = 13;\n gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;\n panelTabel.add(panelTransparan124, gridBagConstraints);\n\n txtB9AK2_5.setColumns(3);\n txtB9AK2_5.setLength(2);\n txtB9AK2_5.addFocusListener(new java.awt.event.FocusAdapter() {\n public void focusLost(java.awt.event.FocusEvent evt) {\n focusTxt(evt);\n }\n });\n panelTransparan125.add(txtB9AK2_5);\n\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 1;\n gridBagConstraints.gridy = 12;\n gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;\n panelTabel.add(panelTransparan125, gridBagConstraints);\n\n panelTransparan126.setAlpha(70);\n panelTransparan126.setLayout(new java.awt.GridBagLayout());\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 3;\n gridBagConstraints.gridy = 12;\n gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;\n panelTabel.add(panelTransparan126, gridBagConstraints);\n\n panelTransparan127.setAlpha(70);\n panelTransparan127.setLayout(new java.awt.GridBagLayout());\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 2;\n gridBagConstraints.gridy = 12;\n gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;\n panelTabel.add(panelTransparan127, gridBagConstraints);\n\n txtB9AK5_5.setColumns(2);\n txtB9AK5_5.setMaxDigit('2');\n txtB9AK5_5.setMinDigit('1');\n txtB9AK5_5.addFocusListener(new java.awt.event.FocusAdapter() {\n public void focusGained(java.awt.event.FocusEvent evt) {\n focusTxt(evt);\n }\n });\n panelTransparan128.add(txtB9AK5_5);\n\n txtB9AK5_5Als.setColumns(3);\n txtB9AK5_5Als.addFocusListener(new java.awt.event.FocusAdapter() {\n public void focusGained(java.awt.event.FocusEvent evt) {\n focusTxt(evt);\n }\n });\n panelTransparan128.add(txtB9AK5_5Als);\n\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 4;\n gridBagConstraints.gridy = 12;\n gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;\n panelTabel.add(panelTransparan128, gridBagConstraints);\n\n txtB9AK6_5.setColumns(2);\n txtB9AK6_5.setMaxDigit('2');\n txtB9AK6_5.setMinDigit('1');\n txtB9AK6_5.addFocusListener(new java.awt.event.FocusAdapter() {\n public void focusGained(java.awt.event.FocusEvent evt) {\n focusTxt(evt);\n }\n });\n panelTransparan129.add(txtB9AK6_5);\n\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 5;\n gridBagConstraints.gridy = 12;\n gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;\n panelTabel.add(panelTransparan129, gridBagConstraints);\n\n txtB9AK7_5.setColumns(2);\n txtB9AK7_5.setMaxDigit('2');\n txtB9AK7_5.setMinDigit('1');\n txtB9AK7_5.addFocusListener(new java.awt.event.FocusAdapter() {\n public void focusGained(java.awt.event.FocusEvent evt) {\n focusTxt(evt);\n }\n });\n panelTransparan130.add(txtB9AK7_5);\n\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 6;\n gridBagConstraints.gridy = 12;\n gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;\n panelTabel.add(panelTransparan130, gridBagConstraints);\n\n txtB9AK8_5.setColumns(2);\n txtB9AK8_5.setMaxDigit('2');\n txtB9AK8_5.setMinDigit('1');\n txtB9AK8_5.addFocusListener(new java.awt.event.FocusAdapter() {\n public void focusGained(java.awt.event.FocusEvent evt) {\n focusTxt(evt);\n }\n });\n panelTransparan131.add(txtB9AK8_5);\n\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 7;\n gridBagConstraints.gridy = 12;\n gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;\n panelTabel.add(panelTransparan131, gridBagConstraints);\n\n txtB9AK9_5.setColumns(2);\n txtB9AK9_5.setMaxDigit('2');\n txtB9AK9_5.setMinDigit('1');\n txtB9AK9_5.addFocusListener(new java.awt.event.FocusAdapter() {\n public void focusGained(java.awt.event.FocusEvent evt) {\n focusTxt(evt);\n }\n });\n panelTransparan132.add(txtB9AK9_5);\n\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 8;\n gridBagConstraints.gridy = 12;\n gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;\n panelTabel.add(panelTransparan132, gridBagConstraints);\n\n txtB9AK10_5.setColumns(2);\n txtB9AK10_5.setMaxDigit('2');\n txtB9AK10_5.setMinDigit('1');\n txtB9AK10_5.addFocusListener(new java.awt.event.FocusAdapter() {\n public void focusGained(java.awt.event.FocusEvent evt) {\n focusTxt(evt);\n }\n });\n panelTransparan133.add(txtB9AK10_5);\n\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 9;\n gridBagConstraints.gridy = 12;\n gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;\n panelTabel.add(panelTransparan133, gridBagConstraints);\n\n txtB9AK11_5.setColumns(2);\n txtB9AK11_5.setMaxDigit('2');\n txtB9AK11_5.setMinDigit('1');\n txtB9AK11_5.addFocusListener(new java.awt.event.FocusAdapter() {\n public void focusGained(java.awt.event.FocusEvent evt) {\n focusTxt(evt);\n }\n });\n panelTransparan134.add(txtB9AK11_5);\n\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 10;\n gridBagConstraints.gridy = 12;\n gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;\n panelTabel.add(panelTransparan134, gridBagConstraints);\n\n panelTransparan135.setAlpha(70);\n panelTransparan135.setLayout(new java.awt.GridBagLayout());\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 11;\n gridBagConstraints.gridy = 12;\n gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;\n panelTabel.add(panelTransparan135, gridBagConstraints);\n\n txtB9AK13_5.setColumns(2);\n txtB9AK13_5.setMaxDigit('2');\n txtB9AK13_5.setMinDigit('1');\n txtB9AK13_5.addFocusListener(new java.awt.event.FocusAdapter() {\n public void focusGained(java.awt.event.FocusEvent evt) {\n focusTxt(evt);\n }\n });\n panelTransparan136.add(txtB9AK13_5);\n\n txtB9AK13_5Als.setColumns(3);\n txtB9AK13_5Als.addFocusListener(new java.awt.event.FocusAdapter() {\n public void focusGained(java.awt.event.FocusEvent evt) {\n focusTxt(evt);\n }\n });\n panelTransparan136.add(txtB9AK13_5Als);\n\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 12;\n gridBagConstraints.gridy = 12;\n gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;\n panelTabel.add(panelTransparan136, gridBagConstraints);\n\n panelTransparan142.setLayout(new java.awt.GridBagLayout());\n\n label99.setText(\"2\"); // NOI18N\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.insets = new java.awt.Insets(2, 2, 2, 2);\n panelTransparan142.add(label99, gridBagConstraints);\n\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 0;\n gridBagConstraints.gridy = 9;\n gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;\n panelTabel.add(panelTransparan142, gridBagConstraints);\n\n txtB9AK2_6.setColumns(3);\n txtB9AK2_6.setLength(2);\n txtB9AK2_6.addFocusListener(new java.awt.event.FocusAdapter() {\n public void focusLost(java.awt.event.FocusEvent evt) {\n focusTxt(evt);\n }\n });\n panelTransparan143.add(txtB9AK2_6);\n\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 1;\n gridBagConstraints.gridy = 13;\n gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;\n panelTabel.add(panelTransparan143, gridBagConstraints);\n\n panelTransparan144.setAlpha(70);\n panelTransparan144.setLayout(new java.awt.GridBagLayout());\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 3;\n gridBagConstraints.gridy = 13;\n gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;\n panelTabel.add(panelTransparan144, gridBagConstraints);\n\n panelTransparan145.setAlpha(70);\n panelTransparan145.setLayout(new java.awt.GridBagLayout());\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 2;\n gridBagConstraints.gridy = 13;\n gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;\n panelTabel.add(panelTransparan145, gridBagConstraints);\n\n txtB9AK5_6.setColumns(2);\n txtB9AK5_6.setMaxDigit('2');\n txtB9AK5_6.setMinDigit('1');\n txtB9AK5_6.addFocusListener(new java.awt.event.FocusAdapter() {\n public void focusGained(java.awt.event.FocusEvent evt) {\n focusTxt(evt);\n }\n });\n panelTransparan146.add(txtB9AK5_6);\n\n txtB9AK5_6Als.setColumns(3);\n txtB9AK5_6Als.addFocusListener(new java.awt.event.FocusAdapter() {\n public void focusGained(java.awt.event.FocusEvent evt) {\n focusTxt(evt);\n }\n });\n panelTransparan146.add(txtB9AK5_6Als);\n\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 4;\n gridBagConstraints.gridy = 13;\n gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;\n panelTabel.add(panelTransparan146, gridBagConstraints);\n\n txtB9AK6_6.setColumns(2);\n txtB9AK6_6.setMaxDigit('2');\n txtB9AK6_6.setMinDigit('1');\n txtB9AK6_6.addFocusListener(new java.awt.event.FocusAdapter() {\n public void focusGained(java.awt.event.FocusEvent evt) {\n focusTxt(evt);\n }\n });\n panelTransparan147.add(txtB9AK6_6);\n\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 5;\n gridBagConstraints.gridy = 13;\n gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;\n panelTabel.add(panelTransparan147, gridBagConstraints);\n\n txtB9AK7_6.setColumns(2);\n txtB9AK7_6.setMaxDigit('2');\n txtB9AK7_6.setMinDigit('1');\n txtB9AK7_6.addFocusListener(new java.awt.event.FocusAdapter() {\n public void focusGained(java.awt.event.FocusEvent evt) {\n focusTxt(evt);\n }\n });\n panelTransparan148.add(txtB9AK7_6);\n\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 6;\n gridBagConstraints.gridy = 13;\n gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;\n panelTabel.add(panelTransparan148, gridBagConstraints);\n\n txtB9AK8_6.setColumns(2);\n txtB9AK8_6.setMaxDigit('2');\n txtB9AK8_6.setMinDigit('1');\n txtB9AK8_6.addFocusListener(new java.awt.event.FocusAdapter() {\n public void focusGained(java.awt.event.FocusEvent evt) {\n focusTxt(evt);\n }\n });\n panelTransparan149.add(txtB9AK8_6);\n\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 7;\n gridBagConstraints.gridy = 13;\n gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;\n panelTabel.add(panelTransparan149, gridBagConstraints);\n\n txtB9AK9_6.setColumns(2);\n txtB9AK9_6.setMaxDigit('2');\n txtB9AK9_6.setMinDigit('1');\n txtB9AK9_6.addFocusListener(new java.awt.event.FocusAdapter() {\n public void focusGained(java.awt.event.FocusEvent evt) {\n focusTxt(evt);\n }\n });\n panelTransparan150.add(txtB9AK9_6);\n\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 8;\n gridBagConstraints.gridy = 13;\n gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;\n panelTabel.add(panelTransparan150, gridBagConstraints);\n\n txtB9AK10_6.setColumns(2);\n txtB9AK10_6.setMaxDigit('2');\n txtB9AK10_6.setMinDigit('1');\n txtB9AK10_6.addFocusListener(new java.awt.event.FocusAdapter() {\n public void focusGained(java.awt.event.FocusEvent evt) {\n focusTxt(evt);\n }\n });\n panelTransparan151.add(txtB9AK10_6);\n\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 9;\n gridBagConstraints.gridy = 13;\n gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;\n panelTabel.add(panelTransparan151, gridBagConstraints);\n\n txtB9AK11_6.setColumns(2);\n txtB9AK11_6.setMaxDigit('2');\n txtB9AK11_6.setMinDigit('1');\n txtB9AK11_6.addFocusListener(new java.awt.event.FocusAdapter() {\n public void focusGained(java.awt.event.FocusEvent evt) {\n focusTxt(evt);\n }\n });\n panelTransparan152.add(txtB9AK11_6);\n\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 10;\n gridBagConstraints.gridy = 13;\n gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;\n panelTabel.add(panelTransparan152, gridBagConstraints);\n\n panelTransparan153.setAlpha(70);\n panelTransparan153.setLayout(new java.awt.GridBagLayout());\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 11;\n gridBagConstraints.gridy = 13;\n gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;\n panelTabel.add(panelTransparan153, gridBagConstraints);\n\n txtB9AK13_6.setColumns(2);\n txtB9AK13_6.setMaxDigit('2');\n txtB9AK13_6.setMinDigit('1');\n txtB9AK13_6.addFocusListener(new java.awt.event.FocusAdapter() {\n public void focusGained(java.awt.event.FocusEvent evt) {\n focusTxt(evt);\n }\n });\n panelTransparan154.add(txtB9AK13_6);\n\n txtB9AK13_6Als.setColumns(3);\n txtB9AK13_6Als.addFocusListener(new java.awt.event.FocusAdapter() {\n public void focusGained(java.awt.event.FocusEvent evt) {\n focusTxt(evt);\n }\n });\n panelTransparan154.add(txtB9AK13_6Als);\n\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 12;\n gridBagConstraints.gridy = 13;\n gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;\n panelTabel.add(panelTransparan154, gridBagConstraints);\n\n panelTransparan160.setLayout(new java.awt.GridBagLayout());\n\n label100.setText(\"7\"); // NOI18N\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.insets = new java.awt.Insets(2, 2, 2, 2);\n panelTransparan160.add(label100, gridBagConstraints);\n\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 0;\n gridBagConstraints.gridy = 14;\n gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;\n panelTabel.add(panelTransparan160, gridBagConstraints);\n\n txtB9AK2_7.setColumns(3);\n txtB9AK2_7.setLength(2);\n txtB9AK2_7.addFocusListener(new java.awt.event.FocusAdapter() {\n public void focusLost(java.awt.event.FocusEvent evt) {\n focusTxt(evt);\n }\n });\n panelTransparan161.add(txtB9AK2_7);\n\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 1;\n gridBagConstraints.gridy = 14;\n gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;\n panelTabel.add(panelTransparan161, gridBagConstraints);\n\n panelTransparan162.setAlpha(70);\n panelTransparan162.setLayout(new java.awt.GridBagLayout());\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 3;\n gridBagConstraints.gridy = 14;\n gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;\n panelTabel.add(panelTransparan162, gridBagConstraints);\n\n panelTransparan163.setAlpha(70);\n panelTransparan163.setLayout(new java.awt.GridBagLayout());\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 2;\n gridBagConstraints.gridy = 14;\n gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;\n panelTabel.add(panelTransparan163, gridBagConstraints);\n\n txtB9AK5_7.setColumns(2);\n txtB9AK5_7.setMaxDigit('2');\n txtB9AK5_7.setMinDigit('1');\n txtB9AK5_7.addFocusListener(new java.awt.event.FocusAdapter() {\n public void focusGained(java.awt.event.FocusEvent evt) {\n focusTxt(evt);\n }\n });\n panelTransparan164.add(txtB9AK5_7);\n\n txtB9AK5_7Als.setColumns(3);\n txtB9AK5_7Als.addFocusListener(new java.awt.event.FocusAdapter() {\n public void focusGained(java.awt.event.FocusEvent evt) {\n focusTxt(evt);\n }\n });\n panelTransparan164.add(txtB9AK5_7Als);\n\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 4;\n gridBagConstraints.gridy = 14;\n gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;\n panelTabel.add(panelTransparan164, gridBagConstraints);\n\n txtB9AK6_7.setColumns(2);\n txtB9AK6_7.setMaxDigit('2');\n txtB9AK6_7.setMinDigit('1');\n txtB9AK6_7.addFocusListener(new java.awt.event.FocusAdapter() {\n public void focusGained(java.awt.event.FocusEvent evt) {\n focusTxt(evt);\n }\n });\n panelTransparan165.add(txtB9AK6_7);\n\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 5;\n gridBagConstraints.gridy = 14;\n gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;\n panelTabel.add(panelTransparan165, gridBagConstraints);\n\n txtB9AK7_7.setColumns(2);\n txtB9AK7_7.setMaxDigit('2');\n txtB9AK7_7.setMinDigit('1');\n txtB9AK7_7.addFocusListener(new java.awt.event.FocusAdapter() {\n public void focusGained(java.awt.event.FocusEvent evt) {\n focusTxt(evt);\n }\n });\n panelTransparan166.add(txtB9AK7_7);\n\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 6;\n gridBagConstraints.gridy = 14;\n gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;\n panelTabel.add(panelTransparan166, gridBagConstraints);\n\n txtB9AK8_7.setColumns(2);\n txtB9AK8_7.setMaxDigit('2');\n txtB9AK8_7.setMinDigit('1');\n txtB9AK8_7.addFocusListener(new java.awt.event.FocusAdapter() {\n public void focusGained(java.awt.event.FocusEvent evt) {\n focusTxt(evt);\n }\n });\n panelTransparan167.add(txtB9AK8_7);\n\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 7;\n gridBagConstraints.gridy = 14;\n gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;\n panelTabel.add(panelTransparan167, gridBagConstraints);\n\n txtB9AK9_7.setColumns(2);\n txtB9AK9_7.setMaxDigit('2');\n txtB9AK9_7.setMinDigit('1');\n txtB9AK9_7.addFocusListener(new java.awt.event.FocusAdapter() {\n public void focusGained(java.awt.event.FocusEvent evt) {\n focusTxt(evt);\n }\n });\n panelTransparan168.add(txtB9AK9_7);\n\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 8;\n gridBagConstraints.gridy = 14;\n gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;\n panelTabel.add(panelTransparan168, gridBagConstraints);\n\n txtB9AK10_7.setColumns(2);\n txtB9AK10_7.setMaxDigit('2');\n txtB9AK10_7.setMinDigit('1');\n txtB9AK10_7.addFocusListener(new java.awt.event.FocusAdapter() {\n public void focusGained(java.awt.event.FocusEvent evt) {\n focusTxt(evt);\n }\n });\n panelTransparan169.add(txtB9AK10_7);\n\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 9;\n gridBagConstraints.gridy = 14;\n gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;\n panelTabel.add(panelTransparan169, gridBagConstraints);\n\n txtB9AK11_7.setColumns(2);\n txtB9AK11_7.setMaxDigit('2');\n txtB9AK11_7.setMinDigit('1');\n txtB9AK11_7.addFocusListener(new java.awt.event.FocusAdapter() {\n public void focusGained(java.awt.event.FocusEvent evt) {\n focusTxt(evt);\n }\n });\n panelTransparan170.add(txtB9AK11_7);\n\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 10;\n gridBagConstraints.gridy = 14;\n gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;\n panelTabel.add(panelTransparan170, gridBagConstraints);\n\n panelTransparan171.setAlpha(70);\n panelTransparan171.setLayout(new java.awt.GridBagLayout());\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 11;\n gridBagConstraints.gridy = 14;\n gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;\n panelTabel.add(panelTransparan171, gridBagConstraints);\n\n txtB9AK13_7.setColumns(2);\n txtB9AK13_7.setMaxDigit('2');\n txtB9AK13_7.setMinDigit('1');\n txtB9AK13_7.addFocusListener(new java.awt.event.FocusAdapter() {\n public void focusGained(java.awt.event.FocusEvent evt) {\n focusTxt(evt);\n }\n });\n panelTransparan172.add(txtB9AK13_7);\n\n txtB9AK13_7Als.setColumns(3);\n txtB9AK13_7Als.addFocusListener(new java.awt.event.FocusAdapter() {\n public void focusGained(java.awt.event.FocusEvent evt) {\n focusTxt(evt);\n }\n });\n panelTransparan172.add(txtB9AK13_7Als);\n\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 12;\n gridBagConstraints.gridy = 14;\n gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;\n panelTabel.add(panelTransparan172, gridBagConstraints);\n\n panelTransparan178.setLayout(new java.awt.GridBagLayout());\n\n label101.setText(\"8\"); // NOI18N\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.insets = new java.awt.Insets(2, 2, 2, 2);\n panelTransparan178.add(label101, gridBagConstraints);\n\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 0;\n gridBagConstraints.gridy = 15;\n gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;\n panelTabel.add(panelTransparan178, gridBagConstraints);\n\n txtB9AK2_8.setColumns(3);\n txtB9AK2_8.setLength(2);\n txtB9AK2_8.addFocusListener(new java.awt.event.FocusAdapter() {\n public void focusLost(java.awt.event.FocusEvent evt) {\n focusTxt(evt);\n }\n });\n panelTransparan179.add(txtB9AK2_8);\n\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 1;\n gridBagConstraints.gridy = 15;\n gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;\n panelTabel.add(panelTransparan179, gridBagConstraints);\n\n panelTransparan180.setAlpha(70);\n panelTransparan180.setLayout(new java.awt.GridBagLayout());\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 3;\n gridBagConstraints.gridy = 15;\n gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;\n panelTabel.add(panelTransparan180, gridBagConstraints);\n\n panelTransparan181.setAlpha(70);\n panelTransparan181.setLayout(new java.awt.GridBagLayout());\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 2;\n gridBagConstraints.gridy = 15;\n gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;\n panelTabel.add(panelTransparan181, gridBagConstraints);\n\n txtB9AK5_8.setColumns(2);\n txtB9AK5_8.setMaxDigit('2');\n txtB9AK5_8.setMinDigit('1');\n txtB9AK5_8.addFocusListener(new java.awt.event.FocusAdapter() {\n public void focusGained(java.awt.event.FocusEvent evt) {\n focusTxt(evt);\n }\n });\n panelTransparan182.add(txtB9AK5_8);\n\n txtB9AK5_8Als.setColumns(3);\n txtB9AK5_8Als.addFocusListener(new java.awt.event.FocusAdapter() {\n public void focusGained(java.awt.event.FocusEvent evt) {\n focusTxt(evt);\n }\n });\n panelTransparan182.add(txtB9AK5_8Als);\n\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 4;\n gridBagConstraints.gridy = 15;\n gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;\n panelTabel.add(panelTransparan182, gridBagConstraints);\n\n txtB9AK6_8.setColumns(2);\n txtB9AK6_8.setMaxDigit('2');\n txtB9AK6_8.setMinDigit('1');\n txtB9AK6_8.addFocusListener(new java.awt.event.FocusAdapter() {\n public void focusGained(java.awt.event.FocusEvent evt) {\n focusTxt(evt);\n }\n });\n panelTransparan183.add(txtB9AK6_8);\n\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 5;\n gridBagConstraints.gridy = 15;\n gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;\n panelTabel.add(panelTransparan183, gridBagConstraints);\n\n txtB9AK7_8.setColumns(2);\n txtB9AK7_8.setMaxDigit('2');\n txtB9AK7_8.setMinDigit('1');\n txtB9AK7_8.addFocusListener(new java.awt.event.FocusAdapter() {\n public void focusGained(java.awt.event.FocusEvent evt) {\n focusTxt(evt);\n }\n });\n panelTransparan184.add(txtB9AK7_8);\n\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 6;\n gridBagConstraints.gridy = 15;\n gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;\n panelTabel.add(panelTransparan184, gridBagConstraints);\n\n txtB9AK8_8.setColumns(2);\n txtB9AK8_8.setMaxDigit('2');\n txtB9AK8_8.setMinDigit('1');\n txtB9AK8_8.addFocusListener(new java.awt.event.FocusAdapter() {\n public void focusGained(java.awt.event.FocusEvent evt) {\n focusTxt(evt);\n }\n });\n panelTransparan185.add(txtB9AK8_8);\n\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 7;\n gridBagConstraints.gridy = 15;\n gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;\n panelTabel.add(panelTransparan185, gridBagConstraints);\n\n txtB9AK9_8.setColumns(2);\n txtB9AK9_8.setMaxDigit('2');\n txtB9AK9_8.setMinDigit('1');\n txtB9AK9_8.addFocusListener(new java.awt.event.FocusAdapter() {\n public void focusGained(java.awt.event.FocusEvent evt) {\n focusTxt(evt);\n }\n });\n panelTransparan186.add(txtB9AK9_8);\n\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 8;\n gridBagConstraints.gridy = 15;\n gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;\n panelTabel.add(panelTransparan186, gridBagConstraints);\n\n txtB9AK10_8.setColumns(2);\n txtB9AK10_8.setMaxDigit('2');\n txtB9AK10_8.setMinDigit('1');\n txtB9AK10_8.addFocusListener(new java.awt.event.FocusAdapter() {\n public void focusGained(java.awt.event.FocusEvent evt) {\n focusTxt(evt);\n }\n });\n panelTransparan187.add(txtB9AK10_8);\n\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 9;\n gridBagConstraints.gridy = 15;\n gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;\n panelTabel.add(panelTransparan187, gridBagConstraints);\n\n txtB9AK11_8.setColumns(2);\n txtB9AK11_8.setMaxDigit('2');\n txtB9AK11_8.setMinDigit('1');\n txtB9AK11_8.addFocusListener(new java.awt.event.FocusAdapter() {\n public void focusGained(java.awt.event.FocusEvent evt) {\n focusTxt(evt);\n }\n });\n panelTransparan188.add(txtB9AK11_8);\n\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 10;\n gridBagConstraints.gridy = 15;\n gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;\n panelTabel.add(panelTransparan188, gridBagConstraints);\n\n panelTransparan189.setAlpha(70);\n panelTransparan189.setLayout(new java.awt.GridBagLayout());\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 11;\n gridBagConstraints.gridy = 15;\n gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;\n panelTabel.add(panelTransparan189, gridBagConstraints);\n\n txtB9AK13_8.setColumns(2);\n txtB9AK13_8.setMaxDigit('2');\n txtB9AK13_8.setMinDigit('1');\n txtB9AK13_8.addFocusListener(new java.awt.event.FocusAdapter() {\n public void focusGained(java.awt.event.FocusEvent evt) {\n focusTxt(evt);\n }\n });\n panelTransparan190.add(txtB9AK13_8);\n\n txtB9AK13_8Als.setColumns(3);\n txtB9AK13_8Als.addFocusListener(new java.awt.event.FocusAdapter() {\n public void focusGained(java.awt.event.FocusEvent evt) {\n focusTxt(evt);\n }\n });\n panelTransparan190.add(txtB9AK13_8Als);\n\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 12;\n gridBagConstraints.gridy = 15;\n gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;\n panelTabel.add(panelTransparan190, gridBagConstraints);\n\n panelTransparan196.setLayout(new java.awt.GridBagLayout());\n\n label102.setText(\"9\"); // NOI18N\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.insets = new java.awt.Insets(2, 2, 2, 2);\n panelTransparan196.add(label102, gridBagConstraints);\n\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 0;\n gridBagConstraints.gridy = 16;\n gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;\n panelTabel.add(panelTransparan196, gridBagConstraints);\n\n txtB9AK2_9.setColumns(3);\n txtB9AK2_9.setLength(2);\n txtB9AK2_9.addFocusListener(new java.awt.event.FocusAdapter() {\n public void focusLost(java.awt.event.FocusEvent evt) {\n focusTxt(evt);\n }\n });\n panelTransparan197.add(txtB9AK2_9);\n\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 1;\n gridBagConstraints.gridy = 16;\n gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;\n panelTabel.add(panelTransparan197, gridBagConstraints);\n\n panelTransparan198.setAlpha(70);\n panelTransparan198.setLayout(new java.awt.GridBagLayout());\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 3;\n gridBagConstraints.gridy = 16;\n gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;\n panelTabel.add(panelTransparan198, gridBagConstraints);\n\n panelTransparan199.setAlpha(70);\n panelTransparan199.setLayout(new java.awt.GridBagLayout());\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 2;\n gridBagConstraints.gridy = 16;\n gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;\n panelTabel.add(panelTransparan199, gridBagConstraints);\n\n txtB9AK5_9.setColumns(2);\n txtB9AK5_9.setMaxDigit('2');\n txtB9AK5_9.setMinDigit('1');\n txtB9AK5_9.addFocusListener(new java.awt.event.FocusAdapter() {\n public void focusGained(java.awt.event.FocusEvent evt) {\n focusTxt(evt);\n }\n });\n panelTransparan200.add(txtB9AK5_9);\n\n txtB9AK5_9Als.setColumns(3);\n txtB9AK5_9Als.addFocusListener(new java.awt.event.FocusAdapter() {\n public void focusGained(java.awt.event.FocusEvent evt) {\n focusTxt(evt);\n }\n });\n panelTransparan200.add(txtB9AK5_9Als);\n\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 4;\n gridBagConstraints.gridy = 16;\n gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;\n panelTabel.add(panelTransparan200, gridBagConstraints);\n\n txtB9AK6_9.setColumns(2);\n txtB9AK6_9.setMaxDigit('2');\n txtB9AK6_9.setMinDigit('1');\n txtB9AK6_9.addFocusListener(new java.awt.event.FocusAdapter() {\n public void focusGained(java.awt.event.FocusEvent evt) {\n focusTxt(evt);\n }\n });\n panelTransparan201.add(txtB9AK6_9);\n\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 5;\n gridBagConstraints.gridy = 16;\n gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;\n panelTabel.add(panelTransparan201, gridBagConstraints);\n\n txtB9AK7_9.setColumns(2);\n txtB9AK7_9.setMaxDigit('2');\n txtB9AK7_9.setMinDigit('1');\n txtB9AK7_9.addFocusListener(new java.awt.event.FocusAdapter() {\n public void focusGained(java.awt.event.FocusEvent evt) {\n focusTxt(evt);\n }\n });\n panelTransparan202.add(txtB9AK7_9);\n\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 6;\n gridBagConstraints.gridy = 16;\n gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;\n panelTabel.add(panelTransparan202, gridBagConstraints);\n\n txtB9AK8_9.setColumns(2);\n txtB9AK8_9.setMaxDigit('2');\n txtB9AK8_9.setMinDigit('1');\n txtB9AK8_9.addFocusListener(new java.awt.event.FocusAdapter() {\n public void focusGained(java.awt.event.FocusEvent evt) {\n focusTxt(evt);\n }\n });\n panelTransparan203.add(txtB9AK8_9);\n\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 7;\n gridBagConstraints.gridy = 16;\n gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;\n panelTabel.add(panelTransparan203, gridBagConstraints);\n\n txtB9AK9_9.setColumns(2);\n txtB9AK9_9.setMaxDigit('2');\n txtB9AK9_9.setMinDigit('1');\n txtB9AK9_9.addFocusListener(new java.awt.event.FocusAdapter() {\n public void focusGained(java.awt.event.FocusEvent evt) {\n focusTxt(evt);\n }\n });\n panelTransparan204.add(txtB9AK9_9);\n\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 8;\n gridBagConstraints.gridy = 16;\n gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;\n panelTabel.add(panelTransparan204, gridBagConstraints);\n\n txtB9AK10_9.setColumns(2);\n txtB9AK10_9.setMaxDigit('2');\n txtB9AK10_9.setMinDigit('1');\n txtB9AK10_9.addFocusListener(new java.awt.event.FocusAdapter() {\n public void focusGained(java.awt.event.FocusEvent evt) {\n focusTxt(evt);\n }\n });\n panelTransparan205.add(txtB9AK10_9);\n\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 9;\n gridBagConstraints.gridy = 16;\n gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;\n panelTabel.add(panelTransparan205, gridBagConstraints);\n\n txtB9AK11_9.setColumns(2);\n txtB9AK11_9.setMaxDigit('2');\n txtB9AK11_9.setMinDigit('1');\n txtB9AK11_9.addFocusListener(new java.awt.event.FocusAdapter() {\n public void focusGained(java.awt.event.FocusEvent evt) {\n focusTxt(evt);\n }\n });\n panelTransparan206.add(txtB9AK11_9);\n\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 10;\n gridBagConstraints.gridy = 16;\n gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;\n panelTabel.add(panelTransparan206, gridBagConstraints);\n\n panelTransparan207.setAlpha(70);\n panelTransparan207.setLayout(new java.awt.GridBagLayout());\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 11;\n gridBagConstraints.gridy = 16;\n gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;\n panelTabel.add(panelTransparan207, gridBagConstraints);\n\n txtB9AK13_9.setColumns(2);\n txtB9AK13_9.setMaxDigit('2');\n txtB9AK13_9.setMinDigit('1');\n txtB9AK13_9.addFocusListener(new java.awt.event.FocusAdapter() {\n public void focusGained(java.awt.event.FocusEvent evt) {\n focusTxt(evt);\n }\n });\n panelTransparan208.add(txtB9AK13_9);\n\n txtB9AK13_9Als.setColumns(3);\n txtB9AK13_9Als.addFocusListener(new java.awt.event.FocusAdapter() {\n public void focusGained(java.awt.event.FocusEvent evt) {\n focusTxt(evt);\n }\n });\n panelTransparan208.add(txtB9AK13_9Als);\n\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 12;\n gridBagConstraints.gridy = 16;\n gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;\n panelTabel.add(panelTransparan208, gridBagConstraints);\n\n panelTransparan214.setLayout(new java.awt.GridBagLayout());\n\n label103.setText(\"10\"); // NOI18N\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.insets = new java.awt.Insets(2, 2, 2, 2);\n panelTransparan214.add(label103, gridBagConstraints);\n\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 0;\n gridBagConstraints.gridy = 18;\n gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;\n panelTabel.add(panelTransparan214, gridBagConstraints);\n\n txtB9AK2_10.setColumns(3);\n txtB9AK2_10.setLength(2);\n txtB9AK2_10.addFocusListener(new java.awt.event.FocusAdapter() {\n public void focusLost(java.awt.event.FocusEvent evt) {\n focusTxt(evt);\n }\n });\n panelTransparan215.add(txtB9AK2_10);\n\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 1;\n gridBagConstraints.gridy = 18;\n gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;\n panelTabel.add(panelTransparan215, gridBagConstraints);\n\n panelTransparan216.setAlpha(70);\n panelTransparan216.setLayout(new java.awt.GridBagLayout());\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 3;\n gridBagConstraints.gridy = 18;\n gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;\n panelTabel.add(panelTransparan216, gridBagConstraints);\n\n panelTransparan217.setAlpha(70);\n panelTransparan217.setLayout(new java.awt.GridBagLayout());\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 2;\n gridBagConstraints.gridy = 18;\n gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;\n panelTabel.add(panelTransparan217, gridBagConstraints);\n\n txtB9AK5_10.setColumns(2);\n txtB9AK5_10.setMaxDigit('2');\n txtB9AK5_10.setMinDigit('1');\n txtB9AK5_10.addFocusListener(new java.awt.event.FocusAdapter() {\n public void focusGained(java.awt.event.FocusEvent evt) {\n focusTxt(evt);\n }\n });\n panelTransparan218.add(txtB9AK5_10);\n\n txtB9AK5_10Als.setColumns(3);\n txtB9AK5_10Als.addFocusListener(new java.awt.event.FocusAdapter() {\n public void focusGained(java.awt.event.FocusEvent evt) {\n focusTxt(evt);\n }\n });\n panelTransparan218.add(txtB9AK5_10Als);\n\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 4;\n gridBagConstraints.gridy = 18;\n gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;\n panelTabel.add(panelTransparan218, gridBagConstraints);\n\n txtB9AK6_10.setColumns(2);\n txtB9AK6_10.setMaxDigit('2');\n txtB9AK6_10.setMinDigit('1');\n txtB9AK6_10.addFocusListener(new java.awt.event.FocusAdapter() {\n public void focusGained(java.awt.event.FocusEvent evt) {\n focusTxt(evt);\n }\n });\n panelTransparan219.add(txtB9AK6_10);\n\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 5;\n gridBagConstraints.gridy = 18;\n gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;\n panelTabel.add(panelTransparan219, gridBagConstraints);\n\n txtB9AK7_10.setColumns(2);\n txtB9AK7_10.setMaxDigit('2');\n txtB9AK7_10.setMinDigit('1');\n txtB9AK7_10.addFocusListener(new java.awt.event.FocusAdapter() {\n public void focusGained(java.awt.event.FocusEvent evt) {\n focusTxt(evt);\n }\n });\n panelTransparan220.add(txtB9AK7_10);\n\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 6;\n gridBagConstraints.gridy = 18;\n gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;\n panelTabel.add(panelTransparan220, gridBagConstraints);\n\n txtB9AK8_10.setColumns(2);\n txtB9AK8_10.setMaxDigit('2');\n txtB9AK8_10.setMinDigit('1');\n txtB9AK8_10.addFocusListener(new java.awt.event.FocusAdapter() {\n public void focusGained(java.awt.event.FocusEvent evt) {\n focusTxt(evt);\n }\n });\n panelTransparan221.add(txtB9AK8_10);\n\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 7;\n gridBagConstraints.gridy = 18;\n gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;\n panelTabel.add(panelTransparan221, gridBagConstraints);\n\n txtB9AK9_10.setColumns(2);\n txtB9AK9_10.setMaxDigit('2');\n txtB9AK9_10.setMinDigit('1');\n txtB9AK9_10.addFocusListener(new java.awt.event.FocusAdapter() {\n public void focusGained(java.awt.event.FocusEvent evt) {\n focusTxt(evt);\n }\n });\n panelTransparan222.add(txtB9AK9_10);\n\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 8;\n gridBagConstraints.gridy = 18;\n gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;\n panelTabel.add(panelTransparan222, gridBagConstraints);\n\n txtB9AK10_10.setColumns(2);\n txtB9AK10_10.setMaxDigit('2');\n txtB9AK10_10.setMinDigit('1');\n txtB9AK10_10.addFocusListener(new java.awt.event.FocusAdapter() {\n public void focusGained(java.awt.event.FocusEvent evt) {\n focusTxt(evt);\n }\n });\n panelTransparan223.add(txtB9AK10_10);\n\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 9;\n gridBagConstraints.gridy = 18;\n gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;\n panelTabel.add(panelTransparan223, gridBagConstraints);\n\n txtB9AK11_10.setColumns(2);\n txtB9AK11_10.setMaxDigit('2');\n txtB9AK11_10.setMinDigit('1');\n txtB9AK11_10.addFocusListener(new java.awt.event.FocusAdapter() {\n public void focusGained(java.awt.event.FocusEvent evt) {\n focusTxt(evt);\n }\n });\n panelTransparan224.add(txtB9AK11_10);\n\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 10;\n gridBagConstraints.gridy = 18;\n gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;\n panelTabel.add(panelTransparan224, gridBagConstraints);\n\n panelTransparan225.setAlpha(70);\n panelTransparan225.setLayout(new java.awt.GridBagLayout());\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 11;\n gridBagConstraints.gridy = 18;\n gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;\n panelTabel.add(panelTransparan225, gridBagConstraints);\n\n txtB9AK13_10.setColumns(2);\n txtB9AK13_10.setMaxDigit('2');\n txtB9AK13_10.setMinDigit('1');\n txtB9AK13_10.addFocusListener(new java.awt.event.FocusAdapter() {\n public void focusGained(java.awt.event.FocusEvent evt) {\n focusTxt(evt);\n }\n });\n panelTransparan226.add(txtB9AK13_10);\n\n txtB9AK13_10Als.setColumns(3);\n txtB9AK13_10Als.addFocusListener(new java.awt.event.FocusAdapter() {\n public void focusGained(java.awt.event.FocusEvent evt) {\n focusTxt(evt);\n }\n });\n panelTransparan226.add(txtB9AK13_10Als);\n\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 12;\n gridBagConstraints.gridy = 18;\n gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;\n panelTabel.add(panelTransparan226, gridBagConstraints);\n\n panelTransparan227.setLayout(new java.awt.GridBagLayout());\n\n label108.setText(\"11\"); // NOI18N\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.insets = new java.awt.Insets(2, 2, 2, 2);\n panelTransparan227.add(label108, gridBagConstraints);\n\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 0;\n gridBagConstraints.gridy = 20;\n gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;\n panelTabel.add(panelTransparan227, gridBagConstraints);\n\n txtB9AK2_11.setColumns(3);\n txtB9AK2_11.setLength(2);\n txtB9AK2_11.addFocusListener(new java.awt.event.FocusAdapter() {\n public void focusLost(java.awt.event.FocusEvent evt) {\n focusTxt(evt);\n }\n });\n panelTransparan228.add(txtB9AK2_11);\n\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 1;\n gridBagConstraints.gridy = 20;\n gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;\n panelTabel.add(panelTransparan228, gridBagConstraints);\n\n panelTransparan229.setAlpha(70);\n panelTransparan229.setLayout(new java.awt.GridBagLayout());\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 2;\n gridBagConstraints.gridy = 20;\n gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;\n panelTabel.add(panelTransparan229, gridBagConstraints);\n\n panelTransparan230.setAlpha(70);\n panelTransparan230.setLayout(new java.awt.GridBagLayout());\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 3;\n gridBagConstraints.gridy = 20;\n gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;\n panelTabel.add(panelTransparan230, gridBagConstraints);\n\n txtB9AK5_11.setColumns(2);\n txtB9AK5_11.setMaxDigit('2');\n txtB9AK5_11.setMinDigit('1');\n txtB9AK5_11.addFocusListener(new java.awt.event.FocusAdapter() {\n public void focusGained(java.awt.event.FocusEvent evt) {\n focusTxt(evt);\n }\n });\n panelTransparan231.add(txtB9AK5_11);\n\n txtB9AK5_11Als.setColumns(3);\n txtB9AK5_11Als.addFocusListener(new java.awt.event.FocusAdapter() {\n public void focusGained(java.awt.event.FocusEvent evt) {\n focusTxt(evt);\n }\n });\n panelTransparan231.add(txtB9AK5_11Als);\n\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 4;\n gridBagConstraints.gridy = 20;\n gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;\n panelTabel.add(panelTransparan231, gridBagConstraints);\n\n txtB9AK6_11.setColumns(2);\n txtB9AK6_11.setMaxDigit('2');\n txtB9AK6_11.setMinDigit('1');\n txtB9AK6_11.addFocusListener(new java.awt.event.FocusAdapter() {\n public void focusGained(java.awt.event.FocusEvent evt) {\n focusTxt(evt);\n }\n });\n panelTransparan232.add(txtB9AK6_11);\n\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 5;\n gridBagConstraints.gridy = 20;\n gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;\n panelTabel.add(panelTransparan232, gridBagConstraints);\n\n txtB9AK7_11.setColumns(2);\n txtB9AK7_11.setMaxDigit('2');\n txtB9AK7_11.setMinDigit('1');\n txtB9AK7_11.addFocusListener(new java.awt.event.FocusAdapter() {\n public void focusGained(java.awt.event.FocusEvent evt) {\n focusTxt(evt);\n }\n });\n panelTransparan233.add(txtB9AK7_11);\n\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 6;\n gridBagConstraints.gridy = 20;\n gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;\n panelTabel.add(panelTransparan233, gridBagConstraints);\n\n txtB9AK8_11.setColumns(2);\n txtB9AK8_11.setMaxDigit('2');\n txtB9AK8_11.setMinDigit('1');\n txtB9AK8_11.addFocusListener(new java.awt.event.FocusAdapter() {\n public void focusGained(java.awt.event.FocusEvent evt) {\n focusTxt(evt);\n }\n });\n panelTransparan234.add(txtB9AK8_11);\n\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 7;\n gridBagConstraints.gridy = 20;\n gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;\n panelTabel.add(panelTransparan234, gridBagConstraints);\n\n txtB9AK9_11.setColumns(2);\n txtB9AK9_11.setMaxDigit('2');\n txtB9AK9_11.setMinDigit('1');\n txtB9AK9_11.addFocusListener(new java.awt.event.FocusAdapter() {\n public void focusGained(java.awt.event.FocusEvent evt) {\n focusTxt(evt);\n }\n });\n panelTransparan235.add(txtB9AK9_11);\n\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 8;\n gridBagConstraints.gridy = 20;\n gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;\n panelTabel.add(panelTransparan235, gridBagConstraints);\n\n txtB9AK10_11.setColumns(2);\n txtB9AK10_11.setMaxDigit('2');\n txtB9AK10_11.setMinDigit('1');\n txtB9AK10_11.addFocusListener(new java.awt.event.FocusAdapter() {\n public void focusGained(java.awt.event.FocusEvent evt) {\n focusTxt(evt);\n }\n });\n panelTransparan236.add(txtB9AK10_11);\n\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 9;\n gridBagConstraints.gridy = 20;\n gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;\n panelTabel.add(panelTransparan236, gridBagConstraints);\n\n txtB9AK11_11.setColumns(2);\n txtB9AK11_11.setMaxDigit('2');\n txtB9AK11_11.setMinDigit('1');\n txtB9AK11_11.addFocusListener(new java.awt.event.FocusAdapter() {\n public void focusGained(java.awt.event.FocusEvent evt) {\n focusTxt(evt);\n }\n });\n panelTransparan237.add(txtB9AK11_11);\n\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 10;\n gridBagConstraints.gridy = 20;\n gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;\n panelTabel.add(panelTransparan237, gridBagConstraints);\n\n panelTransparan238.setAlpha(70);\n panelTransparan238.setLayout(new java.awt.GridBagLayout());\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 11;\n gridBagConstraints.gridy = 20;\n gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;\n panelTabel.add(panelTransparan238, gridBagConstraints);\n\n txtB9AK13_11.setColumns(2);\n txtB9AK13_11.setMaxDigit('2');\n txtB9AK13_11.setMinDigit('1');\n txtB9AK13_11.addFocusListener(new java.awt.event.FocusAdapter() {\n public void focusGained(java.awt.event.FocusEvent evt) {\n focusTxt(evt);\n }\n });\n panelTransparan239.add(txtB9AK13_11);\n\n txtB9AK13_11Als.setColumns(3);\n txtB9AK13_11Als.addFocusListener(new java.awt.event.FocusAdapter() {\n public void focusGained(java.awt.event.FocusEvent evt) {\n focusTxt(evt);\n }\n });\n panelTransparan239.add(txtB9AK13_11Als);\n\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 12;\n gridBagConstraints.gridy = 20;\n gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;\n panelTabel.add(panelTransparan239, gridBagConstraints);\n\n panelTransparan240.setLayout(new java.awt.GridBagLayout());\n\n label109.setText(\"12\"); // NOI18N\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.insets = new java.awt.Insets(2, 2, 2, 2);\n panelTransparan240.add(label109, gridBagConstraints);\n\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 0;\n gridBagConstraints.gridy = 21;\n gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;\n panelTabel.add(panelTransparan240, gridBagConstraints);\n\n txtB9AK2_12.setColumns(3);\n txtB9AK2_12.setLength(2);\n txtB9AK2_12.addFocusListener(new java.awt.event.FocusAdapter() {\n public void focusLost(java.awt.event.FocusEvent evt) {\n focusTxt(evt);\n }\n });\n panelTransparan241.add(txtB9AK2_12);\n\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 1;\n gridBagConstraints.gridy = 21;\n gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;\n panelTabel.add(panelTransparan241, gridBagConstraints);\n\n panelTransparan242.setAlpha(70);\n panelTransparan242.setLayout(new java.awt.GridBagLayout());\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 2;\n gridBagConstraints.gridy = 21;\n gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;\n panelTabel.add(panelTransparan242, gridBagConstraints);\n\n txtB9AK5_12.setColumns(2);\n txtB9AK5_12.setMaxDigit('2');\n txtB9AK5_12.setMinDigit('1');\n txtB9AK5_12.addFocusListener(new java.awt.event.FocusAdapter() {\n public void focusGained(java.awt.event.FocusEvent evt) {\n focusTxt(evt);\n }\n });\n panelTransparan243.add(txtB9AK5_12);\n\n txtB9AK5_12Als.setColumns(3);\n txtB9AK5_12Als.addFocusListener(new java.awt.event.FocusAdapter() {\n public void focusGained(java.awt.event.FocusEvent evt) {\n focusTxt(evt);\n }\n });\n panelTransparan243.add(txtB9AK5_12Als);\n\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 4;\n gridBagConstraints.gridy = 21;\n gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;\n panelTabel.add(panelTransparan243, gridBagConstraints);\n\n txtB9AK6_12.setColumns(2);\n txtB9AK6_12.setMaxDigit('2');\n txtB9AK6_12.setMinDigit('1');\n txtB9AK6_12.addFocusListener(new java.awt.event.FocusAdapter() {\n public void focusGained(java.awt.event.FocusEvent evt) {\n focusTxt(evt);\n }\n });\n panelTransparan244.add(txtB9AK6_12);\n\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 5;\n gridBagConstraints.gridy = 21;\n gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;\n panelTabel.add(panelTransparan244, gridBagConstraints);\n\n txtB9AK7_12.setColumns(2);\n txtB9AK7_12.setMaxDigit('2');\n txtB9AK7_12.setMinDigit('1');\n txtB9AK7_12.addFocusListener(new java.awt.event.FocusAdapter() {\n public void focusGained(java.awt.event.FocusEvent evt) {\n focusTxt(evt);\n }\n });\n panelTransparan245.add(txtB9AK7_12);\n\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 6;\n gridBagConstraints.gridy = 21;\n gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;\n panelTabel.add(panelTransparan245, gridBagConstraints);\n\n panelTransparan246.setAlpha(70);\n panelTransparan246.setLayout(new java.awt.GridBagLayout());\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 3;\n gridBagConstraints.gridy = 21;\n gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;\n panelTabel.add(panelTransparan246, gridBagConstraints);\n\n txtB9AK8_12.setColumns(2);\n txtB9AK8_12.setMaxDigit('2');\n txtB9AK8_12.setMinDigit('1');\n txtB9AK8_12.addFocusListener(new java.awt.event.FocusAdapter() {\n public void focusGained(java.awt.event.FocusEvent evt) {\n focusTxt(evt);\n }\n });\n panelTransparan247.add(txtB9AK8_12);\n\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 7;\n gridBagConstraints.gridy = 21;\n gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;\n panelTabel.add(panelTransparan247, gridBagConstraints);\n\n txtB9AK9_12.setColumns(2);\n txtB9AK9_12.setMaxDigit('2');\n txtB9AK9_12.setMinDigit('1');\n txtB9AK9_12.addFocusListener(new java.awt.event.FocusAdapter() {\n public void focusGained(java.awt.event.FocusEvent evt) {\n focusTxt(evt);\n }\n });\n panelTransparan248.add(txtB9AK9_12);\n\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 8;\n gridBagConstraints.gridy = 21;\n gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;\n panelTabel.add(panelTransparan248, gridBagConstraints);\n\n txtB9AK10_12.setColumns(2);\n txtB9AK10_12.setMaxDigit('2');\n txtB9AK10_12.setMinDigit('1');\n txtB9AK10_12.addFocusListener(new java.awt.event.FocusAdapter() {\n public void focusGained(java.awt.event.FocusEvent evt) {\n focusTxt(evt);\n }\n });\n panelTransparan249.add(txtB9AK10_12);\n\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 9;\n gridBagConstraints.gridy = 21;\n gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;\n panelTabel.add(panelTransparan249, gridBagConstraints);\n\n txtB9AK11_12.setColumns(2);\n txtB9AK11_12.setMaxDigit('2');\n txtB9AK11_12.setMinDigit('1');\n txtB9AK11_12.addFocusListener(new java.awt.event.FocusAdapter() {\n public void focusGained(java.awt.event.FocusEvent evt) {\n focusTxt(evt);\n }\n });\n panelTransparan250.add(txtB9AK11_12);\n\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 10;\n gridBagConstraints.gridy = 21;\n gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;\n panelTabel.add(panelTransparan250, gridBagConstraints);\n\n panelTransparan251.setAlpha(70);\n panelTransparan251.setLayout(new java.awt.GridBagLayout());\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 11;\n gridBagConstraints.gridy = 21;\n gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;\n panelTabel.add(panelTransparan251, gridBagConstraints);\n\n txtB9AK13_12.setColumns(2);\n txtB9AK13_12.setMaxDigit('2');\n txtB9AK13_12.setMinDigit('1');\n txtB9AK13_12.addFocusListener(new java.awt.event.FocusAdapter() {\n public void focusGained(java.awt.event.FocusEvent evt) {\n focusTxt(evt);\n }\n });\n panelTransparan252.add(txtB9AK13_12);\n\n txtB9AK13_12Als.setColumns(3);\n txtB9AK13_12Als.addFocusListener(new java.awt.event.FocusAdapter() {\n public void focusGained(java.awt.event.FocusEvent evt) {\n focusTxt(evt);\n }\n });\n panelTransparan252.add(txtB9AK13_12Als);\n\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 12;\n gridBagConstraints.gridy = 21;\n gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;\n panelTabel.add(panelTransparan252, gridBagConstraints);\n\n panelTransparan253.setLayout(new java.awt.GridBagLayout());\n\n label110.setText(\"13\"); // NOI18N\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.insets = new java.awt.Insets(2, 2, 2, 2);\n panelTransparan253.add(label110, gridBagConstraints);\n\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 0;\n gridBagConstraints.gridy = 22;\n gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;\n panelTabel.add(panelTransparan253, gridBagConstraints);\n\n txtB9AK2_13.setColumns(3);\n txtB9AK2_13.setLength(2);\n txtB9AK2_13.addFocusListener(new java.awt.event.FocusAdapter() {\n public void focusLost(java.awt.event.FocusEvent evt) {\n focusTxt(evt);\n }\n });\n panelTransparan254.add(txtB9AK2_13);\n\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 1;\n gridBagConstraints.gridy = 22;\n gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;\n panelTabel.add(panelTransparan254, gridBagConstraints);\n\n panelTransparan255.setAlpha(70);\n panelTransparan255.setLayout(new java.awt.GridBagLayout());\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 2;\n gridBagConstraints.gridy = 22;\n gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;\n panelTabel.add(panelTransparan255, gridBagConstraints);\n\n txtB9AK5_13.setColumns(2);\n txtB9AK5_13.setMaxDigit('2');\n txtB9AK5_13.setMinDigit('1');\n txtB9AK5_13.addFocusListener(new java.awt.event.FocusAdapter() {\n public void focusGained(java.awt.event.FocusEvent evt) {\n focusTxt(evt);\n }\n });\n panelTransparan256.add(txtB9AK5_13);\n\n txtB9AK5_13Als.setColumns(3);\n txtB9AK5_13Als.addFocusListener(new java.awt.event.FocusAdapter() {\n public void focusGained(java.awt.event.FocusEvent evt) {\n focusTxt(evt);\n }\n });\n panelTransparan256.add(txtB9AK5_13Als);\n\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 4;\n gridBagConstraints.gridy = 22;\n gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;\n panelTabel.add(panelTransparan256, gridBagConstraints);\n\n txtB9AK6_13.setColumns(2);\n txtB9AK6_13.setMaxDigit('2');\n txtB9AK6_13.setMinDigit('1');\n txtB9AK6_13.addFocusListener(new java.awt.event.FocusAdapter() {\n public void focusGained(java.awt.event.FocusEvent evt) {\n focusTxt(evt);\n }\n });\n panelTransparan257.add(txtB9AK6_13);\n\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 5;\n gridBagConstraints.gridy = 22;\n gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;\n panelTabel.add(panelTransparan257, gridBagConstraints);\n\n txtB9AK7_13.setColumns(2);\n txtB9AK7_13.setMaxDigit('2');\n txtB9AK7_13.setMinDigit('1');\n txtB9AK7_13.addFocusListener(new java.awt.event.FocusAdapter() {\n public void focusGained(java.awt.event.FocusEvent evt) {\n focusTxt(evt);\n }\n });\n panelTransparan258.add(txtB9AK7_13);\n\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 6;\n gridBagConstraints.gridy = 22;\n gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;\n panelTabel.add(panelTransparan258, gridBagConstraints);\n\n panelTransparan259.setAlpha(70);\n panelTransparan259.setLayout(new java.awt.GridBagLayout());\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 3;\n gridBagConstraints.gridy = 22;\n gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;\n panelTabel.add(panelTransparan259, gridBagConstraints);\n\n txtB9AK8_13.setColumns(2);\n txtB9AK8_13.setMaxDigit('2');\n txtB9AK8_13.setMinDigit('1');\n txtB9AK8_13.addFocusListener(new java.awt.event.FocusAdapter() {\n public void focusGained(java.awt.event.FocusEvent evt) {\n focusTxt(evt);\n }\n });\n panelTransparan260.add(txtB9AK8_13);\n\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 7;\n gridBagConstraints.gridy = 22;\n gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;\n panelTabel.add(panelTransparan260, gridBagConstraints);\n\n txtB9AK9_13.setColumns(2);\n txtB9AK9_13.setMaxDigit('2');\n txtB9AK9_13.setMinDigit('1');\n txtB9AK9_13.addFocusListener(new java.awt.event.FocusAdapter() {\n public void focusGained(java.awt.event.FocusEvent evt) {\n focusTxt(evt);\n }\n });\n panelTransparan261.add(txtB9AK9_13);\n\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 8;\n gridBagConstraints.gridy = 22;\n gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;\n panelTabel.add(panelTransparan261, gridBagConstraints);\n\n txtB9AK10_13.setColumns(2);\n txtB9AK10_13.setMaxDigit('2');\n txtB9AK10_13.setMinDigit('1');\n txtB9AK10_13.addFocusListener(new java.awt.event.FocusAdapter() {\n public void focusGained(java.awt.event.FocusEvent evt) {\n focusTxt(evt);\n }\n });\n panelTransparan262.add(txtB9AK10_13);\n\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 9;\n gridBagConstraints.gridy = 22;\n gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;\n panelTabel.add(panelTransparan262, gridBagConstraints);\n\n txtB9AK11_13.setColumns(2);\n txtB9AK11_13.setMaxDigit('2');\n txtB9AK11_13.setMinDigit('1');\n txtB9AK11_13.addFocusListener(new java.awt.event.FocusAdapter() {\n public void focusGained(java.awt.event.FocusEvent evt) {\n focusTxt(evt);\n }\n });\n panelTransparan263.add(txtB9AK11_13);\n\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 10;\n gridBagConstraints.gridy = 22;\n gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;\n panelTabel.add(panelTransparan263, gridBagConstraints);\n\n panelTransparan264.setAlpha(70);\n panelTransparan264.setLayout(new java.awt.GridBagLayout());\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 11;\n gridBagConstraints.gridy = 22;\n gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;\n panelTabel.add(panelTransparan264, gridBagConstraints);\n\n txtB9AK13_13.setColumns(2);\n txtB9AK13_13.setMaxDigit('2');\n txtB9AK13_13.setMinDigit('1');\n txtB9AK13_13.addFocusListener(new java.awt.event.FocusAdapter() {\n public void focusGained(java.awt.event.FocusEvent evt) {\n focusTxt(evt);\n }\n });\n panelTransparan265.add(txtB9AK13_13);\n\n txtB9AK13_13Als.setColumns(3);\n txtB9AK13_13Als.addFocusListener(new java.awt.event.FocusAdapter() {\n public void focusGained(java.awt.event.FocusEvent evt) {\n focusTxt(evt);\n }\n });\n panelTransparan265.add(txtB9AK13_13Als);\n\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 12;\n gridBagConstraints.gridy = 22;\n gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;\n panelTabel.add(panelTransparan265, gridBagConstraints);\n\n panelTransparan266.setLayout(new java.awt.GridBagLayout());\n\n label111.setText(\"14\"); // NOI18N\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.insets = new java.awt.Insets(2, 2, 2, 2);\n panelTransparan266.add(label111, gridBagConstraints);\n\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 0;\n gridBagConstraints.gridy = 24;\n gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;\n panelTabel.add(panelTransparan266, gridBagConstraints);\n\n txtB9AK2_14.setColumns(3);\n txtB9AK2_14.setLength(2);\n txtB9AK2_14.addFocusListener(new java.awt.event.FocusAdapter() {\n public void focusLost(java.awt.event.FocusEvent evt) {\n focusTxt(evt);\n }\n });\n panelTransparan267.add(txtB9AK2_14);\n\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 1;\n gridBagConstraints.gridy = 24;\n gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;\n panelTabel.add(panelTransparan267, gridBagConstraints);\n\n panelTransparan268.setAlpha(70);\n panelTransparan268.setLayout(new java.awt.GridBagLayout());\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 2;\n gridBagConstraints.gridy = 24;\n gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;\n panelTabel.add(panelTransparan268, gridBagConstraints);\n\n txtB9AK5_14.setColumns(2);\n txtB9AK5_14.setMaxDigit('2');\n txtB9AK5_14.setMinDigit('1');\n txtB9AK5_14.addFocusListener(new java.awt.event.FocusAdapter() {\n public void focusGained(java.awt.event.FocusEvent evt) {\n focusTxt(evt);\n }\n });\n panelTransparan269.add(txtB9AK5_14);\n\n txtB9AK5_14Als.setColumns(3);\n txtB9AK5_14Als.addFocusListener(new java.awt.event.FocusAdapter() {\n public void focusGained(java.awt.event.FocusEvent evt) {\n focusTxt(evt);\n }\n });\n panelTransparan269.add(txtB9AK5_14Als);\n\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 4;\n gridBagConstraints.gridy = 24;\n gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;\n panelTabel.add(panelTransparan269, gridBagConstraints);\n\n txtB9AK6_14.setColumns(2);\n txtB9AK6_14.setMaxDigit('2');\n txtB9AK6_14.setMinDigit('1');\n txtB9AK6_14.addFocusListener(new java.awt.event.FocusAdapter() {\n public void focusGained(java.awt.event.FocusEvent evt) {\n focusTxt(evt);\n }\n });\n panelTransparan270.add(txtB9AK6_14);\n\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 5;\n gridBagConstraints.gridy = 24;\n gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;\n panelTabel.add(panelTransparan270, gridBagConstraints);\n\n txtB9AK7_14.setColumns(2);\n txtB9AK7_14.setMaxDigit('2');\n txtB9AK7_14.setMinDigit('1');\n txtB9AK7_14.addFocusListener(new java.awt.event.FocusAdapter() {\n public void focusGained(java.awt.event.FocusEvent evt) {\n focusTxt(evt);\n }\n });\n panelTransparan271.add(txtB9AK7_14);\n\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 6;\n gridBagConstraints.gridy = 24;\n gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;\n panelTabel.add(panelTransparan271, gridBagConstraints);\n\n panelTransparan272.setAlpha(70);\n panelTransparan272.setLayout(new java.awt.GridBagLayout());\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 3;\n gridBagConstraints.gridy = 24;\n gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;\n panelTabel.add(panelTransparan272, gridBagConstraints);\n\n txtB9AK8_14.setColumns(2);\n txtB9AK8_14.setMaxDigit('2');\n txtB9AK8_14.setMinDigit('1');\n txtB9AK8_14.addFocusListener(new java.awt.event.FocusAdapter() {\n public void focusGained(java.awt.event.FocusEvent evt) {\n focusTxt(evt);\n }\n });\n panelTransparan273.add(txtB9AK8_14);\n\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 7;\n gridBagConstraints.gridy = 24;\n gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;\n panelTabel.add(panelTransparan273, gridBagConstraints);\n\n txtB9AK9_14.setColumns(2);\n txtB9AK9_14.setMaxDigit('2');\n txtB9AK9_14.setMinDigit('1');\n txtB9AK9_14.addFocusListener(new java.awt.event.FocusAdapter() {\n public void focusGained(java.awt.event.FocusEvent evt) {\n focusTxt(evt);\n }\n });\n panelTransparan274.add(txtB9AK9_14);\n\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 8;\n gridBagConstraints.gridy = 24;\n gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;\n panelTabel.add(panelTransparan274, gridBagConstraints);\n\n txtB9AK10_14.setColumns(2);\n txtB9AK10_14.setMaxDigit('2');\n txtB9AK10_14.setMinDigit('1');\n txtB9AK10_14.addFocusListener(new java.awt.event.FocusAdapter() {\n public void focusGained(java.awt.event.FocusEvent evt) {\n focusTxt(evt);\n }\n });\n panelTransparan275.add(txtB9AK10_14);\n\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 9;\n gridBagConstraints.gridy = 24;\n gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;\n panelTabel.add(panelTransparan275, gridBagConstraints);\n\n txtB9AK11_14.setColumns(2);\n txtB9AK11_14.setMaxDigit('2');\n txtB9AK11_14.setMinDigit('1');\n txtB9AK11_14.addFocusListener(new java.awt.event.FocusAdapter() {\n public void focusGained(java.awt.event.FocusEvent evt) {\n focusTxt(evt);\n }\n });\n panelTransparan276.add(txtB9AK11_14);\n\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 10;\n gridBagConstraints.gridy = 24;\n gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;\n panelTabel.add(panelTransparan276, gridBagConstraints);\n\n panelTransparan277.setAlpha(70);\n panelTransparan277.setLayout(new java.awt.GridBagLayout());\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 11;\n gridBagConstraints.gridy = 24;\n gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;\n panelTabel.add(panelTransparan277, gridBagConstraints);\n\n txtB9AK13_14.setColumns(2);\n txtB9AK13_14.setMaxDigit('2');\n txtB9AK13_14.setMinDigit('1');\n txtB9AK13_14.addFocusListener(new java.awt.event.FocusAdapter() {\n public void focusGained(java.awt.event.FocusEvent evt) {\n focusTxt(evt);\n }\n });\n panelTransparan278.add(txtB9AK13_14);\n\n txtB9AK13_14Als.setColumns(3);\n txtB9AK13_14Als.addFocusListener(new java.awt.event.FocusAdapter() {\n public void focusGained(java.awt.event.FocusEvent evt) {\n focusTxt(evt);\n }\n });\n panelTransparan278.add(txtB9AK13_14Als);\n\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 12;\n gridBagConstraints.gridy = 24;\n gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;\n panelTabel.add(panelTransparan278, gridBagConstraints);\n\n panelTransparan279.setLayout(new java.awt.GridBagLayout());\n\n label112.setText(\"15\"); // NOI18N\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.insets = new java.awt.Insets(2, 2, 2, 2);\n panelTransparan279.add(label112, gridBagConstraints);\n\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 0;\n gridBagConstraints.gridy = 25;\n gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;\n panelTabel.add(panelTransparan279, gridBagConstraints);\n\n txtB9AK2_15.setColumns(3);\n txtB9AK2_15.setLength(2);\n txtB9AK2_15.addFocusListener(new java.awt.event.FocusAdapter() {\n public void focusLost(java.awt.event.FocusEvent evt) {\n focusTxt(evt);\n }\n });\n panelTransparan280.add(txtB9AK2_15);\n\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 1;\n gridBagConstraints.gridy = 25;\n gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;\n panelTabel.add(panelTransparan280, gridBagConstraints);\n\n panelTransparan281.setAlpha(70);\n panelTransparan281.setLayout(new java.awt.GridBagLayout());\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 2;\n gridBagConstraints.gridy = 25;\n gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;\n panelTabel.add(panelTransparan281, gridBagConstraints);\n\n panelTransparan282.setAlpha(70);\n panelTransparan282.setLayout(new java.awt.GridBagLayout());\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 3;\n gridBagConstraints.gridy = 25;\n gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;\n panelTabel.add(panelTransparan282, gridBagConstraints);\n\n txtB9AK5_15.setColumns(2);\n txtB9AK5_15.setMaxDigit('2');\n txtB9AK5_15.setMinDigit('1');\n txtB9AK5_15.addFocusListener(new java.awt.event.FocusAdapter() {\n public void focusGained(java.awt.event.FocusEvent evt) {\n focusTxt(evt);\n }\n });\n panelTransparan283.add(txtB9AK5_15);\n\n txtB9AK5_15Als.setColumns(3);\n txtB9AK5_15Als.addFocusListener(new java.awt.event.FocusAdapter() {\n public void focusGained(java.awt.event.FocusEvent evt) {\n focusTxt(evt);\n }\n });\n panelTransparan283.add(txtB9AK5_15Als);\n\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 4;\n gridBagConstraints.gridy = 25;\n gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;\n panelTabel.add(panelTransparan283, gridBagConstraints);\n\n txtB9AK6_15.setColumns(2);\n txtB9AK6_15.setMaxDigit('2');\n txtB9AK6_15.setMinDigit('1');\n txtB9AK6_15.addFocusListener(new java.awt.event.FocusAdapter() {\n public void focusGained(java.awt.event.FocusEvent evt) {\n focusTxt(evt);\n }\n });\n panelTransparan284.add(txtB9AK6_15);\n\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 5;\n gridBagConstraints.gridy = 25;\n gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;\n panelTabel.add(panelTransparan284, gridBagConstraints);\n\n txtB9AK7_15.setColumns(2);\n txtB9AK7_15.setMaxDigit('2');\n txtB9AK7_15.setMinDigit('1');\n txtB9AK7_15.addFocusListener(new java.awt.event.FocusAdapter() {\n public void focusGained(java.awt.event.FocusEvent evt) {\n focusTxt(evt);\n }\n });\n panelTransparan285.add(txtB9AK7_15);\n\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 6;\n gridBagConstraints.gridy = 25;\n gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;\n panelTabel.add(panelTransparan285, gridBagConstraints);\n\n txtB9AK8_15.setColumns(2);\n txtB9AK8_15.setMaxDigit('2');\n txtB9AK8_15.setMinDigit('1');\n txtB9AK8_15.addFocusListener(new java.awt.event.FocusAdapter() {\n public void focusGained(java.awt.event.FocusEvent evt) {\n focusTxt(evt);\n }\n });\n panelTransparan286.add(txtB9AK8_15);\n\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 7;\n gridBagConstraints.gridy = 25;\n gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;\n panelTabel.add(panelTransparan286, gridBagConstraints);\n\n txtB9AK9_15.setColumns(2);\n txtB9AK9_15.setMaxDigit('2');\n txtB9AK9_15.setMinDigit('1');\n txtB9AK9_15.addFocusListener(new java.awt.event.FocusAdapter() {\n public void focusGained(java.awt.event.FocusEvent evt) {\n focusTxt(evt);\n }\n });\n panelTransparan287.add(txtB9AK9_15);\n\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 8;\n gridBagConstraints.gridy = 25;\n gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;\n panelTabel.add(panelTransparan287, gridBagConstraints);\n\n txtB9AK10_15.setColumns(2);\n txtB9AK10_15.setMaxDigit('2');\n txtB9AK10_15.setMinDigit('1');\n txtB9AK10_15.addFocusListener(new java.awt.event.FocusAdapter() {\n public void focusGained(java.awt.event.FocusEvent evt) {\n focusTxt(evt);\n }\n });\n panelTransparan288.add(txtB9AK10_15);\n\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 9;\n gridBagConstraints.gridy = 25;\n gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;\n panelTabel.add(panelTransparan288, gridBagConstraints);\n\n txtB9AK11_15.setColumns(2);\n txtB9AK11_15.setMaxDigit('2');\n txtB9AK11_15.setMinDigit('1');\n txtB9AK11_15.addFocusListener(new java.awt.event.FocusAdapter() {\n public void focusGained(java.awt.event.FocusEvent evt) {\n focusTxt(evt);\n }\n });\n panelTransparan289.add(txtB9AK11_15);\n\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 10;\n gridBagConstraints.gridy = 26;\n gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;\n panelTabel.add(panelTransparan289, gridBagConstraints);\n\n panelTransparan290.setAlpha(70);\n panelTransparan290.setLayout(new java.awt.GridBagLayout());\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 11;\n gridBagConstraints.gridy = 25;\n gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;\n panelTabel.add(panelTransparan290, gridBagConstraints);\n\n txtB9AK13_15.setColumns(2);\n txtB9AK13_15.setMaxDigit('2');\n txtB9AK13_15.setMinDigit('1');\n txtB9AK13_15.addFocusListener(new java.awt.event.FocusAdapter() {\n public void focusGained(java.awt.event.FocusEvent evt) {\n focusTxt(evt);\n }\n });\n panelTransparan291.add(txtB9AK13_15);\n\n txtB9AK13_15Als.setColumns(3);\n txtB9AK13_15Als.addFocusListener(new java.awt.event.FocusAdapter() {\n public void focusGained(java.awt.event.FocusEvent evt) {\n focusTxt(evt);\n }\n });\n panelTransparan291.add(txtB9AK13_15Als);\n\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 12;\n gridBagConstraints.gridy = 25;\n gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;\n panelTabel.add(panelTransparan291, gridBagConstraints);\n\n panelTransparan292.setLayout(new java.awt.GridBagLayout());\n\n label113.setText(\"16\"); // NOI18N\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.insets = new java.awt.Insets(2, 2, 2, 2);\n panelTransparan292.add(label113, gridBagConstraints);\n\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 0;\n gridBagConstraints.gridy = 26;\n gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;\n panelTabel.add(panelTransparan292, gridBagConstraints);\n\n txtB9AK2_16.setColumns(3);\n txtB9AK2_16.setLength(2);\n txtB9AK2_16.addFocusListener(new java.awt.event.FocusAdapter() {\n public void focusLost(java.awt.event.FocusEvent evt) {\n focusTxt(evt);\n }\n });\n panelTransparan293.add(txtB9AK2_16);\n\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 1;\n gridBagConstraints.gridy = 26;\n gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;\n panelTabel.add(panelTransparan293, gridBagConstraints);\n\n panelTransparan294.setAlpha(70);\n panelTransparan294.setLayout(new java.awt.GridBagLayout());\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 2;\n gridBagConstraints.gridy = 26;\n gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;\n panelTabel.add(panelTransparan294, gridBagConstraints);\n\n panelTransparan295.setAlpha(70);\n panelTransparan295.setLayout(new java.awt.GridBagLayout());\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 3;\n gridBagConstraints.gridy = 26;\n gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;\n panelTabel.add(panelTransparan295, gridBagConstraints);\n\n txtB9AK5_16.setColumns(2);\n txtB9AK5_16.setMaxDigit('2');\n txtB9AK5_16.setMinDigit('1');\n txtB9AK5_16.addFocusListener(new java.awt.event.FocusAdapter() {\n public void focusGained(java.awt.event.FocusEvent evt) {\n focusTxt(evt);\n }\n });\n panelTransparan296.add(txtB9AK5_16);\n\n txtB9AK5_16Als.setColumns(3);\n txtB9AK5_16Als.addFocusListener(new java.awt.event.FocusAdapter() {\n public void focusGained(java.awt.event.FocusEvent evt) {\n focusTxt(evt);\n }\n });\n panelTransparan296.add(txtB9AK5_16Als);\n\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 4;\n gridBagConstraints.gridy = 26;\n gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;\n panelTabel.add(panelTransparan296, gridBagConstraints);\n\n txtB9AK6_16.setColumns(2);\n txtB9AK6_16.setMaxDigit('2');\n txtB9AK6_16.setMinDigit('1');\n txtB9AK6_16.addFocusListener(new java.awt.event.FocusAdapter() {\n public void focusGained(java.awt.event.FocusEvent evt) {\n focusTxt(evt);\n }\n });\n panelTransparan297.add(txtB9AK6_16);\n\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 5;\n gridBagConstraints.gridy = 26;\n gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;\n panelTabel.add(panelTransparan297, gridBagConstraints);\n\n txtB9AK7_16.setColumns(2);\n txtB9AK7_16.setMaxDigit('2');\n txtB9AK7_16.setMinDigit('1');\n txtB9AK7_16.addFocusListener(new java.awt.event.FocusAdapter() {\n public void focusGained(java.awt.event.FocusEvent evt) {\n focusTxt(evt);\n }\n });\n panelTransparan298.add(txtB9AK7_16);\n\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 6;\n gridBagConstraints.gridy = 26;\n gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;\n panelTabel.add(panelTransparan298, gridBagConstraints);\n\n txtB9AK8_16.setColumns(2);\n txtB9AK8_16.setMaxDigit('2');\n txtB9AK8_16.setMinDigit('1');\n txtB9AK8_16.addFocusListener(new java.awt.event.FocusAdapter() {\n public void focusGained(java.awt.event.FocusEvent evt) {\n focusTxt(evt);\n }\n });\n panelTransparan299.add(txtB9AK8_16);\n\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 7;\n gridBagConstraints.gridy = 26;\n gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;\n panelTabel.add(panelTransparan299, gridBagConstraints);\n\n txtB9AK9_16.setColumns(2);\n txtB9AK9_16.setMaxDigit('2');\n txtB9AK9_16.setMinDigit('1');\n txtB9AK9_16.addFocusListener(new java.awt.event.FocusAdapter() {\n public void focusGained(java.awt.event.FocusEvent evt) {\n focusTxt(evt);\n }\n });\n panelTransparan300.add(txtB9AK9_16);\n\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 8;\n gridBagConstraints.gridy = 26;\n gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;\n panelTabel.add(panelTransparan300, gridBagConstraints);\n\n txtB9AK10_16.setColumns(2);\n txtB9AK10_16.setMaxDigit('2');\n txtB9AK10_16.setMinDigit('1');\n txtB9AK10_16.addFocusListener(new java.awt.event.FocusAdapter() {\n public void focusGained(java.awt.event.FocusEvent evt) {\n focusTxt(evt);\n }\n });\n panelTransparan301.add(txtB9AK10_16);\n\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 9;\n gridBagConstraints.gridy = 26;\n gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;\n panelTabel.add(panelTransparan301, gridBagConstraints);\n\n txtB9AK11_16.setColumns(2);\n txtB9AK11_16.setMaxDigit('2');\n txtB9AK11_16.setMinDigit('1');\n txtB9AK11_16.addFocusListener(new java.awt.event.FocusAdapter() {\n public void focusGained(java.awt.event.FocusEvent evt) {\n focusTxt(evt);\n }\n });\n panelTransparan302.add(txtB9AK11_16);\n\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 10;\n gridBagConstraints.gridy = 25;\n gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;\n panelTabel.add(panelTransparan302, gridBagConstraints);\n\n panelTransparan303.setAlpha(70);\n panelTransparan303.setLayout(new java.awt.GridBagLayout());\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 11;\n gridBagConstraints.gridy = 26;\n gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;\n panelTabel.add(panelTransparan303, gridBagConstraints);\n\n txtB9AK13_16.setColumns(2);\n txtB9AK13_16.setMaxDigit('2');\n txtB9AK13_16.setMinDigit('1');\n txtB9AK13_16.addFocusListener(new java.awt.event.FocusAdapter() {\n public void focusGained(java.awt.event.FocusEvent evt) {\n focusTxt(evt);\n }\n });\n panelTransparan304.add(txtB9AK13_16);\n\n txtB9AK13_16Als.setColumns(3);\n txtB9AK13_16Als.addFocusListener(new java.awt.event.FocusAdapter() {\n public void focusGained(java.awt.event.FocusEvent evt) {\n focusTxt(evt);\n }\n });\n panelTransparan304.add(txtB9AK13_16Als);\n\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 12;\n gridBagConstraints.gridy = 26;\n gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;\n panelTabel.add(panelTransparan304, gridBagConstraints);\n\n panelTransparan305.setLayout(new java.awt.GridBagLayout());\n\n label114.setText(\"17\"); // NOI18N\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.insets = new java.awt.Insets(2, 2, 2, 2);\n panelTransparan305.add(label114, gridBagConstraints);\n\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 0;\n gridBagConstraints.gridy = 27;\n gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;\n panelTabel.add(panelTransparan305, gridBagConstraints);\n\n txtB9AK2_17.setColumns(3);\n txtB9AK2_17.setLength(2);\n txtB9AK2_17.addFocusListener(new java.awt.event.FocusAdapter() {\n public void focusGained(java.awt.event.FocusEvent evt) {\n focusTxt(evt);\n }\n });\n panelTransparan306.add(txtB9AK2_17);\n\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 1;\n gridBagConstraints.gridy = 27;\n gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;\n panelTabel.add(panelTransparan306, gridBagConstraints);\n\n panelTransparan307.setAlpha(70);\n panelTransparan307.setLayout(new java.awt.GridBagLayout());\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 2;\n gridBagConstraints.gridy = 27;\n gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;\n panelTabel.add(panelTransparan307, gridBagConstraints);\n\n panelTransparan308.setAlpha(70);\n panelTransparan308.setLayout(new java.awt.GridBagLayout());\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 3;\n gridBagConstraints.gridy = 27;\n gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;\n panelTabel.add(panelTransparan308, gridBagConstraints);\n\n txtB9AK5_17.setColumns(2);\n txtB9AK5_17.setMaxDigit('2');\n txtB9AK5_17.setMinDigit('1');\n txtB9AK5_17.addFocusListener(new java.awt.event.FocusAdapter() {\n public void focusGained(java.awt.event.FocusEvent evt) {\n focusTxt(evt);\n }\n });\n panelTransparan309.add(txtB9AK5_17);\n\n txtB9AK5_17Als.setColumns(3);\n txtB9AK5_17Als.addFocusListener(new java.awt.event.FocusAdapter() {\n public void focusGained(java.awt.event.FocusEvent evt) {\n focusTxt(evt);\n }\n });\n panelTransparan309.add(txtB9AK5_17Als);\n\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 4;\n gridBagConstraints.gridy = 27;\n gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;\n panelTabel.add(panelTransparan309, gridBagConstraints);\n\n txtB9AK6_17.setColumns(2);\n txtB9AK6_17.setMaxDigit('2');\n txtB9AK6_17.setMinDigit('1');\n txtB9AK6_17.addFocusListener(new java.awt.event.FocusAdapter() {\n public void focusGained(java.awt.event.FocusEvent evt) {\n focusTxt(evt);\n }\n });\n panelTransparan310.add(txtB9AK6_17);\n\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 5;\n gridBagConstraints.gridy = 27;\n gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;\n panelTabel.add(panelTransparan310, gridBagConstraints);\n\n txtB9AK7_17.setColumns(2);\n txtB9AK7_17.setMaxDigit('2');\n txtB9AK7_17.setMinDigit('1');\n txtB9AK7_17.addFocusListener(new java.awt.event.FocusAdapter() {\n public void focusGained(java.awt.event.FocusEvent evt) {\n focusTxt(evt);\n }\n });\n panelTransparan311.add(txtB9AK7_17);\n\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 6;\n gridBagConstraints.gridy = 27;\n gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;\n panelTabel.add(panelTransparan311, gridBagConstraints);\n\n txtB9AK8_17.setColumns(2);\n txtB9AK8_17.setMaxDigit('2');\n txtB9AK8_17.setMinDigit('1');\n txtB9AK8_17.addFocusListener(new java.awt.event.FocusAdapter() {\n public void focusGained(java.awt.event.FocusEvent evt) {\n focusTxt(evt);\n }\n });\n panelTransparan312.add(txtB9AK8_17);\n\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 7;\n gridBagConstraints.gridy = 27;\n gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;\n panelTabel.add(panelTransparan312, gridBagConstraints);\n\n txtB9AK9_17.setColumns(2);\n txtB9AK9_17.setMaxDigit('2');\n txtB9AK9_17.setMinDigit('1');\n txtB9AK9_17.addFocusListener(new java.awt.event.FocusAdapter() {\n public void focusGained(java.awt.event.FocusEvent evt) {\n focusTxt(evt);\n }\n });\n panelTransparan313.add(txtB9AK9_17);\n\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 8;\n gridBagConstraints.gridy = 27;\n gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;\n panelTabel.add(panelTransparan313, gridBagConstraints);\n\n txtB9AK10_17.setColumns(2);\n txtB9AK10_17.setMaxDigit('2');\n txtB9AK10_17.setMinDigit('1');\n txtB9AK10_17.addFocusListener(new java.awt.event.FocusAdapter() {\n public void focusGained(java.awt.event.FocusEvent evt) {\n focusTxt(evt);\n }\n });\n panelTransparan314.add(txtB9AK10_17);\n\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 9;\n gridBagConstraints.gridy = 27;\n gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;\n panelTabel.add(panelTransparan314, gridBagConstraints);\n\n txtB9AK11_17.setColumns(2);\n txtB9AK11_17.setMaxDigit('2');\n txtB9AK11_17.setMinDigit('1');\n txtB9AK11_17.addFocusListener(new java.awt.event.FocusAdapter() {\n public void focusGained(java.awt.event.FocusEvent evt) {\n focusTxt(evt);\n }\n });\n panelTransparan315.add(txtB9AK11_17);\n\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 10;\n gridBagConstraints.gridy = 27;\n gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;\n panelTabel.add(panelTransparan315, gridBagConstraints);\n\n panelTransparan316.setAlpha(70);\n panelTransparan316.setLayout(new java.awt.GridBagLayout());\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 11;\n gridBagConstraints.gridy = 27;\n gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;\n panelTabel.add(panelTransparan316, gridBagConstraints);\n\n txtB9AK13_17.setColumns(2);\n txtB9AK13_17.setMaxDigit('2');\n txtB9AK13_17.setMinDigit('1');\n txtB9AK13_17.addFocusListener(new java.awt.event.FocusAdapter() {\n public void focusGained(java.awt.event.FocusEvent evt) {\n focusTxt(evt);\n }\n });\n panelTransparan317.add(txtB9AK13_17);\n\n txtB9AK13_17Als.setColumns(3);\n txtB9AK13_17Als.addFocusListener(new java.awt.event.FocusAdapter() {\n public void focusGained(java.awt.event.FocusEvent evt) {\n focusTxt(evt);\n }\n });\n panelTransparan317.add(txtB9AK13_17Als);\n\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 12;\n gridBagConstraints.gridy = 27;\n gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;\n panelTabel.add(panelTransparan317, gridBagConstraints);\n\n panelTransparan318.setLayout(new java.awt.GridBagLayout());\n\n label115.setText(\"18\"); // NOI18N\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.insets = new java.awt.Insets(2, 2, 2, 2);\n panelTransparan318.add(label115, gridBagConstraints);\n\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 0;\n gridBagConstraints.gridy = 28;\n gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;\n panelTabel.add(panelTransparan318, gridBagConstraints);\n\n txtB9AK2_18.setColumns(3);\n txtB9AK2_18.setLength(2);\n txtB9AK2_18.addFocusListener(new java.awt.event.FocusAdapter() {\n public void focusGained(java.awt.event.FocusEvent evt) {\n focusTxt(evt);\n }\n });\n panelTransparan319.add(txtB9AK2_18);\n\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 1;\n gridBagConstraints.gridy = 28;\n gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;\n panelTabel.add(panelTransparan319, gridBagConstraints);\n\n panelTransparan320.setAlpha(70);\n panelTransparan320.setLayout(new java.awt.GridBagLayout());\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 2;\n gridBagConstraints.gridy = 28;\n gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;\n panelTabel.add(panelTransparan320, gridBagConstraints);\n\n panelTransparan321.setAlpha(70);\n panelTransparan321.setLayout(new java.awt.GridBagLayout());\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 3;\n gridBagConstraints.gridy = 28;\n gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;\n panelTabel.add(panelTransparan321, gridBagConstraints);\n\n txtB9AK5_18.setColumns(2);\n txtB9AK5_18.setMaxDigit('2');\n txtB9AK5_18.setMinDigit('1');\n txtB9AK5_18.addFocusListener(new java.awt.event.FocusAdapter() {\n public void focusGained(java.awt.event.FocusEvent evt) {\n focusTxt(evt);\n }\n });\n panelTransparan322.add(txtB9AK5_18);\n\n txtB9AK5_18Als.setColumns(3);\n txtB9AK5_18Als.addFocusListener(new java.awt.event.FocusAdapter() {\n public void focusGained(java.awt.event.FocusEvent evt) {\n focusTxt(evt);\n }\n });\n panelTransparan322.add(txtB9AK5_18Als);\n\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 4;\n gridBagConstraints.gridy = 28;\n gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;\n panelTabel.add(panelTransparan322, gridBagConstraints);\n\n txtB9AK6_18.setColumns(2);\n txtB9AK6_18.setMaxDigit('2');\n txtB9AK6_18.setMinDigit('1');\n txtB9AK6_18.addFocusListener(new java.awt.event.FocusAdapter() {\n public void focusGained(java.awt.event.FocusEvent evt) {\n focusTxt(evt);\n }\n });\n panelTransparan323.add(txtB9AK6_18);\n\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 5;\n gridBagConstraints.gridy = 28;\n gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;\n panelTabel.add(panelTransparan323, gridBagConstraints);\n\n txtB9AK7_18.setColumns(2);\n txtB9AK7_18.setMaxDigit('2');\n txtB9AK7_18.setMinDigit('1');\n txtB9AK7_18.addFocusListener(new java.awt.event.FocusAdapter() {\n public void focusGained(java.awt.event.FocusEvent evt) {\n focusTxt(evt);\n }\n });\n panelTransparan324.add(txtB9AK7_18);\n\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 6;\n gridBagConstraints.gridy = 28;\n gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;\n panelTabel.add(panelTransparan324, gridBagConstraints);\n\n txtB9AK8_18.setColumns(2);\n txtB9AK8_18.setMaxDigit('2');\n txtB9AK8_18.setMinDigit('1');\n txtB9AK8_18.addFocusListener(new java.awt.event.FocusAdapter() {\n public void focusGained(java.awt.event.FocusEvent evt) {\n focusTxt(evt);\n }\n });\n panelTransparan325.add(txtB9AK8_18);\n\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 7;\n gridBagConstraints.gridy = 28;\n gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;\n panelTabel.add(panelTransparan325, gridBagConstraints);\n\n txtB9AK9_18.setColumns(2);\n txtB9AK9_18.setMaxDigit('2');\n txtB9AK9_18.setMinDigit('1');\n txtB9AK9_18.addFocusListener(new java.awt.event.FocusAdapter() {\n public void focusGained(java.awt.event.FocusEvent evt) {\n focusTxt(evt);\n }\n });\n panelTransparan326.add(txtB9AK9_18);\n\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 8;\n gridBagConstraints.gridy = 28;\n gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;\n panelTabel.add(panelTransparan326, gridBagConstraints);\n\n txtB9AK10_18.setColumns(2);\n txtB9AK10_18.setMaxDigit('2');\n txtB9AK10_18.setMinDigit('1');\n txtB9AK10_18.addFocusListener(new java.awt.event.FocusAdapter() {\n public void focusGained(java.awt.event.FocusEvent evt) {\n focusTxt(evt);\n }\n });\n panelTransparan327.add(txtB9AK10_18);\n\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 9;\n gridBagConstraints.gridy = 28;\n gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;\n panelTabel.add(panelTransparan327, gridBagConstraints);\n\n txtB9AK11_18.setColumns(2);\n txtB9AK11_18.setMaxDigit('2');\n txtB9AK11_18.setMinDigit('1');\n txtB9AK11_18.addFocusListener(new java.awt.event.FocusAdapter() {\n public void focusGained(java.awt.event.FocusEvent evt) {\n focusTxt(evt);\n }\n });\n panelTransparan328.add(txtB9AK11_18);\n\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 10;\n gridBagConstraints.gridy = 28;\n gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;\n panelTabel.add(panelTransparan328, gridBagConstraints);\n\n panelTransparan329.setAlpha(70);\n panelTransparan329.setLayout(new java.awt.GridBagLayout());\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 11;\n gridBagConstraints.gridy = 28;\n gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;\n panelTabel.add(panelTransparan329, gridBagConstraints);\n\n txtB9AK13_18.setColumns(2);\n txtB9AK13_18.setMaxDigit('2');\n txtB9AK13_18.setMinDigit('1');\n txtB9AK13_18.addFocusListener(new java.awt.event.FocusAdapter() {\n public void focusGained(java.awt.event.FocusEvent evt) {\n focusTxt(evt);\n }\n });\n panelTransparan330.add(txtB9AK13_18);\n\n txtB9AK13_18Als.setColumns(3);\n txtB9AK13_18Als.addFocusListener(new java.awt.event.FocusAdapter() {\n public void focusGained(java.awt.event.FocusEvent evt) {\n focusTxt(evt);\n }\n });\n panelTransparan330.add(txtB9AK13_18Als);\n\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 12;\n gridBagConstraints.gridy = 28;\n gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;\n panelTabel.add(panelTransparan330, gridBagConstraints);\n\n panelTransparan331.setLayout(new java.awt.GridBagLayout());\n\n label116.setText(\"19\"); // NOI18N\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.insets = new java.awt.Insets(2, 2, 2, 2);\n panelTransparan331.add(label116, gridBagConstraints);\n\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 0;\n gridBagConstraints.gridy = 29;\n gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;\n panelTabel.add(panelTransparan331, gridBagConstraints);\n\n txtB9AK2_19.setColumns(3);\n txtB9AK2_19.setLength(2);\n txtB9AK2_19.addFocusListener(new java.awt.event.FocusAdapter() {\n public void focusGained(java.awt.event.FocusEvent evt) {\n focusTxt(evt);\n }\n });\n panelTransparan332.add(txtB9AK2_19);\n\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 1;\n gridBagConstraints.gridy = 29;\n gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;\n panelTabel.add(panelTransparan332, gridBagConstraints);\n\n panelTransparan333.setAlpha(70);\n panelTransparan333.setLayout(new java.awt.GridBagLayout());\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 2;\n gridBagConstraints.gridy = 29;\n gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;\n panelTabel.add(panelTransparan333, gridBagConstraints);\n\n panelTransparan334.setAlpha(70);\n panelTransparan334.setLayout(new java.awt.GridBagLayout());\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 3;\n gridBagConstraints.gridy = 29;\n gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;\n panelTabel.add(panelTransparan334, gridBagConstraints);\n\n txtB9AK5_19.setColumns(2);\n txtB9AK5_19.setMaxDigit('2');\n txtB9AK5_19.setMinDigit('1');\n txtB9AK5_19.addFocusListener(new java.awt.event.FocusAdapter() {\n public void focusGained(java.awt.event.FocusEvent evt) {\n focusTxt(evt);\n }\n });\n panelTransparan335.add(txtB9AK5_19);\n\n txtB9AK5_19Als.setColumns(3);\n txtB9AK5_19Als.addFocusListener(new java.awt.event.FocusAdapter() {\n public void focusGained(java.awt.event.FocusEvent evt) {\n focusTxt(evt);\n }\n });\n panelTransparan335.add(txtB9AK5_19Als);\n\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 4;\n gridBagConstraints.gridy = 29;\n gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;\n panelTabel.add(panelTransparan335, gridBagConstraints);\n\n txtB9AK6_19.setColumns(2);\n txtB9AK6_19.setMaxDigit('2');\n txtB9AK6_19.setMinDigit('1');\n txtB9AK6_19.addFocusListener(new java.awt.event.FocusAdapter() {\n public void focusGained(java.awt.event.FocusEvent evt) {\n focusTxt(evt);\n }\n });\n panelTransparan336.add(txtB9AK6_19);\n\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 5;\n gridBagConstraints.gridy = 29;\n gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;\n panelTabel.add(panelTransparan336, gridBagConstraints);\n\n txtB9AK7_19.setColumns(2);\n txtB9AK7_19.setMaxDigit('2');\n txtB9AK7_19.setMinDigit('1');\n txtB9AK7_19.addFocusListener(new java.awt.event.FocusAdapter() {\n public void focusGained(java.awt.event.FocusEvent evt) {\n focusTxt(evt);\n }\n });\n panelTransparan337.add(txtB9AK7_19);\n\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 6;\n gridBagConstraints.gridy = 29;\n gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;\n panelTabel.add(panelTransparan337, gridBagConstraints);\n\n txtB9AK8_19.setColumns(2);\n txtB9AK8_19.setMaxDigit('2');\n txtB9AK8_19.setMinDigit('1');\n txtB9AK8_19.addFocusListener(new java.awt.event.FocusAdapter() {\n public void focusGained(java.awt.event.FocusEvent evt) {\n focusTxt(evt);\n }\n });\n panelTransparan338.add(txtB9AK8_19);\n\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 7;\n gridBagConstraints.gridy = 29;\n gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;\n panelTabel.add(panelTransparan338, gridBagConstraints);\n\n txtB9AK9_19.setColumns(2);\n txtB9AK9_19.setMaxDigit('2');\n txtB9AK9_19.setMinDigit('1');\n txtB9AK9_19.addFocusListener(new java.awt.event.FocusAdapter() {\n public void focusGained(java.awt.event.FocusEvent evt) {\n focusTxt(evt);\n }\n });\n panelTransparan339.add(txtB9AK9_19);\n\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 8;\n gridBagConstraints.gridy = 29;\n gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;\n panelTabel.add(panelTransparan339, gridBagConstraints);\n\n txtB9AK10_19.setColumns(2);\n txtB9AK10_19.setMaxDigit('2');\n txtB9AK10_19.setMinDigit('1');\n txtB9AK10_19.addFocusListener(new java.awt.event.FocusAdapter() {\n public void focusGained(java.awt.event.FocusEvent evt) {\n focusTxt(evt);\n }\n });\n panelTransparan340.add(txtB9AK10_19);\n\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 9;\n gridBagConstraints.gridy = 29;\n gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;\n panelTabel.add(panelTransparan340, gridBagConstraints);\n\n txtB9AK11_19.setColumns(2);\n txtB9AK11_19.setMaxDigit('2');\n txtB9AK11_19.setMinDigit('1');\n txtB9AK11_19.addFocusListener(new java.awt.event.FocusAdapter() {\n public void focusGained(java.awt.event.FocusEvent evt) {\n focusTxt(evt);\n }\n });\n panelTransparan341.add(txtB9AK11_19);\n\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 10;\n gridBagConstraints.gridy = 29;\n gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;\n panelTabel.add(panelTransparan341, gridBagConstraints);\n\n panelTransparan342.setAlpha(70);\n panelTransparan342.setLayout(new java.awt.GridBagLayout());\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 11;\n gridBagConstraints.gridy = 29;\n gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;\n panelTabel.add(panelTransparan342, gridBagConstraints);\n\n txtB9AK13_19.setColumns(2);\n txtB9AK13_19.setMaxDigit('2');\n txtB9AK13_19.setMinDigit('1');\n txtB9AK13_19.addFocusListener(new java.awt.event.FocusAdapter() {\n public void focusGained(java.awt.event.FocusEvent evt) {\n focusTxt(evt);\n }\n });\n panelTransparan343.add(txtB9AK13_19);\n\n txtB9AK13_19Als.setColumns(3);\n txtB9AK13_19Als.addFocusListener(new java.awt.event.FocusAdapter() {\n public void focusGained(java.awt.event.FocusEvent evt) {\n focusTxt(evt);\n }\n });\n panelTransparan343.add(txtB9AK13_19Als);\n\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 12;\n gridBagConstraints.gridy = 29;\n gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;\n panelTabel.add(panelTransparan343, gridBagConstraints);\n\n panelTransparan344.setLayout(new java.awt.GridBagLayout());\n\n label117.setText(\"20\"); // NOI18N\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.insets = new java.awt.Insets(2, 2, 2, 2);\n panelTransparan344.add(label117, gridBagConstraints);\n\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 0;\n gridBagConstraints.gridy = 30;\n gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;\n panelTabel.add(panelTransparan344, gridBagConstraints);\n\n txtB9AK2_20.setColumns(3);\n txtB9AK2_20.setLength(2);\n txtB9AK2_20.addFocusListener(new java.awt.event.FocusAdapter() {\n public void focusGained(java.awt.event.FocusEvent evt) {\n focusTxt(evt);\n }\n });\n panelTransparan345.add(txtB9AK2_20);\n\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 1;\n gridBagConstraints.gridy = 30;\n gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;\n panelTabel.add(panelTransparan345, gridBagConstraints);\n\n panelTransparan346.setAlpha(70);\n panelTransparan346.setLayout(new java.awt.GridBagLayout());\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 2;\n gridBagConstraints.gridy = 30;\n gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;\n panelTabel.add(panelTransparan346, gridBagConstraints);\n\n panelTransparan347.setAlpha(70);\n panelTransparan347.setLayout(new java.awt.GridBagLayout());\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 3;\n gridBagConstraints.gridy = 30;\n gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;\n panelTabel.add(panelTransparan347, gridBagConstraints);\n\n txtB9AK5_20.setColumns(2);\n txtB9AK5_20.setMaxDigit('2');\n txtB9AK5_20.setMinDigit('1');\n txtB9AK5_20.addFocusListener(new java.awt.event.FocusAdapter() {\n public void focusGained(java.awt.event.FocusEvent evt) {\n focusTxt(evt);\n }\n });\n panelTransparan348.add(txtB9AK5_20);\n\n txtB9AK5_20Als.setColumns(3);\n txtB9AK5_20Als.addFocusListener(new java.awt.event.FocusAdapter() {\n public void focusGained(java.awt.event.FocusEvent evt) {\n focusTxt(evt);\n }\n });\n panelTransparan348.add(txtB9AK5_20Als);\n\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 4;\n gridBagConstraints.gridy = 30;\n gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;\n panelTabel.add(panelTransparan348, gridBagConstraints);\n\n txtB9AK6_20.setColumns(2);\n txtB9AK6_20.setMaxDigit('2');\n txtB9AK6_20.setMinDigit('1');\n txtB9AK6_20.addFocusListener(new java.awt.event.FocusAdapter() {\n public void focusGained(java.awt.event.FocusEvent evt) {\n focusTxt(evt);\n }\n });\n panelTransparan349.add(txtB9AK6_20);\n\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 5;\n gridBagConstraints.gridy = 30;\n gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;\n panelTabel.add(panelTransparan349, gridBagConstraints);\n\n txtB9AK7_20.setColumns(2);\n txtB9AK7_20.setMaxDigit('2');\n txtB9AK7_20.setMinDigit('1');\n txtB9AK7_20.addFocusListener(new java.awt.event.FocusAdapter() {\n public void focusGained(java.awt.event.FocusEvent evt) {\n focusTxt(evt);\n }\n });\n panelTransparan350.add(txtB9AK7_20);\n\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 6;\n gridBagConstraints.gridy = 30;\n gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;\n panelTabel.add(panelTransparan350, gridBagConstraints);\n\n txtB9AK8_20.setColumns(2);\n txtB9AK8_20.setMaxDigit('2');\n txtB9AK8_20.setMinDigit('1');\n txtB9AK8_20.addFocusListener(new java.awt.event.FocusAdapter() {\n public void focusGained(java.awt.event.FocusEvent evt) {\n focusTxt(evt);\n }\n });\n panelTransparan351.add(txtB9AK8_20);\n\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 7;\n gridBagConstraints.gridy = 30;\n gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;\n panelTabel.add(panelTransparan351, gridBagConstraints);\n\n txtB9AK9_20.setColumns(2);\n txtB9AK9_20.setMaxDigit('2');\n txtB9AK9_20.setMinDigit('1');\n txtB9AK9_20.addFocusListener(new java.awt.event.FocusAdapter() {\n public void focusGained(java.awt.event.FocusEvent evt) {\n focusTxt(evt);\n }\n });\n panelTransparan352.add(txtB9AK9_20);\n\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 8;\n gridBagConstraints.gridy = 30;\n gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;\n panelTabel.add(panelTransparan352, gridBagConstraints);\n\n txtB9AK10_20.setColumns(2);\n txtB9AK10_20.setMaxDigit('2');\n txtB9AK10_20.setMinDigit('1');\n txtB9AK10_20.addFocusListener(new java.awt.event.FocusAdapter() {\n public void focusGained(java.awt.event.FocusEvent evt) {\n focusTxt(evt);\n }\n });\n panelTransparan353.add(txtB9AK10_20);\n\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 9;\n gridBagConstraints.gridy = 30;\n gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;\n panelTabel.add(panelTransparan353, gridBagConstraints);\n\n txtB9AK11_20.setColumns(2);\n txtB9AK11_20.setMaxDigit('2');\n txtB9AK11_20.setMinDigit('1');\n txtB9AK11_20.addFocusListener(new java.awt.event.FocusAdapter() {\n public void focusGained(java.awt.event.FocusEvent evt) {\n focusTxt(evt);\n }\n });\n panelTransparan354.add(txtB9AK11_20);\n\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 10;\n gridBagConstraints.gridy = 30;\n gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;\n panelTabel.add(panelTransparan354, gridBagConstraints);\n\n panelTransparan355.setAlpha(70);\n panelTransparan355.setLayout(new java.awt.GridBagLayout());\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 11;\n gridBagConstraints.gridy = 30;\n gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;\n panelTabel.add(panelTransparan355, gridBagConstraints);\n\n txtB9AK13_20.setColumns(2);\n txtB9AK13_20.setMaxDigit('2');\n txtB9AK13_20.setMinDigit('1');\n txtB9AK13_20.addFocusListener(new java.awt.event.FocusAdapter() {\n public void focusGained(java.awt.event.FocusEvent evt) {\n focusTxt(evt);\n }\n });\n panelTransparan356.add(txtB9AK13_20);\n\n txtB9AK13_20Als.setColumns(3);\n txtB9AK13_20Als.addFocusListener(new java.awt.event.FocusAdapter() {\n public void focusGained(java.awt.event.FocusEvent evt) {\n focusTxt(evt);\n }\n });\n panelTransparan356.add(txtB9AK13_20Als);\n\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 12;\n gridBagConstraints.gridy = 30;\n gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;\n panelTabel.add(panelTransparan356, gridBagConstraints);\n\n panelTransparan357.setLayout(new java.awt.GridBagLayout());\n\n label118.setText(\"21\"); // NOI18N\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.insets = new java.awt.Insets(2, 2, 2, 2);\n panelTransparan357.add(label118, gridBagConstraints);\n\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 0;\n gridBagConstraints.gridy = 32;\n gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;\n panelTabel.add(panelTransparan357, gridBagConstraints);\n\n txtB9AK2_21.setColumns(3);\n txtB9AK2_21.setLength(2);\n txtB9AK2_21.addFocusListener(new java.awt.event.FocusAdapter() {\n public void focusGained(java.awt.event.FocusEvent evt) {\n focusTxt(evt);\n }\n });\n panelTransparan358.add(txtB9AK2_21);\n\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 1;\n gridBagConstraints.gridy = 32;\n gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;\n panelTabel.add(panelTransparan358, gridBagConstraints);\n\n panelTransparan359.setAlpha(70);\n panelTransparan359.setLayout(new java.awt.GridBagLayout());\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 2;\n gridBagConstraints.gridy = 32;\n gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;\n panelTabel.add(panelTransparan359, gridBagConstraints);\n\n panelTransparan360.setAlpha(70);\n panelTransparan360.setLayout(new java.awt.GridBagLayout());\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 3;\n gridBagConstraints.gridy = 32;\n gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;\n panelTabel.add(panelTransparan360, gridBagConstraints);\n\n txtB9AK5_21.setColumns(2);\n txtB9AK5_21.setMaxDigit('2');\n txtB9AK5_21.setMinDigit('1');\n txtB9AK5_21.addFocusListener(new java.awt.event.FocusAdapter() {\n public void focusGained(java.awt.event.FocusEvent evt) {\n focusTxt(evt);\n }\n });\n panelTransparan361.add(txtB9AK5_21);\n\n txtB9AK5_21Als.setColumns(3);\n txtB9AK5_21Als.addFocusListener(new java.awt.event.FocusAdapter() {\n public void focusGained(java.awt.event.FocusEvent evt) {\n focusTxt(evt);\n }\n });\n panelTransparan361.add(txtB9AK5_21Als);\n\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 4;\n gridBagConstraints.gridy = 32;\n gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;\n panelTabel.add(panelTransparan361, gridBagConstraints);\n\n txtB9AK6_21.setColumns(2);\n txtB9AK6_21.setMaxDigit('2');\n txtB9AK6_21.setMinDigit('1');\n txtB9AK6_21.addFocusListener(new java.awt.event.FocusAdapter() {\n public void focusGained(java.awt.event.FocusEvent evt) {\n focusTxt(evt);\n }\n });\n panelTransparan362.add(txtB9AK6_21);\n\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 5;\n gridBagConstraints.gridy = 32;\n gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;\n panelTabel.add(panelTransparan362, gridBagConstraints);\n\n txtB9AK7_21.setColumns(2);\n txtB9AK7_21.setMaxDigit('2');\n txtB9AK7_21.setMinDigit('1');\n txtB9AK7_21.addFocusListener(new java.awt.event.FocusAdapter() {\n public void focusGained(java.awt.event.FocusEvent evt) {\n focusTxt(evt);\n }\n });\n panelTransparan363.add(txtB9AK7_21);\n\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 6;\n gridBagConstraints.gridy = 32;\n gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;\n panelTabel.add(panelTransparan363, gridBagConstraints);\n\n txtB9AK8_21.setColumns(2);\n txtB9AK8_21.setMaxDigit('2');\n txtB9AK8_21.setMinDigit('1');\n txtB9AK8_21.addFocusListener(new java.awt.event.FocusAdapter() {\n public void focusGained(java.awt.event.FocusEvent evt) {\n focusTxt(evt);\n }\n });\n panelTransparan364.add(txtB9AK8_21);\n\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 7;\n gridBagConstraints.gridy = 32;\n gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;\n panelTabel.add(panelTransparan364, gridBagConstraints);\n\n txtB9AK9_21.setColumns(2);\n txtB9AK9_21.setMaxDigit('2');\n txtB9AK9_21.setMinDigit('1');\n txtB9AK9_21.addFocusListener(new java.awt.event.FocusAdapter() {\n public void focusGained(java.awt.event.FocusEvent evt) {\n focusTxt(evt);\n }\n });\n panelTransparan365.add(txtB9AK9_21);\n\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 8;\n gridBagConstraints.gridy = 32;\n gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;\n panelTabel.add(panelTransparan365, gridBagConstraints);\n\n txtB9AK10_21.setColumns(2);\n txtB9AK10_21.setMaxDigit('2');\n txtB9AK10_21.setMinDigit('1');\n txtB9AK10_21.addFocusListener(new java.awt.event.FocusAdapter() {\n public void focusGained(java.awt.event.FocusEvent evt) {\n focusTxt(evt);\n }\n });\n panelTransparan366.add(txtB9AK10_21);\n\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 9;\n gridBagConstraints.gridy = 32;\n gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;\n panelTabel.add(panelTransparan366, gridBagConstraints);\n\n txtB9AK11_21.setColumns(2);\n txtB9AK11_21.setMaxDigit('2');\n txtB9AK11_21.setMinDigit('1');\n txtB9AK11_21.addFocusListener(new java.awt.event.FocusAdapter() {\n public void focusGained(java.awt.event.FocusEvent evt) {\n focusTxt(evt);\n }\n });\n panelTransparan367.add(txtB9AK11_21);\n\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 10;\n gridBagConstraints.gridy = 32;\n gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;\n panelTabel.add(panelTransparan367, gridBagConstraints);\n\n panelTransparan368.setAlpha(70);\n panelTransparan368.setLayout(new java.awt.GridBagLayout());\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 11;\n gridBagConstraints.gridy = 32;\n gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;\n panelTabel.add(panelTransparan368, gridBagConstraints);\n\n txtB9AK13_21.setColumns(2);\n txtB9AK13_21.setMaxDigit('2');\n txtB9AK13_21.setMinDigit('1');\n txtB9AK13_21.addFocusListener(new java.awt.event.FocusAdapter() {\n public void focusGained(java.awt.event.FocusEvent evt) {\n focusTxt(evt);\n }\n });\n panelTransparan369.add(txtB9AK13_21);\n\n txtB9AK13_21Als.setColumns(3);\n txtB9AK13_21Als.addFocusListener(new java.awt.event.FocusAdapter() {\n public void focusGained(java.awt.event.FocusEvent evt) {\n focusTxt(evt);\n }\n });\n panelTransparan369.add(txtB9AK13_21Als);\n\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 12;\n gridBagConstraints.gridy = 32;\n gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;\n panelTabel.add(panelTransparan369, gridBagConstraints);\n\n panelTransparan370.setLayout(new java.awt.GridBagLayout());\n\n label119.setText(\"22\"); // NOI18N\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.insets = new java.awt.Insets(2, 2, 2, 2);\n panelTransparan370.add(label119, gridBagConstraints);\n\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 0;\n gridBagConstraints.gridy = 33;\n gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;\n panelTabel.add(panelTransparan370, gridBagConstraints);\n\n txtB9AK2_22.setColumns(3);\n txtB9AK2_22.setLength(2);\n txtB9AK2_22.addFocusListener(new java.awt.event.FocusAdapter() {\n public void focusGained(java.awt.event.FocusEvent evt) {\n focusTxt(evt);\n }\n });\n panelTransparan371.add(txtB9AK2_22);\n\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 1;\n gridBagConstraints.gridy = 33;\n gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;\n panelTabel.add(panelTransparan371, gridBagConstraints);\n\n panelTransparan372.setAlpha(70);\n panelTransparan372.setLayout(new java.awt.GridBagLayout());\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 2;\n gridBagConstraints.gridy = 33;\n gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;\n panelTabel.add(panelTransparan372, gridBagConstraints);\n\n panelTransparan373.setAlpha(70);\n panelTransparan373.setLayout(new java.awt.GridBagLayout());\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 3;\n gridBagConstraints.gridy = 33;\n gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;\n panelTabel.add(panelTransparan373, gridBagConstraints);\n\n txtB9AK5_22.setColumns(2);\n txtB9AK5_22.setMaxDigit('2');\n txtB9AK5_22.setMinDigit('1');\n txtB9AK5_22.addFocusListener(new java.awt.event.FocusAdapter() {\n public void focusGained(java.awt.event.FocusEvent evt) {\n focusTxt(evt);\n }\n });\n panelTransparan374.add(txtB9AK5_22);\n\n txtB9AK5_22Als.setColumns(3);\n txtB9AK5_22Als.addFocusListener(new java.awt.event.FocusAdapter() {\n public void focusGained(java.awt.event.FocusEvent evt) {\n focusTxt(evt);\n }\n });\n panelTransparan374.add(txtB9AK5_22Als);\n\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 4;\n gridBagConstraints.gridy = 33;\n gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;\n panelTabel.add(panelTransparan374, gridBagConstraints);\n\n txtB9AK6_22.setColumns(2);\n txtB9AK6_22.setMaxDigit('2');\n txtB9AK6_22.setMinDigit('1');\n txtB9AK6_22.addFocusListener(new java.awt.event.FocusAdapter() {\n public void focusGained(java.awt.event.FocusEvent evt) {\n focusTxt(evt);\n }\n });\n panelTransparan375.add(txtB9AK6_22);\n\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 5;\n gridBagConstraints.gridy = 33;\n gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;\n panelTabel.add(panelTransparan375, gridBagConstraints);\n\n txtB9AK7_22.setColumns(2);\n txtB9AK7_22.setMaxDigit('2');\n txtB9AK7_22.setMinDigit('1');\n txtB9AK7_22.addFocusListener(new java.awt.event.FocusAdapter() {\n public void focusGained(java.awt.event.FocusEvent evt) {\n focusTxt(evt);\n }\n });\n panelTransparan376.add(txtB9AK7_22);\n\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 6;\n gridBagConstraints.gridy = 34;\n gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;\n panelTabel.add(panelTransparan376, gridBagConstraints);\n\n txtB9AK8_22.setColumns(2);\n txtB9AK8_22.setMaxDigit('2');\n txtB9AK8_22.setMinDigit('1');\n txtB9AK8_22.addFocusListener(new java.awt.event.FocusAdapter() {\n public void focusGained(java.awt.event.FocusEvent evt) {\n focusTxt(evt);\n }\n });\n panelTransparan377.add(txtB9AK8_22);\n\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 7;\n gridBagConstraints.gridy = 34;\n gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;\n panelTabel.add(panelTransparan377, gridBagConstraints);\n\n txtB9AK9_22.setColumns(2);\n txtB9AK9_22.setMaxDigit('2');\n txtB9AK9_22.setMinDigit('1');\n txtB9AK9_22.addFocusListener(new java.awt.event.FocusAdapter() {\n public void focusGained(java.awt.event.FocusEvent evt) {\n focusTxt(evt);\n }\n });\n panelTransparan378.add(txtB9AK9_22);\n\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 8;\n gridBagConstraints.gridy = 33;\n gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;\n panelTabel.add(panelTransparan378, gridBagConstraints);\n\n txtB9AK10_22.setColumns(2);\n txtB9AK10_22.setMaxDigit('2');\n txtB9AK10_22.setMinDigit('1');\n txtB9AK10_22.addFocusListener(new java.awt.event.FocusAdapter() {\n public void focusGained(java.awt.event.FocusEvent evt) {\n focusTxt(evt);\n }\n });\n panelTransparan379.add(txtB9AK10_22);\n\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 9;\n gridBagConstraints.gridy = 33;\n gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;\n panelTabel.add(panelTransparan379, gridBagConstraints);\n\n txtB9AK11_22.setColumns(2);\n txtB9AK11_22.setMaxDigit('2');\n txtB9AK11_22.setMinDigit('1');\n txtB9AK11_22.addFocusListener(new java.awt.event.FocusAdapter() {\n public void focusGained(java.awt.event.FocusEvent evt) {\n focusTxt(evt);\n }\n });\n panelTransparan380.add(txtB9AK11_22);\n\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 10;\n gridBagConstraints.gridy = 34;\n gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;\n panelTabel.add(panelTransparan380, gridBagConstraints);\n\n panelTransparan381.setAlpha(70);\n panelTransparan381.setLayout(new java.awt.GridBagLayout());\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 11;\n gridBagConstraints.gridy = 34;\n gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;\n panelTabel.add(panelTransparan381, gridBagConstraints);\n\n txtB9AK13_22.setColumns(2);\n txtB9AK13_22.setMaxDigit('2');\n txtB9AK13_22.setMinDigit('1');\n txtB9AK13_22.addFocusListener(new java.awt.event.FocusAdapter() {\n public void focusGained(java.awt.event.FocusEvent evt) {\n focusTxt(evt);\n }\n });\n panelTransparan382.add(txtB9AK13_22);\n\n txtB9AK13_22Als.setColumns(3);\n txtB9AK13_22Als.addFocusListener(new java.awt.event.FocusAdapter() {\n public void focusGained(java.awt.event.FocusEvent evt) {\n focusTxt(evt);\n }\n });\n panelTransparan382.add(txtB9AK13_22Als);\n\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 12;\n gridBagConstraints.gridy = 33;\n gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;\n panelTabel.add(panelTransparan382, gridBagConstraints);\n\n panelTransparan383.setLayout(new java.awt.GridBagLayout());\n\n label120.setText(\"23\"); // NOI18N\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.insets = new java.awt.Insets(2, 2, 2, 2);\n panelTransparan383.add(label120, gridBagConstraints);\n\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 0;\n gridBagConstraints.gridy = 34;\n gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;\n panelTabel.add(panelTransparan383, gridBagConstraints);\n\n txtB9AK2_23.setColumns(3);\n txtB9AK2_23.setLength(2);\n txtB9AK2_23.addFocusListener(new java.awt.event.FocusAdapter() {\n public void focusGained(java.awt.event.FocusEvent evt) {\n focusTxt(evt);\n }\n });\n panelTransparan384.add(txtB9AK2_23);\n\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 1;\n gridBagConstraints.gridy = 34;\n gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;\n panelTabel.add(panelTransparan384, gridBagConstraints);\n\n panelTransparan385.setAlpha(70);\n panelTransparan385.setLayout(new java.awt.GridBagLayout());\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 2;\n gridBagConstraints.gridy = 34;\n gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;\n panelTabel.add(panelTransparan385, gridBagConstraints);\n\n panelTransparan386.setAlpha(70);\n panelTransparan386.setLayout(new java.awt.GridBagLayout());\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 3;\n gridBagConstraints.gridy = 34;\n gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;\n panelTabel.add(panelTransparan386, gridBagConstraints);\n\n txtB9AK5_23.setColumns(2);\n txtB9AK5_23.setMaxDigit('2');\n txtB9AK5_23.setMinDigit('1');\n txtB9AK5_23.addFocusListener(new java.awt.event.FocusAdapter() {\n public void focusGained(java.awt.event.FocusEvent evt) {\n focusTxt(evt);\n }\n });\n panelTransparan387.add(txtB9AK5_23);\n\n txtB9AK5_23Als.setColumns(3);\n txtB9AK5_23Als.addFocusListener(new java.awt.event.FocusAdapter() {\n public void focusGained(java.awt.event.FocusEvent evt) {\n focusTxt(evt);\n }\n });\n panelTransparan387.add(txtB9AK5_23Als);\n\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 4;\n gridBagConstraints.gridy = 34;\n gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;\n panelTabel.add(panelTransparan387, gridBagConstraints);\n\n txtB9AK6_23.setColumns(2);\n txtB9AK6_23.setMaxDigit('2');\n txtB9AK6_23.setMinDigit('1');\n txtB9AK6_23.addFocusListener(new java.awt.event.FocusAdapter() {\n public void focusGained(java.awt.event.FocusEvent evt) {\n focusTxt(evt);\n }\n });\n panelTransparan388.add(txtB9AK6_23);\n\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 5;\n gridBagConstraints.gridy = 34;\n gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;\n panelTabel.add(panelTransparan388, gridBagConstraints);\n\n txtB9AK7_23.setColumns(2);\n txtB9AK7_23.setMaxDigit('2');\n txtB9AK7_23.setMinDigit('1');\n txtB9AK7_23.addFocusListener(new java.awt.event.FocusAdapter() {\n public void focusGained(java.awt.event.FocusEvent evt) {\n focusTxt(evt);\n }\n });\n panelTransparan389.add(txtB9AK7_23);\n\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 6;\n gridBagConstraints.gridy = 33;\n gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;\n panelTabel.add(panelTransparan389, gridBagConstraints);\n\n txtB9AK8_23.setColumns(2);\n txtB9AK8_23.setMaxDigit('2');\n txtB9AK8_23.setMinDigit('1');\n txtB9AK8_23.addFocusListener(new java.awt.event.FocusAdapter() {\n public void focusGained(java.awt.event.FocusEvent evt) {\n focusTxt(evt);\n }\n });\n panelTransparan390.add(txtB9AK8_23);\n\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 7;\n gridBagConstraints.gridy = 33;\n gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;\n panelTabel.add(panelTransparan390, gridBagConstraints);\n\n txtB9AK9_23.setColumns(2);\n txtB9AK9_23.setMaxDigit('2');\n txtB9AK9_23.setMinDigit('1');\n txtB9AK9_23.addFocusListener(new java.awt.event.FocusAdapter() {\n public void focusGained(java.awt.event.FocusEvent evt) {\n focusTxt(evt);\n }\n });\n panelTransparan391.add(txtB9AK9_23);\n\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 8;\n gridBagConstraints.gridy = 34;\n gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;\n panelTabel.add(panelTransparan391, gridBagConstraints);\n\n txtB9AK10_23.setColumns(2);\n txtB9AK10_23.setMaxDigit('2');\n txtB9AK10_23.setMinDigit('1');\n txtB9AK10_23.addFocusListener(new java.awt.event.FocusAdapter() {\n public void focusGained(java.awt.event.FocusEvent evt) {\n focusTxt(evt);\n }\n });\n panelTransparan392.add(txtB9AK10_23);\n\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 9;\n gridBagConstraints.gridy = 34;\n gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;\n panelTabel.add(panelTransparan392, gridBagConstraints);\n\n txtB9AK11_23.setColumns(2);\n txtB9AK11_23.setMaxDigit('2');\n txtB9AK11_23.setMinDigit('1');\n txtB9AK11_23.addFocusListener(new java.awt.event.FocusAdapter() {\n public void focusGained(java.awt.event.FocusEvent evt) {\n focusTxt(evt);\n }\n });\n panelTransparan393.add(txtB9AK11_23);\n\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 10;\n gridBagConstraints.gridy = 33;\n gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;\n panelTabel.add(panelTransparan393, gridBagConstraints);\n\n panelTransparan394.setAlpha(70);\n panelTransparan394.setLayout(new java.awt.GridBagLayout());\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 11;\n gridBagConstraints.gridy = 33;\n gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;\n panelTabel.add(panelTransparan394, gridBagConstraints);\n\n txtB9AK13_23.setColumns(2);\n txtB9AK13_23.setMaxDigit('2');\n txtB9AK13_23.setMinDigit('1');\n txtB9AK13_23.addFocusListener(new java.awt.event.FocusAdapter() {\n public void focusGained(java.awt.event.FocusEvent evt) {\n focusTxt(evt);\n }\n });\n panelTransparan395.add(txtB9AK13_23);\n\n txtB9AK13_23Als.setColumns(3);\n txtB9AK13_23Als.addFocusListener(new java.awt.event.FocusAdapter() {\n public void focusGained(java.awt.event.FocusEvent evt) {\n focusTxt(evt);\n }\n });\n panelTransparan395.add(txtB9AK13_23Als);\n\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 12;\n gridBagConstraints.gridy = 34;\n gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;\n panelTabel.add(panelTransparan395, gridBagConstraints);\n\n panelTransparan396.setLayout(new java.awt.GridBagLayout());\n\n label121.setText(\"24\"); // NOI18N\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.insets = new java.awt.Insets(2, 2, 2, 2);\n panelTransparan396.add(label121, gridBagConstraints);\n\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 0;\n gridBagConstraints.gridy = 35;\n gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;\n panelTabel.add(panelTransparan396, gridBagConstraints);\n\n txtB9AK2_24.setColumns(3);\n txtB9AK2_24.setLength(2);\n txtB9AK2_24.addFocusListener(new java.awt.event.FocusAdapter() {\n public void focusGained(java.awt.event.FocusEvent evt) {\n focusTxt(evt);\n }\n });\n panelTransparan397.add(txtB9AK2_24);\n\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 1;\n gridBagConstraints.gridy = 35;\n gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;\n panelTabel.add(panelTransparan397, gridBagConstraints);\n\n panelTransparan398.setAlpha(70);\n panelTransparan398.setLayout(new java.awt.GridBagLayout());\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 2;\n gridBagConstraints.gridy = 35;\n gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;\n panelTabel.add(panelTransparan398, gridBagConstraints);\n\n panelTransparan399.setAlpha(70);\n panelTransparan399.setLayout(new java.awt.GridBagLayout());\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 3;\n gridBagConstraints.gridy = 35;\n gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;\n panelTabel.add(panelTransparan399, gridBagConstraints);\n\n txtB9AK5_24.setColumns(2);\n txtB9AK5_24.setMaxDigit('2');\n txtB9AK5_24.setMinDigit('1');\n txtB9AK5_24.addFocusListener(new java.awt.event.FocusAdapter() {\n public void focusGained(java.awt.event.FocusEvent evt) {\n focusTxt(evt);\n }\n });\n panelTransparan400.add(txtB9AK5_24);\n\n txtB9AK5_24Als.setColumns(3);\n txtB9AK5_24Als.addFocusListener(new java.awt.event.FocusAdapter() {\n public void focusGained(java.awt.event.FocusEvent evt) {\n focusTxt(evt);\n }\n });\n panelTransparan400.add(txtB9AK5_24Als);\n\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 4;\n gridBagConstraints.gridy = 35;\n gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;\n panelTabel.add(panelTransparan400, gridBagConstraints);\n\n txtB9AK6_24.setColumns(2);\n txtB9AK6_24.setMaxDigit('2');\n txtB9AK6_24.setMinDigit('1');\n txtB9AK6_24.addFocusListener(new java.awt.event.FocusAdapter() {\n public void focusGained(java.awt.event.FocusEvent evt) {\n focusTxt(evt);\n }\n });\n panelTransparan401.add(txtB9AK6_24);\n\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 5;\n gridBagConstraints.gridy = 35;\n gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;\n panelTabel.add(panelTransparan401, gridBagConstraints);\n\n txtB9AK7_24.setColumns(2);\n txtB9AK7_24.setMaxDigit('2');\n txtB9AK7_24.setMinDigit('1');\n txtB9AK7_24.addFocusListener(new java.awt.event.FocusAdapter() {\n public void focusGained(java.awt.event.FocusEvent evt) {\n focusTxt(evt);\n }\n });\n panelTransparan402.add(txtB9AK7_24);\n\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 6;\n gridBagConstraints.gridy = 35;\n gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;\n panelTabel.add(panelTransparan402, gridBagConstraints);\n\n txtB9AK8_24.setColumns(2);\n txtB9AK8_24.setMaxDigit('2');\n txtB9AK8_24.setMinDigit('1');\n txtB9AK8_24.addFocusListener(new java.awt.event.FocusAdapter() {\n public void focusGained(java.awt.event.FocusEvent evt) {\n focusTxt(evt);\n }\n });\n panelTransparan403.add(txtB9AK8_24);\n\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 7;\n gridBagConstraints.gridy = 35;\n gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;\n panelTabel.add(panelTransparan403, gridBagConstraints);\n\n txtB9AK9_24.setColumns(2);\n txtB9AK9_24.setMaxDigit('2');\n txtB9AK9_24.setMinDigit('1');\n txtB9AK9_24.addFocusListener(new java.awt.event.FocusAdapter() {\n public void focusGained(java.awt.event.FocusEvent evt) {\n focusTxt(evt);\n }\n });\n panelTransparan404.add(txtB9AK9_24);\n\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 8;\n gridBagConstraints.gridy = 35;\n gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;\n panelTabel.add(panelTransparan404, gridBagConstraints);\n\n txtB9AK10_24.setColumns(2);\n txtB9AK10_24.setMaxDigit('2');\n txtB9AK10_24.setMinDigit('1');\n txtB9AK10_24.addFocusListener(new java.awt.event.FocusAdapter() {\n public void focusGained(java.awt.event.FocusEvent evt) {\n focusTxt(evt);\n }\n });\n panelTransparan405.add(txtB9AK10_24);\n\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 9;\n gridBagConstraints.gridy = 35;\n gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;\n panelTabel.add(panelTransparan405, gridBagConstraints);\n\n txtB9AK11_24.setColumns(2);\n txtB9AK11_24.setMaxDigit('2');\n txtB9AK11_24.setMinDigit('1');\n txtB9AK11_24.addFocusListener(new java.awt.event.FocusAdapter() {\n public void focusGained(java.awt.event.FocusEvent evt) {\n focusTxt(evt);\n }\n });\n panelTransparan406.add(txtB9AK11_24);\n\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 10;\n gridBagConstraints.gridy = 35;\n gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;\n panelTabel.add(panelTransparan406, gridBagConstraints);\n\n panelTransparan407.setAlpha(70);\n panelTransparan407.setLayout(new java.awt.GridBagLayout());\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 11;\n gridBagConstraints.gridy = 35;\n gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;\n panelTabel.add(panelTransparan407, gridBagConstraints);\n\n txtB9AK13_24.setColumns(2);\n txtB9AK13_24.setMaxDigit('2');\n txtB9AK13_24.setMinDigit('1');\n txtB9AK13_24.addFocusListener(new java.awt.event.FocusAdapter() {\n public void focusGained(java.awt.event.FocusEvent evt) {\n focusTxt(evt);\n }\n });\n panelTransparan408.add(txtB9AK13_24);\n\n txtB9AK13_24Als.setColumns(3);\n txtB9AK13_24Als.addFocusListener(new java.awt.event.FocusAdapter() {\n public void focusGained(java.awt.event.FocusEvent evt) {\n focusTxt(evt);\n }\n });\n panelTransparan408.add(txtB9AK13_24Als);\n\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 12;\n gridBagConstraints.gridy = 35;\n gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;\n panelTabel.add(panelTransparan408, gridBagConstraints);\n\n panelTransparan409.setLayout(new java.awt.GridBagLayout());\n\n label122.setText(\"25\"); // NOI18N\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.insets = new java.awt.Insets(2, 2, 2, 2);\n panelTransparan409.add(label122, gridBagConstraints);\n\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 0;\n gridBagConstraints.gridy = 37;\n gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;\n panelTabel.add(panelTransparan409, gridBagConstraints);\n\n txtB9AK2_25.setColumns(3);\n txtB9AK2_25.setLength(2);\n txtB9AK2_25.addFocusListener(new java.awt.event.FocusAdapter() {\n public void focusGained(java.awt.event.FocusEvent evt) {\n focusTxt(evt);\n }\n });\n panelTransparan410.add(txtB9AK2_25);\n\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 1;\n gridBagConstraints.gridy = 37;\n gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;\n panelTabel.add(panelTransparan410, gridBagConstraints);\n\n panelTransparan411.setAlpha(70);\n panelTransparan411.setLayout(new java.awt.GridBagLayout());\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 2;\n gridBagConstraints.gridy = 37;\n gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;\n panelTabel.add(panelTransparan411, gridBagConstraints);\n\n panelTransparan412.setAlpha(70);\n panelTransparan412.setLayout(new java.awt.GridBagLayout());\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 3;\n gridBagConstraints.gridy = 37;\n gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;\n panelTabel.add(panelTransparan412, gridBagConstraints);\n\n txtB9AK5_25.setColumns(2);\n txtB9AK5_25.setMaxDigit('2');\n txtB9AK5_25.setMinDigit('1');\n txtB9AK5_25.addFocusListener(new java.awt.event.FocusAdapter() {\n public void focusGained(java.awt.event.FocusEvent evt) {\n focusTxt(evt);\n }\n });\n panelTransparan413.add(txtB9AK5_25);\n\n txtB9AK5_25Als.setColumns(3);\n txtB9AK5_25Als.addFocusListener(new java.awt.event.FocusAdapter() {\n public void focusGained(java.awt.event.FocusEvent evt) {\n focusTxt(evt);\n }\n });\n panelTransparan413.add(txtB9AK5_25Als);\n\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 4;\n gridBagConstraints.gridy = 37;\n gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;\n panelTabel.add(panelTransparan413, gridBagConstraints);\n\n txtB9AK6_25.setColumns(2);\n txtB9AK6_25.setMaxDigit('2');\n txtB9AK6_25.setMinDigit('1');\n txtB9AK6_25.addFocusListener(new java.awt.event.FocusAdapter() {\n public void focusGained(java.awt.event.FocusEvent evt) {\n focusTxt(evt);\n }\n });\n panelTransparan414.add(txtB9AK6_25);\n\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 5;\n gridBagConstraints.gridy = 37;\n gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;\n panelTabel.add(panelTransparan414, gridBagConstraints);\n\n txtB9AK7_25.setColumns(2);\n txtB9AK7_25.setMaxDigit('2');\n txtB9AK7_25.setMinDigit('1');\n txtB9AK7_25.addFocusListener(new java.awt.event.FocusAdapter() {\n public void focusGained(java.awt.event.FocusEvent evt) {\n focusTxt(evt);\n }\n });\n panelTransparan415.add(txtB9AK7_25);\n\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 6;\n gridBagConstraints.gridy = 37;\n gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;\n panelTabel.add(panelTransparan415, gridBagConstraints);\n\n txtB9AK8_25.setColumns(2);\n txtB9AK8_25.setMaxDigit('2');\n txtB9AK8_25.setMinDigit('1');\n txtB9AK8_25.addFocusListener(new java.awt.event.FocusAdapter() {\n public void focusGained(java.awt.event.FocusEvent evt) {\n focusTxt(evt);\n }\n });\n panelTransparan416.add(txtB9AK8_25);\n\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 7;\n gridBagConstraints.gridy = 37;\n gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;\n panelTabel.add(panelTransparan416, gridBagConstraints);\n\n txtB9AK9_25.setColumns(2);\n txtB9AK9_25.setMaxDigit('2');\n txtB9AK9_25.setMinDigit('1');\n txtB9AK9_25.addFocusListener(new java.awt.event.FocusAdapter() {\n public void focusGained(java.awt.event.FocusEvent evt) {\n focusTxt(evt);\n }\n });\n panelTransparan417.add(txtB9AK9_25);\n\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 8;\n gridBagConstraints.gridy = 37;\n gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;\n panelTabel.add(panelTransparan417, gridBagConstraints);\n\n txtB9AK10_25.setColumns(2);\n txtB9AK10_25.setMaxDigit('2');\n txtB9AK10_25.setMinDigit('1');\n txtB9AK10_25.addFocusListener(new java.awt.event.FocusAdapter() {\n public void focusGained(java.awt.event.FocusEvent evt) {\n focusTxt(evt);\n }\n });\n panelTransparan418.add(txtB9AK10_25);\n\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 9;\n gridBagConstraints.gridy = 37;\n gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;\n panelTabel.add(panelTransparan418, gridBagConstraints);\n\n txtB9AK11_25.setColumns(2);\n txtB9AK11_25.setMaxDigit('2');\n txtB9AK11_25.setMinDigit('1');\n txtB9AK11_25.addFocusListener(new java.awt.event.FocusAdapter() {\n public void focusGained(java.awt.event.FocusEvent evt) {\n focusTxt(evt);\n }\n });\n panelTransparan419.add(txtB9AK11_25);\n\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 10;\n gridBagConstraints.gridy = 37;\n gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;\n panelTabel.add(panelTransparan419, gridBagConstraints);\n\n panelTransparan420.setAlpha(70);\n panelTransparan420.setLayout(new java.awt.GridBagLayout());\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 11;\n gridBagConstraints.gridy = 37;\n gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;\n panelTabel.add(panelTransparan420, gridBagConstraints);\n\n txtB9AK13_25.setColumns(2);\n txtB9AK13_25.setMaxDigit('2');\n txtB9AK13_25.setMinDigit('1');\n txtB9AK13_25.addFocusListener(new java.awt.event.FocusAdapter() {\n public void focusGained(java.awt.event.FocusEvent evt) {\n focusTxt(evt);\n }\n });\n panelTransparan421.add(txtB9AK13_25);\n\n txtB9AK13_25Als.setColumns(3);\n txtB9AK13_25Als.addFocusListener(new java.awt.event.FocusAdapter() {\n public void focusGained(java.awt.event.FocusEvent evt) {\n focusTxt(evt);\n }\n });\n panelTransparan421.add(txtB9AK13_25Als);\n\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 12;\n gridBagConstraints.gridy = 37;\n gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;\n panelTabel.add(panelTransparan421, gridBagConstraints);\n\n panelTransparan422.setAlpha(70);\n panelTransparan422.setLayout(new java.awt.GridBagLayout());\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 0;\n gridBagConstraints.gridy = 38;\n gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;\n panelTabel.add(panelTransparan422, gridBagConstraints);\n\n panelTransparan423.setAlpha(70);\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 1;\n gridBagConstraints.gridy = 38;\n gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;\n panelTabel.add(panelTransparan423, gridBagConstraints);\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 2;\n gridBagConstraints.gridy = 38;\n gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;\n panelTabel.add(panelTransparan424, gridBagConstraints);\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 3;\n gridBagConstraints.gridy = 38;\n gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;\n panelTabel.add(panelTransparan425, gridBagConstraints);\n\n panelTransparan426.setAlpha(70);\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 4;\n gridBagConstraints.gridy = 38;\n gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;\n panelTabel.add(panelTransparan426, gridBagConstraints);\n\n panelTransparan427.setAlpha(70);\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 5;\n gridBagConstraints.gridy = 38;\n gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;\n panelTabel.add(panelTransparan427, gridBagConstraints);\n\n panelTransparan428.setAlpha(70);\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 6;\n gridBagConstraints.gridy = 38;\n gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;\n panelTabel.add(panelTransparan428, gridBagConstraints);\n\n panelTransparan429.setAlpha(70);\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 7;\n gridBagConstraints.gridy = 38;\n gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;\n panelTabel.add(panelTransparan429, gridBagConstraints);\n\n panelTransparan430.setAlpha(70);\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 8;\n gridBagConstraints.gridy = 38;\n gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;\n panelTabel.add(panelTransparan430, gridBagConstraints);\n\n panelTransparan431.setAlpha(70);\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 9;\n gridBagConstraints.gridy = 38;\n gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;\n panelTabel.add(panelTransparan431, gridBagConstraints);\n\n panelTransparan432.setAlpha(70);\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 10;\n gridBagConstraints.gridy = 38;\n gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;\n panelTabel.add(panelTransparan432, gridBagConstraints);\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 11;\n gridBagConstraints.gridy = 38;\n gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;\n panelTabel.add(panelTransparan433, gridBagConstraints);\n\n panelTransparan434.setAlpha(70);\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 12;\n gridBagConstraints.gridy = 38;\n gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;\n panelTabel.add(panelTransparan434, gridBagConstraints);\n\n javax.swing.GroupLayout panelScrollLayout = new javax.swing.GroupLayout(panelScroll);\n panelScroll.setLayout(panelScrollLayout);\n panelScrollLayout.setHorizontalGroup(\n panelScrollLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(panelScrollLayout.createSequentialGroup()\n .addContainerGap()\n .addComponent(panelTabel, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addContainerGap(275, Short.MAX_VALUE))\n );\n panelScrollLayout.setVerticalGroup(\n panelScrollLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(panelScrollLayout.createSequentialGroup()\n .addContainerGap()\n .addComponent(panelTabel, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addContainerGap(31, Short.MAX_VALUE))\n );\n\n scroolPane1.setViewportView(panelScroll);\n\n add(scroolPane1, java.awt.BorderLayout.CENTER);\n }",
"private void inicializarComponentes() {\n\n\n comenzar = new JButton(devolverImagenButton(\"comenzar\", \"png\", 300, 300));\n comenzar.setRolloverIcon(devolverImagenButton(\"comenzar1\", \"png\", 300, 300));\n comenzar.setBackground(Color.WHITE);\n comenzar.setBorder(null);\n comenzar.setActionCommand(\"COMENZAR\");\n comenzar.setBounds(335, 450, 240, 100);\n add(comenzar);\n\n l1 = new JLabel();\n devolverImagenLabel(\"Bienvenido\", \"gif\", 900, 700, l1);\n l1.setBounds(0, 0, 900, 700);\n add(l1);\n\n }",
"private void initComponents() {\n java.awt.GridBagConstraints gridBagConstraints;\n\n obsahFrame = new cz.wt.convertor.main.gui.ObsahFrame();\n menuBar = new javax.swing.JMenuBar();\n javax.swing.JMenu fileMenu = new javax.swing.JMenu();\n javax.swing.JMenuItem exitMenuItem = new javax.swing.JMenuItem();\n javax.swing.JMenu helpMenu = new javax.swing.JMenu();\n helpMenuItem = new javax.swing.JMenuItem();\n javax.swing.JMenuItem aboutMenuItem = new javax.swing.JMenuItem();\n\n setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE);\n java.util.ResourceBundle bundle = java.util.ResourceBundle.getBundle(\"cz/wt/convertor/main/gui/Bundle\"); // NOI18N\n setTitle(bundle.getString(\"MainFrame.title\")); // NOI18N\n setMinimumSize(new java.awt.Dimension(300, 30));\n getContentPane().setLayout(new java.awt.GridBagLayout());\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.fill = java.awt.GridBagConstraints.HORIZONTAL;\n gridBagConstraints.anchor = java.awt.GridBagConstraints.NORTHWEST;\n gridBagConstraints.weightx = 1.0;\n gridBagConstraints.weighty = 1.0;\n getContentPane().add(obsahFrame, gridBagConstraints);\n\n fileMenu.setText(bundle.getString(\"MainFrame.fileMenu.text\")); // NOI18N\n\n javax.swing.ActionMap actionMap = org.jdesktop.application.Application.getInstance().getContext().getActionMap(MainFrame.class, this);\n exitMenuItem.setAction(actionMap.get(\"quit\")); // NOI18N\n fileMenu.add(exitMenuItem);\n\n menuBar.add(fileMenu);\n\n helpMenu.setText(bundle.getString(\"MainFrame.helpMenu.text\")); // NOI18N\n\n helpMenuItem.setAction(actionMap.get(\"showHelpBox\")); // NOI18N\n helpMenuItem.setText(bundle.getString(\"MainFrame.helpMenuItem.text\")); // NOI18N\n helpMenuItem.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n napoveda(evt);\n }\n });\n helpMenu.add(helpMenuItem);\n\n aboutMenuItem.setText(bundle.getString(\"MainFrame.aboutMenuItem.text\")); // NOI18N\n aboutMenuItem.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n about(evt);\n }\n });\n helpMenu.add(aboutMenuItem);\n\n menuBar.add(helpMenu);\n\n setJMenuBar(menuBar);\n\n pack();\n }",
"public JFrameCadastroCategoria() {\n initComponents();\n }",
"public mainframe() {\n initComponents();\n }",
"public MainFrame() {\n initComponents();\n \n }",
"public frameAddDepartments() {\n initComponents();\n }",
"public UTL_JFrame_VentanaGraficas() {\n \n initComponents();\n }",
"public Frame1() {\n initComponents();\n }",
"public MenuFrame() {\n initComponents();\n }",
"private void initialize() {\n\t\tfrmAutomatos = new JFrame();\n\t\tfrmAutomatos.setResizable(false);\n\t\tfrmAutomatos.getContentPane().setBackground(Color.LIGHT_GRAY);\n\t\tfrmAutomatos.setBackground(Color.GRAY);\n\t\tfrmAutomatos.setTitle(\"Automatos\");\n\t\tfrmAutomatos.setBounds(100, 100, 600, 600);\n\t\tfrmAutomatos.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\n\t\tfrmAutomatos.setJMenuBar(getMenuBar());\n\t\tfrmAutomatos.getContentPane().setLayout(null);\n\t\tfrmAutomatos.getContentPane().add(getLblNewLabel());\n\t\tfrmAutomatos.getContentPane().add(getLblAutomato());\n\t\tfrmAutomatos.getContentPane().add(getScrollPane());\n\t\tfrmAutomatos.getContentPane().add(getScrollPane_1());\n\t\tfrmAutomatos.getContentPane().add(getButton_2());\n\t\tfrmAutomatos.getContentPane().add(getButton_1_1());\n\t\tfrmAutomatos.getContentPane().add(getButton_2_1());\n\t\tfrmAutomatos.getContentPane().add(getTextField_1());\n\t\tfrmAutomatos.getContentPane().add(getBtnRecognize_1());\n\t\tfrmAutomatos.getContentPane().add(getRemove_1());\n\t\tfrmAutomatos.getContentPane().add(getMinimize_1());\n\t\tfrmAutomatos.getContentPane().add(getTextField_3());\n\t\tfrmAutomatos.getContentPane().add(getLblint());\n\t\tfrmAutomatos.getContentPane().add(getBtnRe());\n\t\tfrmAutomatos.getContentPane().add(getRemoverDireita());\n\t\tfrmAutomatos.getContentPane().add(getUsar());\n\t\tfrmAutomatos.getContentPane().add(getButtonVerificarEquivalencia());\n\t\tfrmAutomatos.getContentPane().add(getComboBox());\n\t\t\n\t\tJLabel lblAutomatosSalvos = new JLabel(\"Automatos salvos\");\n\t\tlblAutomatosSalvos.setBounds(342, 458, 148, 15);\n\t\tfrmAutomatos.getContentPane().add(lblAutomatosSalvos);\n\t\n\n\t}",
"public addStFrame() {\n initComponents();\n }",
"private void initComponents() {\r\n\r\n setLayout(new java.awt.BorderLayout());\r\n }",
"private void inicialitzarComponents() {\n\t\tsetLayout(new BorderLayout(0, 0));\n\n\t\tJPanel panel = new JPanel();\n\t\tpanel.setOpaque(false);\n\t\tadd(panel, BorderLayout.NORTH);\n\n\t\tBox verticalBox = Box.createVerticalBox();\n\t\tverticalBox.setOpaque(false);\n\t\tpanel.add(verticalBox);\n\n\t\tJPanel panel_2 = new JPanel();\n\t\tpanel_2.setOpaque(false);\n\t\tverticalBox.add(panel_2);\n\n\t\tJPanel panel_3 = new JPanel();\n\t\tpanel_3.setOpaque(false);\n\t\tverticalBox.add(panel_3);\n\n\t\tJLabel lblNewLabel = new JLabel(nomUsuari);\n\t\tlblNewLabel.setFont(lblNewLabel.getFont().deriveFont(30f));\n\t\tpanel_3.add(lblNewLabel);\n\n\t\tJPanel panel_1 = new JPanel();\n\t\tpanel_1.setOpaque(false);\n\t\tadd(panel_1, BorderLayout.CENTER);\n\n\t\tBox verticalBox_1 = Box.createVerticalBox();\n\t\tverticalBox_1.setOpaque(false);\n\t\tpanel_1.add(verticalBox_1);\n\n\t\tJPanel panel_4 = new JPanel();\n\t\tpanel_4.setOpaque(false);\n\t\tverticalBox_1.add(panel_4);\n\n\t\tJLabel lblNewLabel_1 = new JLabel(\"Peces girades:\");\n\t\tpanel_4.add(lblNewLabel_1);\n\n\t\tJLabel lblNewLabel_2 = new JLabel(String.valueOf(records.get(\"pecesGirades\")));\n\t\tpanel_4.add(lblNewLabel_2);\n\n\t\tJPanel panel_5 = new JPanel();\n\t\tpanel_5.setOpaque(false);\n\t\tverticalBox_1.add(panel_5);\n\n\t\tJLabel lblNewLabel_3 = new JLabel(\"Partides blanques guanyades:\");\n\t\tpanel_5.add(lblNewLabel_3);\n\n\t\tJLabel lblNewLabel_4 = new JLabel(String.valueOf(records.get(\"partidesBlanquesGuanyades\")));\n\t\tpanel_5.add(lblNewLabel_4);\n\n\t\tJPanel panel_6 = new JPanel();\n\t\tpanel_6.setOpaque(false);\n\t\tverticalBox_1.add(panel_6);\n\n\t\tJLabel lblNewLabel_5 = new JLabel(\"Partides negres guanyades:\");\n\t\tpanel_6.add(lblNewLabel_5);\n\n\t\tJLabel lblNewLabel_6 = new JLabel(String.valueOf(records.get(\"partidesNegresGuanyades\")));\n\t\tpanel_6.add(lblNewLabel_6);\n\n\t\tpanellRanking.setLayout(new BorderLayout());\n\t\tpanellRanking.add(menu, BorderLayout.NORTH);\n\t\tpanellRanking.add(taulaHoritzontal, BorderLayout.CENTER);\n\t\tpanellRanking.setBorder(BorderFactory.createLineBorder(Color.white, 4));\n\t\tJPanel panel_7 = new JPanel();\n\t\tpanel_7.setOpaque(false);\n\t\tpanel_7.setSize(20, 20);\n\t\tpanel_7.add(panellRanking);\n\t\tverticalBox_1.add(panel_7);\n\t}",
"public FrameCadastro(String tipo[]){\r\n\t\tsuper(\"ApartManager-Cadastro\");\r\n\t\t\r\n\t\tPanelCadastro panelC = new PanelCadastro(tipo);\r\n\t\t\r\n\t\tsetDefaultCloseOperation(DISPOSE_ON_CLOSE);\r\n\t\tsetSize(700, 700);\r\n\t\tsetLocationRelativeTo(null);\r\n\t\tsetVisible(true);\r\n\t\tsetResizable(false);\r\n\t\t\r\n\t\tJPanel panel = new JPanel();\r\n\t\tsetContentPane(panel);\r\n\t\tpanel.setLayout(null);\r\n\t\tpanelC.setBounds(0, 0, 700, 700);\r\n\t\tpanel.add(panelC);\r\n\t\tpanel.setVisible(true);\r\n\t}",
"public MainFrame() {\n initComponents();\n\n\n }",
"public PilaFrame() {\n initComponents();\n }",
"Frame2(){\n initComponants();//this is a method\n }",
"public FrameInsert() {\n initComponents();\n }",
"public Mainframe() {\n initComponents();\n }",
"public vistaPanelPelicula() {\r\n initComponents();\r\n }",
"private void inicializarComponentes() {\n universidadesIncluidos = UniversidadFacade.getInstance().listarTodosUniversidadOrdenados();\n universidadesIncluidos.removeAll(universidadesExcluidos);\n Comunes.cargarJList(jListMatriculasCatastrales, universidadesIncluidos);\n }",
"private void initialize() {\n\t\tframe = new JFrame();\n\t\tframe.setBounds(100, 100, 450, 300);\n\t\tframe.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\n\t\t\n\t\tJLabel lblNombre = new JLabel(\"Nombre\");\n\t\t\n\t\ttextNombre = new JTextField();\n\t\ttextNombre.setColumns(10);\n\t\t\n\t\tJLabel lblApellido = new JLabel(\"Apellido\");\n\t\t\n\t\ttextApellido = new JTextField();\n\t\ttextApellido.setColumns(10);\n\t\t\n\t\tJLabel lblDni = new JLabel(\"DNI\");\n\t\t\n\t\ttextDNI = new JTextField();\n\t\ttextDNI.setColumns(10);\n\t\t\n\t\trdbtnHabilitado = new JRadioButton(\"Habilitado\");\n\t\t\n\t\tbtnAlta = new JButton(\"Alta\");\n\t\tbtnAlta.addActionListener(new ActionListener() {\n\t\t\tpublic void actionPerformed(ActionEvent arg0) {\n\t\t\t}\n\t\t});\n\t\tbtnAlta.addMouseListener(new MouseAdapter() {\n\t\t\t@Override\n\t\t\tpublic void mouseClicked(MouseEvent arg0) {\n\t\t\t\t\n\t\t\t\tlista.addPibe(textNombre.getText(), textApellido.getText(), textDNI.getText());\n\t\t\t\t\n\t\t\t}\n\t\t});\n\t\t\n\t\tbtnBaja = new JButton(\"Baja\");\n\t\tbtnBaja.addMouseListener(new MouseAdapter() {\n\t\t\t@Override\n\t\t\tpublic void mouseClicked(MouseEvent e) {\n\t\t\t\tlista.killPibe(textDNI.getText());\n\t\t\t}\n\t\t});\n\t\tbtnBaja.addActionListener(new ActionListener() {\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t}\n\t\t});\n\t\t\n\t\tbtnModificacion = new JButton(\"Modificacion\");\n\t\t\n\t\tbtnBuscar = new JButton(\"Buscar\");\n\t\tbtnBuscar.addMouseListener(new MouseAdapter() {\n\t\t\t@Override\n\t\t\tpublic void mouseClicked(MouseEvent e) {\n\t\t\t\tPersona pibe= new Persona();\n\t\t\t\tpibe=lista.seekPibe(textDNI.getText());\n\t\t\t\ttextNombre.setText(pibe.getNombre());\n\t\t\t\ttextApellido.setText(pibe.getApellido());\n\t\t\t\t\n\t\t\t}\n\t\t});\n\t\tbtnBuscar.addActionListener(new ActionListener() {\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t}\n\t\t});\n\t\t\n\t\tJDesktopPane desktopPane = new JDesktopPane();\n\t\tGroupLayout groupLayout = new GroupLayout(frame.getContentPane());\n\t\tgroupLayout.setHorizontalGroup(\n\t\t\tgroupLayout.createParallelGroup(Alignment.LEADING)\n\t\t\t\t.addGroup(groupLayout.createSequentialGroup()\n\t\t\t\t\t.addGroup(groupLayout.createParallelGroup(Alignment.LEADING)\n\t\t\t\t\t\t.addGroup(groupLayout.createSequentialGroup()\n\t\t\t\t\t\t\t.addGap(75)\n\t\t\t\t\t\t\t.addComponent(btnAlta)\n\t\t\t\t\t\t\t.addGap(18)\n\t\t\t\t\t\t\t.addGroup(groupLayout.createParallelGroup(Alignment.TRAILING, false)\n\t\t\t\t\t\t\t\t.addGroup(groupLayout.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t.addComponent(lblNombre)\n\t\t\t\t\t\t\t\t\t.addGap(18)\n\t\t\t\t\t\t\t\t\t.addComponent(textNombre, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED))\n\t\t\t\t\t\t\t\t.addGroup(groupLayout.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t.addComponent(btnBaja)\n\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED, GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n\t\t\t\t\t\t\t\t\t.addComponent(btnModificacion))\n\t\t\t\t\t\t\t\t.addGroup(groupLayout.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t.addGap(10)\n\t\t\t\t\t\t\t\t\t.addComponent(lblDni)\n\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED, GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n\t\t\t\t\t\t\t\t\t.addGroup(groupLayout.createParallelGroup(Alignment.LEADING)\n\t\t\t\t\t\t\t\t\t\t.addComponent(rdbtnHabilitado)\n\t\t\t\t\t\t\t\t\t\t.addComponent(textDNI, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)))\n\t\t\t\t\t\t\t\t.addGroup(groupLayout.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t.addComponent(lblApellido)\n\t\t\t\t\t\t\t\t\t.addGap(18)\n\t\t\t\t\t\t\t\t\t.addComponent(textApellido, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)))\n\t\t\t\t\t\t\t.addGap(18)\n\t\t\t\t\t\t\t.addComponent(btnBuscar))\n\t\t\t\t\t\t.addComponent(desktopPane, GroupLayout.PREFERRED_SIZE, 1, GroupLayout.PREFERRED_SIZE))\n\t\t\t\t\t.addContainerGap(65, Short.MAX_VALUE))\n\t\t);\n\t\tgroupLayout.setVerticalGroup(\n\t\t\tgroupLayout.createParallelGroup(Alignment.LEADING)\n\t\t\t\t.addGroup(groupLayout.createSequentialGroup()\n\t\t\t\t\t.addComponent(desktopPane, GroupLayout.PREFERRED_SIZE, 1, GroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t.addGap(28)\n\t\t\t\t\t.addGroup(groupLayout.createParallelGroup(Alignment.BASELINE)\n\t\t\t\t\t\t.addComponent(textNombre, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t.addComponent(lblNombre))\n\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t.addGroup(groupLayout.createParallelGroup(Alignment.TRAILING)\n\t\t\t\t\t\t.addComponent(lblApellido)\n\t\t\t\t\t\t.addComponent(textApellido, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE))\n\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t.addGroup(groupLayout.createParallelGroup(Alignment.BASELINE)\n\t\t\t\t\t\t.addComponent(textDNI, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t.addComponent(lblDni))\n\t\t\t\t\t.addGap(31)\n\t\t\t\t\t.addComponent(rdbtnHabilitado)\n\t\t\t\t\t.addGap(30)\n\t\t\t\t\t.addGroup(groupLayout.createParallelGroup(Alignment.BASELINE)\n\t\t\t\t\t\t.addComponent(btnModificacion)\n\t\t\t\t\t\t.addComponent(btnBaja)\n\t\t\t\t\t\t.addComponent(btnAlta)\n\t\t\t\t\t\t.addComponent(btnBuscar))\n\t\t\t\t\t.addContainerGap(58, Short.MAX_VALUE))\n\t\t);\n\t\tframe.getContentPane().setLayout(groupLayout);\n\t}",
"private void initialize() {\n\t\t\n\t\t\n\t\tfrmGestionAvisosPublicitarios = new JFrame();\n\t\tfrmGestionAvisosPublicitarios.setTitle(\"GESTION DE AVISOS PUBLICITARIOS\");\n\t\tfrmGestionAvisosPublicitarios.setResizable(false);\n\t\tfrmGestionAvisosPublicitarios.setBounds(100, 100, 450, 370);\n\t\tfrmGestionAvisosPublicitarios.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\n\t\tfrmGestionAvisosPublicitarios.getContentPane().setLayout(null);\n\t\t\n\t\t/**\n\t\t * -----------------------------------------------\n\t\t * \t\t \t\tCONTENEDOR PRINCIPAL\n\t\t * -----------------------------------------------\n\t\t */\n\t\tcontenedor = new JPanel();\n\t\tcontenedor.setBounds(6, 6, 438, 314);\n\t\tfrmGestionAvisosPublicitarios.getContentPane().add(contenedor);\n\t\tcontenedor.setLayout(new CardLayout(0, 0));\n\t\t\n\t\t/* paneles alternativos */\n\t\tcontenedor.add(new CrearAvisoPanel(),\"CrearAvisoPanel\");\n\t\tcontenedor.add(new ListarAvisoPanel(),\"ListarAvisoPanel\");\n\t\t\n\t\tJMenuBar menuBar = new JMenuBar();\n\t\tfrmGestionAvisosPublicitarios.setJMenuBar(menuBar);\n\t\t\n\t\tJMenu mnAvisos = new JMenu(\"Avisos\");\n\t\tmenuBar.add(mnAvisos);\n\t\t\n\t\t/**\n\t\t * -----------------------------------------------\n\t\t * \t\t \t\t\tEVENTOS MENU\n\t\t * -----------------------------------------------\n\t\t */\n\t\t\n\t\tJMenuItem mntmCrear = new JMenuItem(\"Crear\");\n\t\tmntmCrear.addActionListener(new ActionListener() {\n\t\t\tpublic void actionPerformed(ActionEvent e) { \n\t\t\t\t((CardLayout)contenedor.getLayout()).show(contenedor, \"CrearAvisoPanel\"); \n\t\t\t}\n\t\t});\n\t\tmnAvisos.add(mntmCrear);\n\t\t\n\t\tJMenuItem mntmListar = new JMenuItem(\"Listar\");\n\t\tmntmListar.addActionListener(new ActionListener() {\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\t((CardLayout)contenedor.getLayout()).show(contenedor, \"ListarAvisoPanel\");\n\t\t\t}\n\t\t});\n\t\tmnAvisos.add(mntmListar);\n\t\t\n\t}",
"private void initialize() {\r\n\t\tframe = new JFrame();\r\n\t\tframe.getContentPane().setBackground(Color.WHITE);\r\n\t\tframe.setBounds(100, 100, 713, 506);\r\n\t\tframe.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\r\n\t\tframe.getContentPane().setLayout(null);\r\n\t\t\r\n\t\tJButton btnEstatistica = new JButton(\"Estatística\");\r\n\t\tbtnEstatistica.setBounds(422, 408, 151, 39);\r\n\t\tframe.getContentPane().add(btnEstatistica);\r\n\t\t\r\n\t\tJButton btnEmprestimo = new JButton(\"Emprestimo de Obras\");\r\n\t\tbtnEmprestimo.setBounds(292, 397, 151, 39);\r\n\t\tframe.getContentPane().add(btnEmprestimo);\r\n\t\t\r\n\t\tJPanel pnCadastro = new JPanel();\r\n\t\tpnCadastro.setBorder(new TitledBorder(null, \"Cadastrar\", TitledBorder.LEADING, TitledBorder.TOP, null, null));\r\n\t\tpnCadastro.setBounds(62, 233, 547, 134);\r\n\t\tframe.getContentPane().add(pnCadastro);\r\n\t\tpnCadastro.setLayout(null);\r\n\t\t\r\n\t\tJButton btnObra = new JButton(\"\");\r\n\t\tbtnObra.setBounds(110, 28, 117, 60);\r\n\t\tpnCadastro.add(btnObra);\r\n\t\tbtnObra.setIcon(new ImageIcon(TelaPrincipal.class.getResource(\"/icon/img-paint.png\")));\r\n\t\t\r\n\t\tJLabel lblObras = new JLabel(\"Obras\");\r\n\t\tlblObras.setBounds(148, 100, 55, 16);\r\n\t\tpnCadastro.add(lblObras);\r\n\t\t\r\n\t\tJButton btnAutor = new JButton(\"\");\r\n\t\tbtnAutor.setBounds(272, 28, 117, 60);\r\n\t\tpnCadastro.add(btnAutor);\r\n\t\tbtnAutor.setIcon(new ImageIcon(TelaPrincipal.class.getResource(\"/icon/img-pen.png\")));\r\n\t\t\r\n\t\tJLabel lblAutores = new JLabel(\"Autores\");\r\n\t\tlblAutores.setBounds(306, 100, 55, 16);\r\n\t\tpnCadastro.add(lblAutores);\r\n\t\tbtnEstatistica.addActionListener(this);\r\n\t\t\r\n\t\t//\r\n\r\n\t\t\r\n\t\tJPanel pnVenda = new JPanel();\r\n\t\tpnVenda.setBorder(new TitledBorder(null, \"Venda\", TitledBorder.LEADING, TitledBorder.TOP, null, null));\r\n\t\tpnVenda.setBounds(62, 93, 547, 134);\r\n\t\tframe.getContentPane().add(pnVenda);\r\n\t\tpnVenda.setLayout(null);\r\n\t\t\r\n\t\tJButton btnVenda = new JButton(\"\");\r\n\t\tbtnVenda.setIcon(new ImageIcon(TelaPrincipal.class.getResource(\"/icon/img-ticket.png\")));\r\n\t\tbtnVenda.setBounds(110, 28, 117, 60);\r\n\t\tpnVenda.add(btnVenda);\r\n\t\t\r\n\t\tJLabel lblIngressos = new JLabel(\"Ingressos\");\r\n\t\tlblIngressos.setBounds(142, 100, 69, 16);\r\n\t\tpnVenda.add(lblIngressos);\r\n\t\t\r\n\t\tpnCadastro.setOpaque(false);\r\n\t\tpnVenda.setOpaque(false);\r\n\t\t\r\n\t\t\r\n\t}",
"private static void inicializarComponentes() {\n\t\tgaraje = new Garaje();\r\n\t\tgarajeController=new GarajeController();\r\n\t\tgarajeController.iniciarPlazas();\r\n\t\t\r\n\t\tmenuInicio = new StringBuilder();\r\n\t\tmenuInicio.append(\"¡Bienvenido al garaje!\\n\");\r\n\t\tmenuInicio.append(\"****************************************\\n\");\r\n\t\tmenuInicio.append(\"9: Guardar Plazas\\n\");\r\n\t\tmenuInicio.append(\"0: Listar Plazas\\n\");\r\n\t\tmenuInicio.append(\"1: Listar Plazas Coche\\n\");\r\n\t\tmenuInicio.append(\"2: Listar Plazas Moto\\n\");\r\n\t\tmenuInicio.append(\"3: Reservar Plaza\\n\");\r\n\t\tmenuInicio.append(\"4: Listar Plazas Libres\\n\");\r\n\t\tmenuInicio.append(\"5: Listar Clientes\\n\");\r\n\t\tmenuInicio.append(\"6: Listar Vehículos\\n\");\r\n//\t\tmenuInicio.append(\"7:\\n\");\r\n//\t\tmenuInicio.append(\"8:\\n\");\r\n\t}",
"public internalFrame() {\r\n initComponents();\r\n }",
"public PanelListaMotoristas() {\n initComponents();\n atualizarListaMotoristas();\n }",
"public void iniciarPartida() {\n\t\tJuego juegoActual = controladorJuego.getJuego();\n\t\t// Recuperamos Tablero de juego para obtener las dimensiones\n\t\tTablero tableroActual = juegoActual.getTablero();\n\n\t\t// Creamos el layout para introducir la matriz con las casillas\n\t\tthis.setLayout(new BorderLayout());\n\t\tpaneltablero = new JPanel(new GridLayout(tableroActual.getNumFilas(), tableroActual.getNumCols()));\n\t\tthis.add(paneltablero);\n\n\t\t// Creamos la matriz de JButton que nos permetira interacctuar\n\t\ttablero = new JButton[tableroActual.getNumFilas()][tableroActual.getNumCols()];\n\t\tfor (int x = 0; x < tableroActual.getNumFilas(); x++) {\n\t\t\tfor (int y = 0; y < tableroActual.getNumCols(); y++) {\n\t\t\t\ttablero[x][y] = new JButton();\n\t\t\t\ttablero[x][y].setName(\"Casilla\");\n\t\t\t\ttablero[x][y].setPreferredSize(new Dimension(32, 32));\n\t\t\t\ttablero[x][y].addMouseListener((MouseListener) this.getControladorJuego());\n\t\t\t\tpaneltablero.add(tablero[x][y]);\n\t\t\t}\n\t\t}\n\t\t\n\t\tbarraMenu();\n\n\t\tventana.setContentPane(this);\n\t\tventana.setResizable(false);\n\t\tventana.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\n\t\tventana.pack();\n\t\tventana.setVisible(true);\n\t}",
"public frmacceso() {\n initComponents();\n }",
"private void initComponents() {\n\n setLayout(new java.awt.BorderLayout());\n }",
"public Vencimientos() {\n initComponents();\n \n \n }",
"private void crearComponentes() {\n setTitle(\"Nueva Persona\");\r\n setDefaultLookAndFeelDecorated(true);\r\n try {\r\n //UIManager.setLookAndFeel(\"javax.swing.plat.metal.MetalLookAndFeel\");\r\n UIManager.setLookAndFeel(\"javax.swing.plaf.nimbus.NimbusLookAndFeel\");\r\n } catch (ClassNotFoundException | IllegalAccessException | InstantiationException | UnsupportedLookAndFeelException e) {\r\n System.out.println(e.getMessage());\r\n }\r\n\r\n int numBorder;\r\n numBorder = 20;\r\n\r\n jPrincipal = new JPanel(new BorderLayout());\r\n jPrincipal.setBorder(new EmptyBorder(numBorder, numBorder, numBorder, numBorder));\r\n add(jPrincipal);\r\n\r\n JPcontent = new JPanel();\r\n JPcontent.setLayout(new BoxLayout(JPcontent, BoxLayout.PAGE_AXIS));\r\n numBorder = 10;\r\n\r\n JPanel nom = new JPanel();\r\n JPcontent.add(nom);\r\n nom.add(new JLabel(\"Nom: \"));\r\n JTxtFldNom = new JTextField(28);\r\n JTxtFldNom.addComponentListener(null);\r\n nom.add(JTxtFldNom);\r\n\r\n JPanel primerCognom = new JPanel();\r\n JPcontent.add(primerCognom);\r\n primerCognom.add(new JLabel(\"Primer cognom: \"));\r\n JTxtFldPrimerCognom = new JTextField(22);\r\n JTxtFldPrimerCognom.addComponentListener(null);\r\n primerCognom.add(JTxtFldPrimerCognom);\r\n\r\n JPanel segonCognom = new JPanel();\r\n JPcontent.add(segonCognom);\r\n segonCognom.add(new JLabel(\"Segon cognom: \"));\r\n JTxtFldSegonCognom = new JTextField(22);\r\n JTxtFldSegonCognom.addComponentListener(null);\r\n segonCognom.add(JTxtFldSegonCognom);\r\n\r\n JPanel nif = new JPanel();\r\n JPcontent.add(nif);\r\n nif.add(new JLabel(\"NIF: \"));\r\n JTxtFldNIF = new JTextField(28);\r\n JTxtFldNIF.addComponentListener(null);\r\n nif.add(JTxtFldNIF);\r\n\r\n JPanel numeroSS = new JPanel();\r\n JPcontent.add(numeroSS);\r\n numeroSS.add(new JLabel(\"Número SS: \"));\r\n JTxtFldNumeroSS = new JTextField(24);\r\n JTxtFldNumeroSS.addComponentListener(null);\r\n numeroSS.add(JTxtFldNumeroSS);\r\n\r\n JPanel telf = new JPanel();\r\n JPcontent.add(telf);\r\n telf.add(new JLabel(\"Teléfon: \"));\r\n JTxtFldTelf = new JTextField(26);\r\n JTxtFldTelf.addComponentListener(null);\r\n telf.add(JTxtFldTelf);\r\n\r\n JPanel ciutat = new JPanel();\r\n JPcontent.add(ciutat);\r\n ciutat.add(new JLabel(\"Ciutat: \"));\r\n JTxtFldCiutat = new JTextField(27);\r\n JTxtFldCiutat.addComponentListener(null);\r\n ciutat.add(JTxtFldCiutat);\r\n\r\n JPanel codiPostal = new JPanel();\r\n JPcontent.add(codiPostal);\r\n codiPostal.add(new JLabel(\"Codi postal: \"));\r\n JTxtFldCodiPostal = new JTextField(24);\r\n JTxtFldCodiPostal.addComponentListener(null);\r\n codiPostal.add(JTxtFldCodiPostal);\r\n\r\n JPanel carrer = new JPanel();\r\n JPcontent.add(carrer);\r\n carrer.add(new JLabel(\"Direcció: \"));\r\n JTxtFldCarrer = new JTextField(27);\r\n JTxtFldCarrer.addComponentListener(null);\r\n carrer.add(JTxtFldCarrer);\r\n\r\n if (clase == 0) {\r\n metge();\r\n }\r\n\r\n JPanel boto = new JPanel();\r\n boto.setBorder(new EmptyBorder(0, 0, 8, 0));\r\n JPcontent.add(boto);\r\n\r\n// jBtnCancelar = new JButton(\"Cancelar\");\r\n// boto.add(jBtnCancelar);\r\n// jBtnCancelar.addActionListener(new BotonesCrearPersona(clase));\r\n JBtnCrea = new JButton(\"Crear\");\r\n boto.add(JBtnCrea);\r\n JBtnCrea.addActionListener(new BotonesCrearPersona(clase));\r\n\r\n jPrincipal.add(JPcontent, BorderLayout.CENTER);\r\n\r\n pack();\r\n Dimension dim = Toolkit.getDefaultToolkit().getScreenSize();\r\n this.setLocation(dim.width / 2 - this.getSize().width / 2, dim.height / 2 - this.getSize().height / 2);\r\n }",
"public PropertiesFrame(FrameController fc) {\n this.fc = fc;\n objects = new ArrayList<IDataObject>();\n \n initComponents();\n reset();\n }",
"private void initialize() {\r\n\t\t\tControleurInterfacePhotographe controleur = new ControleurInterfacePhotographe(this);\r\n\t\t\t\r\n\t\t\tframe = new JFrame();\r\n\t\t\tframe.setBounds(100, 100, 450, 300);\r\n\t\t\tframe.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\r\n\t\t\tframe.getContentPane().setLayout(null);\r\n\t\t\t/*frame.pack();*/\r\n\t\t\t\r\n\t\t\tJPanel pEntete = new JPanel();\r\n\t\t\tpEntete.setBackground(Color.CYAN);\r\n\t\t\tpEntete.setBounds(0, 0, 2000, 39);\r\n\t\t\tframe.getContentPane().add(pEntete);\r\n\t\t\tpEntete.setLayout(new FlowLayout(FlowLayout.LEFT, 5, 5));\r\n\t\t\t\r\n\t\t\tJButton bImporterPhotos = new JButton(\"Importer des photos\");\r\n\t\t\tbImporterPhotos.setFont(new Font(\"Lucida Grande\", Font.PLAIN, 10));\r\n\t\t\tpEntete.add(bImporterPhotos);\r\n\t\t\tbImporterPhotos.addActionListener(controleur);\r\n\t\t\t\r\n\t\t\tJButton bVues = new JButton(\"Vues\");\r\n\t\t\tbVues.setFont(new Font(\"Lucida Grande\", Font.PLAIN, 10));\r\n\t\t\tpEntete.add(bVues);\r\n\t\t\tbVues.addActionListener(controleur);\r\n\t\t\t\r\n\t\t\ttextField = new JTextField();\r\n\t\t\ttextField.setFont(new Font(\"Lucida Grande\", Font.PLAIN, 10));\r\n\t\t\tpEntete.add(textField);\r\n\t\t\ttextField.setColumns(10);\r\n\t\t\t\r\n\t\t\tJButton bAide = new JButton(\"Aide\");\r\n\t\t\tbAide.setFont(new Font(\"Lucida Grande\", Font.PLAIN, 10));\r\n\t\t\tpEntete.add(bAide);\r\n\t\t\tbAide.addActionListener(controleur);\r\n\t\t\t\r\n\t\t\tJTree tree = new JTree();\r\n\t\t\ttree.setBounds(0, 39, 125, 239);\r\n\t\t\tframe.getContentPane().add(tree);\r\n\t\t\t\r\n\t\t\tJPanel pMiniatures = new JPanel();\r\n\t\t\tpMiniatures.setBounds(137, 45, 313, 233);\r\n\t\t\tframe.getContentPane().add(pMiniatures);\r\n\t\t\tpMiniatures.setLayout(null);\r\n\t\t\t\r\n\t\t\tJScrollBar scrollBar = new JScrollBar();\r\n\t\t\tscrollBar.setBounds(344, 6, 15, 221);\r\n\t\t\tpMiniatures.add(scrollBar);\r\n\t\t}",
"private void inicializarComponentes() \n\t{\n\t\tthis.table=new JTable(); \n\t\ttablas.setBackground(Color.white);\n\t\tscroll =new JScrollPane(table); // Scroll controla la tabla\n\t\tthis.add(scroll,BorderLayout.CENTER);\n\t\tthis.add(tablas,BorderLayout.NORTH);\n\t\t\n\t}",
"public void manageComponent() {\n menu = new JMenuBar();\n mainbox = new JScrollPane();\n toolbox = new JPanel();\n paintBox = new JPanel();\n optionbox = new JPanel();\n statusbar = new JPanel();\n paintModule = new PaintModule();\n\n // component setting\n createToolBox(toolbox);\n createMenu(menu);\n createOptionBox(optionbox);\n createStatusBar(statusbar);\n this.setLayout(new BorderLayout());\n\n // add component to container\n paintBox.add(paintModule);\n mainbox.setViewportView(paintBox);\n\n\n this.add(menu, BorderLayout.NORTH);\n this.add(mainbox, BorderLayout.CENTER);\n this.add(toolbox, BorderLayout.WEST);\n this.add(optionbox, BorderLayout.EAST);\n this.add(statusbar, BorderLayout.SOUTH);\n\n }",
"public FrameForm() {\n initComponents();\n }",
"private void initialize() {\n\t\tframe = new JFrame();\n\t\tframe.setBounds(100, 100, 450, 300);\n\t\tframe.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\n\t\t\n\t\tJButton btnDiretoria = new JButton(\"DIRETORIA\");\n\t\t\n\t\tJButton btnOpcao = new JButton(\"OPCAO2\");\n\t\tbtnOpcao.addActionListener(new ActionListener() {\n\t\t\tpublic void actionPerformed(ActionEvent arg0) {\n\t\t\t}\n\t\t});\n\t\t\n\t\tJButton btnOpcao_2 = new JButton(\"OPCAO3\");\n\t\tGroupLayout groupLayout = new GroupLayout(frame.getContentPane());\n\t\tgroupLayout.setHorizontalGroup(\n\t\t\tgroupLayout.createParallelGroup(Alignment.LEADING)\n\t\t\t\t.addGroup(groupLayout.createSequentialGroup()\n\t\t\t\t\t.addGap(169)\n\t\t\t\t\t.addGroup(groupLayout.createParallelGroup(Alignment.TRAILING, false)\n\t\t\t\t\t\t.addComponent(btnOpcao_2, Alignment.LEADING, GroupLayout.DEFAULT_SIZE, GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n\t\t\t\t\t\t.addComponent(btnOpcao, Alignment.LEADING, GroupLayout.DEFAULT_SIZE, GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n\t\t\t\t\t\t.addComponent(btnDiretoria, Alignment.LEADING, GroupLayout.DEFAULT_SIZE, GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))\n\t\t\t\t\t.addContainerGap(176, Short.MAX_VALUE))\n\t\t);\n\t\tgroupLayout.setVerticalGroup(\n\t\t\tgroupLayout.createParallelGroup(Alignment.LEADING)\n\t\t\t\t.addGroup(groupLayout.createSequentialGroup()\n\t\t\t\t\t.addGap(51)\n\t\t\t\t\t.addComponent(btnDiretoria)\n\t\t\t\t\t.addGap(18)\n\t\t\t\t\t.addComponent(btnOpcao)\n\t\t\t\t\t.addGap(27)\n\t\t\t\t\t.addComponent(btnOpcao_2)\n\t\t\t\t\t.addContainerGap(96, Short.MAX_VALUE))\n\t\t);\n\t\tframe.getContentPane().setLayout(groupLayout);\n\t}",
"public jinventario(){\n initComponents();\n }",
"private void crearComponentes(){\n\tjdpFondo.setSize(942,592);\n\t\n\tjtpcContenedor.setSize(230,592);\n\t\n\tjtpPanel.setTitle(\"Opciones\");\n\tjtpPanel2.setTitle(\"Volver\");\n \n jpnlPanelPrincilal.setBounds(240, 10 ,685, 540);\n \n }",
"public ListaMedicosJFrame() {\n initComponents();\n preencheTabela();\n }",
"private void initializeFrame() {\n add(container);\n setDefaultCloseOperation(JFrame.HIDE_ON_CLOSE);\n pack();\n }",
"private void initComponents() {\n\n dataScrollPane = new javax.swing.JScrollPane();\n dataTable = new com.cosmos.acacia.gui.AcaciaTable();\n buttonsPanel = new com.cosmos.swingb.JBPanel();\n closeButton = new com.cosmos.swingb.JBButton();\n refreshButton = new com.cosmos.swingb.JBButton();\n deleteButton = new com.cosmos.swingb.JBButton();\n modifyButton = new com.cosmos.swingb.JBButton();\n newButton = new com.cosmos.swingb.JBButton();\n selectButton = new com.cosmos.swingb.JBButton();\n unselectButton = new com.cosmos.swingb.JBButton();\n classifyButton = new com.cosmos.swingb.JBButton();\n specialFunctionalityButton = new com.cosmos.swingb.JBButton();\n filterButton = new com.cosmos.swingb.JBButton();\n\n setName(\"Form\"); // NOI18N\n addKeyListener(new java.awt.event.KeyAdapter() {\n public void keyPressed(java.awt.event.KeyEvent evt) {\n onKeyPressed(evt);\n }\n });\n setLayout(new java.awt.BorderLayout());\n\n dataScrollPane.setName(\"dataScrollPane\"); // NOI18N\n\n dataTable.setName(\"dataTable\"); // NOI18N\n dataTable.addKeyListener(new java.awt.event.KeyAdapter() {\n public void keyPressed(java.awt.event.KeyEvent evt) {\n onKeyPressed(evt);\n }\n });\n dataScrollPane.setViewportView(dataTable);\n\n add(dataScrollPane, java.awt.BorderLayout.CENTER);\n\n buttonsPanel.setName(\"buttonsPanel\"); // NOI18N\n\n javax.swing.ActionMap actionMap = org.jdesktop.application.Application.getInstance(com.cosmos.acacia.crm.gui.AcaciaApplication.class).getContext().getActionMap(AbstractTablePanel.class, this);\n closeButton.setAction(actionMap.get(\"closeAction\")); // NOI18N\n closeButton.setName(\"closeButton\"); // NOI18N\n\n refreshButton.setAction(actionMap.get(\"refreshAction\")); // NOI18N\n refreshButton.setName(\"refreshButton\"); // NOI18N\n\n deleteButton.setAction(actionMap.get(\"deleteAction\")); // NOI18N\n deleteButton.setName(\"deleteButton\"); // NOI18N\n\n modifyButton.setAction(actionMap.get(\"modifyAction\")); // NOI18N\n modifyButton.setName(\"modifyButton\"); // NOI18N\n\n newButton.setAction(actionMap.get(\"newAction\")); // NOI18N\n newButton.setName(\"newButton\"); // NOI18N\n\n selectButton.setAction(actionMap.get(\"selectAction\")); // NOI18N\n selectButton.setName(\"selectButton\"); // NOI18N\n\n unselectButton.setAction(actionMap.get(\"unselectAction\")); // NOI18N\n unselectButton.setName(\"unselectButton\"); // NOI18N\n\n classifyButton.setAction(actionMap.get(\"classifyAction\")); // NOI18N\n org.jdesktop.application.ResourceMap resourceMap = org.jdesktop.application.Application.getInstance(com.cosmos.acacia.crm.gui.AcaciaApplication.class).getContext().getResourceMap(AbstractTablePanel.class);\n classifyButton.setText(resourceMap.getString(\"classifyButton.text\")); // NOI18N\n classifyButton.setName(\"classifyButton\"); // NOI18N\n\n specialFunctionalityButton.setAction(actionMap.get(\"specialAction\")); // NOI18N\n specialFunctionalityButton.setName(\"specialFunctionalityButton\"); // NOI18N\n\n filterButton.setAction(actionMap.get(\"filter\")); // NOI18N\n filterButton.setName(\"filterButton\"); // NOI18N\n\n javax.swing.GroupLayout buttonsPanelLayout = new javax.swing.GroupLayout(buttonsPanel);\n buttonsPanel.setLayout(buttonsPanelLayout);\n buttonsPanelLayout.setHorizontalGroup(\n buttonsPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, buttonsPanelLayout.createSequentialGroup()\n .addContainerGap()\n .addComponent(selectButton, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(unselectButton, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, 51, Short.MAX_VALUE)\n .addComponent(specialFunctionalityButton, javax.swing.GroupLayout.PREFERRED_SIZE, 145, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(filterButton, javax.swing.GroupLayout.PREFERRED_SIZE, 91, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(classifyButton, javax.swing.GroupLayout.PREFERRED_SIZE, 91, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(newButton, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(modifyButton, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(deleteButton, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGap(18, 18, 18)\n .addComponent(refreshButton, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGap(18, 18, 18)\n .addComponent(closeButton, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addContainerGap())\n );\n\n buttonsPanelLayout.linkSize(javax.swing.SwingConstants.HORIZONTAL, new java.awt.Component[] {closeButton, deleteButton, modifyButton, newButton, refreshButton, selectButton});\n\n buttonsPanelLayout.setVerticalGroup(\n buttonsPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, buttonsPanelLayout.createSequentialGroup()\n .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addGroup(buttonsPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(closeButton, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(selectButton, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(refreshButton, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(deleteButton, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(modifyButton, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(newButton, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(unselectButton, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(classifyButton, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(filterButton, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(specialFunctionalityButton, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addContainerGap())\n );\n\n buttonsPanelLayout.linkSize(javax.swing.SwingConstants.VERTICAL, new java.awt.Component[] {closeButton, deleteButton, modifyButton, newButton, refreshButton, selectButton, unselectButton});\n\n add(buttonsPanel, java.awt.BorderLayout.PAGE_END);\n }",
"public MainFrame() {\n initComponents();\n }",
"public MainFrame() {\n initComponents();\n }",
"public MainFrame() {\n initComponents();\n }",
"public MainFrame() {\n initComponents();\n }",
"public MainFrame() {\n initComponents();\n }",
"public MainFrame() {\n initComponents();\n }",
"public MainFrame() {\n initComponents();\n }",
"public MainFrame() {\n initComponents();\n }",
"public MainFrame() {\n initComponents();\n }",
"public MainFrame() {\n initComponents();\n }",
"public MainFrame() {\n initComponents();\n }",
"public MainFrame() {\n initComponents();\n }",
"public SMFrame() {\n initComponents();\n updateComponents();\n }",
"public NewJFrame1() {\n initComponents();\n\n dip();\n sh();\n }",
"public void initializeFrame() {\n frame.getContentPane().removeAll();\n createComponents(frame.getContentPane());\n// frame.setSize(new Dimension(1000, 600));\n }",
"public void initialize(JFrame frameAnterior) {\r\n\t\tframeAnterior.setVisible(false);\r\n\t\tframe = new JFrame();\r\n\t\tframe.setBounds(100, 100, 670, 500);\r\n\t\tframe.setTitle(\"Cadastrar Atestado\");\r\n\t\tframe.setDefaultCloseOperation(JFrame.DISPOSE_ON_CLOSE);\r\n\t\tframe.setLocationRelativeTo(null);\r\n\t\tframe.setResizable(false);\r\n\t\tframe.getContentPane().setLayout(null);\r\n\t\t\r\n\t\tJLabel lblTipoExame = new JLabel(\" Tipo Exame:\");\r\n\t\tlblTipoExame.setBounds(31, 24, 141, 14);\r\n\t\tframe.getContentPane().add(lblTipoExame);\r\n\t\t\r\n\t\tJComboBox comboBoxTipoExame = new JComboBox();\r\n\t\tcomboBoxTipoExame.setModel(new DefaultComboBoxModel(TipoExameEnum.values()));\r\n\t\tcomboBoxTipoExame.setBounds(31, 49, 234, 20);\r\n\t\tframe.getContentPane().add(comboBoxTipoExame);\r\n\t\t\r\n\t\tJLabel lblAptidao = new JLabel(\"Aptid\\u00E3o:\");\r\n\t\tlblAptidao.setBounds(31, 304, 46, 14);\r\n\t\tframe.getContentPane().add(lblAptidao);\r\n\t\t\r\n\t\tJRadioButton rdbtnApto = new JRadioButton(\"Apto\");\r\n\t\trdbtnApto.setBounds(31, 325, 60, 23);\r\n\t\tframe.getContentPane().add(rdbtnApto);\r\n\t\t\r\n\t\tJRadioButton rdbtnNaoApto = new JRadioButton(\"N\\u00E3o Apto\");\r\n\t\trdbtnNaoApto.setBounds(125, 325, 109, 23);\r\n\t\tframe.getContentPane().add(rdbtnNaoApto);\r\n\t\t\r\n\t\tJLabel lblFuncionrio = new JLabel(\"Funcion\\u00E1rio:\");\r\n\t\tlblFuncionrio.setBounds(31, 85, 141, 14);\r\n\t\tframe.getContentPane().add(lblFuncionrio);\r\n\t\t\r\n\t\tinputFuncionario = new JTextField();\r\n\t\tinputFuncionario.setBounds(31, 110, 234, 30);\r\n\t\tframe.getContentPane().add(inputFuncionario);\r\n\t\tinputFuncionario.setColumns(10);\r\n\t\t\r\n\t\tJCheckBox chckbxFisicos = new JCheckBox(\"F\\u00EDsicos\");\r\n\t\tchckbxFisicos.setBounds(31, 252, 97, 23);\r\n\t\tframe.getContentPane().add(chckbxFisicos);\r\n\t\t\r\n\t\tJCheckBox chckbxBiologicos = new JCheckBox(\"Biol\\u00F3gicos\");\r\n\t\tchckbxBiologicos.setBounds(125, 252, 97, 23);\r\n\t\tframe.getContentPane().add(chckbxBiologicos);\r\n\t\t\r\n\t\tJCheckBox chckbxAcidentes = new JCheckBox(\"Acidentes\");\r\n\t\tchckbxAcidentes.setBounds(224, 252, 97, 23);\r\n\t\tframe.getContentPane().add(chckbxAcidentes);\r\n\t\t\r\n\t\tJCheckBox chckbxQuimicos = new JCheckBox(\"Qu\\u00EDmicos\");\r\n\t\tchckbxQuimicos.setBounds(323, 252, 97, 23);\r\n\t\tframe.getContentPane().add(chckbxQuimicos);\r\n\t\t\r\n\t\tJCheckBox chckbxErgonomicos = new JCheckBox(\"Ergon\\u00F4micos\");\r\n\t\tchckbxErgonomicos.setBounds(422, 252, 97, 23);\r\n\t\tframe.getContentPane().add(chckbxErgonomicos);\r\n\t\t\r\n\t\tJLabel lblRiscos = new JLabel(\"Riscos:\");\r\n\t\tlblRiscos.setBounds(31, 231, 46, 14);\r\n\t\tframe.getContentPane().add(lblRiscos);\r\n\t\t\r\n\t\tJLabel lblMedico = new JLabel(\"M\\u00E9dico:\");\r\n\t\tlblMedico.setBounds(31, 161, 46, 14);\r\n\t\tframe.getContentPane().add(lblMedico);\r\n\t\t\r\n\t\tinputMedico = new JTextField();\r\n\t\tinputMedico.setBounds(31, 186, 234, 30);\r\n\t\tframe.getContentPane().add(inputMedico);\r\n\t\tinputMedico.setColumns(10);\r\n\t\t\r\n\t\tJButton btnCancelar = new JButton(\"Cancelar\");\r\n\t\tbtnCancelar.addActionListener(new ActionListener() {\r\n\t\t\t\r\n\t\t\t@Override\r\n\t\t\tpublic void actionPerformed(ActionEvent e) {\r\n\t\t\t\tJOptionPane.showMessageDialog(null, \"Atestado cancelado...\");\r\n\t\t\t\tframe.setVisible(false);\r\n\t\t\t\tframeAnterior.setVisible(true);\r\n\t\t\t}\r\n\t\t});\r\n\t\tbtnCancelar.setBounds(124, 392, 141, 30);\r\n\t\tframe.getContentPane().add(btnCancelar);\r\n\t\t\r\n\t\tJButton btnConfirmar = new JButton(\"Confirmar\");\r\n\t\tbtnConfirmar.setBounds(303, 392, 141, 30);\r\n\t\tframe.getContentPane().add(btnConfirmar);\r\n\t\tbtnConfirmar.addActionListener(new ActionListener() {\r\n\t\t\t\r\n\t\t\t@Override\r\n\t\t\tpublic void actionPerformed(ActionEvent e) {\r\n\t\t\t\tJOptionPane.showMessageDialog(null, \"Atestado salvo com sucesso!\");\r\n\t\t\t\tframe.setVisible(false);\r\n\t\t\t\tframeAnterior.setVisible(true);\r\n\t\t\t}\r\n\t\t});\r\n\t\tframe.setVisible(true);\r\n\t}",
"public Conteo() {\n initComponents();\n }"
] |
[
"0.7453051",
"0.7228718",
"0.7148749",
"0.7148749",
"0.7139205",
"0.69498235",
"0.6898561",
"0.689071",
"0.68786377",
"0.68474615",
"0.67837095",
"0.67836195",
"0.67579854",
"0.67226344",
"0.6701089",
"0.66701794",
"0.6650933",
"0.6648666",
"0.6630451",
"0.66292",
"0.6629017",
"0.66149336",
"0.6611091",
"0.6608065",
"0.6593077",
"0.6587063",
"0.65633386",
"0.6556093",
"0.65504485",
"0.65504485",
"0.654278",
"0.6537933",
"0.6527614",
"0.651724",
"0.6516309",
"0.6511519",
"0.6500297",
"0.6492633",
"0.6488375",
"0.6480634",
"0.6480171",
"0.64761686",
"0.64738864",
"0.6468994",
"0.6454237",
"0.6452202",
"0.6432697",
"0.6432446",
"0.6425726",
"0.6425072",
"0.64206034",
"0.6420557",
"0.6420272",
"0.641865",
"0.6413054",
"0.64117324",
"0.64103144",
"0.64091367",
"0.64023995",
"0.6401162",
"0.64",
"0.6386325",
"0.63813275",
"0.6378729",
"0.63772494",
"0.6370598",
"0.636998",
"0.63657284",
"0.6365006",
"0.6360407",
"0.6359552",
"0.6345276",
"0.6343506",
"0.6343496",
"0.6337491",
"0.6336114",
"0.6334982",
"0.63257724",
"0.6325227",
"0.63228637",
"0.6322488",
"0.6322201",
"0.6320876",
"0.6320279",
"0.6320279",
"0.6320279",
"0.6320279",
"0.6320279",
"0.6320279",
"0.6320279",
"0.6320279",
"0.6320279",
"0.6320279",
"0.6320279",
"0.6320279",
"0.6316681",
"0.63133276",
"0.63103753",
"0.6309899",
"0.63082206"
] |
0.75177914
|
0
|
Metodo para colocar el panel en le FRAME
|
public void crearPanel(){
panel = new JPanel();
this.getContentPane().add(panel);
panel.setBackground(Color.CYAN);
panel.setLayout(null);
}
|
{
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
}
|
[
"public void initializePanelToFrame() {\n\t\tnew ColorResources();\n\t\tnew TextResources().changeLanguage();\n\t\tpanel = new JPanel();\n\t\tpanel.setLayout(null);\n\t\tpanel.setPreferredSize(new Dimension(375, 812));\n\n\t\tconfigureLabels();\n\t\tconfigureButtons();\n\t\taddListeners();\n\t\taddComponentsToPanel();\n\n\t\tthis.setContentPane(panel);\n\t\tthis.pack();\n\t}",
"private void agregarAlPanel(JInternalFrame frame)\n\t{\n\t\tframe.setBounds(10 * (contentPane.getAllFrames().length + 1), 50 + (10 * (contentPane.getAllFrames().length + 1)), (int)frame.getBounds().getWidth(), (int)frame.getBounds().getHeight());\n\t\tcontentPane.add(frame);\n\t\tframe.moveToFront();\n\t}",
"public void setFrameContent() {\n\t\tbigPanel.add(panelA);\n\t\tbigPanel.add(panelB);\n\t\tframe.add(bigPanel);\n\t\t//frame.add(panel);\n\t frame.setVisible(true);\n\t}",
"private void buildPanelEast() {\n\r\n }",
"@Override\n public void setupPanel()\n {\n\n }",
"public void buildFrame();",
"private void setupPanels() {\n\t\tsplitPanel.addEast(east, Window.getClientWidth() / 5);\n\t\tsplitPanel.add(battleMatCanvasPanel);\n\t\tpanelsSetup = true;\n\t}",
"public void dibujar(JPanel panel);",
"private PanelManager(FlowClient frame) {\r\n\t\t// Swing necessities\r\n\t\tlayout = new CardLayout();\r\n\t\tthis.frame = frame;\r\n\t\tthis.setLayout(layout);\r\n\t\tsetBorder(FlowClient.EMPTY_BORDER);\r\n\r\n\t\t// Creates new panels and adds them to the cardlayout stack\r\n\t\teditTabs = new EditTabs();\r\n\r\n\t\tloginPane = new LoginPane(this);\r\n\t\tadd(loginPane, \"loginPane\");\r\n\r\n\t\tCreateAccountPane createAccountPane = new CreateAccountPane(this);\r\n\t\tadd(createAccountPane, \"createPane\");\r\n\r\n\t\teditPane = new EditPane(this);\r\n\t\tadd(editPane, \"editPane\");\r\n\r\n\t\tdebugPane = new DebugPane(this);\r\n\t\tadd(debugPane, \"debugPane\");\r\n\r\n\t\tSettingsPane settingsTabs = new SettingsPane(this);\r\n\t\tadd(settingsTabs, \"settingsPane\");\r\n\r\n\t\thistoryPane = new HistoryPane(this);\r\n\t\tadd(historyPane, \"historyPane\");\r\n\t}",
"private void setFrame()\r\n\t{\r\n\t\tthis.setName(\"Project 3\");\r\n\t\tthis.setLayout(new BorderLayout());\r\n\t\tthis.setSize(300, 300);\r\n\t\tthis.setLocation(650, 100);\r\n\t\tthis.setVisible(false);\r\n\t\tthis.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\r\n\t\tthis.add(panel, BorderLayout.CENTER);\r\n\t}",
"private void initPanels() {\r\n\t\r\n\tpanel = new JPanel();\r\n\tpanel.setBounds(0, 0, ScreenSize.WIDTH + 25, ScreenSize.HEIGHT + 50);\r\n\tpanel.setLayout(new BorderLayout());\r\n\tpanel.addComponentListener(this);\r\n\r\n\tbord = new BordPanel();\r\n\tbord.setBounds(0 ,0 ,ScreenSize.WIDTH, ScreenSize.HEIGHT);\r\n\tbord.setOpaque(true);\r\n\r\n\tlabel = new JLabel();\r\n\tlabel.setText(\"Text\");\r\n\r\n\tpanel.add(label, BorderLayout.SOUTH);\r\n\tpanel.add(bord, BorderLayout.CENTER);\r\n\t\r\n\tframe.add(panel);\r\n }",
"public void showOPanel(Point p) {\r\n \r\n \t}",
"public Component getPanelControl() {\n\t\tTableSorter sorterOperaciones = new TableSorter(modeloOperaciones);\n\t\tJTable tablaOperaciones = new JTable(sorterOperaciones);\n\t\tsorterOperaciones.setTableHeader(tablaOperaciones.getTableHeader());\n\t\tJScrollPane panelScrollDerecha = new JScrollPane(tablaOperaciones);\n\t\tpanelScrollDerecha.setVerticalScrollBarPolicy(JScrollPane.VERTICAL_SCROLLBAR_ALWAYS);\n\t\tpanelDerecha = new FakeInternalFrame(\"Log de Operaciones\", panelScrollDerecha);\n\n\t\tTableSorter sorterPrecios = new TableSorter(modeloPrecios);\n\t\tJTable tablaPrecios = new JTable(sorterPrecios);\n\t\tsorterPrecios.setTableHeader(tablaPrecios.getTableHeader());\n\t\ttablaPrecios.getColumn(tablaPrecios.getColumnName(1)).setCellRenderer(modeloPrecios.getRenderer());\n\n\t\tJScrollPane panelScrollIzqAbajo = new JScrollPane(tablaPrecios);\n\t\tpanelScrollIzqAbajo.setVerticalScrollBarPolicy(JScrollPane.VERTICAL_SCROLLBAR_ALWAYS);\n\t\tpanelIzqAbajo = new FakeInternalFrame(\"Precios en bolsa\", panelScrollIzqAbajo);\n\n\t\t//panelSecundario = new JSplitPane(JSplitPane.VERTICAL_SPLIT, panelIzqAbajo, panelIzqArriba);\n\t\tpanelPrincipal = new JSplitPane(JSplitPane.HORIZONTAL_SPLIT, panelIzqAbajo, panelDerecha);\n\n\t\tpanelPrincipal.setDividerLocation(300);\n\t\t//panelSecundario.setDividerLocation(300);\n\n\t\tpanelIzqAbajo.setPreferredSize(new Dimension(250, 300));\n\t\tpanelDerecha.setPreferredSize(new Dimension(550, 600));\n\n\t\treturn panelPrincipal;\n\t}",
"public AddStationPanel(JFrame frame) {\n\t\tmainFrame = frame;\n\t\tinitialize();\n\t}",
"void setupFrame()\n {\n int wd = shopFrame.getWidth();\n sellItemF(wd);\n\n requestItemF(wd);\n setAllVisFalse();\n }",
"public void setFrames(){\n\n format = new DecimalFormat(\"#.##\");\n\n //==Background panels for layout===\n JPanel panel = new JPanel();\n panel.setBounds(1157, 75, 400, 800);\n panel.setBackground(Color.WHITE);\n panel.setBorder(BorderFactory.createLineBorder(Color.black, 1));\n panel.setVisible(true);\n main.add(panel);\n\n JPanel topPanel = new JPanel();\n topPanel.setBounds(0, 0, 1157, 75);\n topPanel.setBorder(BorderFactory.createLineBorder(Color.black, 2));\n main.add(topPanel);\n\n JPanel rightPanel = new JPanel();\n rightPanel.setBounds(0, 75, 300, 500);\n rightPanel.setBackground(Color.WHITE);\n rightPanel.setBorder(BorderFactory.createLineBorder(Color.black, 1));\n main.add(rightPanel);\n\n JPanel speedPanel = new JPanel();\n speedPanel.setBounds(385, 510, 325, 250);\n speedPanel.setBackground(Color.WHITE);\n speedPanel.setBorder(BorderFactory.createLineBorder(Color.black, 1));\n main.add(speedPanel);\n\n JPanel authPanel = new JPanel();\n authPanel.setBounds(735, 510, 300, 250);\n authPanel.setBackground(Color.WHITE);\n authPanel.setBorder(BorderFactory.createLineBorder(Color.black, 1));\n main.add(authPanel);\n\n center = new JPanel();\n center.setLayout(new GridLayout(1,2));\n\n gauge = new Gauge(0.0, 100.0, Gauge.SEMI_CIRCLE);\n gauge.setBackground(Color.WHITE);\n gauge.setForeground(Color.BLACK);\n gauge.setHighlight(Color.DARK_GRAY);\n gauge.setFont(new Font(Font.SANS_SERIF, Font.BOLD, 14));\n center.add(gauge);\n center.setBounds(450, 100, 400, 300);\n\n main.add(center);\n\n main.setVisible(true);\n }",
"public void cambiarPanel(String panel) {\n\n cambiarPanel.show(panelContenedor, panel);\n }",
"private void switchToFrame() {\n\t\tdriver.switchTo().frame(\"mainpanel\");\n\t}",
"public PuzzleFrame() {\n initComponents();\n this.setLayout(new BorderLayout());\n this.setTitle(\"15-Puzzle - Team Gorila - Praktikum PBO\");\n\n // Mengatur ukuran default tile menjadi 4 x 4\n panelSize = 4;\n initPanel();\n }",
"public void initPanel()\n\t{\n\t\tthis.setVisible(false);\n\t\t//this.setLayout(new BorderLayout());\n \n\t\t//*Layout setup\n\t\t\n\t\tGroupLayout layout = new GroupLayout(this);\n\t\t//this.setLayout(layout);\n\n\t\tlayout.setAutoCreateGaps(true);\n\t\tlayout.setAutoCreateContainerGaps(true);\t\t\n\t\t\t\t\n\t\t//frame = new JFrame();\n offscreenImage = new BufferedImage(width, height, BufferedImage.TYPE_INT_ARGB);\n onscreenImage = new BufferedImage(width, height, BufferedImage.TYPE_INT_ARGB);\n offscreen = offscreenImage.createGraphics();\n onscreen = onscreenImage.createGraphics();\n setXscale();\n setXscale();\n offscreen.setColor(DEFAULT_CLEAR_COLOR);\n offscreen.fillRect(0, 0, width, height);\n setPenColor();\n setPenRadius();\n setFont();\n clear();\n\n // add antialiasing\n RenderingHints hints = new RenderingHints(RenderingHints.KEY_ANTIALIASING,\n RenderingHints.VALUE_ANTIALIAS_ON);\n hints.put(RenderingHints.KEY_RENDERING, RenderingHints.VALUE_RENDER_QUALITY);\n offscreen.addRenderingHints(hints);\n\n \n // frame stuff\n ImageIcon icon = new ImageIcon(onscreenImage);\n drawLabel = new JLabel(icon);\n\n drawLabel.addMouseListener(this);\n drawLabel.addMouseMotionListener(this);\n \n //Create buttons\n resetButton = new JButton();\n undoButton = new JButton();\n \n undoButton.setVisible(true);\n undoButton.setEnabled(true);\n undoButton.setName(\"Undo\");\n undoButton.setText(\"Undo\");\n undoButton.setSize(75, 30);\n undoButton.setPreferredSize(new Dimension(75,30));\n \n resetButton.setVisible(true);\n resetButton.setEnabled(true);\n resetButton.setName(\"Reset\");\n resetButton.setText(\"Reset\");\n \tresetButton.setSize(75, 30);\n \tresetButton.setPreferredSize(new Dimension(75,30));\n \t\n //this.add(resetButton, BorderLayout.NORTH);\n //this.add(undoButton, BorderLayout.NORTH);\n \n // JPanel mainPanel = new JPanel(new BorderLayout());\n\n // JPanel northPanel = new JPanel();\n // northPanel.add(resetButton);\n // northPanel.add(undoButton);\n // mainPanel.add(northPanel, BorderLayout.NORTH);\n // mainPanel.add(drawLabel, BorderLayout.CENTER);\n \n\n // generalColorValue = getColorParameter(Skin.GENERAL_TEXT_COLOR); \n //controlColorValue = getColorParameter(Skin.CONTROL_BACKGROUND_COLOR); \n \n\t\t//trimColorValue = getColorParameter(Skin.TRIM_COLOR); \n\t \n\t\tinitComboBox();\n\t\t//this.setContentPane(drawLabel); <---------------------------\n this.add(drawLabel, BorderLayout.CENTER);\n \n this.addKeyListener(this); // JLabel cannot get keyboard focus\n this.setResizable(true);\n this.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE); // closes all windows\n //this.setDefaultCloseOperation(JFrame.DISPOSE_ON_CLOSE); // closes only current window\n this.setTitle(name);\n // frame.setJMenuBar(createMenuBar());\n this.pack();\n this.requestFocusInWindow();\n this.setVisible(true);\n \n\t}",
"public void preparePanelPoder(){\n\t\tpanelNombrePoder = new JPanel();\n\t\tpanelNombrePoder.setLayout( new GridLayout(3,1,0,0 ));\n\t\t\n\t\tString name = ( game.getCurrentSorpresa() == null )?\" No hay sorpresa\":\" \"+game.getCurrentSorpresa().getClass().getName();\n\t\tn1 = new JLabel(\"Sorpresa actual:\"); \n\t\tn1.setForeground(Color.WHITE);\n\t\t\n\t\tn2 = new JLabel();\n\t\tn2.setText(name.replace(\"aplicacion.\",\"\"));\n\t\tn2.setForeground(Color.WHITE);\n\t\t\n\t\tpanelNombrePoder.add(n1);\n\t\tpanelNombrePoder.add(n2);\n\t\tpanelNombrePoder.setBounds( 34,200 ,110,50);\n\t\tpanelNombrePoder.setOpaque(false);\n\t\tthis.add( panelNombrePoder);\n\t\t\n\t\t\n\t\t\n\t\t\n\t}",
"public static void changeFrame() {\r\n\t\t\r\n\t}",
"public FrameCadastro(String tipo[]){\r\n\t\tsuper(\"ApartManager-Cadastro\");\r\n\t\t\r\n\t\tPanelCadastro panelC = new PanelCadastro(tipo);\r\n\t\t\r\n\t\tsetDefaultCloseOperation(DISPOSE_ON_CLOSE);\r\n\t\tsetSize(700, 700);\r\n\t\tsetLocationRelativeTo(null);\r\n\t\tsetVisible(true);\r\n\t\tsetResizable(false);\r\n\t\t\r\n\t\tJPanel panel = new JPanel();\r\n\t\tsetContentPane(panel);\r\n\t\tpanel.setLayout(null);\r\n\t\tpanelC.setBounds(0, 0, 700, 700);\r\n\t\tpanel.add(panelC);\r\n\t\tpanel.setVisible(true);\r\n\t}",
"private void setupFrame() {\n this.setTitle(TITRE);\n this.setPreferredSize(new Dimension(TAILLE_FRAME[1], TAILLE_FRAME[0]));\n this.setResizable(false);\n \n this.getContentPane().setBackground(new Color(0,153,0));\n this.getContentPane().setLayout(new GridLayout(3,1)); \n \n this.pack();\n Dimension dim = Toolkit.getDefaultToolkit().getScreenSize();\n this.setLocation(dim.width/2-this.getSize().width/2, dim.height/2-this.getSize().height/2);\n \n this.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\n this.setVisible(true);\n }",
"private void addToPanel(){\n getContentPane().add(jdpFondo);\n jtpcContenedor.add(jtpPanel);\n\tjtpcContenedor.add(jtpPanel2);\n jdpFondo.add(jtpcContenedor, BorderLayout.CENTER);\n jdpFondo.add(jpnlPanelPrincilal);\n }",
"public void initPanel(){\r\n\t \r\n\t\t//Titre\r\n\t\tlabel.setFont(new Font(\"Verdana\",1,40));\r\n\t label.setForeground(Color.black);\r\n\t label.setBorder(BorderFactory.createLineBorder(Color.BLACK, 2));\r\n\t label.setBounds(110,0,575,50);\r\n\t\tthis.panel.setLayout(null);\t \r\n\t this.panel.add(label);\r\n\t \r\n\t //dc\r\n\t this.panel.add(label1, BorderLayout.CENTER);\r\n\t label1.setFont(new Font(\"Verdana\",1,40));\r\n\t label1.setForeground(Color.black);\r\n\t label1.setBorder(BorderFactory.createLineBorder(Color.BLACK, 2));\r\n\t label1.setBounds(150,500,100,50);\r\n\t //ab\r\n\t this.panel.add(label2);\r\n\t label2.setFont(new Font(\"Verdana\",1,40));\r\n\t label2.setForeground(Color.black);\r\n\t label2.setBorder(BorderFactory.createLineBorder(Color.BLACK, 2));\r\n\t label2.setBounds(550,500,100,50);\r\n\t //Button dc\r\n\t\tdc.setBounds(50,200,300,250);\r\n\t\tthis.panel.add(dc);\r\n\t\tdc.addActionListener(this);\r\n\t\t//Button ab\r\n\t\tab.setBounds(450,200,300,250);\r\n\t\tthis.panel.add(ab);\r\n\t\tab.addActionListener(this);\r\n\t\t\r\n\t\tthis.panel.add(label3);\r\n\t label3.setFont(new Font(\"Verdana\",1,20));\r\n\t label3.setForeground(Color.black);\r\n\t label3.setBorder(BorderFactory.createLineBorder(Color.BLACK, 2));\r\n\t label3.setBounds(90,575,220,30);\r\n\t \r\n\t this.panel.add(label4);\r\n\t label4.setFont(new Font(\"Verdana\",1,20));\r\n\t label4.setForeground(Color.black);\r\n\t label4.setBorder(BorderFactory.createLineBorder(Color.BLACK, 2));\r\n\t label4.setBounds(490,575,220,30);\r\n\t}",
"public void setPanel(JPanel ballPanel);",
"public PanelIniciarSesion() {\n initComponents();\n }",
"public OrgaPanel(Frame frame){\r\n\t\tsuper();\r\n\t\tthis.frame = frame;\r\n\r\n\t\tthis.removeAll();\r\n\t\tthis.setBackground(Color.WHITE);\r\n\t\tthis.setLayout(new BoxLayout(this, BoxLayout.Y_AXIS));\r\n\t\tthis.add(Box.createRigidArea(new Dimension(0,5)));\r\n\r\n\t\t// Le panel titre et son label\r\n\t\tthis.orgaNamePanel = new JPanel();\r\n\t\torgaNamePanel.setBackground(Frame.colorEventary);\r\n\t\torgaNamePanel.setMaximumSize(new Dimension(800,30));\r\n\t\tthis.organisationName = new JLabel(\"\");\r\n\t\tthis.orgaNamePanel.add(organisationName);\r\n\t\tthis.add(orgaNamePanel);\r\n\t\tthis.add(Box.createRigidArea(new Dimension(0,10)));\r\n\r\n\t\t// Pour l'ajout d'un nouveau membre\r\n\t\tthis.inscriptionPan = new JPanel();\r\n\t\tthis.inscriptionPan.setBackground(Color.WHITE);\r\n\t\tthis.inscriptionPan.setMaximumSize(new Dimension(800,30));\r\n\t\tthis.inscriptionPan.setLayout(new BoxLayout(inscriptionPan, BoxLayout.X_AXIS));\r\n\t\tthis.add(this.inscriptionPan);\r\n\r\n\t\tJPanel inscriptionTitrePan = new JPanel();\r\n\t\tinscriptionTitrePan.setBackground(Frame.colorEventary);\r\n\t\tinscriptionTitrePan.setMaximumSize(new Dimension(200,30));\r\n\t\tinscriptionTitrePan.add(new JLabel(\"Ajouter un nouveau membre\"));\r\n\t\tinscriptionPan.add(inscriptionTitrePan);\r\n\r\n\t\tJPanel inscriptionBoxPan = new JPanel();\r\n\t\tinscriptionBoxPan.setMaximumSize(new Dimension(450,30));\r\n\t\tinscriptionBoxPan.setBackground(Color.WHITE);\r\n\t\tinscriptionBoxPan.add(new JLabel(\"Saisir Numéro Etudiant \"));\r\n\t\tthis.loginBox = new EventaryComboBox<String>();\r\n\t\tthis.loginBoxModel = new DefaultComboBoxModel<String>();\r\n\t\tthis.loginBox.setEditable(true);\r\n\t\tinscriptionBoxPan.add(this.loginBox);\r\n\t\tinscriptionPan.add(inscriptionBoxPan);\r\n\r\n\t\tthis.valider = new JButton();\r\n\t\tthis.valider.setMaximumSize(new Dimension(150,30));\r\n\t\tthis.valider.setBackground(new Color(139,233,120));\r\n\t\tthis.inscriptionPan.add(this.valider);\r\n\r\n\t\tthis.add(Box.createRigidArea(new Dimension(0,10)));\r\n\r\n\t\t// Pour la liste des membres\r\n\t\tJPanel listeTitrePan = new JPanel();\r\n\t\tlisteTitrePan.setBackground(Frame.colorEventary);\r\n\t\tlisteTitrePan.setMaximumSize(new Dimension(800,30));\r\n\t\tlisteTitrePan.add(new JLabel(\"Liste des Membres\"));\r\n\t\tthis.add(listeTitrePan);\r\n\r\n\t\tthis.listePan = new JPanel();\r\n\t\tthis.listePan.setMaximumSize(new Dimension(800,500));\r\n\t\tthis.listePan.setLayout(new BoxLayout(this.listePan, BoxLayout.Y_AXIS));\r\n\t\tthis.add(this.listePan);\r\n\r\n\t}",
"private void setUpPanel() {\n this.panel = new JPanel();\n functions = new JPanel();\n panel.setPreferredSize(new Dimension(Screen.screenWidth, Screen.screenHeight));\n\n int borderBottom = Screen.screenHeight / 8;\n if (Screen.screenHeight > 1400) {\n borderBottom = Screen.screenHeight / 7;\n }\n\n panel.setBorder(BorderFactory.createEmptyBorder(80, Screen.border, borderBottom, Screen.border));\n panel.setLayout(new BoxLayout(panel, BoxLayout.Y_AXIS));\n functions.setPreferredSize(new Dimension(600, 500));\n functions.setLayout(cardLayout);\n }",
"public void setFrameAdminUsuariosBloq(FrameAdminUsuariosBloq panel) {\n \tadminBloq = panel;\n }",
"@Override\r\n\tpublic void onPanelOpened(Panel panel) {\n\r\n\t}",
"public PanelSobre() {\n initComponents();\n }",
"public PanelSobre() {\n initComponents();\n }",
"public MundoJuego( JPanel panel ) {\r\n\t\tthis.panel = panel;\r\n\t}",
"public ViewPanel(final ViewFrame viewFrame) {\n\t\tthis.setViewFrame(viewFrame);\n\t\tviewFrame.getModel().getObservable().addObserver(this);\n\t\t//this.setSize(640,384);\n\t\t/*JLabel image = new JLabel( new ImageIcon( \"C:/Users/Drazyl Dul/Desktop/sprite/pd.png\"));\n\t\tJLabel image2 = new JLabel( new ImageIcon( \"C:/Users/Drazyl Dul/Desktop/sprite/purse.png\"));\n\t\tJLabel image3 = new JLabel( new ImageIcon( \"C:/Users/Drazyl Dul/Desktop/sprite/gate_open.png\"));\n\t\tBorder blackline = BorderFactory.createLineBorder(Color.black,1); \n\t\t\n\t\tthis.setLayout(new GridLayout(12,20));\n\t\tfor(int i = 0; i<240;i++){*/\n\t\t //JPanel ptest = new JPanel();\n\t\t //ptest.setBorder(blackline);\n\t\t //this.add(image,0,0);\n\t\t \n\t\t// this.add(image3,0,2);\n\t\t\n\t\t}",
"public FrameControl() {\n initComponents();\n }",
"public void limpaFramePolinomios ()\n {\n jPanelOperacoes.setVisible(false);\n jPanelPolinomios.setVisible(true);\n this.repaint();\n }",
"private void addPanelstoBookPanel() {\r\n this.add(centerPanel, BorderLayout.CENTER);\r\n\r\n /**\r\n * Add the bookPanel to the baseScreen en revalidate and repaint\r\n */\r\n Main.getController().getBaseScreen().mainContainer.add(this, BorderLayout.CENTER);\r\n Main.getController().getBaseScreen().mainContainer.revalidate();\r\n Main.getController().getBaseScreen().mainContainer.repaint();\r\n }",
"void zeigeFenster() {\r\n\t\t_panel.setVisible(true);\r\n\t}",
"private void initPanel() {\n\t\tthis.panel = new JPanel();\n\t\tthis.panel.setBounds(5, 5, 130, 20);\n\t\tthis.panel.setLayout(null); \n\n\t}",
"public addStFrame() {\n initComponents();\n }",
"public void initPanel() {\n\n puzzlePanel.setVisible(false);\n puzzlePanel = new PuzzlePanel(panelSize);\n\n getContentPane().add(puzzlePanel, BorderLayout.CENTER);\n getContentPane().add(controlPanel, BorderLayout.SOUTH);\n puzzlePanel.setVisible(true);\n\n isWin = false;\n puzzlePanel.setMoveCount(0);\n\n lblMove.setText(\"Jumlah Gerakan: 0\");\n lblTime.setText(\"Waktu: 0 detik\");\n startTime = System.currentTimeMillis();\n\n Thread t = new Thread(new Runnable() {\n @Override\n public void run() {\n while (!isWin) {\n try {\n currentTime = System.currentTimeMillis();\n lblTime.setText(\"Waktu terpakai: \" + ((currentTime - startTime) / 1000)\n + \" detik\");\n Thread.sleep(1000);\n } catch (InterruptedException ex) {\n ex.printStackTrace();\n }\n }\n }\n });\n t.start();\n }",
"public void updateGamePanel() {\n\t\tthis.removeAll();\n\t\t\n\t\tButton2 buttonTip = new Button2(\"DICA\", 75, 100, 100, 100);\n\t\tbuttonTip.addActionListener(e -> Controller.game.showTip());\n\t\tthis.add(buttonTip);\n\t\t\n\t\tButton2 menu = new Button2(\"Menu\", 200, 100, 100, 100);\n\t\tmenu.addActionListener(e -> this.frame.setVisible(\"menu\"));\n\t\tthis.add(menu);\n\t\t\n\t\tthis.drawButtons();\n\t\t\n\t\t//Adding labels\n\t\tthis.add(frame.getWordShow());\n\t\tthis.add(frame.getLifeShow());\n\t\t\n\t\tthis.frame.add(this);//Adding the gameJPanel to the frame\n\t}",
"public void iniciarComponentes(){\n\n crearPanel();\n colocarBotones();\n \n }",
"public FrameOpcoesAgenda() {\n initComponents();\n }",
"FRAME createFRAME();",
"JPanel getPanel();",
"private void makeContent(JFrame frame){\n Container content = frame.getContentPane();\n content.setSize(700,700);\n\n makeButtons();\n makeRooms();\n makeLabels();\n\n content.add(inputPanel,BorderLayout.SOUTH);\n content.add(roomPanel, BorderLayout.CENTER);\n content.add(infoPanel, BorderLayout.EAST);\n\n }",
"private void panelSISC(String panel) {\n\n this.dispose();\n new InterfazPlantillaPestanas(panel).setVisible(true);\n }",
"private void setUpPanel() { \n this.setPreferredSize(new Dimension(myWidth, myHeight)); \n // Set this panel as a grid panel with 1 column, 6 rows. \n this.setLayout(new GridLayout(NUM_ROWS, 1)); \n // Create the next piece panel.\n this.myNextPiece = new TetrisNextPiecePanel();\n this.add(myNextPiece); \n // Add another panel which will show game instruction.\n final HowToPlayPanel instructionsPanel = new HowToPlayPanel();\n this.add(instructionsPanel);\n // add the last panel which will show the scores, level, game state etc.\n this.setUpLastPanel();\n }",
"public PanelAmigo() {\n initComponents();\n \n }",
"AreaResource panelArea();",
"public void addComponentsToPanel() {\n\t\tpanel.add(backBtn);\n\t\tpanel.add(forgotPassword);\n\t\tpanel.add(txtPass);\n\t\tpanel.add(txtSendEmail);\n\t\tpanel.add(remindMeBtn);\n\n\t\tpanel.add(backgroundLabel);\n\t}",
"private void initialize() {\n\t\tframe = new JFrame();\n\t\tframe.setBounds(100, 100, 542, 443);\n\t\tframe.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\n\t\tframe.getContentPane().setLayout(null);\n\t\tframe.getContentPane().setBackground(Color.DARK_GRAY);\n\t\t\n\t\tJLabel lblNewLabel = new JLabel(\"Car Rental System Dashboard\");\n\t\tlblNewLabel.setForeground(Color.WHITE);\n\t\tlblNewLabel.setFont(new Font(\"Arial\", Font.BOLD, 25));\n\t\tlblNewLabel.setBounds(66, 26, 400, 77);\n\t\tframe.getContentPane().add(lblNewLabel);\n\t\t\n\t\tJButton btnCust = new JButton(\"Manage Customers\");\n\t\tbtnCust.addActionListener(new ActionListener() {\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\t\n\t\t\t\tCustomerPanel cP = new CustomerPanel();\n\t\t\t\t\n\t\t\t\tcP.frame.setVisible(true);;\n\t\t\t\tframe.dispose();\n\t\t\t\t\n\t\t\t}\n\t\t});\n\t\tbtnCust.setBackground(new Color(30, 144, 255));\n\t\tbtnCust.setFont(new Font(\"Tahoma\", Font.PLAIN, 11));\n\t\tbtnCust.setForeground(Color.WHITE);\n\t\tbtnCust.setBounds(30, 114, 135, 63);\n\t\tframe.getContentPane().add(btnCust);\n\t\t\n\t\tJLabel label = new JLabel(\"\");\n\t\tImage img = new ImageIcon(this.getClass().getResource(\"/bluecar.png\")).getImage();\n\t\tImage newImage = img.getScaledInstance(325, 300, Image.SCALE_DEFAULT);\n\t\tlabel.setIcon(new ImageIcon(newImage));\n\t\t\n\t\tlabel.setBounds(185, 103, 331, 290);\n\t\tframe.getContentPane().add(label);\n\t\t\n\t\tJButton btnCars = new JButton(\"Manage Cars\");\n\t\tbtnCars.addActionListener(new ActionListener() {\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\t\n\t\t\t\tCarsPanel cp = new CarsPanel();\n\t\t\t\t\n\t\t\t\tcp.frame.setVisible(true);\n\t\t\t\tframe.dispose();\n\t\t\t\t\n\t\t\t}\n\t\t});\n\t\tbtnCars.setFont(new Font(\"Tahoma\", Font.PLAIN, 11));\n\t\tbtnCars.setForeground(new Color(255, 255, 255));\n\t\tbtnCars.setBackground(new Color(30, 144, 255));\n\t\tbtnCars.setBounds(30, 209, 135, 63);\n\t\tframe.getContentPane().add(btnCars);\n\t\t\n\t\tJButton btnRent = new JButton(\"Rent a car\");\n\t\tbtnRent.addActionListener(new ActionListener() {\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\t\n\t\t\t\tRentPanel rp = new RentPanel();\n\t\t\t\trp.frame.setVisible(true);\n\t\t\t\t\n\t\t\t\tframe.dispose();\n\t\t\t\t\n\t\t\t}\n\t\t});\n\t\tbtnRent.setFont(new Font(\"Tahoma\", Font.PLAIN, 11));\n\t\tbtnRent.setForeground(new Color(255, 255, 255));\n\t\tbtnRent.setBackground(new Color(30, 144, 255));\n\t\tbtnRent.setBounds(30, 299, 135, 63);\n\t\tframe.getContentPane().add(btnRent);\n\t}",
"public void limpaFrameInicial ()\n {\n this.getContentPane().remove(jPanelApresentacao);\n this.repaint();\n }",
"@Override\n\tpublic void Update(JPanel panel) {\n\t\t\n\t}",
"public OverWorldPanel(String mn, String cn, MasterWindow frame){\r\n //super();\r\n eventCaller = frame;\r\n\r\n random = new Random();\r\n moveAnimator = new Timer(100, this);\r\n moveAnimator.setRepeats(true);\r\n moving = false;\r\n\r\n direction = 'n';\r\n prevDirection = 'n';\r\n mapName = mn;\r\n currentMap = new ImageIcon(mapName);\r\n characterName = cn;\r\n playerName = characterName + direction + \".png\";\r\n currentCharacter = new ImageIcon(playerName);\r\n\r\n this.setFocusable(true);\r\n requestFocusInWindow();\r\n addKeyListener(new AL());\r\n//sets up the map in the panel using the map loader methods. come back later to make the\r\n//start based on the panel size for a resizable screen\r\n mapX = invisMap.getMapStartX(mapName);\r\n mapY = invisMap.getMapStartY(mapName);\r\n protagonistX = -mapX + 250;\r\n protagonistY = -mapY + 250;\r\n System.out.println(\"protagonist x and y\" + protagonistX + \" \" + protagonistY);\r\n this.setFocusable(true);\r\n requestFocusInWindow();\r\n //System.out.println(KeyboardFocusManager.getCurrentKeyboardFocusManager().getFocusOwner());\r\n // not sure what to do for this yet protagonist = new Player(panelWidth/2, panelHeight/2);\r\n }",
"public FrameInsert() {\n initComponents();\n }",
"public void setRight(JPanel panel);",
"private void cambiaPanelAnterior() {\r\n\t\tCardLayout cl = (CardLayout) VentanaPrincipal.getInstance().getContentPane().getLayout();// obtenemos el card layout\r\n\t\tcl.show(VentanaPrincipal.getInstance().getContentPane(), VentanaPrincipal.getInstance().getPanelEquipo().getName());// mostramos el pael Equipos\r\n\t}",
"public void setupPanel() {\n\t\tpanel = new JPanel();\n\t\tpanel.setLayout(new ModifiedFlowLayout(FlowLayout.LEFT));\n\t\tpanel.setBackground(Color.BLACK);\n\t\tpanel.setOpaque(true);\n\t}",
"private void setupPanel()\n\t{\n\t\tthis.setLayout(baseLayout);\n\t\tthis.add(firstButton);\n\t\tthis.add(firstField);\n\t}",
"public JPanelStartMafiaGame() {\n initComponents();\n\n }",
"@Override protected JComponent setupPanel()\t{ return null; }",
"private void initProcess(){\n this.getScPanelFriends().getViewport().setOpaque(false);\n this.getScPanelTopics().getViewport().setOpaque(false);\n this.getCenterPanel().setSize(0,0);\n this.getEastPanel().setSize(1700,800);\n //Administrador inhabilitado por defecto hasta implementación\n this.getBtnAdmin().setEnabled(false);\n this.getMenuOption().setLocationRelativeTo(this);\n }",
"private void configurePanel(ContentPanel panel){\r\n\t\t\t\tpanel.setSize(325, 185);\t\t\t\t\r\n\t\t\t\tpanel.setHeaderVisible(false);\r\n\t\t\t\tpanel.setBodyStyle(\"padding:7px\");\r\n\t\t\t\tpanel.setScrollMode(Scroll.AUTOY);\r\n\t\t\t\tpanel.setStyleAttribute(\"marginTop\", \"15px\");\r\n\t\t\t}",
"public frameCliclistas() {\n initComponents();\n setLocationRelativeTo(this);\n show_ciclistas();\n }",
"private void initialize() {\n\t\tframe = new JFrame();\n\t\townPanel = new NicePanel();\n\t\tframe.setTitle(\"Per Seconde Wijzer\");\n\t\tframe.setContentPane(ownPanel);\n\t\t// frame.getContentPane().setBackground(Color.BLACK);\n\t\tframe.setBounds(100, 100, 1280, 720);\n\t\tframe.setLocationRelativeTo(null);\n\n\t\tframe.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\n\t\tframe.getContentPane().setLayout(\n\t\t\t\tnew MigLayout(\"\", \"[300.00,grow,left][100.00,grow,fill][100.00,grow][300.00,grow]\",\n\t\t\t\t\t\t\"[157.00,grow,fill][160px:172.00px:180px,fill][][][][][157.00,grow]\"));\n\n\t\tJLabel lblNewLabel = new JLabel(\"<html>PER<br />\\nSECONDE<br />\\nWIJZER</html>\");\n\t\tlblNewLabel.setFont(new Font(\"Dialog\", Font.BOLD, 42));\n\t\tlblNewLabel.setForeground(Color.WHITE);\n\t\townPanel.add(lblNewLabel, \"cell 1 1 2 1\");\n\n\t\ttxtVulHierJe = new JTextField();\n\t\ttxtVulHierJe.setFont(new Font(\"Tahoma\", Font.PLAIN, 16));\n\t\ttxtVulHierJe.setText(TXT_PLACEH_NAAM_INPUT);\n\t\tframe.getContentPane().add(txtVulHierJe, \"cell 1 2 2 1,growx\");\n\t\ttxtVulHierJe.setColumns(10);\n\n\t\t// Als er met de mouse geklikt wordt zal de placeholder text verwijderd\n\t\t// worden\n\t\ttxtVulHierJe.addMouseListener(new MouseAdapter() {\n\t\t\t@Override\n\t\t\tpublic void mouseClicked(MouseEvent arg0) {\n\t\t\t\tif (arg0.getButton() == 0x1 && txtVulHierJe.getText().equals(TXT_PLACEH_NAAM_INPUT))\n\t\t\t\t\ttxtVulHierJe.setText(\"\");\n\t\t\t}\n\t\t});\n\t\t// Placeholder wijzgen d.m.v. een keypress\n\t\ttxtVulHierJe.addKeyListener(new KeyAdapter() {\n\t\t\t@Override\n\t\t\tpublic void keyPressed(KeyEvent e) {\n\t\t\t\tif (txtVulHierJe.getText().equals(TXT_PLACEH_NAAM_INPUT)) txtVulHierJe.setText(\"\");\n\t\t\t}\n\t\t});\n\n\t\tNiceButton btnNewButton = new NiceButton(\"Spelregels\");\n\t\tfinal HelpScherm helpScherm = new HelpScherm(this);\n\t\tbtnNewButton.addActionListener(new ActionListener() {\n\t\t\t@Override\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\topenPanel(helpScherm);\n\t\t\t}\n\t\t});\n\t\tframe.getContentPane().add(btnNewButton, \"cell 1 3,growx\");\n\n\t\tNiceButton btnNewButton_3 = new NiceButton(\"Start\");\n\t\tbtnNewButton_3.setFont(new Font(\"Tahoma\", Font.PLAIN, 30));\n\n\t\ttxtVulHierJe.addKeyListener(new KeyAdapter() {\n\t\t\t@Override\n\t\t\tpublic void keyReleased(KeyEvent arg0) {\n\t\t\t\tif (arg0.getKeyCode() == KeyEvent.VK_ENTER) startGame();\n\t\t\t}\n\t\t});\n\n\t\tbtnNewButton_3.addActionListener(new ActionListener() {\n\t\t\t@Override\n\t\t\tpublic void actionPerformed(ActionEvent arg0) {\n\t\t\t\tstartGame();\n\t\t\t}\n\t\t});\n\t\tframe.getContentPane().add(btnNewButton_3, \"cell 2 3 1 2,grow\");\n\n\t\tNiceButton btnNewButton_2 = new NiceButton(\"Highscores\");\n\t\tbtnNewButton_2.addActionListener(new ActionListener() {\n\t\t\t@Override\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\topenPanel(new Highscore(spel));\n\t\t\t}\n\t\t});\n\t\tframe.getContentPane().add(btnNewButton_2, \"cell 1 4,growx\");\n\t}",
"public PanelCicloEscolar() {\n initComponents();\n }",
"public void addPanels(JFrame mainFrame)\n\t{\n\t\tthis.add(freespacesAndResults);\n\t\tthis.add(table);\n\t\tmainFrame.add(this);\n\t\tmainFrame.pack();\n\t}",
"public NslmEditorFrame(SchEditorFrame fm, Module module) {\n\n\tsuper(\"Nslm\"); // initialize the EditorFrame\n\tsetLocation(new Point(100,100));\n\t//setSize(800,1000); //not working\n\t//todo: query the screen size\n\n\tparentFrame=fm;\n okCancelPopup=new WarningDialogOkCancel(this); \n\tsetTitle(\"NSLM Editor\");\n\tif (module!=null) {\n\t boolean found=executiveFrame.windowsAndModulesOpen.contains(\"Nslm\",module);\n\t if (!found) {\n\t\tcurrModule=module;\t\t\n\t } else {//found\n\t\twarningPopup.display(\"IconEditorFrame: that module already open in an Icon Editor\");\n\t currModule=null;\n\t }\n\t} else {\n\t currModule=null;\n\t}\n\n\tif (module != null) {\n\t setTitle(\"NSLM Editor: Module \"+currModule.moduleName);\n\t} else {\n\t setTitle(\"NSLM Editor\");\n\t}\n\n\t//The setting of the background was too anoying for now - on off button /// panel did not get the get the background color.\n\t// Need seperate background color for NSLM Editor window -not black\n\t//\tNslmEditorPanel.drawBack_col = SCSUtility.returnCol(UserPref.drawBackgroundColor );\n\t//\tNslmEditorPanel.noActionTakenBack_col = SCSUtility.returnCol(UserPref.noActionTakenBackgroundColor );\n\t//\tNslmEditorPanel.currBackgroundCol=NslmEditorPanel.noActionTakenBack_col;\n\n \n // Graphics -----------------------------\n\tBorderLayout borderlayout1=new BorderLayout(); //layout of frame\n\tgetContentPane().setLayout(borderlayout1);\n\t// nslmMenuBar -----------------------------\n // File and Help\n\t// add to Center and will appear by default in a vertical manner\n\tnslmMenuBar=createNslmMenuBar();\n setJMenuBar(nslmMenuBar); \n\t//getContentPane().setMenuBar(nslmMenuBar); \n\t//add(nslmMenuBar,BorderLayout.NORTH); //add to this frame\n\t// myNslmEditorPanel -----------------------------\n\tmyNslmEditorPanel = new JPanel();\n\tcreateNslmPanel(myNslmEditorPanel);\n\n\tmyNslmPane = new JScrollPane(myNslmEditorPanel,ScrollPaneConstants.VERTICAL_SCROLLBAR_ALWAYS,ScrollPaneConstants.HORIZONTAL_SCROLLBAR_ALWAYS);\n\tgetContentPane().add(myNslmPane,BorderLayout.CENTER); //add to this frame\n\tmyNslmEditorPanel.setVisible(false);\n\t//myStatusPanel -----------------------------\n\tmyStatusPanel = new StatusPanel();\n\tgetContentPane().add(myStatusPanel,BorderLayout.SOUTH); //add to this frame\n\n\t// myNslmEditorPanel.setBackground(NslmEditorPanel.currBackgroundCol);\n\t\n\taddWindowListener(new DWAdapter()); //from EditorFrame\n\tmessagePopup = new MessageDialog(this);\n\n //-------\n\t// Now see if there was already a module open from Sch or Icon\n\tif (currModule==null) {\n\t return;\n\t}\n\tif (currModule.myNslm==null) {\n\t //System.out.println(\"Debug:NslmEditorFrame: constructor and non null currModule\");\n\t boolean worked=executiveFrame.windowsAndModulesOpen.addInPieces(\"Nslm\",currModule);\n\t finishNew();\n\t setTitle(\"Nslm Editor: \"+currModule.moduleName);\n\t return;\n\t}\n\t//a NSLM view exists by that name\n\t//System.out.println(\"Debug:NslmEditorFrame: constructor and non null currIcon\");\n boolean worked=executiveFrame.windowsAndModulesOpen.addInPieces(\"Nslm\",currModule);\n\tfinishOpen();\n\tsetTitle(\"Nslm Editor: \"+currModule.moduleName);\n\t\n\t\n\n }",
"public DrawPanel() {\n initComponents();\n }",
"public HoaDonJPanel() {\n initComponents(); \n this.init();\n }",
"private void customizeFrame(JFrame frame) {\r\n frame.setTitle(getTitle());\r\n frame.setResizable(false);\r\n frame.setPreferredSize(new Dimension(width + 15, height + 36));\r\n frame.setVisible(true);\r\n\r\n frame.setLayout(new BorderLayout());\r\n frame.add(panel, BorderLayout.CENTER);\r\n frame.setLocationRelativeTo(null);\r\n\r\n frame.setDefaultCloseOperation(JFrame.DISPOSE_ON_CLOSE);\r\n frame.pack();\r\n }",
"public frameMenu() {\n initComponents();\n }",
"public void limpaFrameOperacoes ()\n {\n jPanelOperacoes.setVisible(true);\n jPanelPolinomios.setVisible(false);\n this.repaint();\n }",
"private void initialize() {\n\t\tframe = new JFrame();\n\t\tframe.getContentPane().setForeground(new Color(0, 0, 0));\n\t\tframe.setBounds(100, 100, 450, 300);\n\t\tframe.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\n\t\tframe.getContentPane().setLayout(null);\n\t\t\n\t\tJPanel panel = new JPanel();\n\t\tpanel.setBackground(new Color(255, 0, 0));\n\t\tpanel.setBorder(new BevelBorder(BevelBorder.RAISED, Color.DARK_GRAY, Color.WHITE, null, null));\n\t\tpanel.setBounds(10, 24, 27, 31);\n\t\tframe.getContentPane().add(panel);\n\t\t\n\t\tJLabel A1 = new JLabel(\"A1\");\n\t\tpanel.add(A1);\n\t\t\n\t\tJPanel panel_1 = new JPanel();\n\t\tpanel_1.setBorder(new BevelBorder(BevelBorder.RAISED, Color.DARK_GRAY, Color.WHITE, null, null));\n\t\tpanel_1.setBounds(59, 24, 27, 31);\n\t\tframe.getContentPane().add(panel_1);\n\t\t\n\t\tJLabel A1_1 = new JLabel(\"A2\");\n\t\tpanel_1.add(A1_1);\n\t\t\n\t\tJPanel panel_2 = new JPanel();\n\t\tpanel_2.setBackground(new Color(0, 255, 255));\n\t\tpanel_2.setBorder(new BevelBorder(BevelBorder.RAISED, Color.DARK_GRAY, Color.WHITE, null, null));\n\t\tpanel_2.setBounds(110, 24, 27, 31);\n\t\tframe.getContentPane().add(panel_2);\n\t\t\n\t\tJLabel A1_2 = new JLabel(\"A3\");\n\t\tpanel_2.add(A1_2);\n\t\t\n\t\tJPanel panel_3 = new JPanel();\n\t\tpanel_3.setBorder(new BevelBorder(BevelBorder.RAISED, Color.DARK_GRAY, Color.WHITE, null, null));\n\t\tpanel_3.setBounds(10, 72, 27, 31);\n\t\tframe.getContentPane().add(panel_3);\n\t\t\n\t\tJLabel A1_3 = new JLabel(\"B1\");\n\t\tpanel_3.add(A1_3);\n\t\t\n\t\tJPanel panel_4 = new JPanel();\n\t\tpanel_4.setBorder(new BevelBorder(BevelBorder.RAISED, Color.DARK_GRAY, Color.WHITE, null, null));\n\t\tpanel_4.setBounds(59, 72, 27, 31);\n\t\tframe.getContentPane().add(panel_4);\n\t\t\n\t\tJLabel A1_4 = new JLabel(\"B2\");\n\t\tpanel_4.add(A1_4);\n\t\t\n\t\tJPanel panel_5 = new JPanel();\n\t\tpanel_5.setBorder(new BevelBorder(BevelBorder.RAISED, Color.DARK_GRAY, Color.WHITE, null, null));\n\t\tpanel_5.setBounds(110, 72, 27, 31);\n\t\tframe.getContentPane().add(panel_5);\n\t\t\n\t\tJLabel A1_5 = new JLabel(\"B3\");\n\t\tpanel_5.add(A1_5);\n\t\t\n\t\tJPanel panel_6 = new JPanel();\n\t\tpanel_6.setBorder(new BevelBorder(BevelBorder.RAISED, Color.DARK_GRAY, Color.WHITE, null, null));\n\t\tpanel_6.setBounds(10, 125, 27, 31);\n\t\tframe.getContentPane().add(panel_6);\n\t\t\n\t\tJLabel A1_6 = new JLabel(\"C1\");\n\t\tpanel_6.add(A1_6);\n\t\t\n\t\tJPanel panel_7 = new JPanel();\n\t\tpanel_7.setBorder(new BevelBorder(BevelBorder.RAISED, Color.DARK_GRAY, Color.WHITE, null, null));\n\t\tpanel_7.setBounds(59, 125, 27, 31);\n\t\tframe.getContentPane().add(panel_7);\n\t\t\n\t\tJLabel A1_7 = new JLabel(\"C2\");\n\t\tpanel_7.add(A1_7);\n\t\t\n\t\tJPanel panel_8 = new JPanel();\n\t\tpanel_8.setBorder(new BevelBorder(BevelBorder.RAISED, Color.DARK_GRAY, Color.WHITE, null, null));\n\t\tpanel_8.setBounds(110, 125, 27, 31);\n\t\tframe.getContentPane().add(panel_8);\n\t\t\n\t\tJLabel A1_8 = new JLabel(\"C3\");\n\t\tpanel_8.add(A1_8);\n\t\t\n\t\tJPanel panel_9 = new JPanel();\n\t\tpanel_9.setBounds(10, 226, 127, 24);\n\t\tframe.getContentPane().add(panel_9);\n\t\t\n\t\tJLabel lblNewLabel = new JLabel(\"Layar Bioskop\");\n\t\tlblNewLabel.setForeground(UIManager.getColor(\"CheckBox.foreground\"));\n\t\tpanel_9.add(lblNewLabel);\n\t\t\n\t\tJButton btnNewButton = new JButton(\"Pesan Tiket\");\n\t\tbtnNewButton.setBackground(UIManager.getColor(\"Button.disabledForeground\"));\n\t\tbtnNewButton.addActionListener(new ActionListener() {\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t}\n\t\t});\n\t\tbtnNewButton.setBounds(295, 227, 89, 23);\n\t\tframe.getContentPane().add(btnNewButton);\n\t\t\n\t\tJLabel lblNewLabel_1 = new JLabel(\"Konfirmasi Pemesanan\");\n\t\tlblNewLabel_1.setFont(new Font(\"Tahoma\", Font.BOLD, 17));\n\t\tlblNewLabel_1.setVerticalAlignment(SwingConstants.TOP);\n\t\tlblNewLabel_1.setBounds(217, 5, 196, 31);\n\t\tframe.getContentPane().add(lblNewLabel_1);\n\t\t\n\t\tJLabel lblNewLabel_2 = new JLabel(\"Harga: Rp 50.000\");\n\t\tlblNewLabel_2.setBounds(217, 114, 89, 14);\n\t\tframe.getContentPane().add(lblNewLabel_2);\n\t\t\n\t\tJPanel panel_10 = new JPanel();\n\t\tpanel_10.setBorder(new EtchedBorder(EtchedBorder.LOWERED, UIManager.getColor(\"Button.focus\"), null));\n\t\tpanel_10.setBounds(0, 0, 196, 261);\n\t\tframe.getContentPane().add(panel_10);\n\t\t\n\t\tJLabel lblNewLabel_2_1 = new JLabel(\"Biaya adm: Rp 1.500 \");\n\t\tlblNewLabel_2_1.setBounds(217, 139, 127, 14);\n\t\tframe.getContentPane().add(lblNewLabel_2_1);\n\t\t\n\t\tJLabel lblNewLabel_2_2 = new JLabel(\"Bioskop: Transmart Buah Batu\");\n\t\tlblNewLabel_2_2.setBounds(216, 90, 152, 14);\n\t\tframe.getContentPane().add(lblNewLabel_2_2);\n\t\t\n\t\tJLabel lblNewLabel_2_3 = new JLabel(\"Tiket: 1 tiket\");\n\t\tlblNewLabel_2_3.setBounds(216, 66, 89, 14);\n\t\tframe.getContentPane().add(lblNewLabel_2_3);\n\t\t\n\t\tJLabel lblNewLabel_2_4 = new JLabel(\"Kursi: A3\");\n\t\tlblNewLabel_2_4.setBounds(216, 47, 89, 14);\n\t\tframe.getContentPane().add(lblNewLabel_2_4);\n\t}",
"private void initialize() {\r\n\t\tframe = new JFrame(\"Dashboard\");\r\n\t\tframe.getContentPane().setFont(new Font(\"Yu Gothic Medium\", Font.BOLD, 15));\r\n\t\tframe.getContentPane().setForeground(new Color(255, 255, 255));\r\n\t\tframe.getContentPane().setBackground(new Color(255, 255, 255));\r\n\t\tframe.setBackground(new Color(47, 79, 79));\r\n\t\tframe.setBounds(100, 100, 1126, 556);\r\n\t\tframe.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\r\n\t\tframe.getContentPane().setLayout(null);\r\n\t\t\r\n\t\tBorder blackline = BorderFactory.createLineBorder(Color.red);\r\n\t\t\r\n\t\tJLabel lbl_name = new JLabel(\"Name\");\r\n\t\tlbl_name.setHorizontalAlignment(SwingConstants.CENTER);\r\n\t\tlbl_name.setForeground(new Color(255, 255, 255));\r\n\t\tlbl_name.setFont(new Font(\"Tahoma\", Font.BOLD, 15));\r\n\t\tlbl_name.setBounds(625, 196, 127, 24);\r\n\t\tframe.getContentPane().add(lbl_name);\r\n\t\t\r\n\t\tJLabel lbl_photo = new JLabel(\"\");\r\n\t\tlbl_photo.setBackground(new Color(255, 255, 255));\r\n\t\tlbl_photo.setBounds(625, 28, 127, 148);\r\n\t\tlbl_photo.setBorder(blackline);\r\n\t\tframe.getContentPane().add(lbl_photo);\r\n\t\t\r\n\t\tJPanel menuPanel = new JPanel();\r\n\t\tmenuPanel.setBounds(0, 0, 278, 517);\r\n\t\tmenuPanel.setBackground(new Color(47, 79, 79));\r\n\t\tframe.getContentPane().add(menuPanel);\r\n\t\tmenuPanel.setLayout(null);\r\n\t\t\r\n\t\tJLabel menuLabel = new JLabel(\"My Dashboard\");\r\n\t\tmenuLabel.setBounds(0, 0, 278, 54);\r\n\t\tmenuLabel.setHorizontalAlignment(SwingConstants.CENTER);\r\n\t\tmenuLabel.setForeground(new Color(255, 255, 255));\r\n\t\tmenuLabel.setFont(new Font(\"Bell MT\", Font.BOLD, 28));\r\n\t\tmenuLabel.setBackground(new Color(46, 139, 87));\r\n\t\tmenuLabel.setOpaque(true);\r\n\t\tmenuPanel.add(menuLabel);\r\n\t\t\r\n\t\tJPanel panel = new JPanel();\r\n\t\tpanel.setBackground(new Color(47, 79, 79));\r\n\t\tpanel.setForeground(new Color(255, 255, 255));\r\n\t\tpanel.setBounds(10, 80, 258, 45);\r\n\t\tmenuPanel.add(panel);\r\n\t\tpanel.setLayout(null);\r\n\t\t\r\n\t\tJLabel lbl_1 = new JLabel(\"\");\r\n\t\tlbl_1.setBounds(20, 5, 40, 35);\r\n\t\tlbl_1.setIcon(new ImageIcon(img_home));\r\n\t\tpanel.add(lbl_1);\r\n\t\t\r\n\t\tJButton btn_home = new JButton(\"Home\");\r\n\t\tbtn_home.addMouseListener(new MouseAdapter() {\r\n\t\t\t@Override\r\n\t\t\tpublic void mouseEntered(MouseEvent e) \r\n\t\t\t{\r\n\t\t\t\tbtn_home.setForeground((new Color(46, 139, 87)));\r\n\t\t\t}\r\n\t\t\t@Override\r\n\t\t\tpublic void mouseExited(MouseEvent e) \r\n\t\t\t{\r\n\t\t\t\tbtn_home.setForeground(new Color(255, 255, 255));\r\n\t\t\t}\r\n\t\t});\r\n\t\tbtn_home.setForeground(new Color(255, 255, 255));\r\n\t\tbtn_home.addActionListener(new ActionListener() {\r\n\t\t\tpublic void actionPerformed(ActionEvent e) \r\n\t\t\t{\r\n\t\t\t\tSystem.out.println(\"Home is clicked\");\r\n\t\t\t}\r\n\t\t});\r\n\t\tbtn_home.setFont(new Font(\"Tahoma\", Font.BOLD, 16));\r\n\t\tbtn_home.setHorizontalAlignment(SwingConstants.LEADING);\r\n\t\tbtn_home.setBounds(66, 5, 142, 35);\r\n\t\tbtn_home.setOpaque(false);\r\n\t\tbtn_home.setContentAreaFilled(false);\r\n\t\tbtn_home.setBorderPainted(false);\r\n\t\tbtn_home.setFocusPainted(false);\r\n\t\tpanel.add(btn_home);\r\n\t\t\r\n\t\tJPanel panel_1 = new JPanel();\r\n\t\tpanel_1.setBackground(new Color(47, 79, 79));\r\n\t\tpanel_1.setLayout(null);\r\n\t\tpanel_1.setBounds(10, 145, 258, 45);\r\n\t\tmenuPanel.add(panel_1);\r\n\t\t\r\n\t\tJLabel lbl_2 = new JLabel(\"\");\r\n\t\tlbl_2.setHorizontalAlignment(SwingConstants.CENTER);\r\n\t\tlbl_2.setBounds(20, 5, 40, 35);\r\n\t\tlbl_2.setIcon(new ImageIcon(img_leave));\r\n\t\tpanel_1.add(lbl_2);\r\n\t\t\r\n\t\tJButton btn_leave = new JButton(\"Apply Leave\");\r\n\t\tbtn_leave.addMouseListener(new MouseAdapter() {\r\n\t\t\t@Override\r\n\t\t\tpublic void mouseEntered(MouseEvent e) \r\n\t\t\t{\r\n\t\t\t\tbtn_leave.setForeground((new Color(46, 139, 87)));\r\n\t\t\t}\r\n\t\t\t@Override\r\n\t\t\tpublic void mouseExited(MouseEvent e) \r\n\t\t\t{\r\n\t\t\t\tbtn_leave.setForeground((new Color(255, 255, 255)));\r\n\t\t\t}\r\n\t\t});\r\n\t\tbtn_leave.addActionListener(new ActionListener() {\r\n\t\t\tpublic void actionPerformed(ActionEvent e) \r\n\t\t\t{\r\n\t\t\t\tSystem.out.println(\"Leave is clicked\");\r\n\t\t\t}\r\n\t\t});\r\n\t\tbtn_leave.setForeground(new Color(255, 255, 255));\r\n\t\tbtn_leave.setHorizontalAlignment(SwingConstants.LEADING);\r\n\t\tbtn_leave.setFont(new Font(\"Tahoma\", Font.BOLD, 16));\r\n\t\tbtn_leave.setFocusPainted(false);\r\n\t\tbtn_leave.setContentAreaFilled(false);\r\n\t\tbtn_leave.setBorderPainted(false);\r\n\t\tbtn_leave.setBounds(70, 5, 142, 35);\r\n\t\tpanel_1.add(btn_leave);\r\n\t\t\r\n\t\tJPanel panel_1_1 = new JPanel();\r\n\t\tpanel_1_1.setBackground(new Color(47, 79, 79));\r\n\t\tpanel_1_1.setLayout(null);\r\n\t\tpanel_1_1.setBounds(10, 210, 258, 45);\r\n\t\tmenuPanel.add(panel_1_1);\r\n\t\t\r\n\t\tJLabel lbl_3 = new JLabel(\"\");\r\n\t\tlbl_3.setHorizontalAlignment(SwingConstants.CENTER);\r\n\t\tlbl_3.setBounds(20, 5, 40, 35);\r\n\t\tlbl_3.setIcon(new ImageIcon(img_marks));\r\n\t\tpanel_1_1.add(lbl_3);\r\n\t\t\r\n\t\tJButton btn_marks = new JButton(\"Marks\");\r\n\t\tbtn_marks.addMouseListener(new MouseAdapter() {\r\n\t\t\t@Override\r\n\t\t\tpublic void mouseEntered(MouseEvent e) \r\n\t\t\t{\r\n\t\t\t\tbtn_marks.setForeground((new Color(46, 139, 87)));\r\n\t\t\t}\r\n\t\t\t@Override\r\n\t\t\tpublic void mouseExited(MouseEvent e) \r\n\t\t\t{\r\n\t\t\t\tbtn_marks.setForeground((new Color(255, 255, 255)));\r\n\t\t\t}\r\n\t\t});\r\n\t\tbtn_marks.addActionListener(new ActionListener() {\r\n\t\t\tpublic void actionPerformed(ActionEvent e) \r\n\t\t\t{\r\n\t\t\t\tSystem.out.println(\"Marks is clicked\");\r\n\t\t\t}\r\n\t\t});\r\n\t\tbtn_marks.setForeground(new Color(255, 255, 255));\r\n\t\tbtn_marks.setOpaque(false);\r\n\t\tbtn_marks.setHorizontalAlignment(SwingConstants.LEADING);\r\n\t\tbtn_marks.setFont(new Font(\"Tahoma\", Font.BOLD, 16));\r\n\t\tbtn_marks.setFocusPainted(false);\r\n\t\tbtn_marks.setContentAreaFilled(false);\r\n\t\tbtn_marks.setBorderPainted(false);\r\n\t\tbtn_marks.setBounds(70, 5, 142, 35);\r\n\t\tpanel_1_1.add(btn_marks);\r\n\t\t\r\n\t\tJPanel panel_1_1_1 = new JPanel();\r\n\t\tpanel_1_1_1.setBackground(new Color(47, 79, 79));\r\n\t\tpanel_1_1_1.setLayout(null);\r\n\t\tpanel_1_1_1.setBounds(10, 275, 258, 45);\r\n\t\tmenuPanel.add(panel_1_1_1);\r\n\t\t\r\n\t\tJLabel lbl_4 = new JLabel(\"\");\r\n\t\tlbl_4.setHorizontalAlignment(SwingConstants.CENTER);\r\n\t\tlbl_4.setBounds(20, 5, 40, 35);\r\n\t\tlbl_4.setIcon(new ImageIcon(img_attendance));\r\n\t\tpanel_1_1_1.add(lbl_4);\r\n\t\t\r\n\t\tJButton btn_attendance = new JButton(\"Atendance\");\r\n\t\tbtn_attendance.addMouseListener(new MouseAdapter() {\r\n\t\t\t@Override\r\n\t\t\tpublic void mouseEntered(MouseEvent e) \r\n\t\t\t{\r\n\t\t\t\tbtn_attendance.setForeground((new Color(46, 139, 87)));\r\n\t\t\t}\r\n\t\t\t@Override\r\n\t\t\tpublic void mouseExited(MouseEvent e) \r\n\t\t\t{\r\n\t\t\t\tbtn_attendance.setForeground((new Color(255, 255, 255)));\r\n\t\t\t}\r\n\t\t});\r\n\t\tbtn_attendance.addActionListener(new ActionListener() {\r\n\t\t\tpublic void actionPerformed(ActionEvent e) \r\n\t\t\t{\r\n\t\t\t\tSystem.out.println(\"Attendance is clicked\");\r\n\t\t\t}\r\n\t\t});\r\n\t\tbtn_attendance.setForeground(new Color(255, 255, 255));\r\n\t\tbtn_attendance.setOpaque(false);\r\n\t\tbtn_attendance.setHorizontalAlignment(SwingConstants.LEADING);\r\n\t\tbtn_attendance.setFont(new Font(\"Tahoma\", Font.BOLD, 16));\r\n\t\tbtn_attendance.setFocusPainted(false);\r\n\t\tbtn_attendance.setContentAreaFilled(false);\r\n\t\tbtn_attendance.setBorderPainted(false);\r\n\t\tbtn_attendance.setBounds(70, 5, 142, 35);\r\n\t\tpanel_1_1_1.add(btn_attendance);\r\n\t\t\r\n\t\tJLabel lbl_back = new JLabel(\"\");\r\n\t\tlbl_back.setBounds(278, 0, 832, 255);\r\n\t\tlbl_back.setIcon(new ImageIcon(img_background));\r\n\t\tframe.getContentPane().add(lbl_back);\r\n\t\t\r\n\t\tJLabel lbl_logo = new JLabel(\"\");\r\n\t\tlbl_logo.setBounds(308, 255, 278, 100);\r\n\t\tlbl_logo.setIcon(new ImageIcon(img_logo));\r\n\t\tframe.getContentPane().add(lbl_logo);\r\n\t\t\r\n\t\tJLabel lbl_welcome = new JLabel(\"WELCOME\");\r\n\t\tlbl_welcome.setForeground(new Color(47, 79, 79));\r\n\t\tlbl_welcome.setFont(new Font(\"Times New Roman\", Font.BOLD, 25));\r\n\t\tlbl_welcome.setBounds(308, 366, 239, 38);\r\n\t\tframe.getContentPane().add(lbl_welcome);\r\n\t\t\r\n\t\tJLabel lbl_name1 = new JLabel(\"Name\");\r\n\t\tlbl_name1.setFont(new Font(\"Tahoma\", Font.PLAIN, 15));\r\n\t\tlbl_name1.setBounds(308, 415, 134, 24);\r\n\t\tframe.getContentPane().add(lbl_name1);\r\n\t\t\r\n\t\tJLabel lbl_id = new JLabel(\"ID : \");\r\n\t\tlbl_id.setForeground(new Color(47, 79, 79));\r\n\t\tlbl_id.setFont(new Font(\"Times New Roman\", Font.BOLD, 20));\r\n\t\tlbl_id.setBounds(308, 452, 90, 24);\r\n\t\tframe.getContentPane().add(lbl_id);\r\n\t\t\r\n\t\tJLabel lbl_id1 = new JLabel(\"Identification number\");\r\n\t\tlbl_id1.setFont(new Font(\"Tahoma\", Font.PLAIN, 15));\r\n\t\tlbl_id1.setBounds(308, 482, 144, 24);\r\n\t\tframe.getContentPane().add(lbl_id1);\r\n\t\t\r\n\t\t\r\n\t}",
"private void setPanel()\r\n\t{\r\n\t\tpanel = new JPanel();\r\n\t\tpanel.setLayout(new GridLayout(5, 2));\r\n\t\t\r\n\t\tpanel.add(bubbleL);\r\n\t\tpanel.add(bubblePB);\r\n\t\t\r\n\t\tpanel.add(insertionL);\r\n\t\tpanel.add(insertionPB);\r\n\t\t\r\n\t\tpanel.add(mergeL);\r\n\t\tpanel.add(mergePB);\r\n\t\t\r\n\t\tpanel.add(quickL);\r\n\t\tpanel.add(quickPB);\r\n\t\t\r\n\t\tpanel.add(radixL);\r\n\t\tpanel.add(radixPB);\r\n\t}",
"public void setPanels() {\n\t\tframe.setPreferredSize(new Dimension(3000, 2000));\n\n\t\tcontainer.setBackground(lightGray);\n\t\tcontainer.setPreferredSize(new Dimension(2300, 120));\n\t\tcontainer.setBorder(BorderFactory.createLineBorder(black));\n\n\t\tagePanel.setBackground(lightGray);\n\t\tagePanel.setPreferredSize(new Dimension(2400, 120));\n\t\tagePanel.setBorder(BorderFactory.createLineBorder(black));\n\n\t\theightPanel.setBackground(lightGray);\n\t\theightPanel.setPreferredSize(new Dimension(1200, 120));\n\t\theightPanel.setBorder(BorderFactory.createLineBorder(black));\n\n\t\tweightPanel.setBackground(lightGray);\n\t\tweightPanel.setPreferredSize(new Dimension(850, 120));\n\t\tweightPanel.setBorder(BorderFactory.createLineBorder(black));\n\n\t\thairPanel.setBackground(lightGray);\n\t\thairPanel.setPreferredSize(new Dimension(900, 120));\n\t\thairPanel.setBorder(BorderFactory.createLineBorder(black));\n\n\t\teyePanel.setBackground(lightGray);\n\t\teyePanel.setPreferredSize(new Dimension(900, 120));\n\t\teyePanel.setBorder(BorderFactory.createLineBorder(black));\n\n\t\tabilitySelectionPanel.setBackground(lightGray);\n\t\tabilitySelectionPanel.setPreferredSize(new Dimension(2400, 120));\n\t\tabilitySelectionPanel.setBorder(BorderFactory.createLineBorder(black));\n\n\t\tphysicalAbilityPanel.setBackground(lightGray);\n\t\tphysicalAbilityPanel.setPreferredSize(new Dimension(2400, 400));\n\t\tphysicalAbilityPanel.setBorder(BorderFactory.createLineBorder(black));\n\n\t\tmentalAbilityPanel.setBackground(lightGray);\n\t\tmentalAbilityPanel.setPreferredSize(new Dimension(2400, 400));\n\t\tmentalAbilityPanel.setBorder(BorderFactory.createLineBorder(black));\n\t}",
"private void initialize() {\n\t\tSystem.setProperty(\"sun.java2d.uiScale\", \"1.0\");\n\n\t\tframe = new JFrame();\n\t\tframe.getContentPane().setBackground(new Color(47, 79, 79));\n\t\tframe.getContentPane().setLayout(null);\n\t\t\n\t\t\n\n\t\tpanellHome =new Home_Panel();\n\t\tpanellHome.setBounds(0, 0, 733, 494);\t\n\t\t\n\t\tpanelAnimalInsertion =new AnimalInsertion_Panel();\n\t\tpanelAnimalInsertion.setBounds(0, 0, 733, 494);\n\t\t\n\t\tpanelAvailableAnimals=new AvailableAnimals_Panel();\n\t\tpanelAvailableAnimals.setBounds(0, 0, 791, 585);\n\n\t\tpanelAdoptionHistory=new AdoptionHistory_Panel();\n\t\tpanelAdoptionHistory.setBounds(0, 0, 733, 535);\n\n\t\tpanelAdoptionStatistics=new AdoptionStatistics_Panel();\n\t\tpanelAdoptionStatistics.setBounds(0, 0, 733, 535);\n\t\t\n\t\tpanelProffesionalServices=new ProffesionalServices_Panel();\n\t\tpanelProffesionalServices.setBounds(0, 0, 733, 535);\n\t\t\n\t\t\n\t\tJPanel panelMenu = new JPanel();\n\t\tpanelMenu.setBackground(new Color(0, 128, 128));\n\t\tpanelMenu.setBounds(0, 0, 218, 585);\n\t\tframe.getContentPane().add(panelMenu);\n\t\tpanelMenu.setLayout(null);\n\t\t\n\t\tJPanel paneHome = new JPanel();\n\t\tpaneHome.addMouseListener(new PanelButtonMouseAdapter(paneHome)\n\t{\n\t\t\t\n\t\t\tpublic void mouseClicked(MouseEvent e) \n\t\t\t{\n\n\t\t\t\tmenuClicked(panellHome);\n\n\t\t\t}\n\t\t\t\t\n\t});\n\t\tpaneHome.setBackground(new Color(0, 139, 139));\n\t\tpaneHome.setBounds(0, 131, 214, 37);\n\t\tpanelMenu.add(paneHome);\n\t\tpaneHome.setLayout(null);\n\t\t\n\t\tJLabel lblNewLabel = new JLabel(\"Home\");\n\t\tlblNewLabel.setForeground(new Color(255, 255, 255));\n\t\tlblNewLabel.setFont(new Font(\"Dialog\", Font.BOLD, 14));\n\t\tlblNewLabel.setBounds(78, 12, 45, 13);\n\t\tpaneHome.add(lblNewLabel);\n\t\t\n\t\t\n\t\tJPanel paneAvailableAnimals = new JPanel();\n\t\tpaneAvailableAnimals.addMouseListener(new PanelButtonMouseAdapter(paneAvailableAnimals)\n\t\t{\n\t\t\t\n\t\t\tpublic void mouseClicked(MouseEvent e) \n\t\t\t{\n\t\t\t\t\n\t\t\t\tmenuClicked(panelAvailableAnimals);\n\t\t\t\t\n\n\t\t\t}\n\t\t\t\t\n\t});\n\t\t\n\t\tpaneAvailableAnimals.setBackground(new Color(0, 139, 139));\n\t\tpaneAvailableAnimals.setBounds(0, 169, 214, 37);\n\t\tpanelMenu.add(paneAvailableAnimals);\n\t\tpaneAvailableAnimals.setLayout(null);\n\t\t\n\t\tJLabel lblAvailableAnimals = new JLabel(\"Available Animals\");\n\t\tlblAvailableAnimals.setForeground(new Color(255, 255, 255));\n\t\tlblAvailableAnimals.setFont(new Font(\"Dialog\", Font.BOLD, 14));\n\t\tlblAvailableAnimals.setBounds(38, 6, 132, 27);\n\t\tpaneAvailableAnimals.add(lblAvailableAnimals);\n\t\t\n\t\tJPanel paneAnimalInsertion = new JPanel();\n\t\tpaneAnimalInsertion.addMouseListener(new PanelButtonMouseAdapter(paneAnimalInsertion)\n{\n\t\t\t\n\t\t\tpublic void mouseClicked(MouseEvent e) \n\t\t\t{\n\t\t\t\t\n\t\t\t\tmenuClicked(panelAnimalInsertion);\n\t\t\t\t\n\t\t\t}\n\t\t\t\n\t\t\t\t\n\t});\n\t\tpaneAnimalInsertion.setBackground(new Color(0, 139, 139));\n\t\tpaneAnimalInsertion.setBounds(0, 205, 214, 37);\n\t\tpanelMenu.add(paneAnimalInsertion);\n\t\tpaneAnimalInsertion.setLayout(null);\n\t\t\n\t\tJLabel lblAnimalInsertion = new JLabel(\"Animal Insertion\");\n\t\tlblAnimalInsertion.setForeground(new Color(255, 255, 255));\n\t\tlblAnimalInsertion.setFont(new Font(\"Dialog\", Font.BOLD, 14));\n\t\tlblAnimalInsertion.setBounds(38, 10, 142, 17);\n\t\tpaneAnimalInsertion.add(lblAnimalInsertion);\n\t\t\n\t\tJPanel paneAdoptionHistory = new JPanel();\n\t\tpaneAdoptionHistory.addMouseListener(new PanelButtonMouseAdapter(paneAdoptionHistory)\n\t\t\t\t{\n\t\t\tpublic void mouseClicked(MouseEvent e) \n\t\t\t{\n\t\t\t\tmenuClicked(panelAdoptionHistory);\n\n\t\t\t}\n\t\t\t\t\n\t});\n\t\tpaneAdoptionHistory.setBackground(new Color(0, 139, 139));\n\t\tpaneAdoptionHistory.setBounds(0, 241, 214, 37);\n\t\tpanelMenu.add(paneAdoptionHistory);\n\t\tpaneAdoptionHistory.setLayout(null);\n\t\t\n\t\tJLabel lblAdoptionsHistory = new JLabel(\"Adoption's History\");\n\t\tlblAdoptionsHistory.setForeground(new Color(255, 255, 255));\n\t\tlblAdoptionsHistory.setFont(new Font(\"Dialog\", Font.BOLD, 14));\n\t\tlblAdoptionsHistory.setBounds(38, 7, 129, 27);\n\t\tpaneAdoptionHistory.add(lblAdoptionsHistory);\n\t\t\n\t\tJLabel lblNewLabel_1 = new JLabel(\"\");\n\t\tlblNewLabel_1.setIcon(new ImageIcon(image));\n\t\tlblNewLabel_1.setBounds(60, 10, 125, 111);\n\t\tpanelMenu.add(lblNewLabel_1);\n\t\t\n\t\tJPanel paneAdoptionStatistics = new JPanel();\n\t\tpaneAdoptionStatistics.addMouseListener(new MouseAdapter() {\n\t\t\t@Override\n\t\t\tpublic void mousePressed(MouseEvent e) {\n\t\t\t\tmenuClicked(panelAdoptionStatistics);\n\n\t\t\t\t\n\t\t\t}\n\t\t});\n\t\tpaneAdoptionStatistics.setLayout(null);\n\t\tpaneAdoptionStatistics.setBackground(new Color(0, 139, 139));\n\t\tpaneAdoptionStatistics.setBounds(0, 277, 214, 37);\n\t\tpanelMenu.add(paneAdoptionStatistics);\n\t\t\n\t\tJLabel lblAdoptionsStatistics = new JLabel(\"Adoption's Statistics\");\n\t\tlblAdoptionsStatistics.setForeground(Color.WHITE);\n\t\tlblAdoptionsStatistics.setFont(new Font(\"Dialog\", Font.BOLD, 14));\n\t\tlblAdoptionsStatistics.setBounds(22, 3, 166, 27);\n\t\tpaneAdoptionStatistics.add(lblAdoptionsStatistics);\n\t\t\n\t\tJLabel lblNewLabel_2 = new JLabel(\"Shir Bata\");\n\t\tlblNewLabel_2.setForeground(Color.WHITE);\n\t\tlblNewLabel_2.setBounds(28, 516, 64, 23);\n\t\tpanelMenu.add(lblNewLabel_2);\n\t\t\n\t\tJLabel lblKoralBukra = new JLabel(\"Koral Bukra\");\n\t\tlblKoralBukra.setForeground(Color.WHITE);\n\t\tlblKoralBukra.setBounds(112, 516, 106, 23);\n\t\tpanelMenu.add(lblKoralBukra);\n\t\t\n\t\tJLabel lblMotiBarshazky = new JLabel(\"Moti Barshazky\");\n\t\tlblMotiBarshazky.setForeground(Color.WHITE);\n\t\tlblMotiBarshazky.setBounds(109, 536, 109, 23);\n\t\tpanelMenu.add(lblMotiBarshazky);\n\t\t\n\t\tJLabel lblTomerCarmel = new JLabel(\"Tomer Carmel\");\n\t\tlblTomerCarmel.setForeground(Color.WHITE);\n\t\tlblTomerCarmel.setBounds(18, 536, 106, 23);\n\t\tpanelMenu.add(lblTomerCarmel);\n\t\t\n\t\tJPanel paneProffessionalServices = new JPanel();\n\t\tpaneProffessionalServices.addMouseListener(new MouseAdapter() {\n\t\t\t@Override\n\t\t\tpublic void mousePressed(MouseEvent e) {\n\t\t\t\tmenuClicked(panelProffesionalServices);\n\n\t\t\t\t\n\t\t\t}\n\t\t});\n\t\tpaneProffessionalServices.setLayout(null);\n\t\tpaneProffessionalServices.setBackground(new Color(0, 139, 139));\n\t\tpaneProffessionalServices.setBounds(0, 315, 214, 37);\n\t\tpanelMenu.add(paneProffessionalServices);\n\t\t\n\t\tJLabel lblProffessionalServices = new JLabel(\"Proffessional Services\");\n\t\tlblProffessionalServices.setForeground(Color.WHITE);\n\t\tlblProffessionalServices.setFont(new Font(\"Dialog\", Font.BOLD, 14));\n\t\tlblProffessionalServices.setBounds(22, 3, 166, 27);\n\t\tpaneProffessionalServices.add(lblProffessionalServices);\n\t\t\n\t\t\n\t\n\t\t\n\t\t\n\t\tJPanel panel = new JPanel();\n\t\tpanel.setBackground(new Color(47, 79, 79));\n\t\tpanel.setBounds(219, 0, 791, 585);\n\t\tframe.getContentPane().add(panel);\n\t\tpanel.setLayout(null);\n\t\tframe.setBounds(100, 100, 1024, 622);\n\t\tframe.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\n\t\tpanel.add(panelAnimalInsertion);\n\t\tpanel.add(panelAvailableAnimals);\n\t\tpanel.add(panellHome);\n\t\tpanel.add(panelAdoptionHistory);\n\t\tpanel.add(panelAdoptionStatistics);\n\t\tpanel.add(panelProffesionalServices);\n\t\t\n\t\t\n\t\t\n\t\tHome_Panel home_Panel = new Home_Panel();\n\t\thome_Panel.setBounds(0, 0, 733, 494);\n\t\tpanel.add(home_Panel);\n\t\tmenuClicked(panellHome);\n\n\t\t\n\t}",
"public void initGameboardPanel(){\n Image image = Toolkit.getDefaultToolkit().createImage(getClass().getResource(\"/board/Masters of Renaissance_PlayerBoard (11_2020)-1.png\"));\n this.backgroundImage = image.getScaledInstance(gameboardWidth,gameboardHeight,0);\n\n this.setSize(gameboardWidth,gameboardHeight);\n this.setBounds(0,0,gameboardWidth,gameboardHeight);\n this.setLayout(null);\n //this.addMouseListener(this);\n this.setVisible(true);\n }",
"public void loadPanel () {\n System.out.println(\"warning: unimplemented loadPanel() in \" + this);\n }",
"@Override\r\n public void setup(Panel panel) {\n }",
"public FrameProduto() { \n this.getContentPane().setBackground(new Color(47, 64, 80));\n initComponents();\n this.setLocationRelativeTo(null);\n }",
"public UIOscilloscopeFrame()\n {\n //set layout\n this.getContentPane().setLayout(new BorderLayout());\n //set name\n this.setTitle(\"Oscilloscope Window\");\n\n // create panels\n\n // scope\n scopepanel = new JPanel();\n scopepanel.setLayout(new GridLayout(1,1,0,1));\n // scrollpane\n jsp = new JScrollPane(scopepanel);\n // buttons\n buttonpanel = new JPanel();\n resize = new JButton(\"Resize All\");\n clear = new JButton(\"Clear All\");\n pause = new JButton(\"Pause All\");\n pause.addActionListener(this);\n clear.addActionListener(this);\n resize.addActionListener(this);\n buttonpanel.add(pause);\n buttonpanel.add(clear);\n buttonpanel.add(resize);\n\n // add panels\n this.getContentPane().add(jsp,BorderLayout.CENTER);\n // set up window closed operation\n this.setDefaultCloseOperation(JFrame.HIDE_ON_CLOSE);\n this.setSize(new Dimension(800,80));\n }",
"private void setupFrame()\n\t\t{\n\t\t\tthis.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\n\t\t\tthis.setResizable(false);\n\t\t\tthis.setSize(800, 600);\n\t\t\tthis.setTitle(\"SEKA Client\");\n\t\t\tthis.setContentPane(panel);\n\t\t\tthis.setVisible(true);\n\t\t}",
"public JComponent getComponent() { return _panel; }",
"public MainExonCorPanel() {\n initComponents();\n errorsp.setVisible(false);\n jSplitPane1.setDividerLocation(0);\n }",
"private void setupFrame()\n\t{\n\t\tthis.setContentPane(botPanel);\n\t\tthis.setSize(800,700);\n\t\tthis.setTitle(\"- Chatbot v.2.1 -\");\n\t\tthis.setResizable(true);\n\t\tthis.setVisible(true);\n\t}",
"public void displayConfigurationPanel(){\n\t\tthis.panelConfiguration = new PanelConfiguration(this.mainFrame);\n\t\tthis.add(this.panelConfiguration,BorderLayout.CENTER);\n\t}",
"public JPanel getJPanel();",
"public JPanel getJPanel();",
"private void setUIComponents() {\n\t\tframe.setTitle(\"Departamento de ventas\");\n\t\tframe.setMinimumSize(new Dimension(700, 500));\n\n\t\t/*\n\t\t * Paneles externos. Solo hay que añadir en el bottomPanel\n\t\t */\n\t\tJPanel topPanel = new JPanel();\n\t\tframe.getContentPane().add(topPanel, BorderLayout.NORTH);\n\t\ttopPanel.setBackground(new Color(233, 196, 106));\n\t\ttopPanel.setBounds(100, 100, 100, 100);\n\n\t\tJPanel leftPanel = new JPanel();\n\t\tframe.getContentPane().add(leftPanel, BorderLayout.WEST);\n\t\tleftPanel.setBackground(new Color(233, 196, 106));\n\n\t\tJPanel rightPanel = new JPanel();\n\t\tframe.getContentPane().add(rightPanel, BorderLayout.EAST);\n\t\trightPanel.setBackground(new Color(233, 196, 106));\n\n\t\tJPanel bottomPanel = new JPanel();\n\t\tframe.getContentPane().add(bottomPanel, BorderLayout.SOUTH);\n\t\tbottomPanel.setBackground(new Color(233, 196, 106));\n\t\tbottomPanel.setLayout(new FlowLayout(FlowLayout.RIGHT, 5, 0));\n\t\t// Se añaden los componentes al bottomPanel\n\t\tbtnLogOut = new JButton(\"Cerrar Sesión\");\n\t\tbtnLogOut.setCursor(Cursor.getPredefinedCursor(Cursor.HAND_CURSOR));\n\t\tbtnLogOut.setBorder(null);\n\t\tbtnLogOut.setBackground(new Color(233, 196, 106));\n\t\tbtnLogOut.setFont(new Font(\"SansSerif\", Font.BOLD, 12));\n\t\tbottomPanel.add(btnLogOut);\n\n\t\tJLabel lblLogOut = new JLabel(\"X\");\n\t\tlblLogOut.setForeground(new Color(220, 20, 60));\n\t\tlblLogOut.setFont(new Font(\"SansSerif\", Font.BOLD, 13));\n\t\tbottomPanel.add(lblLogOut);\n\n\t\t/*\n\t\t * mainPanel. Dentro se crean otros paneles para añadir los distintos\n\t\t * componentes.\n\t\t */\n\t\tJPanel mainPanel = new JPanel();\n\t\tmainPanel.setBorder(new MatteBorder(2, 2, 1, 1, (Color) new Color(0, 0, 0)));\n\t\tframe.getContentPane().add(mainPanel);\n\t\tGridBagLayout gbl_mainPanel = new GridBagLayout();\n\t\tgbl_mainPanel.columnWidths = new int[] { 1061, 0 };\n\t\tgbl_mainPanel.rowHeights = new int[] { 137, 298, 328, 0 };\n\t\tgbl_mainPanel.columnWeights = new double[] { 0.0, Double.MIN_VALUE };\n\t\tgbl_mainPanel.rowWeights = new double[] { 0.0, 0.0, 0.0, Double.MIN_VALUE };\n\t\tmainPanel.setLayout(gbl_mainPanel);\n\n\t\t// Paneles que componen el mainPanel\n\n\t\tJPanel clientPanel = new JPanel();\n\t\tGridBagConstraints gbc_clientesPanel = new GridBagConstraints();\n\t\tgbc_clientesPanel.fill = GridBagConstraints.BOTH;\n\t\tgbc_clientesPanel.insets = new Insets(0, 0, 5, 0);\n\t\tgbc_clientesPanel.gridx = 0;\n\t\tgbc_clientesPanel.gridy = 0;\n\t\tmainPanel.add(clientPanel, gbc_clientesPanel);\n\t\tclientPanel.setLayout(new BorderLayout());\n\t\tclientPanel.setPreferredSize(new Dimension(10, 50));\n\n\t\t// Añadir Jlabel a clientesPanel\n\t\tJLabel lblClientData = new JLabel(\"Datos del cliente\");\n\t\tlblClientData.setHorizontalAlignment(SwingConstants.CENTER);\n\t\tlblClientData.setFont(new Font(\"SansSerif\", Font.BOLD, 25));\n\t\tclientPanel.add(lblClientData, BorderLayout.CENTER);\n\n\t\t// Panel para rellenar datos de cliente.\n\t\tJPanel clientDataPanel = new JPanel();\n\t\tGridBagConstraints gbc_datosClientePanel = new GridBagConstraints();\n\t\tgbc_datosClientePanel.fill = GridBagConstraints.BOTH;\n\t\tgbc_datosClientePanel.insets = new Insets(0, 0, 5, 0);\n\t\tgbc_datosClientePanel.gridx = 0;\n\t\tgbc_datosClientePanel.gridy = 1;\n\t\tmainPanel.add(clientDataPanel, gbc_datosClientePanel);\n\t\tclientDataPanel.setLayout(new GridLayout(1, 2));\n\n\t\tJPanel clientDataPanelLeft = new JPanel();\n\t\tclientDataPanel.add(clientDataPanelLeft);\n\t\tSpringLayout sl_datosClientePanelLeft = new SpringLayout();\n\t\tclientDataPanelLeft.setLayout(sl_datosClientePanelLeft);\n\n\t\t// Componentes panel derecho\n\t\t// Añadir Jlabel y JText para los distintos datos del ciente\n\t\tJLabel lblCod = new JLabel(\"Código de cliente:\");\n\t\tsl_datosClientePanelLeft.putConstraint(SpringLayout.NORTH, lblCod, 26, SpringLayout.NORTH, clientDataPanelLeft);\n\t\tsl_datosClientePanelLeft.putConstraint(SpringLayout.WEST, lblCod, 70, SpringLayout.WEST, clientDataPanelLeft);\n\t\tlblCod.setFont(new Font(\"SansSerif\", Font.PLAIN, 15));\n\t\tclientDataPanelLeft.add(lblCod);\n\n\t\ttxtCod = new JTextField();\n\t\ttxtCod.setEnabled(false);\n\t\tsl_datosClientePanelLeft.putConstraint(SpringLayout.NORTH, txtCod, -3, SpringLayout.NORTH, lblCod);\n\t\tsl_datosClientePanelLeft.putConstraint(SpringLayout.WEST, txtCod, 74, SpringLayout.EAST, lblCod);\n\t\ttxtCod.setFont(new Font(\"SansSerif\", Font.PLAIN, 15));\n\t\ttxtCod.setColumns(10);\n\t\tclientDataPanelLeft.add(txtCod);\n\n\t\t// Añadir Jlabel y JText para los distintos datos del ciente\n\t\tJLabel lblNombreCliente = new JLabel(\"Nombre:\");\n\t\tsl_datosClientePanelLeft.putConstraint(SpringLayout.NORTH, lblNombreCliente, 26, SpringLayout.SOUTH, lblCod);\n\t\tsl_datosClientePanelLeft.putConstraint(SpringLayout.WEST, lblNombreCliente, 0, SpringLayout.WEST, lblCod);\n\t\tlblNombreCliente.setFont(new Font(\"SansSerif\", Font.PLAIN, 15));\n\t\tclientDataPanelLeft.add(lblNombreCliente);\n\n\t\ttxtName = new JTextField();\n\t\tsl_datosClientePanelLeft.putConstraint(SpringLayout.NORTH, txtName, -3, SpringLayout.NORTH, lblNombreCliente);\n\t\tsl_datosClientePanelLeft.putConstraint(SpringLayout.WEST, txtName, 0, SpringLayout.WEST, txtCod);\n\t\ttxtName.setFont(new Font(\"SansSerif\", Font.PLAIN, 15));\n\t\ttxtName.setColumns(10);\n\t\tclientDataPanelLeft.add(txtName);\n\n\t\t// Añadir Jlabel y JText para los distintos datos del ciente\n\t\tJLabel lblSurnames = new JLabel(\"Apellidos:\");\n\t\tsl_datosClientePanelLeft.putConstraint(SpringLayout.NORTH, lblSurnames, 26, SpringLayout.SOUTH,\n\t\t\t\tlblNombreCliente);\n\t\tsl_datosClientePanelLeft.putConstraint(SpringLayout.WEST, lblSurnames, 0, SpringLayout.WEST, lblCod);\n\t\tlblSurnames.setFont(new Font(\"SansSerif\", Font.PLAIN, 15));\n\t\tclientDataPanelLeft.add(lblSurnames);\n\n\t\ttxtSurnames = new JTextField();\n\t\tsl_datosClientePanelLeft.putConstraint(SpringLayout.NORTH, txtSurnames, -3, SpringLayout.NORTH, lblSurnames);\n\t\tsl_datosClientePanelLeft.putConstraint(SpringLayout.WEST, txtSurnames, 0, SpringLayout.WEST, txtCod);\n\t\ttxtSurnames.setFont(new Font(\"SansSerif\", Font.PLAIN, 15));\n\t\ttxtSurnames.setColumns(10);\n\t\tclientDataPanelLeft.add(txtSurnames);\n\n\t\tJLabel lblDni = new JLabel(\"DNI:\");\n\t\tsl_datosClientePanelLeft.putConstraint(SpringLayout.NORTH, lblDni, 26, SpringLayout.SOUTH, lblSurnames);\n\t\tsl_datosClientePanelLeft.putConstraint(SpringLayout.WEST, lblDni, 0, SpringLayout.WEST, lblCod);\n\t\tlblDni.setFont(new Font(\"SansSerif\", Font.PLAIN, 15));\n\t\tclientDataPanelLeft.add(lblDni);\n\n\t\ttxtDni = new JTextField();\n\t\tsl_datosClientePanelLeft.putConstraint(SpringLayout.NORTH, txtDni, -3, SpringLayout.NORTH, lblDni);\n\t\tsl_datosClientePanelLeft.putConstraint(SpringLayout.WEST, txtDni, 0, SpringLayout.WEST, txtCod);\n\t\ttxtDni.setFont(new Font(\"SansSerif\", Font.PLAIN, 15));\n\t\ttxtDni.setColumns(10);\n\t\tclientDataPanelLeft.add(txtDni);\n\n\t\t// Añadir Jlabel y JText para los distintos datos del ciente\n\t\tJLabel lblTelephone = new JLabel(\"Teléfono:\");\n\t\tsl_datosClientePanelLeft.putConstraint(SpringLayout.NORTH, lblTelephone, 26, SpringLayout.SOUTH, lblDni);\n\t\tsl_datosClientePanelLeft.putConstraint(SpringLayout.WEST, lblTelephone, 0, SpringLayout.WEST, lblCod);\n\t\tlblTelephone.setFont(new Font(\"SansSerif\", Font.PLAIN, 15));\n\t\tclientDataPanelLeft.add(lblTelephone);\n\n\t\ttxtTelephone = new JTextField();\n\t\tsl_datosClientePanelLeft.putConstraint(SpringLayout.NORTH, txtTelephone, -3, SpringLayout.NORTH, lblTelephone);\n\t\tsl_datosClientePanelLeft.putConstraint(SpringLayout.WEST, txtTelephone, 0, SpringLayout.WEST, txtCod);\n\t\ttxtTelephone.setFont(new Font(\"SansSerif\", Font.PLAIN, 15));\n\t\ttxtTelephone.setColumns(10);\n\t\tclientDataPanelLeft.add(txtTelephone);\n\n\t\tJPanel clientDataPanelRight = new JPanel();\n\t\tclientDataPanel.add(clientDataPanelRight);\n\n\t\tJPanel bottonPanel = new JPanel();\n\t\tGridBagConstraints gbc_botonPanel = new GridBagConstraints();\n\t\tgbc_botonPanel.fill = GridBagConstraints.BOTH;\n\t\tgbc_botonPanel.gridx = 0;\n\t\tgbc_botonPanel.gridy = 2;\n\t\tmainPanel.add(bottonPanel, gbc_botonPanel);\n\t\tbottonPanel.setLayout(new FlowLayout(1, 250, 100));\n\n\t\t// Botones\n\t\tbackButton = new JButton(\"Volver al menú\");\n\t\tbackButton.setCursor(Cursor.getPredefinedCursor(Cursor.HAND_CURSOR));\n\t\tbackButton.setFont(new Font(\"SansSerif\", Font.BOLD, 15));\n\t\tbackButton.setBackground(new Color(244, 162, 97));\n\t\tbackButton.setForeground(Color.WHITE);\n\t\tbottonPanel.add(backButton);\n\n\t\tregisterButton = new JButton(\"Añadir cliente\");\n\t\tregisterButton.setCursor(Cursor.getPredefinedCursor(Cursor.HAND_CURSOR));\n\t\tregisterButton.setFont(new Font(\"SansSerif\", Font.BOLD, 15));\n\t\tregisterButton.setBackground(new Color(231, 111, 81));\n\t\tregisterButton.setForeground(Color.WHITE);\n\t\tbottonPanel.add(registerButton);\n\n\t}",
"public Panel() {\n initComponents();\n\n\n }",
"public void addChildFrame(JFrame frame);",
"private void setPanel(final Panel PANEL)\r\n\t{\r\n\t\tthis.panel = PANEL;\r\n\t}",
"public abstract void init(JPanel panel);",
"void goToWhiteboardSelect(){\n CollaboardGUI.this.setSize(500,500);\n CardLayout layout = (CardLayout) panels.getLayout();\n layout.show(panels, \"whiteboard\");\n }",
"private void initFrame() {\n setLayout(new BorderLayout());\n }"
] |
[
"0.680107",
"0.67713094",
"0.6763397",
"0.6742561",
"0.6690549",
"0.6656769",
"0.6644066",
"0.66431737",
"0.65787673",
"0.6573778",
"0.6558472",
"0.65509987",
"0.65454656",
"0.65341043",
"0.6528946",
"0.6516638",
"0.651477",
"0.650808",
"0.6505102",
"0.6502639",
"0.6485501",
"0.6485146",
"0.6470595",
"0.64608413",
"0.6458913",
"0.6442111",
"0.6440426",
"0.64287835",
"0.6427202",
"0.6423847",
"0.6418766",
"0.64141107",
"0.6401371",
"0.6401371",
"0.6401344",
"0.63894165",
"0.6366538",
"0.6365078",
"0.63624084",
"0.6362059",
"0.63493127",
"0.6346863",
"0.6345904",
"0.63410175",
"0.63386506",
"0.63275474",
"0.63275015",
"0.63257414",
"0.63205653",
"0.63154775",
"0.63153505",
"0.6307749",
"0.6297557",
"0.6292821",
"0.6290987",
"0.62891096",
"0.6282126",
"0.6281531",
"0.6278506",
"0.6263504",
"0.6261381",
"0.6261005",
"0.62510586",
"0.62494045",
"0.6249337",
"0.6243651",
"0.62396735",
"0.6236539",
"0.6233132",
"0.6228798",
"0.62272257",
"0.6212182",
"0.620128",
"0.619311",
"0.619187",
"0.61908996",
"0.6189201",
"0.61842984",
"0.6184194",
"0.6171807",
"0.617005",
"0.6169896",
"0.61649543",
"0.6160031",
"0.6158737",
"0.6154762",
"0.6154212",
"0.61535585",
"0.6152394",
"0.614716",
"0.614574",
"0.6145218",
"0.613428",
"0.613428",
"0.61302906",
"0.61290467",
"0.61250997",
"0.61185086",
"0.6117389",
"0.6115537",
"0.6113432"
] |
0.0
|
-1
|
Metodo cifrar: Este metodo corresponde al tipo de cifrado vigenere
|
public String cifrar(String palabra){
String cifrado= " ";
char auxiliar;
int i = 0;
for(i=0;i<palabra.length();i++){
auxiliar=palabra.charAt(i);
if(auxiliar ==' '){
}else{
auxiliar++;
if(auxiliar=='{'){
auxiliar='a';
}
}
cifrado=cifrado+""+auxiliar;
}
return cifrado;
}
|
{
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
}
|
[
"public void setTipoContingencia(String tipoContingencia) {\n this.tipoContingencia = tipoContingencia;\n }",
"Object getTipo();",
"public void ComprarEdificio(int tipo){\n if(edificios[tipo].tipoCompra.equals(\"oro\")){\n if(aldea.oro >= edificios[tipo].precioCompraMejora()){\n if(aldea.constructoresLibres() > 0){\n // Bloquear constructor\n aldea.bloquearConstructor();\n // Obtener tiempo actual\n Date tiempo = new Date();\n // Gastar oro de edificio\n aldea.gastarOro(edificios[tipo].precioCompraMejora());\n // Construir edificio y obtener evento futuro de culminacion\n // Agregar evento a la LEF\n LEF.add(aldea.construirEdificio(tiempo, edificios[tipo]));\n jTextFieldOro.setText(String.valueOf((int)aldea.oro));\n }\n }\n }else{\n if(aldea.elixir >= edificios[tipo].precioCompraMejora()){\n if(aldea.constructoresLibres() > 0){\n // Bloquear constructor\n aldea.bloquearConstructor();\n // Obtener tiempo actual\n Date tiempo = new Date();\n // Gastar elixir de edificio\n aldea.gastarElixir(edificios[tipo].precioCompraMejora());\n // Construir edificio y obtener evento futuro\n // Agregar evento a la LEF\n LEF.add(aldea.construirEdificio(tiempo, edificios[tipo]));\n jTextFieldElixir.setText(String.valueOf((int)aldea.elixir));\n }\n }\n }\n }",
"public interface Comestivel {\n\t\n\t/** Metodo Que retorna o nome do item do cardapio\n\t * @return Retorna o Nome do item\n\t */\n\tpublic String getNome();\n\t\n\t/** Metodo que retorna o valor do item do cardapio\n\t * @return Retorna o Preco a ser pago\n\t */\n\tpublic double getPreco();\n\t\n\t/** Metodo que retorna uma descricao do item do cardapio\n\t * @return Retorna a Descricao do item\n\t */\n\tpublic String getDescricao();\n}",
"public String tipoConta() {\n return \"Conta Comum\";\n }",
"public void cargarListaTipoComprobanteSRI()\r\n/* 675: */ {\r\n/* 676:746 */ this.listaTipoComprobanteSRI = this.servicioSRI.buscarPorTipoIdentificacion(this.facturaProveedorSRI.getTipoIdentificacion());\r\n/* 677: */ }",
"@Override\n\tpublic void coba() {\n\t\t\n\t}",
"@Override\n\tpublic boolean podeReceber(Fornecivel e) {\n\t\treturn (e instanceof Agua || e instanceof Cereal) ? true : false;\n\t}",
"@Override\r\n\tpublic void typeform() {\n\t\tSystem.out.println(\"Type Carre\");\r\n\t}",
"public void seleccionarTipoComprobante() {\r\n if (com_tipo_comprobante.getValue() != null) {\r\n tab_tabla1.setCondicion(\"fecha_trans_cnccc between '\" + cal_fecha_inicio.getFecha() + \"' and '\" + cal_fecha_fin.getFecha() + \"' and ide_cntcm=\" + com_tipo_comprobante.getValue());\r\n tab_tabla1.ejecutarSql();\r\n tab_tabla2.ejecutarValorForanea(tab_tabla1.getValorSeleccionado());\r\n } else {\r\n tab_tabla1.limpiar();\r\n tab_tabla2.limpiar();\r\n }\r\n tex_num_transaccion.setValue(null);\r\n calcularTotal();\r\n utilitario.addUpdate(\"gri_totales,tex_num_transaccion\");\r\n }",
"@Override\n\tpublic void tipoComunicacao() {\n\t\tSystem.out.println(super.getNome() + \" se comunica miando.\");\n\t}",
"Act getCDAType();",
"abstract ContentType getContnentType();",
"public int getTipoAtaque(){return tipoAtaque;}",
"public String getTipo();",
"public String getTipo();",
"public void crearVehiculo( clsVehiculo vehiculo ){\n if( vehiculo.obtenerTipoMedioTransporte().equals(\"Carro\") ){\n //Debo llamar el modelo de CARRO\n modeloCarro.crearCarro( (clsCarro) vehiculo );\n } else if (vehiculo.obtenerTipoMedioTransporte().equals(\"Camion\")){\n //Debo llamar el modelo de CAMIÓN\n }\n }",
"teledon.network.protobuffprotocol.TeledonProtobufs.CazCaritabil getCaz();",
"teledon.network.protobuffprotocol.TeledonProtobufs.CazCaritabil getCaz();",
"public IFatura vendaToFatura();",
"public void setTipoCasilla(int tipo) {\n\t\ttipoCasella = tipo;\n\t}",
"public String getTipo(){\r\n return tipo;\r\n }",
"public interface IVenda extends Serializable{\n /**\n * Metodo que devolve o codigo de produto da venda\n *\n * @return o codigo do produto \n */\n public IProduto getCodProd();\n \n /**\n * Metodo que devolve preco unitario de cada produto da venda\n *\n * @return o preco\n */\n public double getPreco();\n \n /**\n * Metodo que devolve a quantidade de produtos da venda\n *\n * @return o codigo do produto \n */\n public int getQuantidade();\n \n /**\n * Metodo que devolve o tipo da venda\n *\n * @return o tipo\n */\n public String getTipo();\n \n /**\n * Metodo que devolve o codigo de cliente da venda\n *\n * @return o codigo do cliente\n */\n public ICliente getCodCli();\n \n /**\n * Metodo que devolve o mes da venda\n *\n * @return o mes\n */\n public int getMes();\n \n /**\n * Metodo que devolve a filial da venda\n *\n * @return a filial\n */\n public int getFilial();\n \n /**\n * Metodo que altera o codigo de produto da venda\n *\n * @param codigo o codigo do produto \n */\n public void setCodProd(IProduto codigo);\n \n /**\n * Metodo que altera o preco da venda\n *\n * @param preco o preco\n */\n public void setPreco(Double preco);\n \n /**\n * Metodo que altera a quantidade da venda\n *\n * @param quantos a quantidade da venda\n */\n public void setQuantidade(int quantos);\n \n /**\n * Metodo que altera o tipo da venda\n *\n * @param tipo o tipo\n */\n public void setTipo(String tipo);\n \n /**\n * Metodo que altera o codigo de cliente da venda\n *\n * @param codigo o codigo do cliente \n */\n public void setCodCli(ICliente codigo);\n \n /**\n * Metodo que altera o mes da venda\n *\n * @param mes o mes da venda\n */\n public void setMes(int mes);\n \n /**\n * Metodo que altera a filial da venda\n *\n * @param filial a filial da venda\n */\n public void setFilial(int filial);\n \n /**\n * Metodo que converte uma venda numa string\n * \n * @return a venda convertida\n */\n public String toString();\n \n /**\n * Metodo que verifica se duas vendas sao iguais\n * \n * @param o o objeto\n * @return o resultado da comparacao\n */\n public boolean equals(Object o);\n \n /**\n * Metodo que duplica uma venda\n * \n * @return o clone\n */\n public IVenda clone ();\n \n /**\n * Metodo que calcula o hashcode de uma venda\n * \n * @return o hashcode\n */\n public int hashcode();\n \n /**\n * Metodo que verifica se uma dada venda e valida\n * \n * @param linha que vai ser convertida em IVenda\n * @param catCli clientes\n * @param catProd produtos\n * \n * @return IVenda caso seja valida, null caso contrario\n */\n public IVenda linhaToVenda(String linha, ICatCli catCli, ICatProd catProd);\n \n /**\n * Metodo que converte uma IVenda numa IFatura\n * \n * @param v IVenda a converter\n * \n * @return IFatura caso seja convertida, null caso contrario\n */\n public IFatura vendaToFatura();\n \n /**\n * Metodo que converte uma IVenda numa IFilialAux\n * \n * @param v IVenda a converter\n * \n * @return IFilialAux caso seja convertida, null caso contrario\n */\n public IFilialAux vendaToFilial();\n}",
"@Override\n\tpublic void manejoVida(int cantVida, int tipCambio) {\n\t\t\n\t}",
"public abstract void receberCarro(Carro carro);",
"public IFilialAux vendaToFilial();",
"private ContenidoVideo getContenido() {\n\t\tif (rdbtnPelicula.isSelected() == true) {\n\t\t\treturn ContenidoVideo.PELICULA;\n\t\t} else if (rdbtnSerie.isSelected() == true) {\n\t\t\treturn ContenidoVideo.SERIE;\n\t\t} else\n\t\t\treturn ContenidoVideo.CORTO;\n\t}",
"@Override\r\n\tpublic void solicitarTipoTransaccion() {\n\t\tSystem.out.println(\"Escoger tipo de transaccion\");\r\n\t\t\r\n\t}",
"@Override\n\tpublic void acomodaVista() {\n\n\t}",
"public String getTipo(){\n return tipo;\n }",
"public void fecharConta() {\n\t\tcliente.setConta(new Conta());\r\n\t\tRepositorioCliente repositorioCliente = new FabricaRepositorio().getRepCliente();\r\n\t\trepositorioCliente.editar((ClienteIndividual)cliente);\r\n//\t\tGerenciadorContaImpl contaImpl = new GerenciadorContaImpl();\r\n//\t\ttry {\r\n//\t\t\tcontaImpl.fecharConta(cliente);\r\n//\t\t} catch (OperacaoInvalidaException e) {\r\n//\t\t\te.printStackTrace();\r\n//\t\t}\r\n\t}",
"public void cargarEConcepto() {\n\tevidenciaConcepto = true;\n\tif (conceptoSeleccionado.getOrigen().equals(\n\t OrigenInformacionEnum.CONVENIOS.getValor())) {\n\t idEvidencia = convenioVigenteDTO.getId();\n\t nombreFichero = iesDTO.getCodigo() + \"_\"\n\t\t + convenioVigenteDTO.getId();\n\t}\n\n\ttry {\n\t listaEvidenciaConcepto = institutosServicio\n\t\t .obtenerEvidenciasDeIesPorIdConceptoEIdTabla(\n\t\t iesDTO.getId(), conceptoSeleccionado.getId(),\n\t\t idEvidencia, conceptoSeleccionado.getOrigen());\n\n\t} catch (ServicioException e) {\n\t LOG.log(Level.SEVERE, e.getMessage(), e);\n\t}\n }",
"public String agregarDetalleIVAFacturaSRI()\r\n/* 418: */ {\r\n/* 419:421 */ this.servicioFacturaProveedorSRI.cargarDetalleIVARetencion(this.facturaProveedorSRI, null);\r\n/* 420: */ \r\n/* 421:423 */ return \"\";\r\n/* 422: */ }",
"@Override\n\tpublic Fornecedor carregar(Integer codigo) {\n\t\treturn null;\n\t}",
"public TypeOffreDTO getVieVia(){\n\t\tvieVia = null;\n\t\tList<TypeOffreDTO> l = getNomenclatureDomainService().getTypesOffre();\n\t\tfor(TypeOffreDTO t : l){\n\t\t\tif(t.getCodeCtrl().equalsIgnoreCase(DonneesStatic.TYPE_OFFRE_CODE_CTRL_VIEVIA)){\n\t\t\t\tvieVia=t;\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\t\treturn vieVia;\n\t}",
"public void enviarValoresCabecera(){\n }",
"public void setTipo(String tipo) {\r\n this.tipo = tipo;\r\n }",
"@Override\n protected void eventoUscitaCampo(Campo campo) {\n\n try { // prova ad eseguire il codice\n\n if (campo.getNomeInterno().equals(nomeConto)) {\n this.setCodConto((Integer)campo.getValore());\n this.regolaCamera();\n }// fine del blocco if\n\n\n } catch (Exception unErrore) { // intercetta l'errore\n Errore.crea(unErrore);\n }// fine del blocco try-catch\n }",
"public static String saberTipo(Expediente c1) {\n\n\t\tif (c1 instanceof Multa_Trafico) {\n\t\t\treturn \"Eres multa de tráfico\";\n\t\t}\n\t\tif (c1 instanceof Multa_Covid) {\n\t\t\treturn \"Eres multa de Covid\";\n\t\t}\n\t\tif (c1 instanceof Multa) {\n\t\t\treturn \"Eres multa\";\n\t\t}\n\t\tif (c1 instanceof Expediente) {\n\t\t\treturn \"Eres Expediente\";\n\t\t}\n\n\t\treturn \"No lo sé\";\n\t}",
"public void pedirValoresCabecera(){\n \r\n \r\n \r\n \r\n }",
"private void esqueceu() {\n\n //Declaração de Objetos\n Veterinario veterinario = new Veterinario();\n\n //Declaração de Variaveis\n int crmv;\n String senha;\n\n //Atribuição de Valores\n try {\n crmv = Integer.parseInt(TextCrmv.getText());\n senha = TextSenha.getText();\n \n //Atualizando no Banco\n veterinario.Vdao.atualizarAnimalSenhaPeloCrmv(senha, crmv);\n \n } catch (NumberFormatException ex) {\n JOptionPane.showMessageDialog(null, \"APENAS NUMEROS NO CRMV!\");\n }\n JOptionPane.showMessageDialog(null, \"SUCESSO AO ALTERAR SENHA!\");\n\n }",
"@Override\r\n\tpublic String typeV() {\n\t\treturn hio.TyreType();\r\n\t}",
"public SrvINFONEGOCIO(AgregarInfoNegocio view) {//C.P.M Tendremos un constructor con la vista de agregar informacion de negocio\r\n this.vista = view;//C.P.M Se la agregamos a la variable para tener acceso a la vista \r\n }",
"private Acao.Tipo getTipo(String tipo) {\n if (tipo.contentEquals(DISPARO.getName())) {\n return DISPARO;\n }\n\n if (tipo.contentEquals(DESCONEXAO.getName())) {\n return DESCONEXAO;\n }\n\n return null;\n }",
"@Override\n\tpublic void pegaInstanciaDialogo(AposentadoriaCompulsoria obj) {\n\t\t\n\t}",
"public String darTipoVehiculo() {\n\t\treturn tipoVehiculo;\n\t}",
"protected int getType() {\n return MenuBrawable.CONVEX;\n }",
"public void verSeleccionarResultadosConvocatoria(String tiporesultado)\r\n\t{\r\n\t\tseleccionarresultadosconvo = new SeleccionarResultadosConvocatoria(this, tiporesultado);\r\n\t\tseleccionarresultadosconvo.setVisible(true);\r\n\t}",
"public int getTipoDocumento();",
"public interface MovimientoConFlete extends MovimientoCosteable{\t\r\n\t\r\n\tpublic String getRemision() ;\r\n\t\r\n\tpublic Producto getProducto();\r\n\t\r\n\tpublic Sucursal getSucursal();\r\n\t\r\n\tpublic Long getDocumento();\r\n\t\r\n\tpublic Date getFecha();\r\n\t\r\n\tpublic double getKilosCalculados();\r\n\t\r\n\tpublic double getCantidad();\r\n\t\r\n\tpublic double getFactor();\r\n\t\r\n\tpublic String getTipoDocto();\r\n\t\r\n\tpublic BigDecimal getCostoFlete();\t\r\n\r\n\tpublic void setCostoFlete(BigDecimal costoFlete);\r\n\t\r\n\tpublic BigDecimal getImporteDelFlete();\r\n\r\n\tpublic AnalisisDeFlete getAnalisisFlete();\r\n\r\n\tpublic void setAnalisisFlete(AnalisisDeFlete analisisFlete);\r\n\t\r\n\tpublic void actualizarCosto();\r\n\r\n}",
"@Override\n\tpublic void tipoMovimento() {\n\t\tSystem.out.println(super.getNome() + \" anda com 4 patas.\");\n\t}",
"public void setTipo(int tipo) {\r\n this.tipo = tipo;\r\n }",
"public void setTipoInmueble(Valor tipoInmueble) {\n this.tipoInmueble = tipoInmueble;\n }",
"public int getTipo() {\r\n return tipo;\r\n }",
"private EnumEstadoLeyMercado(String codigoValor, Integer codigoTipo) {\n\t\tthis.codigoValor = codigoValor;\n\t\tthis.codigoTipo = codigoTipo;\n\t}",
"public abstract java.lang.String getCod_tecnico();",
"@Override\n public void curar(Curandero curandero, Pieza receptor) {\n }",
"public void setTipoEco(String tipoEco) {\n this.tipoEco = tipoEco;\n }",
"public void ingresaVehiculo (){\r\n \r\n Vehicle skate = new Skateboard(\"vanz\", \"2009\", \"1 metro\");\r\n Vehicle carro = new Car(\"renault\", \"2009\", \"disel\",\"corriente\" );\r\n Vehicle jet = new Jet(\"jet\", \"2019\", \"premiun\", \"ocho motores\");\r\n Vehicle cicla = new Bicycle(\"shimano\", \"2010\",\"4 tiempos\" ) ; \r\n Vehuculo.add(skate);\r\n Vehuculo.add(carro);\r\n Vehuculo.add(jet);\r\n Vehuculo.add(cicla); \r\n \r\n /*\r\n for en el cual se hace el parceo y se instancia la clase Skateboard\r\n \r\n */\r\n for (Vehicle Vehuculo1 : Vehuculo) {\r\n if(Vehuculo1 instanceof Skateboard){\r\n Skateboard skatevehiculo = (Skateboard)Vehuculo1;\r\n skatevehiculo.imprimirPadre();\r\n skatevehiculo.imprimirSkate();\r\n skatevehiculo.imprimirInterfaz();\r\n }\r\n /*\r\n se intancia y se hace el parceo de la clase car\r\n \r\n */\r\n else if(Vehuculo1 instanceof Car){\r\n \r\n Car carvhiculo = (Car)Vehuculo1;\r\n carvhiculo.imprimirPadre();\r\n carvhiculo.imprimirCarro();\r\n carvhiculo.imprimirVehiculopotenciado();\r\n \r\n \r\n \r\n }\r\n /*se intancia y se hace el parceo de la clase\r\n \r\n */\r\n else if(Vehuculo1 instanceof Jet){\r\n \r\n Jet jethiculo = (Jet)Vehuculo1;\r\n jethiculo.imprimirPadre();\r\n jethiculo.imprimirJet();\r\n jethiculo.imprimirVehiculopotenciado();\r\n jethiculo.imprimirInterfaz();\r\n }\r\n else if(Vehuculo1 instanceof Bicycle){\r\n \r\n Bicycle ciclavehiculo = (Bicycle)Vehuculo1;\r\n ciclavehiculo.imprimirPadre();\r\n ciclavehiculo.imprimirBici();\r\n }\r\n }\r\n \r\n \r\n }",
"@Override\n public TipoBase check(TipoBase tipo) throws Exception {\n Clase c = analizadorsintactico.AnalizadorSintactico.getTs().getClase(tipo.getNombre());\n String nombreVar = id.getLexema();\n VarInstancia v;\n\n if (tipo.getNombre().equals(\"int\") || tipo.getNombre().equals(\"boolean\") || tipo.getNombre().equals(\"char\") || tipo.getNombre().equals(\"String\")) {\n throw new Exception(\"La variable \" + id.getLexema() + \" en la linea \" + id.getLineNumber() + \" no puede llamar metodos ya que es de tipo primitivo\");\n }\n if (c == null) {\n throw new Exception(\"Se trata de acceder a un metodo void en la linea \" + id.getLineNumber());\n }\n\n if (cadena == null) {\n\n if (c.getVariables().containsKey(nombreVar)) {\n v = c.getVariables().get(nombreVar);\n if (v.getVisibilidad().equals(\"private\")) {\n throw new Exception(\"No se puede acceder a la variable \" + v.getNombre() + \" de la linea \" + v.getLinea() + \" debido a que su visibilidad es privada\");\n }\n if (this.ladoIzq) {\n GenCode.gen().write(\"SWAP\");\n GenCode.gen().write(\"STOREREF \" + v.getOffset() + \" # Guardo el valor en la variable \" + v.getNombre());\n\n } else {\n GenCode.gen().write(\"LOADREF \" + v.getOffset() + \" # Cargo variable de instancia \" + v.getNombre() + \" de la clase \" + c.getNombre());\n\n }\n\n } else {\n throw new Exception(\"No se encontro la variable \" + nombreVar + \" de la linea \" + id.getLineNumber() + \" en la clase \" + c.getNombre());\n }\n\n return v.getTipoVar();\n } else { //con encadenado\n if (c.getVariables().containsKey(nombreVar)) {\n v = c.getVariables().get(nombreVar);\n if (v.getVisibilidad().equals(\"private\")) {\n throw new Exception(\"No se puede acceder a la variable \" + v.getNombre() + \" de la linea \" + v.getLinea() + \" debido a que su visibilidad es privada\");\n }\n\n GenCode.gen().write(\"LOADREF \" + v.getOffset() + \" # Cargo variable de instancia \" + v.getNombre() + \" de la clase \" + c.getNombre());\n\n Tipo aux = v.getTipoVar();\n\n return cadena.check(aux);\n } else {\n throw new Exception(\"No se encontro la variable \" + nombreVar + \" de la linea \" + id.getLineNumber() + \" en la clase \" + c.getNombre());\n }\n }\n }",
"public int getType() throws PDFNetException {\n/* 466 */ return GetType(this.a);\n/* */ }",
"public Veterinario pesquisarPorCpf(Veterinario veterinario) throws ClassNotFoundException, SQLException{\n List<Veterinario> resp = new VeterinarioDAO().listar(\"cpf = '\"+ veterinario.getCpf() +\"' and ativo = true\");\n for (Veterinario vet : resp){\n return vet;\n }\n return null;\n }",
"public ControladorCombate(int tipo_simulacion,\r\n Entrenador entrenador1, Entrenador entrenador2, ControladorPrincipal cp){\r\n this.esLider = false;\r\n this.controlador_principal = cp;\r\n this.tipo_simulacion = tipo_simulacion;\r\n this.combate = new Combate();\r\n this.equipo1 = entrenador1.getPokemones();\r\n this.equipo2 = entrenador2.getPokemones();\r\n this.entrenador1 = entrenador1;\r\n this.entrenador2 = entrenador2;\r\n this.vc = new VistaCombate();\r\n this.va = new VistaAtaque();\r\n this.ve = new VistaEquipo();\r\n this.creg = new ControladorRegistros();\r\n String[] nombres1 = new String[6];\r\n String[] nombres2 = new String[6];\r\n for (int i = 0; i < 6; i++) {\r\n nombres1[i]=equipo1[i].getPseudonimo();\r\n nombres2[i]=equipo2[i].getPseudonimo(); \r\n }\r\n this.vpc = new VistaPreviaCombate(tipo_simulacion, entrenador1.getNombre(), entrenador2.getNombre());\r\n this.vpc.agregarListener(this);\r\n this.vpc.setjC_Equipo1(nombres1);\r\n this.vpc.setjC_Equipo2(nombres2);\r\n this.vpc.setVisible(true);\r\n this.termino = false;\r\n resetearEntrenadores();\r\n }",
"@Override\n public int getType() {\n return 0x1c;\n }",
"public int getTipo() {\n return tipo;\n }",
"@Override\n public VheicleType getType() {\n return sedanType;\n }",
"public TipoVehiculo getTipoVehiculo() {\r\n\t\treturn TipoVehiculo.valueOf(cb_TipoVehiculo.getSelectedItem().toString());\r\n\t}",
"public String getTipo(){\r\n return Tipo;\r\n }",
"public void tipoDatos() {\n\t\tint num = 10;\n\t\t// Texto STring\n\t\tString cadena = \"cadena\";\n\n\t\t// Decimale O flotante\n\t\tdouble decimal = 12.16;\n\t\tfloat fl = new Float(10);\n\t\t// Bolean\n\t\tboolean bl = true;\n\n\t\t// ARREGLOS\n\t\t// string\n\t\tString[] veString = new String[5];\n\t\tveString[0] = \"hola mundo\";\n\t\tveString[1] = \"hola mundo\";\n\t\tveString[2] = \"hola mundo\";\n\t\tveString[3] = \"hola mundo\";\n\t\tveString[4] = \"hola mundo\";\n\n\t\tint[] varNum = new int[] { 0, 1, 2, 3, 4, 5 };\n\n\t}",
"public void setTipo(Object tipo2) {\n\t\t\n\t}",
"public void setTipo(String x){\r\n tipo = x;\r\n }",
"public void setTipo(String tipo);",
"public void setVigencia(String vigencia) { this.vigencia = vigencia; }",
"public String getViptype() {\n return viptype;\n }",
"public String getType(int i) {\n/* 138 */ return \"CDATA\";\n/* */ }",
"public void cargarInformacion()\r\n/* 159: */ {\r\n/* 160:168 */ if (this.indicadorFactura != null)\r\n/* 161: */ {\r\n/* 162:170 */ if (getTipoAnexoSRI().equals(TipoAnexoSRI.ATS.getNombreAbreviado()))\r\n/* 163: */ {\r\n/* 164:171 */ setMostrarBaseImponible(true);\r\n/* 165:172 */ setMostrarBasesDetalle(false);\r\n/* 166: */ }\r\n/* 167: */ else\r\n/* 168: */ {\r\n/* 169:174 */ setMostrarBaseImponible(false);\r\n/* 170:175 */ setMostrarBasesDetalle(true);\r\n/* 171: */ }\r\n/* 172: */ try\r\n/* 173: */ {\r\n/* 174:179 */ this.mensaje = null;\r\n/* 175: */ \r\n/* 176: */ \r\n/* 177:182 */ ExternalContext context = FacesContext.getCurrentInstance().getExternalContext();\r\n/* 178:183 */ HttpSession session = (HttpSession)context.getSession(true);\r\n/* 179:184 */ CompraCajaChica compraCajaChica = (CompraCajaChica)session.getAttribute(\"compraCajaChica\");\r\n/* 180:185 */ FacturaProveedor facturaProveedor = (FacturaProveedor)session.getAttribute(\"facturaProveedor\");\r\n/* 181:186 */ Empresa empresa = null;\r\n/* 182:187 */ if (!this.indicadorFactura.booleanValue())\r\n/* 183: */ {\r\n/* 184:188 */ this.corrigeDatosRetencion = compraCajaChica.getFacturaProveedorSRI().isTraCorregirDatos();\r\n/* 185:189 */ CompraCajaChica ccc = this.servicioCompraCajaChica.cargarDetalle(compraCajaChica.getIdCompraCajaChica());\r\n/* 186:190 */ empresa = ccc.getEmpresa();\r\n/* 187:191 */ this.facturaProveedorSRI = ccc.getFacturaProveedorSRI();\r\n/* 188: */ }\r\n/* 189: */ else\r\n/* 190: */ {\r\n/* 191:193 */ this.corrigeDatosRetencion = facturaProveedor.getFacturaProveedorSRI().isTraCorregirDatos();\r\n/* 192:194 */ FacturaProveedor facProveedor = this.servicioFacturaProveedor.cargarDetalle(Integer.valueOf(facturaProveedor.getId()));\r\n/* 193:195 */ empresa = facProveedor.getEmpresa();\r\n/* 194:196 */ this.facturaProveedorSRI = facProveedor.getFacturaProveedorSRI();\r\n/* 195: */ }\r\n/* 196:200 */ if (empresa != null)\r\n/* 197: */ {\r\n/* 198:201 */ empresa = this.servicioEmpresa.cargarDetalle(empresa);\r\n/* 199:202 */ if (this.facturaProveedorSRI != null)\r\n/* 200: */ {\r\n/* 201:204 */ String email = \"\";\r\n/* 202:205 */ boolean tieneEmail = false;\r\n/* 203:206 */ if ((empresa.getListaContacto() != null) && (!empresa.getListaContacto().isEmpty()))\r\n/* 204: */ {\r\n/* 205:207 */ for (Contacto contacto : empresa.getListaContacto()) {\r\n/* 206:208 */ if ((contacto.getTipoContacto() != null) && (contacto.getTipoContacto().isIndicadorNotificarRetencion()))\r\n/* 207: */ {\r\n/* 208:209 */ if ((contacto.getEmail1() != null) && (!contacto.getEmail1().equals(\"\"))) {\r\n/* 209:210 */ email = email + contacto.getEmail1() + \";\";\r\n/* 210: */ }\r\n/* 211:212 */ if ((contacto.getEmail2() != null) && (!contacto.getEmail2().equals(\"\"))) {\r\n/* 212:213 */ email = email + contacto.getEmail2() + \";\";\r\n/* 213: */ }\r\n/* 214: */ }\r\n/* 215: */ }\r\n/* 216:217 */ if (!email.equals(\"\"))\r\n/* 217: */ {\r\n/* 218:218 */ email = email.substring(0, email.trim().length() - 1).trim();\r\n/* 219:219 */ tieneEmail = true;\r\n/* 220: */ }\r\n/* 221: */ }\r\n/* 222:223 */ if (!tieneEmail)\r\n/* 223: */ {\r\n/* 224:224 */ if ((empresa.getEmail1() != null) && (!empresa.getEmail1().equals(\"\"))) {\r\n/* 225:225 */ email = email + empresa.getEmail1();\r\n/* 226: */ }\r\n/* 227:227 */ if ((empresa.getEmail2() != null) && (!empresa.getEmail2().equals(\"\")))\r\n/* 228: */ {\r\n/* 229:228 */ if (!email.equals(\"\")) {\r\n/* 230:229 */ email = email + \";\";\r\n/* 231: */ }\r\n/* 232:231 */ email = email + empresa.getEmail2();\r\n/* 233: */ }\r\n/* 234: */ }\r\n/* 235:235 */ this.facturaProveedorSRI = this.servicioFacturaProveedorSRI.cargarDetalle(this.facturaProveedorSRI.getIdFacturaProveedorSRI());\r\n/* 236:236 */ this.facturaProveedorSRI.setEmail(email);\r\n/* 237:237 */ this.servicioFacturaProveedorSRI.cargarConceptosRetencion(this.facturaProveedorSRI, empresa);\r\n/* 238:238 */ this.facturaProveedorSRI.setTraCorregirDatos(this.corrigeDatosRetencion);\r\n/* 239:239 */ if ((this.facturaProveedorSRI.getDocumento() == null) && (getListaDocumento().size() > 0)) {\r\n/* 240:240 */ this.facturaProveedorSRI.setDocumento((Documento)this.listaDocumento.get(0));\r\n/* 241: */ }\r\n/* 242:242 */ cargarSecuencia(this.facturaProveedorSRI, AppUtil.getPuntoDeVenta());\r\n/* 243: */ }\r\n/* 244: */ }\r\n/* 245:246 */ if (this.facturaProveedorSRI != null)\r\n/* 246: */ {\r\n/* 247:247 */ this.facturaProveedorSRI.setTraCorregirDatos(this.corrigeDatosRetencion);\r\n/* 248:248 */ if ((!this.corrigeDatosRetencion) && (FuncionesUtiles.getAnio(this.facturaProveedorSRI.getFechaRegistro()) != 9999)) {\r\n/* 249:249 */ this.facturaProveedorSRI.setFechaEmisionRetencion(this.facturaProveedorSRI.getFechaRegistro());\r\n/* 250: */ }\r\n/* 251: */ }\r\n/* 252:252 */ if ((this.facturaProveedorSRI.isIndicadorRetencionEmitida()) && (!this.facturaProveedorSRI.isTraCorregirDatos())) {\r\n/* 253:253 */ this.mensaje = getLanguageController().getMensaje(\"msg_accion_implica_anulacion_previa\");\r\n/* 254: */ }\r\n/* 255: */ }\r\n/* 256: */ catch (ExcepcionAS2 e)\r\n/* 257: */ {\r\n/* 258:256 */ addErrorMessage(getLanguageController().getMensaje(e.getCodigoExcepcion()) + e.getMessage());\r\n/* 259:257 */ LOG.info(\"ERROR ExcepcionAS2 AL CARGAR DATOS EN FACTURAPROVEEDORSRIBEAN\", e);\r\n/* 260: */ }\r\n/* 261: */ catch (Exception e)\r\n/* 262: */ {\r\n/* 263:260 */ LOG.error(\"ERROR Exception AL CARGAR DATOS EN FACTURAPROVEEDORSRIBEAN \", e);\r\n/* 264:261 */ addErrorMessage(getLanguageController().getMensaje(\"msg_error_cargar_datos\"));\r\n/* 265: */ }\r\n/* 266: */ finally\r\n/* 267: */ {\r\n/* 268:264 */ cargarListaTipoComprobanteSRI();\r\n/* 269: */ \r\n/* 270:266 */ cargarListaCreditoTributarioSRI();\r\n/* 271: */ }\r\n/* 272:268 */ this.indicadorFactura = null;\r\n/* 273: */ }\r\n/* 274: */ }",
"public TipoDiscapacidad getTipoDiscapacidad()\r\n/* 224: */ {\r\n/* 225:410 */ return this.tipoDiscapacidad;\r\n/* 226: */ }",
"public DialogoAggiungiFissiConto(int codConto) {\n /* rimanda al costruttore della superclasse */\n super();\n\n try { // prova ad eseguire il codice\n\n /* regola le variabili di istanza coi parametri */\n this.setCodConto(codConto);\n\n /* regolazioni iniziali di riferimenti e variabili */\n this.inizia();\n } catch (Exception unErrore) { // intercetta l'errore\n Errore.crea(unErrore);\n }// fine del blocco try-catch\n }",
"@Override\r\n public String toString() {\r\n return tipo;\r\n }",
"public void setTipoCodifica(Class<? extends Codifica> tipoCodificaClass) {\n\t\tsetTipoCodifica(new TipoCodifica(tipoCodificaClass));\n\t}",
"public interface trans_ArqOperations \r\n{\r\n byte[] envia_Arq (String fName);\r\n void set_clienteSA (String parth, int id);\r\n}",
"TypeAssociation getAssocieCommeSujetInstanceObjet();",
"public interface CasaItf {\n\n /**\n * Pega a posição que está no eixo X (abcissa)\n *\n * @return posição atual no eixo X\n */\n int getPosicaoX();\n\n /**\n * Pega a posição que está no eixo Y (ordenada)\n *\n * @return posição atual no eixo Y\n */\n int getPosicaoY();\n\n\n /**\n * Modifica a cor da casa\n *\n * @param cor Nova cor da casa\n */\n void setCor(Color cor);\n\n /**\n * Pega a cor da casa\n *\n * @return Cor da casa\n */\n Color getCor();\n\n /**\n * Insere uma peça na casa\n *\n * @param peca Peça que irá ocupar a casa\n */\n void setPeca(Peca peca);\n\n /**\n * Remove a peça da casa\n */\n void removePeca();\n\n /**\n * Pega a peça que está ocupando a casa\n *\n * @return Peça que está na casa\n */\n Peca getPeca();\n\n /**\n * Verifica se a casa tem alguma peça\n *\n * @return <code>true</code> se tiver alguma peça e <code>false</code> caso contrario\n */\n boolean temPeca();\n\n /**\n * Verifica se a casa tem alguma peça de uma determinada cor\n *\n * @return <code>true</code> se tiver alguma peça da cor desejada e <code>false</code> caso contrario\n */\n boolean temPeca(Color cor);\n\n /**\n * Verifica se a casa é igual.\n *\n * @param casa Casa a ser comparada\n * @return <code>true</code> se as casas forem iguais e <code>false</code> caso contrario\n */\n boolean verificaCasaIgual(CasaItf casa);\n\n /**\n * Verifica se a casa faz parte do passante.\n *\n * @return <code>true</code> se fizer parte do movimento passante e <code>false</code> caso contrario\n */\n boolean getMovimentoPassante();\n\n /**\n * Seta essa casa como passante.\n *\n * @param passante <code>true</code> se for passante e <code>false</code> caso contrario\n */\n void setMovimentoPassante(boolean passante);\n\n}",
"public void Tarifa(String tipoTarifa){\n Tarifa = tipoTarifa;\n Regular = \"R\";\n Comercial = \"C\";\n\n }",
"private String getType(){\r\n return type;\r\n }",
"private void setTipo(int tipo) {\r\n\t\tthis.tipo = tipo;\r\n\t}",
"public abstract Class getEntidadPrincipal();",
"public static ElementoDettaglioVariazioneCodificaCapitolo getInstance(DettaglioVariazioneCodificaCapitolo dati) {\n\t\tElementoDettaglioVariazioneCodificaCapitolo result = new ElementoDettaglioVariazioneCodificaCapitolo();\n\t\t//campi opzionali\n\t\tCapitolo<?,?> capitoloPrecedente = dati.getCapitoloPrecedente();\n\t\tCapitolo<?,?> capitoloVariazione = dati.getCapitolo();\n\t\t\n\t\tresult.setDescrizioneCapitoloPreVariazione(ottieniStringaDescrizione(capitoloPrecedente.getDescrizione(), capitoloVariazione.getDescrizione()));\n\t\tresult.setDescrizioneArticoloPreVariazione(ottieniStringaDescrizione(capitoloPrecedente.getDescrizioneArticolo(), capitoloVariazione.getDescrizioneArticolo()));\n\t\t\n\t\tList<ClassificatoreGerarchico> classificatoriModificatiDallaVariazione = dati.getClassificatoriGerarchici();\n\t\tList<ClassificatoreGerarchico> classificatoriPrecedenti = dati.getClassificatoriGerarchiciPrecedenti();\n\t\tresult.setStrutturaAmministrativaContabileCapitoloPreVariazione(ottieniStringaSACFromListaClassificatori(classificatoriPrecedenti, classificatoriModificatiDallaVariazione));\n\t\n\t\tVariazioneCodificaCapitolo variazione = dati.getVariazioneCodificaCapitolo();\n\t\tresult.setNumeroVariazione(variazione.getNumero());\n\t\t\n\t\tif(variazione.getAttoAmministrativo()==null){\n\t\t\tresult.setProvvedimentoVariazione(\"\");\n\t\t}else{\n\t\t\tresult.setProvvedimentoVariazione(\"\" + variazione.getAttoAmministrativo().getAnno() + \" / \" +variazione.getAttoAmministrativo().getNumero());\n\t\t}\n\t\tresult.setDataVariazione(FormatUtils.formatDate(variazione.getData()));\n\t\n\t\treturn result;\n\t\n\t}",
"private void RealizarProtocoloDeCompraDeCasasEHoteis(int idLugar) throws Exception {\n Lugar lugar = this.tabuleiro.getLugarById(idLugar);\n\n int nivelDoTerreno = lugar.getNivel();\n if (nivelDoTerreno == 0) {\n int valorCasa = this.banco.comprarCasa(idLugar);\n lugar.setPrecoAluguel(this.tabuleiro.getPrecoAluguelUmaCasa(idLugar));\n lugar.addNumeroDeCasas();\n lugar.aumentarNivel();\n this.listaJogadores.get(jogadorAtual()).addQuantidadeDeCasas();\n this.listaJogadores.get(jogadorAtual()).retirarDinheiro(valorCasa);\n } else if (nivelDoTerreno == 1) {\n int valorCasa = this.banco.comprarCasa(idLugar);\n lugar.setPrecoAluguel(this.tabuleiro.getPrecoAluguelDuasCasas(idLugar));\n lugar.addNumeroDeCasas();\n lugar.aumentarNivel();\n this.listaJogadores.get(jogadorAtual()).addQuantidadeDeCasas();\n this.listaJogadores.get(jogadorAtual()).retirarDinheiro(valorCasa);\n } else if (nivelDoTerreno == 2) {\n int valorCasa = this.banco.comprarCasa(idLugar);\n lugar.setPrecoAluguel(this.tabuleiro.getPrecoAluguelTresCasas(idLugar));\n lugar.addNumeroDeCasas();\n lugar.aumentarNivel();\n this.listaJogadores.get(jogadorAtual()).addQuantidadeDeCasas();\n this.listaJogadores.get(jogadorAtual()).retirarDinheiro(valorCasa);\n } else if (nivelDoTerreno == 3) {\n int valorCasa = this.banco.comprarCasa(idLugar);\n lugar.setPrecoAluguel(this.tabuleiro.getPrecoAluguelQuatroCasas(idLugar));\n lugar.addNumeroDeCasas();\n lugar.aumentarNivel();\n this.listaJogadores.get(jogadorAtual()).addQuantidadeDeCasas();\n this.listaJogadores.get(jogadorAtual()).retirarDinheiro(valorCasa);\n } else if (nivelDoTerreno == 4) {\n int valorHotel = this.banco.comprarHotel(idLugar);\n lugar.setPrecoAluguel(this.tabuleiro.getPrecoAluguelHotel(idLugar));\n lugar.aumentarNivel();\n lugar.addNumeroDeHoteis();\n lugar.diminuirNumeroDeCasas();\n lugar.diminuirNumeroDeCasas();\n lugar.diminuirNumeroDeCasas();\n lugar.diminuirNumeroDeCasas();\n this.banco.BancoReceber4Casas();\n this.listaJogadores.get(jogadorAtual()).addQuantidadeDeHoteis();\n this.listaJogadores.get(jogadorAtual()).diminuirQuantidadeDeCasas();\n this.listaJogadores.get(jogadorAtual()).diminuirQuantidadeDeCasas();\n this.listaJogadores.get(jogadorAtual()).diminuirQuantidadeDeCasas();\n this.listaJogadores.get(jogadorAtual()).diminuirQuantidadeDeCasas();\n this.listaJogadores.get(jogadorAtual()).retirarDinheiro(valorHotel);\n } else if (nivelDoTerreno == 5) {\n throw new Exception(\"No further buildings on this property\");\n }\n\n if ((this.listaJogadores.get(jogadorAtual()).getQuantidadeDeCasas() > 0 ||\n this.listaJogadores.get(jogadorAtual()).getQuantidadeDeHoteis() > 0) &&\n this.sell == true) {\n this.listaJogadores.get(jogadorAtual()).adicionarComandoSell();\n }\n\n\n }",
"public void verVerResultado(String tiporesultado, String convoseleccionada)\r\n\t{\r\n\t\tverresultado = new VerResultado(this, tiporesultado, convoseleccionada);\r\n\t\tverresultado.setVisible(true);\r\n\t}",
"private VectorArit CasteoVectores(VectorArit v, TipoPrimitivo t) {\r\n switch (t) {\r\n case STRING:\r\n return VectorToString(v);\r\n case NUMERIC:\r\n return VectorToDouble(v);\r\n case INTEGER:\r\n return VectorToInt(v);\r\n default:\r\n return v;\r\n }\r\n }",
"public FiltroCreditoTipo() {\r\n\t}",
"public void cargarListaCreditoTributarioSRI()\r\n/* 680: */ {\r\n/* 681:750 */ this.listaCreditoTributarioSRI = this.servicioCreditoTributario.buscarPorTipoComprobanteSRI(this.facturaProveedorSRI.getTipoComprobanteSRI(), this.facturaProveedorSRI\r\n/* 682:751 */ .getTipoIdentificacion());\r\n/* 683: */ }",
"public void actualizarPorTipoIdentificacion()\r\n/* 686: */ {\r\n/* 687:755 */ cargarListaTipoComprobanteSRI();\r\n/* 688:756 */ cargarListaCreditoTributarioSRI();\r\n/* 689: */ }",
"@Override\n\tpublic int sacameVida(ElementoSoldado a) {\n\t\treturn 0;\n\t}",
"public IfrViagem() {\n initComponents();\n v = new Viagem();\n criarViagem();\n\n Formatacao.formatarData(ftfDataSaida);\n Formatacao.formatarHora(ftfHoraSaida);\n Formatacao.formatarData(ftfDataRetorno);\n Formatacao.formatarHora(ftfHoraRetorno);\n Formatacao.formatarReal(ftfValorViagem);\n\n }",
"public AfiliadoVista() {\r\n }",
"public String getTipo() {\r\n return tipo;\r\n }",
"public String getTipo() {\r\n return tipo;\r\n }",
"public void setTipoConstruccion(Valor tipoConstruccion) {\n this.tipoConstruccion = tipoConstruccion;\n }",
"@Override\n public String getType(){\n return Type;\n }"
] |
[
"0.5966528",
"0.59167916",
"0.59099764",
"0.5853324",
"0.58215165",
"0.57884127",
"0.57441354",
"0.5740075",
"0.56833935",
"0.5669114",
"0.56562954",
"0.5622188",
"0.5589739",
"0.55866575",
"0.5569469",
"0.5569469",
"0.55659235",
"0.5549658",
"0.5549658",
"0.554076",
"0.5536434",
"0.5520589",
"0.5513898",
"0.5485988",
"0.5469389",
"0.5461633",
"0.5455002",
"0.5452391",
"0.5445233",
"0.5436063",
"0.5406397",
"0.5402543",
"0.53975856",
"0.53911716",
"0.53908676",
"0.537671",
"0.5374107",
"0.53725696",
"0.53693575",
"0.5358664",
"0.5355185",
"0.5354579",
"0.535281",
"0.5351802",
"0.5348967",
"0.5348341",
"0.5347105",
"0.5345372",
"0.53447425",
"0.5341181",
"0.5340258",
"0.53375447",
"0.53330576",
"0.532639",
"0.5319514",
"0.5313839",
"0.53133667",
"0.53019154",
"0.5298727",
"0.52930605",
"0.5291211",
"0.5287776",
"0.5278142",
"0.5273052",
"0.52661085",
"0.5262542",
"0.5260663",
"0.5256263",
"0.52561986",
"0.5246396",
"0.52418405",
"0.5238678",
"0.5236873",
"0.5233766",
"0.5221119",
"0.5219404",
"0.5208845",
"0.52017295",
"0.5200115",
"0.5199885",
"0.519063",
"0.5189435",
"0.5188491",
"0.51879805",
"0.5183751",
"0.5182187",
"0.5173188",
"0.5160705",
"0.5158273",
"0.51582265",
"0.5157702",
"0.51560134",
"0.51547307",
"0.5148379",
"0.514606",
"0.5137598",
"0.5137575",
"0.5136213",
"0.5136213",
"0.51333994",
"0.5129413"
] |
0.0
|
-1
|
Metodo para Colocar opciones en el JComBobox
|
public void llenarOpciones(Manejador m ){
for(int i = 0 ; i < m.getTextos().size(); i++){
opciones.addItem(m.getTextos().get(i));
}
}
|
{
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
}
|
[
"protected void setOpc(int opc) {\n this.opc = opc;\n }",
"public void testOptions() {\n OptionsOperator optionsOper = OptionsOperator.invoke();\n optionsOper.selectEditor();\n optionsOper.selectFontAndColors();\n optionsOper.selectKeymap();\n optionsOper.selectGeneral();\n // \"Manual Proxy Setting\"\n String hTTPProxyLabel = Bundle.getStringTrimmed(\n \"org.netbeans.core.ui.options.general.Bundle\", \"CTL_Use_HTTP_Proxy\");\n new JRadioButtonOperator(optionsOper, hTTPProxyLabel).push();\n // \"HTTP Proxy:\"\n String proxyHostLabel = Bundle.getStringTrimmed(\n \"org.netbeans.core.ui.options.general.Bundle\", \"CTL_Proxy_Host\");\n JLabelOperator jloHost = new JLabelOperator(optionsOper, proxyHostLabel);\n new JTextFieldOperator((JTextField) jloHost.getLabelFor()).setText(\"www-proxy.uk.oracle.com\"); // NOI18N\n // \"Port:\"\n String proxyPortLabel = Bundle.getStringTrimmed(\n \"org.netbeans.core.ui.options.general.Bundle\", \"CTL_Proxy_Port\");\n JLabelOperator jloPort = new JLabelOperator(optionsOper, proxyPortLabel);\n new JTextFieldOperator((JTextField) jloPort.getLabelFor()).setText(\"80\"); // NOI18N\n optionsOper.ok();\n }",
"public void setOptions(){\n System.out.println(\"¿Que operacion desea realizar?\");\n System.out.println(\"\");\n System.out.println(\"1- Consultar sus datos\");\n System.out.println(\"2- Ingresar\");\n System.out.println(\"3- Retirar\");\n System.out.println(\"4- Transferencia\");\n System.out.println(\"5- Consultar saldo\");\n System.out.println(\"6- Cerrar\");\n System.out.println(\"\");\n}",
"Commands getCommandes();",
"public interface IProtocol {\r\n int ADD_ELEMENT = 2100; // parent, 0, Elements.Extra\r\n\r\n int CLEAR_CHILDREN = 2005; // parent\r\n\r\n int CONTROL_ABOUT = 3001;\r\n\r\n int CONTROL_DELETE_SAVE = 3003;\r\n\r\n // int CONTROL_RESTART = 3004;\r\n int CONTROL_FORCE_CLICK = 3005;\r\n\r\n int CONTROL_HELP = 3002;\r\n\r\n // int UPDATE_SCROLL = 5;\r\n int DISPLAY_TOAST = 2001; // OBJ = text\r\n\r\n int ON_CLICK = 1101; // OBJ = view\r\n\r\n int ON_CREATE = 1001; // OBJ = bundle\r\n\r\n int ON_DESTROY = 1006;\r\n\r\n int ON_PAUSE = 1004;\r\n\r\n int ON_RESUME = 1003;\r\n\r\n int ON_START = 1002;\r\n\r\n int ON_STOP = 1005;\r\n\r\n int ON_TOUCH_EVENT = 1103;\r\n\r\n int SET_THEME = 5001;\r\n\r\n int SHOW_HELP_PAGE = 4001;\r\n\r\n int SHOW_LICENSE = 4002;\r\n\r\n int UPDATE_COLOR = 2;\r\n\r\n int UPDATE_ENABLED = 3;\r\n\r\n int UPDATE_INFLATE = 4;\r\n\r\n int UPDATE_TEXT = 1;\r\n\r\n int UPDATE_VIEW = 0;\r\n}",
"private void selecionarOpcoesDeBackup() {\n try {\n if (dao.opcaoDeBackupAtual().equals(\"Não fazer Backup Automático\")) {\n rbNãofazerBackup.setSelected(true);\n }\n if (dao.opcaoDeBackupAtual().equals(\"Fazer Backup na Entrada\")) {\n rbFazerBackupnaEntrada.setSelected(true);\n }\n if (dao.opcaoDeBackupAtual().equals(\"Fazer Backup na Saída\")) {\n rbFazerBackupnaSaída.setSelected(true);\n }\n if (dao.opcaoDeBackupAtual().equals(\"Fazer Backup na Entrada e na Saída\")) {\n rbFazerBackupnaEntradaenaSaida.setSelected(true);\n }\n } catch (SQLException ex) {\n Logger.getLogger(Backup.class.getName()).log(Level.SEVERE, null, ex);\n }\n }",
"public interface NCBENU {\n}",
"private void habilitar() {\n throw new UnsupportedOperationException(\"Not supported yet.\"); //To change body of generated methods, choose Tools | Templates.\n }",
"public char getopcion(){\n return opciones;\n }",
"public InsertUpdateBBOXOpPanel() {\r\n initComponents();\r\n }",
"private GetLCCommand() {\n initFields();\n }",
"private void setCurrentOperation(){ \r\n boolean isNamesVisible = true; //Valor logico si los campos de nombres y apellidos seran visibles\r\n Integer[] disables; //Se declara el arreglo que contendra las posiciones de la TOOLBAR que seran DESHABILITADOS para cada operacion\r\n loadToolBar(); //Se Refresca la barra de Herramientas\r\n lb_Title.setText(\"\"); //Se deja en blanco la etiqueta del Titulo\r\n //Se evalua el tipo de Operacion\r\n switch(tipoOperacion){\r\n case 0: //SOLO LECTURA \r\n tf_nroguia.setEditable(true);\r\n tf_nrorguia.setEditable(false);\r\n tf_chofer.setEditable(false);\r\n tf_veh1.setEditable(false);\r\n tf_veh2.setEditable(false);\r\n tf_ayud1.setEditable(false);\r\n tf_ayud2.setEditable(false);\r\n tf_cheqp.setEditable(false);\r\n tf_supruta.setEditable(false);\r\n\r\n dt_fcarga.setDisable(true);\r\n dt_relacion.setDisable(true);\r\n\r\n im_check.setVisible(false);\r\n im_val.setVisible(false);\r\n\r\n bt_c1.setDisable(true);\r\n bt_c2.setDisable(true);\r\n bt_c3.setDisable(true);\r\n bt_c4.setDisable(true);\r\n bt_c5.setDisable(true);\r\n bt_c6.setDisable(true);\r\n bt_c7.setDisable(true);\r\n\r\n //SE PERMITE: NUEVO, CANCELAR Y BUSCAR\r\n disables = new Integer[]{2,5,6,9,10};\r\n disableAllToolBar(disables); \r\n hb_1.setVisible(true);\r\n break;\r\n case 1: //NUEVO\r\n lb_Title.setText(\"NUEVO\");\r\n\r\n tf_nroguia.setEditable(false);\r\n tf_nrorguia.setEditable(true);\r\n\r\n dt_relacion.setDisable(false);\r\n\r\n im_check.setVisible(true);\r\n im_val.setVisible(false);\r\n\r\n //SE PERMITE: NUEVO,GUARDAR Y CANCELAR \r\n disables = new Integer[]{0,1,3,4,6,7,8,9,10,11};\r\n disableAllToolBar(disables); \r\n break;\r\n case 2: //EDITAR\r\n lb_Title.setText(\"EDITAR\");\r\n\r\n tf_nroguia.setEditable(false);\r\n tf_nrorguia.setEditable(true);\r\n\r\n dt_relacion.setDisable(false);\r\n \r\n im_check.setVisible(true);\r\n im_val.setVisible(false);\r\n \r\n //SE PERMITE: EDITAR,GUARDAR Y CANCELAR\r\n disables = new Integer[]{0,1,3,4,6,7,8,9,10,11};\r\n disableAllToolBar(disables); \r\n break;\r\n case 3: //GUARDAR\r\n tf_nroguia.setEditable(true);\r\n tf_nrorguia.setEditable(false);\r\n\r\n dt_relacion.setDisable(true);\r\n \r\n im_check.setVisible(false);\r\n im_val.setVisible(false);\r\n\r\n //SE PERMITE: GUARDAR Y CANCELAR\r\n disables = new Integer[]{0,1,3,4,6,7,8,9,10,11};\r\n disableAllToolBar(disables); \r\n break;\r\n case 4: //CAMBIAR STATUS \r\n tf_nroguia.setEditable(true);\r\n tf_nrorguia.setEditable(false);\r\n\r\n dt_relacion.setDisable(true);\r\n \r\n im_check.setVisible(false);\r\n im_val.setVisible(false);\r\n\r\n //SE PERMITE: GUARDAR,CAMBIO STATUS Y CANCELAR\r\n disables = new Integer[]{2,5,6,7,8,9,10};\r\n disableAllToolBar(disables); \r\n break;\r\n } \r\n init_FocusArray(tipoOperacion); \r\n Gui.getInstance().setTipoOperacion(tipoOperacion);\r\n }",
"@Override\n protected void options()\n {\n super.options();\n addOption(Opt.APPLICATION_ID);\n addOption(Opt.SERVER_ID);\n addOption(Opt.CATEGORY);\n addOption(Opt.NAME, \"The name of the label\");\n }",
"private void setConfigElements() {\r\n getConfig().addEntry(new ConfigEntry(ConfigContainer.TYPE_CHECKBOX, this.getPluginConfig(), USE_API, JDL.L(\"plugins.hoster.CatShareNet.useAPI\", getPhrase(\"USE_API\"))).setDefaultValue(defaultUSE_API).setEnabled(false));\r\n }",
"public void setMenu(){\n opciones='.';\n }",
"public interface ClientConstants {\n char DOT_X = 'x'; // This is players dot\n char DOT_Y = 'o'; // This is AI dot\n char DOT_EMPTY = '.'; // Empty dot\n int WINDOW_SIZE_X = 516;\n int WINDOW_SIZE_Y = 565;\n int CELL_SIZE = 50;\n String BTN_NEW_GAME = \"New game\";\n String BTN_EXIT = \"Exit\";\n String[] mapSizeItems = {\"3\", \"4\", \"5\", \"6\", \"7\", \"8\", \"9\", \"10\"}; // Array for comboBoxMapSize\n String[] winRowItems = {\"3\", \"4\", \"5\", \"6\", \"7\", \"8\", \"9\", \"10\"}; // Array for comboBoxWinRow\n String SERVER_ADDRESS = \"localhost\";\n int PORT = 123;\n}",
"static void montaMenu() {\n System.out.println(\"\");\r\n System.out.println(\"1 - Novo cliente\");\r\n System.out.println(\"2 - Lista clientes\");\r\n System.out.println(\"3 - Apagar cliente\");\r\n System.out.println(\"0 - Finalizar\");\r\n System.out.println(\"Digite a opcao desejada: \");\r\n System.out.println(\"\");\r\n }",
"public void modificarCompraComic();",
"go.micro.runtime.RuntimeOuterClass.ListOptions getOptions();",
"public void init() {\r\n reservedCommands.add(\"!addCom\");\r\n reservedCommands.add(\"!editCom\");\r\n reservedCommands.add(\"!delCom\");\r\n reservedCommands.add(\"!commands\");\r\n reservedCommands.add(\"!command\");\r\n reservedCommands.add(\"!utility\");\r\n reservedCommands.add(\"!music\");\r\n reservedCommands.add(\"!queue\");\r\n reservedCommands.add(\"!join\");\r\n reservedCommands.add(\"!leave\");\r\n reservedCommands.add(\"!getPlayers\");\r\n reservedCommands.add(\"!createPoll\");\r\n reservedCommands.add(\"!vote\");\r\n reservedCommands.add(\"!closePoll\");\r\n reservedCommands.add(\"!closeGiveaway\");\r\n reservedCommands.add(\"!raffle\");\r\n reservedCommands.add(\"!winner\");\r\n reservedCommands.add(\"!permit\");\r\n reservedCommands.add(\"!spam\");\r\n reservedCommands.add(\"!addQuote\");\r\n reservedCommands.add(\"!quoting\");\r\n reservedCommands.add(\"!removeQuote\");\r\n reservedCommands.add(\"!displayQuote\");\r\n reservedCommands.add(\"!quotes\");\r\n }",
"public interface JCConstants {\n /**\n *\n */\n public final static String[] OP_LEFT = new String[] {\n \"\", \"(\"};\n public final static String[] OP_COMPARE = new String[] {\n \"\", \" = \", \" > \", \" >= \", \" < \", \" <= \", \" <> \", \" LIKE \",\" 包含 \"};\n public final static String[] OP_RIGHT = new String[] {\n \"\", \")\"};\n public final static String[] OP_CONN = new String[] {\n \"\", \"并且\", \"或者\"};\n\n public static final String[] COL_NAMES = {\n \"左(\", \"比较项目\", \"比较符\", \"比较值\", \"右)\", \"连接符\"};\n\n public static final String FILE_NAME = \"wizard.xml\";\n public static final String COBJ_ROOT_NAME = \"BaseConditionObjects\";\n\n public static final int DEFAULT_ROW_HEIGHT = 20;\n\n public static final String COLUMN_NAME_PREFIX=\"Column_\";\n}",
"private void habilitarCamposModif() {\n\n listarPromotoresModif();\n //limpiarListaCrear();\n }",
"Commands getIf_commands();",
"@Override\n @SuppressWarnings(\"static-access\")\n public void setJCLIOptions() {\n Option Help = new Option(\"h\", \"help\", false, \"Show Help.\");\n this.jcOptions.addOption(Help);\n this.jcOptions.addOption(OptionBuilder.withLongOpt(\"file\").withDescription(\"File to Convert\").isRequired(false).hasArg().create(\"f\"));\n //this.jcOptions.addOption(OptionBuilder.withLongOpt(\"outputfile\").withDescription(\"Output File\").isRequired(false).hasArg().create(\"of\"));\n OptionGroup jcGroup = new OptionGroup();\n jcGroup.addOption(OptionBuilder.withLongOpt(\"texttobinary\").withDescription(\"Convert text to Binary\").create(\"ttb\"));\n jcGroup.addOption(OptionBuilder.withLongOpt(\"binarytotext\").withDescription(\"Convert binary to text\").create(\"btt\"));\n this.jcOptions.addOptionGroup(jcGroup);\n }",
"private ReferencableComboBox getCbxUsage() {\n\tif (ivjCbxUsage == null) {\n\t\ttry {\n\t\t\tivjCbxUsage = new ch.ehi.umleditor.application.ReferencableComboBox();\n\t\t\tivjCbxUsage.setName(\"CbxUsage\");\n\t\t\tivjCbxUsage.setEnabled(true);\n\t\t\t// user code begin {1}\n\t\t\t// user code end\n\t\t} catch (java.lang.Throwable ivjExc) {\n\t\t\t// user code begin {2}\n\t\t\t// user code end\n\t\t\thandleException(ivjExc);\n\t\t}\n\t}\n\treturn ivjCbxUsage;\n}",
"private SelectOSAction() {\r\n }",
"public JCTermMIDP(){\n display=Display.getDisplay(this);\n f=new Form(\"JCTerm\");\n si=new StringItem(\"Status\", \"No connection\");\n tf=new TextField(\"user@hostname\", UH, 30, TextField.ANY);\n\n f.append(tf);\n f.append(choice);\n f.append(\"\");\n f.append(COPYRIGHT);\n\n choice.append(\"Install private key\", null);\n\n f.addCommand(exitCommand);\n f.addCommand(connectCommand);\n f.addCommand(clearKeyCommand);\n f.setCommandListener(this);\n display.setCurrent(f);\n\n tb.addCommand(okCommand);\n tb.setCommandListener(this);\n\n resultBox.addCommand(okCommand);\n resultBox.setCommandListener(this);\n\n initGraphics();\n\n }",
"public Instrucoes2op(){\n\t\tmmm1 = super.BitsModoDeEnderecamento();\t// pega os bits do endereçamento do primeiro operando\n\t\tmmm2 = super.BitsModoDeEnderecamento();\t// pega os bits do endereçamento do segundo operando \n\t\trrr1 = \"\";\n\t\trrr2 = \"\";\t\n\t}",
"@Override\n \tpublic void saveParam(Object obj) throws Exception {; \n \t this.extension.getProxy().setMegaScan(getClickAllElems().isSelected());\n \t\tthis.extension.getProxy().setProxyHost(txtProxyIp.getText());\n \t\tthis.extension.getProxy().setProxyPort(spinnerProxyPort.getValue());\n\t\tthis.extension.getProxy().setBrowsers(txtNumBro.getValue().intValue());\n\t\tthis.extension.getProxy().setThreads(txtNumThre.getValue().intValue());\n \t\t\n \t\tif(getFirefox().isSelected()){\n \t\t\tthis.extension.getProxy().setBrowser(BrowserType.firefox);\n \t\t} else if(getChrome().isSelected()){\n \t\t\tthis.extension.getProxy().setBrowser(BrowserType.chrome);\n \t\t} else if(getHtmlunit().isSelected()){\n \t\t\tthis.extension.getProxy().setBrowser(BrowserType.htmlunit);\n \t\t}\n \t}",
"public void initPreference() {\n Map<String, String> opList = mUspManager.getAllOpPackList();\n Log.d(TAG, \"opList:\" + opList);\n\n if (opList != null) {\n TelephonyManager telephonyManager =\n (TelephonyManager) mContext.getSystemService(Context.TELEPHONY_SERVICE);\n String mccMnc = telephonyManager.getSimOperatorNumericForPhone(SubscriptionManager\n .getDefaultVoicePhoneId());\n // Operator Id of operator whose sim is present\n String currentCarrierId = mUspManager.getOpPackFromSimInfo(mccMnc);\n Log.d(TAG, \"mccMnc:\" + mccMnc + \",currentCarrierId:\" + currentCarrierId);\n int size;\n String selectedOpPackId = mUspManager.getActiveOpPack();\n Log.d(TAG, \"selectedOpPackId: \" + selectedOpPackId);\n if (selectedOpPackId == null || selectedOpPackId.isEmpty()) {\n size = opList.size() + 1;\n } else {\n size = opList.size();\n }\n CharSequence[] choices = new CharSequence[size];\n CharSequence[] values = new CharSequence[size];\n // Need to fill arrays like this, cz map is unordered so extracted key array\n //may be unsynced with value array\n int index = 0;\n for (Map.Entry<String, String> pair : opList.entrySet()) {\n String choice = pair.getValue();\n if (currentCarrierId != null && currentCarrierId.equals(pair.getKey())) {\n choice += mContext.getResources().getString(R.string.recommended);\n }\n // OP ID\n values[index] = pair.getKey();\n // OP Name\n choices[index] = choice;\n Log.d(TAG, \"value[\" + index + \"]: \" + values[index]\n + \"-->Choice[\" + index + \"]: \" + choices[index]);\n index++;\n }\n //String selectedOpPackId = mUspManager.getActiveOpPack();\n //Log.d(TAG, \"selectedOpPackId: \" + selectedOpPackId);\n if (selectedOpPackId == null || selectedOpPackId.isEmpty()) {\n values[index] = OM_PACKAGE_VALUE;\n choices[index] = mContext.getResources().getString(R.string.om_package_name);\n selectedOpPackId = OM_PACKAGE_VALUE;\n }\n setEntries(choices);\n setEntryValues(values);\n setValue(selectedOpPackId);\n setSummary(getEntry());\n boolean isCallStateIdle = !TelecomManager.from(mContext).isInCall();\n Log.d(TAG, \"isCallStateIdle:\" + isCallStateIdle);\n this.setEnabled(isCallStateIdle);\n } else {\n this.setEnabled(false);\n }\n IntentFilter filter = new IntentFilter();\n filter.addAction(TelephonyManager.ACTION_PHONE_STATE_CHANGED);\n mContext.registerReceiver(mIntentReceiver, filter);\n }",
"public void construirSetOperadores() {\n\n\t\tlabeltituloSeleccionOperador = new JLabel();\n\n\t\tcomboOperadores = new JComboBox(operadores);// creamos el Cuarto combo,y le pasamos un array de cadenas\n\t\tcomboOperadores.setSelectedIndex(0);// por defecto quiero visualizar el Cuarto item\n\t\t\n\n\t\tlabeltituloSeleccionOperador.setText(\"Seleccione el operador que relaciona ambas reglas\");\n\t\tpanelCentral.add(labeltituloSeleccionOperador);\n\t\tlabeltituloSeleccionOperador.setBounds(30, 30, 50, 20);\n\t\tpanelCentral.add(comboOperadores);\n\t\tcomboOperadores.setBounds(100, 30, 150, 24);\n\t\t\n\n\t\tpanelCentral.setBounds(10, 50, 370, 110);\n\n\t\t/* Creamos el objeto controlador, para manejar los eventos */\n\t\tControlDemoCombo controlDemoCombo = new ControlDemoCombo(this);\n\t\tcomboOperadores.addActionListener(controlDemoCombo);// agregamos escuchas\n\n\t}",
"public void options() {\n\n audio.playSound(LDSound.SMALL_CLICK);\n if (canViewOptions()) {\n Logger.info(\"HUD Presenter: options\");\n uiStateManager.setState(GameUIState.OPTIONS);\n }\n }",
"private void cargartabla() {\n throw new UnsupportedOperationException(\"Not supported yet.\"); //To change body of generated methods, choose Tools | Templates.\n }",
"@Override\r\n\tprotected void onBoEdit() throws Exception {\n\t\tgetButtonManager().getButton(\r\n\t\t\t\tnc.ui.wds.w8006080202.tcButtun.ITcButtun.Con)\r\n\t\t\t\t.setEnabled(false);\r\n\t\tgetButtonManager().getButton(\r\n\t\t\t\tnc.ui.wds.w8006080202.tcButtun.ITcButtun.Pp)\r\n\t\t\t\t.setEnabled(false);\r\n\t\tsuper.onBoEdit();\r\n\t}",
"public abstract String[] getOptions();",
"public void aplicarDescuento();",
"public void remplireListeOptions(){\r\n bddOptions.add(\"id\");\r\n bddOptions.add(\"EnvoieMail\");\r\n bddOptions.add(\"MailPeriode\");\r\n bddOptions.add(\"PeriodeJour\");\r\n bddOptions.add(\"PeriodeHeure\");\r\n bddOptions.add(\"PeriodeLun\");\r\n bddOptions.add(\"PeriodeMar\");\r\n bddOptions.add(\"PeriodeMerc\");\r\n bddOptions.add(\"PeriodeJeu\");\r\n bddOptions.add(\"PeriodeVen\");\r\n bddOptions.add(\"PeriodeSam\");\r\n bddOptions.add(\"PeriodeDim\");\r\n }",
"public void bloquear(boolean op) {\n cxCPF.setEditable(op);\n cxNome.setEditable(op);\n cxRua.setEditable(op);\n cxNumero.setEditable(op);\n cxBairro.setEditable(op);\n cxComplemento.setEditable(op);\n cxTelefone1.setEditable(op);\n cxTelefone2.setEditable(op);\n cxEmail.setEditable(op);\n }",
"public Operacoes() {\n initComponents();\n }",
"private static void gestionarOpciones(int opcion) {\r\n\t\tswitch (opcion) {\r\n\t\tcase 1:\r\n\t\t\tSystem.out.println(\"\\nMuestro la opci\\u00f3n \"+ opcion);\r\n\t\t\tbreak;\r\n\t\tcase 2:\r\n\t\t\tSystem.out.println(\"\\nMuestro la opci\\u00f3n \"+ opcion);\r\n\t\t\tbreak;\r\n\t\tcase 3:\r\n\t\t\tSystem.out.println(\"\\nMuestro la opci\\u00f3n \"+ opcion);\r\n\t\t\tbreak;\r\n\t\tcase 4:\r\n\t\t\tSystem.out.println(\"\\nMuestro la opci\\u00f3n \"+ opcion);\r\n\t\t\tbreak;\t\t\r\n\t\t}\t\t\r\n\t}",
"public void setOperation (String Operation);",
"public CLIENTORDER() {\n initComponents();\n ModelLogin cl = new ModelLogin();\n ModelCO mc = new ModelCO();\n mc.statusComboo(jComboBox_ClientId);\n mc.statusComboo1(jComboBox_LPRno);\n mc.statusComboo2(jComboBox2);\n this.setIconImage(ic);\n this.setLocationRelativeTo(null);\n \n \n \n }",
"private void opciones() {\n switch (cboTipo.getSelectedIndex()) {\n case 1:\n txtPractica.setEditable(false);\n txtLaboratorio.setEditable(false);\n txtTrabajo.setEditable(false);\n break;\n case 2:\n txtPractica.setEditable(true);\n txtLaboratorio.setEditable(false);\n txtTrabajo.setEditable(false);\n break;\n case 3:\n txtPractica.setEditable(true);\n txtLaboratorio.setEditable(true);\n txtTrabajo.setEditable(false);\n break;\n case 4:\n txtPractica.setEditable(true);\n txtLaboratorio.setEditable(true);\n txtTrabajo.setEditable(true);\n break;\n }\n\n }",
"private void setEnableComponents(){\r\n awardAddDocumentForm.cmbDocumentType.setEnabled(true);\r\n awardAddDocumentForm.txtDescription.setEditable(true);\r\n awardAddDocumentForm.txtFileName.setEditable(false);\r\n awardAddDocumentForm.btnUpload.setEnabled(true);\r\n awardAddDocumentForm.btnOk.setEnabled(true);\r\n awardAddDocumentForm.btnCancel.setEnabled(true);\r\n awardAddDocumentForm.btnView.setEnabled(false);\r\n }",
"private USI_KICKO(boolean ignored) {\n \t\tsuper(opId, opCode);\n \t\tusage = Usage.PROGNAME;\n \t}",
"public static void OptionsComponents() {\n\t\tInterface.controls.setPreferredSize(Interface.dim);\n\t\tInterface.controls.setIcon(new ImageIcon(Interface.Button));\n\t\tInterface.controls.setHorizontalTextPosition(JButton.CENTER);\n\t\tInterface.controls.setVerticalTextPosition(JButton.CENTER);\n\t\tInterface.controls.setForeground(Color.white);\n\t\t\n\t\tInterface.controls2.setPreferredSize(Interface.dim);\n\t\tInterface.controls2.setIcon(new ImageIcon(Interface.Button));\n\t\tInterface.controls2.setHorizontalTextPosition(JButton.CENTER);\n\t\tInterface.controls2.setVerticalTextPosition(JButton.CENTER);\n\t\tInterface.controls2.setForeground(Color.white);\n\t\t\n\t\t\n\t\tInterface.sound.setPreferredSize(Interface.dim);\n\t\tInterface.sound.setIcon(new ImageIcon(Interface.Button));\n\t\tInterface.sound.setHorizontalTextPosition(JButton.CENTER);\n\t\tInterface.sound.setVerticalTextPosition(JButton.CENTER);\n\t\tInterface.sound.setForeground(Color.white);\n\t\t\n\t\tInterface.soundOn.setPreferredSize(Interface.dim);\n\t\tInterface.soundOn.setIcon(new ImageIcon(Interface.Button));\n\t\tInterface.soundOn.setHorizontalTextPosition(JButton.CENTER);\n\t\tInterface.soundOn.setVerticalTextPosition(JButton.CENTER);\n\t\tInterface.soundOn.setForeground(Color.white);\n\t\t\n\t\tInterface.soundOff.setPreferredSize(Interface.dim);\n\t\tInterface.soundOff.setIcon(new ImageIcon(Interface.Button));\n\t\tInterface.soundOff.setHorizontalTextPosition(JButton.CENTER);\n\t\tInterface.soundOff.setVerticalTextPosition(JButton.CENTER);\n\t\tInterface.soundOff.setForeground(Color.white);\n\t\t\n\t\t\n\t\tInterface.backtomain.setPreferredSize(Interface.dim);\n\t\tInterface.backtomain.setIcon(new ImageIcon(Interface.Button));\n\t\tInterface.backtomain.setHorizontalTextPosition(JButton.CENTER);\n\t\tInterface.backtomain.setVerticalTextPosition(JButton.CENTER);\n\t\tInterface.backtomain.setForeground(Color.white);\n\t\t\n\t\t\n\t\tInterface.save.setPreferredSize(Interface.dim);\n\t\tInterface.save.setIcon(new ImageIcon(Interface.Button));\n\t\tInterface.save.setHorizontalTextPosition(JButton.CENTER);\n\t\tInterface.save.setVerticalTextPosition(JButton.CENTER);\n\t\tInterface.save.setForeground(Color.white);\n\t\t\n\t\t\n\t\tInterface.backtooptions.setPreferredSize(Interface.dim);\n\t\tInterface.backtooptions.setIcon(new ImageIcon(Interface.Button));\n\t\tInterface.backtooptions.setHorizontalTextPosition(JButton.CENTER);\n\t\tInterface.backtooptions.setVerticalTextPosition(JButton.CENTER);\n\t\tInterface.backtooptions.setForeground(Color.white);\n\t\t\n\t\t\n\t\tInterface.player1.setForeground(Color.white);\n\t\tInterface.player2.setForeground(Color.white);\n\t\tInterface.up1.setForeground(Color.white);\n\t\tInterface.up2.setForeground(Color.white);\n\t\tInterface.down1.setForeground(Color.white);\n\t\tInterface.down2.setForeground(Color.white);\n\t\tInterface.right1.setForeground(Color.white);\n\t\tInterface.right2.setForeground(Color.white);\n\t\tInterface.left1.setForeground(Color.white);\n\t\tInterface.left2.setForeground(Color.white);\n\t\tInterface.bomb1.setForeground(Color.white);\n\t\tInterface.bomb2.setForeground(Color.white);\n\t\tInterface.boxNumber.setForeground(Color.white);\n\t\tInterface.getUp1.setEditable(false);\n\t\tInterface.getUp2.setEditable(false);\n\t\tInterface.getDown1.setEditable(false);\n\t\tInterface.getDown2.setEditable(false);\n\t\tInterface.getRight1.setEditable(false);\n\t\tInterface.getRight2.setEditable(false);\n\t\tInterface.getLeft1.setEditable(false);\n\t\tInterface.getLeft2.setEditable(false);\n\t\tInterface.getBomb1.setEditable(false);\n\t\tInterface.getBomb2.setEditable(false);\n\t}",
"public void setOpciones(PanelOpciones opciones) {\n\t\tthis.opciones = opciones;\n\t}",
"@Override\n public int getProcessgetCapabilitie() {\n return 0;\n }",
"public void llenarComboSeccion() {\t\t\n\t\tString respuesta = negocio.llenarComboSeccion(\"\");\n\t\tSystem.out.println(respuesta);\t\t\n\t}",
"public void init() {\n addStringOption(\"extractionId\", \"Extraction ID\", \"\");\n addStringOption(WORKFLOW_ID, \"Workflow ID\", \"\");\n addEditableComboBoxOption(LIMSConnection.WORKFLOW_LOCUS_FIELD.getCode(), \"Locus\", \"None\", SAMPLE_LOCI);\n addDateOption(\"date\", \"Date\", new Date());\n\n\n addComboBoxOption(RUN_STATUS, \"Reaction state\", STATUS_VALUES, STATUS_VALUES[0]);\n\n addLabel(\"\");\n addPrimerSelectionOption(PRIMER_OPTION_ID, \"Forward Primer\", DocumentSelectionOption.FolderOrDocuments.EMPTY, false, Collections.<AnnotatedPluginDocument>emptyList());\n addPrimerSelectionOption(PRIMER_REVERSE_OPTION_ID, \"Reverse Primer\", DocumentSelectionOption.FolderOrDocuments.EMPTY, false, Collections.<AnnotatedPluginDocument>emptyList());\n addPrimersButton = addButtonOption(ADD_PRIMER_TO_LOCAL_ID, \"\", \"Add primers to my local database\");\n\n\n List<OptionValue> cocktails = getCocktails();\n\n cocktailOption = addComboBoxOption(COCKTAIL_OPTION_ID, \"Reaction Cocktail\", cocktails, cocktails.get(0));\n\n updateCocktailOption(cocktailOption);\n\n cocktailButton = new ButtonOption(COCKTAIL_BUTTON_ID, \"\", \"Edit Cocktails\");\n cocktailButton.setSpanningComponent(true);\n addCustomOption(cocktailButton);\n Options.OptionValue[] cleanupValues = new OptionValue[] {new OptionValue(\"true\", \"Yes\"), new OptionValue(\"false\", \"No\")};\n ComboBoxOption cleanupOption = addComboBoxOption(\"cleanupPerformed\", \"Cleanup performed\", cleanupValues, cleanupValues[1]);\n StringOption cleanupMethodOption = addStringOption(\"cleanupMethod\", \"Cleanup method\", \"\");\n cleanupMethodOption.setDisabledValue(\"\");\n addStringOption(\"technician\", \"Technician\", \"\", \"May be blank\");\n cleanupOption.addDependent(cleanupMethodOption, cleanupValues[0]);\n TextAreaOption notes = new TextAreaOption(\"notes\", \"Notes\", \"\");\n addCustomOption(notes);\n\n labelOption = new LabelOption(LABEL_OPTION_ID, \"Total Volume of Reaction: 0uL\");\n addCustomOption(labelOption);\n }",
"public PanelOpciones getOpciones() {\n\t\treturn opciones;\n\t}",
"public void llenarComboGrado() {\t\n\t\tString respuesta = negocio.llenarComboGrado(\"\");\n\t\tSystem.out.println(respuesta);\t\n\t}",
"public interface Constants {\n /**\n * String representation for the name of the preferences object storing\n * the Parabank connection settings.\n */\n String PREFS_PARABANK = \"parabankConnectionSettings\";\n\n /**\n * String representation for the key within the Parabank preferences\n * object which stores the protocol for the HTTP requests.\n */\n @Deprecated\n String PREFS_PARABANK_PROTOCOL = \"protocol\";\n\n /**\n * String representation for the key within the Parabank preferences\n * object which stores the host for the HTTP requests.\n */\n String PREFS_PARABANK_HOST = \"host\";\n\n /**\n * String representation for the key within the Parabank preferences\n * object which stores the port for the HTTP requests.\n */\n String PREFS_PARABANK_PORT = \"port\";\n\n /**\n * String representation for key within the {@link android.content.Intent}\n * object which stores the {@link com.parabank.parasoft.app.android.adts.User}\n * object data.\n */\n String INTENT_USER = \"user\";\n String INTENT_PARABANK_URI = \"parabankConnection\";\n}",
"Map getOptions();",
"private void setearOpcionesMenuCobros()\r\n\t{\r\n\t\tArrayList<FormularioVO> lstFormsMenuCobros = new ArrayList<FormularioVO>();\r\n\t\t\r\n\t\r\n\t\t\r\n\t\t/*Buscamos los Formulairos correspondientes a este TAB*/\r\n\t\tfor (FormularioVO formularioVO : this.permisos.getLstPermisos().values()) {\r\n\t\t\t\r\n\t\t\tif(\tformularioVO.getCodigo().equals(VariablesPermisos.FORMULARIO_INGRESO_COBRO) ||\r\n\t\t\t\tformularioVO.getCodigo().equals(VariablesPermisos.FORMULARIO_INGRESO_COBRO_OTRO) ||\r\n\t\t\t\tformularioVO.getCodigo().equals(VariablesPermisos.FORMULARIO_INGRESO_EGRESO) ||\r\n\t\t\t\tformularioVO.getCodigo().equals(VariablesPermisos.FORMULARIO_GASTOS) ||\r\n\t\t\t\tformularioVO.getCodigo().equals(VariablesPermisos.FORMULARIO_DEPOSITO) ||\r\n\t\t\t\tformularioVO.getCodigo().equals(VariablesPermisos.FORMULARIO_CONCILIACION) ||\r\n\t\t\t\tformularioVO.getCodigo().equals(VariablesPermisos.FORMULARIO_INGRESO_EGRESO_OTRO))\r\n\t\t\t\t\r\n\t\t\t{\r\n\t\t\t\t\r\n\t\t\t\tlstFormsMenuCobros.add(formularioVO);\r\n\t\t\t}\r\n\t\t\t\r\n\t\t}\r\n\t\t\r\n\t\t/*Si hay formularios para el tab*/\r\n\t\tif(lstFormsMenuCobros.size()> 0)\r\n\t\t{\r\n\r\n\t\t\tthis.layoutMenu = new VerticalLayout();\r\n\t\t\t//this.tabMantenimientos.setMargin(true);\r\n\t\t\t\r\n\t\t\tthis.lbCobros.setVisible(true);\r\n\t\t\tthis.layoutMenu.addComponent(this.lbCobros);\r\n\t\t\t\r\n\t\t\t\r\n\t\t\tfor (FormularioVO formularioVO : lstFormsMenuCobros) {\r\n\t\t\t\t\r\n\t\t\t\tswitch(formularioVO.getCodigo())\r\n\t\t\t\t{\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\r\n\t\t\t\t\tcase VariablesPermisos.FORMULARIO_INGRESO_COBRO:\r\n\t\t\t\t\t\tif(this.permisos.permisoEnFormulaior(VariablesPermisos.FORMULARIO_INGRESO_COBRO, VariablesPermisos.OPERACION_LEER)){\r\n\t\t\t\t\t\t\tthis.habilitarIngresoCobro();\r\n\t\t\t\t\t\t\tthis.layoutMenu.addComponent(this.ingCobro);\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\tbreak;\r\n\t\t\t\t\t\r\n\t\t\t\t\tcase VariablesPermisos.FORMULARIO_INGRESO_COBRO_OTRO:\r\n\t\t\t\t\t\tif(this.permisos.permisoEnFormulaior(VariablesPermisos.FORMULARIO_INGRESO_COBRO_OTRO, VariablesPermisos.OPERACION_LEER)){\r\n\t\t\t\t\t\t\tthis.habilitarOtroCobro();\r\n\t\t\t\t\t\t\tthis.layoutMenu.addComponent(this.otroCobro);\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\tbreak;\r\n\t\t\t\t\t\r\n\t\t\t\t\tcase VariablesPermisos.FORMULARIO_INGRESO_EGRESO:\r\n\t\t\t\t\t\tif(this.permisos.permisoEnFormulaior(VariablesPermisos.FORMULARIO_INGRESO_EGRESO, VariablesPermisos.OPERACION_LEER)){\r\n\t\t\t\t\t\t\tthis.habilitarIngresoEgreso();\r\n\t\t\t\t\t\t\tthis.layoutMenu.addComponent(this.ingEgreso);\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\r\n\t\t\t\t\tbreak;\r\n\t\t\t\t\t\r\n\t\t\t\t\tcase VariablesPermisos.FORMULARIO_INGRESO_EGRESO_OTRO:\r\n\t\t\t\t\t\tif(this.permisos.permisoEnFormulaior(VariablesPermisos.FORMULARIO_INGRESO_EGRESO_OTRO, VariablesPermisos.OPERACION_LEER)){\r\n\t\t\t\t\t\t\tthis.habilitarOtroEgreso();\r\n\t\t\t\t\t\t\tthis.layoutMenu.addComponent(this.otroEgreso);\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\r\n\t\t\t\t\tbreak;\r\n\t\t\t\t\t\r\n\r\n\r\n\t\t\t\t\tcase VariablesPermisos.FORMULARIO_GASTOS:\r\n\t\t\t\t\t\tif(this.permisos.permisoEnFormulaior(VariablesPermisos.FORMULARIO_GASTOS, VariablesPermisos.OPERACION_LEER)){\r\n\t\t\t\t\t\t\tthis.habilitarGastos();\r\n\t\t\t\t\t\t\tthis.layoutMenu.addComponent(this.gastos);\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\r\n\t\t\t\t\tbreak;\r\n\r\n\r\n\t\t\t\t\tcase VariablesPermisos.FORMULARIO_DEPOSITO:\r\n\t\t\t\t\t\tif(this.permisos.permisoEnFormulaior(VariablesPermisos.FORMULARIO_DEPOSITO, VariablesPermisos.OPERACION_LEER)){\r\n\t\t\t\t\t\t\tthis.habilitarDeposito();\r\n\t\t\t\t\t\t\tthis.layoutMenu.addComponent(this.deposito);\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\tbreak;\r\n\t\t\t\t\t\r\n\t\t\t\t\tcase VariablesPermisos.FORMULARIO_CONCILIACION:\r\n\t\t\t\t\t\tif(this.permisos.permisoEnFormulaior(VariablesPermisos.FORMULARIO_CONCILIACION, VariablesPermisos.OPERACION_LEER)){\r\n\t\t\t\t\t\t\tthis.habilitarConciliacion();\r\n\t\t\t\t\t\t\tthis.layoutMenu.addComponent(this.conciliacion);\r\n\t\t\t\t\t\t}\r\n\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\t\r\n\t\t\tthis.menuItems.addComponent(this.layoutMenu);\r\n\t\t\t\r\n\t\t}\r\n\t}",
"int ibconfig (int ud, int option, int v);",
"public interface TCPProtocolPropertiesOperations extends org.omg.RTCORBA.ProtocolPropertiesOperations {\n int send_buffer_size();\n void send_buffer_size(int arg);\n int recv_buffer_size();\n void recv_buffer_size(int arg);\n boolean keep_alive();\n void keep_alive(boolean arg);\n boolean dont_route();\n void dont_route(boolean arg);\n boolean no_delay();\n void no_delay(boolean arg);\n}",
"public Command(){\n \n comando.put(\"!addGroup\", 1);\n comando.put(\"!addUser\", 2);\n comando.put(\"!delFromGroup\", 3);\n comando.put(\"!removeGroup\", 4);\n comando.put(\"!upload\", 5);\n comando.put(\"!listUsers\",6);\n comando.put(\"!listGroups\",7);\n\n }",
"public static void initalize(){\n //Add all of the commands here by name and id\n autonomousChooser.addDefault(\"Base Line\", 0);\n // addOption(String name, int object)\n\n SmartDashboard.putData(\"Auto mode\", autonomousChooser);\n }",
"public JComponent showProposalSpecialForm(){ \r\n coeusMessageResources = CoeusMessageResources.getInstance();\r\n java.awt.GridBagConstraints gridBagConstraints; \r\n \r\n //Added for COEUSQA-3119- Need to implement IACUC link to Award, IP, Prop Dev, and IRB - start\r\n //Getting the data for parameters \r\n //Added for Coeus Enhancement Case #1799 - start: step 2\r\n //CoeusVector cvParameters = queryEngine.executeQuery(queryKey,CoeusParameterBean.class,CoeusVector.FILTER_ACTIVE_BEANS);\r\n for (int index=0;index<cvParameters.size();index++) {\r\n CoeusParameterBean coeusParameterBean=(CoeusParameterBean)cvParameters.elementAt(index);\r\n if(CoeusConstants.ENABLE_PROTOCOL_TO_DEV_PROPOSAL_LINK.equals(coeusParameterBean.getParameterName())){\r\n enableProtocolToDevProposalLink = Integer.parseInt(coeusParameterBean.getParameterValue());\r\n }else if(CoeusConstants.LINKED_TO_IRB_CODE.equals(coeusParameterBean.getParameterName())){\r\n linkedToIRBCode = Integer.parseInt(coeusParameterBean.getParameterValue());\r\n }else if(CoeusConstants.ENABLE_IACUC_TO_DEV_PROPOSAL_LINK.equals(coeusParameterBean.getParameterName())){\r\n enableIacucToDevProposalLink = Integer.parseInt(coeusParameterBean.getParameterValue());\r\n }else if(CoeusConstants.LINKED_TO_IACUC_CODE.equals(coeusParameterBean.getParameterName())){\r\n linkedToIACUCCode = Integer.parseInt(coeusParameterBean.getParameterValue());\r\n }\r\n }\r\n specialReviewForm.setEnableProtocolLink(enableProtocolToDevProposalLink);\r\n specialReviewForm.setEnableIacucProtocolLink(enableIacucToDevProposalLink);\r\n //Added for COEUSQA-3119- Need to implement IACUC link to Award, IP, Prop Dev, and IRB - end\r\n \r\n //specialReviewForm.btnStartProtocol.addActionListener(this);\r\n setSpecialReviewCode();\r\n\r\n\r\n\r\n\r\n //End Coeus Enhancement Case #1799 step 2\r\n \r\n //Commented for the Coeus Enhancement case:#1823 ,for making the special review as a tab page\r\n// btnOk = new javax.swing.JButton();\r\n// btnCancel = new javax.swing.JButton();\r\n// \r\n// btnOk.setMnemonic('O');\r\n// btnOk.setText(\"OK\");\r\n// btnOk.setFont(CoeusFontFactory.getLabelFont());\r\n// btnOk.setMaximumSize(new java.awt.Dimension(106, 26));\r\n// btnOk.setMinimumSize(new java.awt.Dimension(106, 26));\r\n// btnOk.setPreferredSize(new java.awt.Dimension(85, 26));\r\n// gridBagConstraints = new java.awt.GridBagConstraints();\r\n// gridBagConstraints.gridx = 0;\r\n// gridBagConstraints.gridy = 0;\r\n// gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;\r\n// gridBagConstraints.insets = new java.awt.Insets(0, 0, 3, 0);\r\n// \r\n// //Disable OK if DISPLAY_MODE\r\n// boolean enabled = functionType != DISPLAY_MODE ? true : false;\r\n// btnOk.setEnabled(enabled); \r\n// \r\n// btnCancel.setMnemonic('C');\r\n// btnCancel.setText(\"Cancel\");\r\n// btnCancel.setFont(CoeusFontFactory.getLabelFont());\r\n// btnCancel.setMaximumSize(new java.awt.Dimension(106, 26));\r\n// btnCancel.setMinimumSize(new java.awt.Dimension(106, 26));\r\n// btnCancel.setPreferredSize(new java.awt.Dimension(85, 26)); \r\n// gridBagConstraints = new java.awt.GridBagConstraints();\r\n// gridBagConstraints.gridx = 0;\r\n// gridBagConstraints.gridy = 1;\r\n// gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;\r\n// gridBagConstraints.insets = new java.awt.Insets(0, 0, 3, 0);\r\n// btnOk.addActionListener( new ActionListener(){\r\n// public void actionPerformed(java.awt.event.ActionEvent actionEvent) {\r\n// try{\r\n// if(isSaveRequired()){\r\n// if(specialReviewForm.validateData()){\r\n// //Get Deleted/Non deleted records from SpecialReviewForm\r\n// vecSpecialReviewData = specialReviewForm.getSpecialReviewData();\r\n// //Merge the Deleted and Non deleted records\r\n// setFormData();\r\n// vecSpecialReviewData = getFormData();\r\n// dlgParentComponent.dispose();\r\n// }\r\n// }\r\n// else\r\n// {\r\n// dlgParentComponent.dispose();\r\n// }\r\n// }catch(Exception e){\r\n// //e.printStackTrace();\r\n// CoeusOptionPane.showErrorDialog(e.getMessage());\r\n// } \r\n// }\r\n// });\r\n// btnCancel.addActionListener( new ActionListener(){\r\n// public void actionPerformed(java.awt.event.ActionEvent actionEvent) {\r\n// try{\r\n// performWindowClosing();\r\n// }catch(Exception e){\r\n// CoeusOptionPane.showErrorDialog(e.getMessage());\r\n// }\r\n// }\r\n// });\r\n \r\n// String strSponsor = \"\";\r\n// if (ProposalDetailAdminForm.SPONSOR_CODE != null)\r\n// {\r\n// strSponsor = ProposalDetailAdminForm.SPONSOR_CODE +\" : \" +ProposalDetailAdminForm.SPONSOR_DESCRIPTION;\r\n// }\r\n \r\n// specialReviewForm.setProposalDescription(proposalNumber,strSponsor); \r\n \r\n /*Commented the Coeus Enhancement case:#1823 ,for making the special review asa tab page*/\r\n// specialReviewForm.setButtonsReference(btnOk,btnCancel);\r\n \r\n JComponent cmpMain = (JComponent)specialReviewForm.showSpecialReviewForm(CoeusGuiConstants.getMDIForm());\r\n dlgParentComponent = new CoeusDlgWindow(CoeusGuiConstants.getMDIForm(), \"Special Review\", true);\r\n dlgParentComponent.getContentPane().add(cmpMain);\r\n dlgParentComponent.pack();\r\n dlgParentComponent.setResizable(false); \r\n Dimension screenSize\r\n = Toolkit.getDefaultToolkit().getScreenSize();\r\n Dimension dlgSize = dlgParentComponent.getSize(); \r\n dlgParentComponent.setLocation(screenSize.width/2 - (dlgSize.width/2),\r\n screenSize.height/2 - (dlgSize.height/2)); \r\n \r\n specialReviewForm.requestDefaultFocusForComponent();\r\n \r\n //Commented the Coeus Enhancement case:#1823 ,for making the special review asa tab page\r\n \r\n// //Added By sharath - Bug Fix hit X Btn. Save Cnfrm Clicked yes. Show Err Msg. close - START\r\n// //Fix : After Displaying Err Msg Don't Close the Dialog. Keep it in Focus.\r\n// dlgParentComponent.setDefaultCloseOperation(CoeusDlgWindow.DO_NOTHING_ON_CLOSE);\r\n// //Added By sharath - Bug Fix hit X Btn. Save Cnfrm Clicked yes. Show Err Msg. close - END\r\n// \r\n// dlgParentComponent.addEscapeKeyListener(new AbstractAction(\"escPressed\"){\r\n// public void actionPerformed(ActionEvent ae){\r\n// try{\r\n// performWindowClosing();\r\n//\r\n// }catch(Exception e){\r\n// CoeusOptionPane.showErrorDialog(e.getMessage());\r\n// }\r\n// }\r\n// });\r\n// dlgParentComponent.addWindowListener(new WindowAdapter(){\r\n// \r\n// public void windowOpened(WindowEvent we){\r\n// btnCancel.requestFocusInWindow();\r\n// btnCancel.setFocusable(true);\r\n// }\r\n// \r\n// public void windowClosing(WindowEvent we){\r\n// try{\r\n// performWindowClosing();\r\n// \r\n// }catch(Exception e){\r\n// CoeusOptionPane.showErrorDialog(e.getMessage());\r\n// }\r\n// //return;\r\n// }\r\n// });\r\n //dlgParentComponent.show();\r\n return cmpMain;\r\n }",
"public abstract Menu mo2158c();",
"public COSBase getCOSObject()\r\n {\r\n return option;\r\n }",
"@Override\r\n\tpublic void onBoAdd(ButtonObject bo) throws Exception {\n\t\tgetButtonManager().getButton(\r\n\t\t\t\tnc.ui.wds.w8006080202.tcButtun.ITcButtun.Con)\r\n\t\t\t\t.setEnabled(false);\r\n\t\tgetButtonManager().getButton(\r\n\t\t\t\tnc.ui.wds.w8006080202.tcButtun.ITcButtun.Pp)\r\n\t\t\t\t.setEnabled(false);\r\n\t\tsuper.onBoAdd(bo);\r\n\t\tgetBillCardPanelWrapper().getBillCardPanel().setHeadItem(\"pp_archive\", 0);\r\n\t}",
"public jp_modificar_clave() {\n initComponents();\n }",
"boolean mo2092a(C0455b bVar, MenuItem menuItem);",
"public interface ExtraConstant {\n\n String SERVER_CONFIG = \"server_config\"; // 需要服务器配置的数据\n /********************* 图片预览 ********************/\n String PREVIEW_IMAGE_DATA = \"preview_image_data\";//图片预览\n String PREVIEW_IMAGE_POSITION = \"preview_image_position\";//图片预览默认的显示位置\n String IS_ACTIVITY_INIT = \"is_activity_init\"; // 是否初始化\n String ACTIVITY_CONFIG = \"activity_config\";\n String TOKEN_ENTITY = \"token_entity\"; // 登录标识\n String USER_INFO = \"user_bean\"; // 用户信息\n String WEB_URL = \"web_url\"; // 网页地址\n String WEB_IS_ANALYSIS = \"web_is_analysis\"; // 是否统计\n String RIGHT_CUSTOM_TYPE = \"right_custom_type\"; // 右上角显示在线客服类型\n String CUSTOMDIALOG_TYPE = \"customdialog_type\"; // 自定义弹窗类型\n String EXTRA_VERSION = \"extra_version\";//版本\n String NEED_UPDATE = \"need_update\"; // 是否需要更新\n\n String REPAYMENT_TYPE = \"repayment_type\"; // 代偿模式\n\n}",
"public InfoOptions() {\n\t\tHelpOpt = new ArrayList<String>();\n\t\tDisplayOpt = new ArrayList<String>();\n\t\tNoteOpt = new ArrayList<String>();\n\t\tDelOpt = new ArrayList<String>();\n\t\tChangeNameOpt = new ArrayList<String>();\n\t\tsetDisplay();\n\t\tsetHelp();\n\t\tsetNote();\n\t\tsetDel();\n\t\tsetChangeName();\n\t}",
"ModuleOption option();",
"static void _printAllFlagNames(Object c_, StringBuffer sb_,\r\n StringBuffer sb2_)\r\n {\r\n if (c_ instanceof Component) {\r\n if (htComponentFlags == null) {\r\n htComponentFlags = new Hashtable();\r\n htComponentFlags.put(\"Enabled\", htComponentFlags);\r\n htComponentFlags.put(\"Garbage\", htComponentFlags);\r\n htComponentFlags.put(\"GarbageDisplay\", htComponentFlags);\r\n htComponentFlags.put(\"Trace\", htComponentFlags);\r\n htComponentFlags.put(\"Debug\", htComponentFlags);\r\n htComponentFlags.put(\"EventExport\", htComponentFlags);\r\n htComponentFlags.put(\"ErrorNotice\", htComponentFlags);\r\n }\r\n }\r\n else if (c_ instanceof Port) {\r\n if (htPortFlags == null) {\r\n htPortFlags = new Hashtable();\r\n htPortFlags.put(\"EventExport\", htPortFlags);\r\n htPortFlags.put(\"SendTrace\", htPortFlags);\r\n htPortFlags.put(\"DataTrace\", htPortFlags);\r\n }\r\n }\r\n PropertyDescriptor[] pds_ =\r\n drcl.comp.Util.getAllPropertyDescriptors(c_);\r\n if (pds_ == null) return;\r\n Vector v_ = new Vector();\r\n for (int i=0; i<pds_.length; i++) {\r\n PropertyDescriptor pd_ = pds_[i];\r\n if (pd_.getWriteMethod() == null) continue;\r\n Method read_ = pd_.getReadMethod();\r\n String name_ = pd_.getDisplayName();\r\n if (read_ == null) continue;\r\n if (!name_.endsWith(\"Enabled\")) continue;\r\n name_ = name_.substring(0,1).toUpperCase() + name_.substring(1);\r\n if (!read_.getName().equals(\"is\" + name_)) continue;\r\n if (!read_.getReturnType().equals(boolean.class)) continue;\r\n if (!name_.equals(\"Enabled\"))\r\n name_ = name_.substring(0, name_.length()-7);\r\n if (c_ instanceof Component && htComponentFlags.containsKey(name_)\r\n || c_ instanceof Port && htPortFlags.containsKey(name_))\r\n continue;\r\n try {\r\n if (((Boolean)read_.invoke(c_, null)).booleanValue())\r\n sb_.append(name_ + \" \");\r\n else if (sb2_ != null)\r\n sb2_.append(name_ + \" \");\r\n }\r\n catch (Exception e_)\r\n {}\r\n }\r\n }",
"public interface MiniPowerPCUIIfc {\n //TODO Initializing the Memory Tabel needs a separate methode\n \n /**\n * Sets the Text in the Textfield of the Akkumulator\n */\n public void setAkku(String inMemoryEntry);\n /**\n * Sets the Text in the Textfield of the Register1\n */\n public void setReg1(String inMemoryEntry);\n /**\n * Sets the Text in the Textfield of the Register2\n */\n public void setReg2(String inMemoryEntry);\n /**\n * Sets the Text in the Textfield of the Register3\n */\n public void setReg3(String inMemoryEntry);\n /**\n * Sets the Text in the Textfield of the Befehlszähler\n */\n public void setBefZ(String inMemoryEntry);\n \n /**\n * Sets the String in the Mnemonic-Column and the Value-Column in the Befehlsregister\n */\n public void setBefReg(String inMnemonic, String inValue);\n \n /**\n * Sets the String in the Mnemonic-Column and the Value-Column in the Befehlsregister\n */\n public void setMemoryEntries(MemoryEntry[] inMemory);\n \n \n /**\n * Sets the String in the Textfield of the \"Anzahl durchgeführter Befehle\"\n */\n public void setCountBef(String inMemoryEntry);\n \n /**\n * Sets the Text in the Textfield of the Befehlszähler\n */\n public void setCarryBit(String inMemoryEntry);\n\n /**\n * Returns True, if the Binary Exposition is selected. If Decimal Exposition\n * is selected the Method returns false.\n */\n public boolean isBinaryExpositionSelected();\n \n /**\n * Eventually there might be needed a Method to notify the GUI that the Simulation\n * is finished\n */\n //public void onSimulationFinished();\n}",
"public void initGui()\n {\n StringTranslate var2 = StringTranslate.getInstance();\n int var4 = this.height / 4 + 48;\n\n this.controlList.add(new GuiButton(1, this.width / 2 - 100, var4 + 24 * 1, \"Offline Mode\"));\n this.controlList.add(new GuiButton(2, this.width / 2 - 100, var4, \"Online Mode\"));\n\n this.controlList.add(new GuiButton(3, this.width / 2 - 100, var4 + 48, var2.translateKey(\"menu.mods\")));\n\t\tthis.controlList.add(new GuiButton(0, this.width / 2 - 100, var4 + 72 + 12, 98, 20, var2.translateKey(\"menu.options\")));\n\t\tthis.controlList.add(new GuiButton(4, this.width / 2 + 2, var4 + 72 + 12, 98, 20, var2.translateKey(\"menu.quit\")));\n this.controlList.add(new GuiButtonLanguage(5, this.width / 2 - 124, var4 + 72 + 12));\n }",
"public ArrayList<String> menuComBox();",
"void legalCommand();",
"private void initOption() {\r\n\t\tthis.option = new JMenu(\"Options\");\r\n\t\tthis.add(option);\r\n\t\tthis.initNewGame();\r\n\t\tthis.initNewServer();\r\n\t\tthis.initNewConnect();\r\n\t\tthis.initExitConnect();\r\n\t\tthis.initExitGame();\r\n\t}",
"protected CLOptionDescriptor[] createCLOptions()\n {\n //TODO: localise\n final CLOptionDescriptor options[] = new CLOptionDescriptor[ 13 ];\n\n options[0] =\n new CLOptionDescriptor( \"help\",\n CLOptionDescriptor.ARGUMENT_DISALLOWED,\n HELP_OPT,\n \"display this help message\",\n INFO_OPT_INCOMPAT );\n \n options[1] =\n new CLOptionDescriptor( \"file\",\n CLOptionDescriptor.ARGUMENT_REQUIRED,\n FILE_OPT,\n \"the build file.\" );\n\n options[2] =\n new CLOptionDescriptor( \"log-level\",\n CLOptionDescriptor.ARGUMENT_REQUIRED,\n LOG_LEVEL_OPT,\n \"the verbosity level at which to log messages. \" +\n \"(DEBUG|INFO|WARN|ERROR|FATAL_ERROR)\",\n LOG_OPT_INCOMPAT );\n\n options[3] =\n new CLOptionDescriptor( \"quiet\",\n CLOptionDescriptor.ARGUMENT_DISALLOWED,\n QUIET_OPT,\n \"equivelent to --log-level=FATAL_ERROR\",\n LOG_OPT_INCOMPAT );\n\n options[4] =\n new CLOptionDescriptor( \"verbose\",\n CLOptionDescriptor.ARGUMENT_DISALLOWED,\n VERBOSE_OPT,\n \"equivelent to --log-level=INFO\",\n LOG_OPT_INCOMPAT );\n\n options[5] =\n new CLOptionDescriptor( \"listener\",\n CLOptionDescriptor.ARGUMENT_REQUIRED,\n LISTENER_OPT,\n \"the listener for log events.\" );\n\n options[6] =\n new CLOptionDescriptor( \"version\",\n CLOptionDescriptor.ARGUMENT_DISALLOWED,\n VERSION_OPT,\n \"display version\",\n INFO_OPT_INCOMPAT );\n\n options[7] =\n new CLOptionDescriptor( \"bin-dir\",\n CLOptionDescriptor.ARGUMENT_REQUIRED,\n BIN_DIR_OPT,\n \"the listener for log events.\" );\n\n options[8] =\n new CLOptionDescriptor( \"lib-dir\",\n CLOptionDescriptor.ARGUMENT_REQUIRED,\n LIB_DIR_OPT,\n \"the lib directory to scan for jars/zip files.\" );\n\n options[9] =\n new CLOptionDescriptor( \"task-lib-dir\",\n CLOptionDescriptor.ARGUMENT_REQUIRED,\n TASKLIB_DIR_OPT,\n \"the task lib directory to scan for .tsk files.\" );\n options[10] =\n new CLOptionDescriptor( \"incremental\",\n CLOptionDescriptor.ARGUMENT_DISALLOWED,\n INCREMENTAL_OPT,\n \"Run in incremental mode\" );\n options[11] =\n new CLOptionDescriptor( \"ant-home\",\n CLOptionDescriptor.ARGUMENT_REQUIRED,\n HOME_DIR_OPT,\n \"Specify ant home directory\" );\n options[12] =\n new CLOptionDescriptor( \"define\",\n CLOptionDescriptor.ARGUMENTS_REQUIRED_2,\n DEFINE_OPT,\n \"Define a variable (ie -Dfoo=var)\" );\n return options;\n }",
"boolean mo2091a(C0455b bVar, Menu menu);",
"public void option() {\n ReusableActionsPageObjects.clickOnElement(driver, options, logger, \"user options.\");\n }",
"public void estableceEquipoComputo() {\n\tsetDispositivo(JOptionPane.showInputDialog(\"Ingrese el nombre del dispositivo a adquirir\"));\n\tsetComercio(JOptionPane.showInputDialog(\"Ingrese el nombre del comercio donde lo comprara\"));\n}",
"void setBasicMode() {basicMode = true;}",
"public void O00000o() {\n int i = this.O00000Oo;\n byte[] bArr = {(byte) (i & 255), (byte) ((i >> 8) & 255)};\n StringBuilder n = a.n(\"prepare update mesh address -->\");\n n.append(this.O00000o0);\n n.append(\" new : \");\n n.append(Integer.toHexString(this.O00000Oo));\n o00oo0oo00.O000000o(O000000o, n.toString());\n new o00o0ooooo().O000000o(this.O00000oo).O00000Oo(bArr).O000000o(0).O000000o(this.O00000oO).O00000Oo(this.O00000o).O000000o(this.O00000o0).O000000o(false).O000000o((o00o0o0o0o.O000000o) new o00o0o0o0o.O000000o() {\n public void O000000o(String str, String str2) {\n }\n\n public void O00000Oo() {\n o00oo0oo00.O000000o(o00o0ooo0o.O000000o, \"command getParams success\");\n }\n }).O0000OOo().O000000o();\n }",
"public void cambiarVisibilidad(int opcion){\n if(opcion==1){\n vistaInicial.jpCentral.setVisible(true);\n vistaInicial.jpDerecha.setVisible(true);\n vistaInicial.jpCentralGeneral.setVisible(false);\n }else{\n vistaInicial.jpCentral.setVisible(false);\n vistaInicial.jpDerecha.setVisible(false);\n vistaInicial.jpCentralGeneral.setVisible(true);\n }\n }",
"public interface ControlArea extends Component {\n\t\n public static final String AREA_BUS_NAME_KEY = \"AREA_BUS_NAME\";\n public static final String AREA_SCHEDULED_EXPORT_KEY = \"AREA_SCHEDULED_EXPORT\";\n public static final String AREA_TOLERANCE_KEY = \"AREA_TOLERANCE\";\n public static final String AREA_CODE_KEY = \"AREA_AREA_CODE\";\n public static final String AREA_NAME_KEY = \"AREA_NAME\";\n\n /**\n * Clone a bus\n * @return\n */\n public ControlArea clone();\n\n \n}",
"private InfoCommand()\n\t{\n\t\t\n\t\t\n\t}",
"public OI() {\n // Xbox Controller 0 Buttons\n \tButtonMap.xbox0_Y.whileHeld(new TransmissionAscend());\n \tButtonMap.xbox0_A.whileHeld(new TransmissionDescend());\n \tButtonMap.xbox0_R1.whenPressed(new ClawClose());\n \tButtonMap.xbox0_L1.whenPressed(new ClawOpen());\n \t\n \t// Drive Commands\n \tButtonMap.xbox0_B.whileHeld(new DriveFullSpeedWithJoystick());\n ButtonMap.xbox0_B.whenReleased(new ArcadeTriggerDriveWithJoystick());\n \t\n \t// Xbox Controller 1 Buttons\n \tButtonMap.xbox1_R1.whenPressed(new ClawClose());\n \tButtonMap.xbox1_L1.whenPressed(new ClawOpen()); \n \tButtonMap.xbox1_Y.whileHeld(new TransmissionAscend()); \n \tButtonMap.xbox1_A.whileHeld(new TransmissionDescend()); \n }",
"public Enumeration listOptions(){\n\n Vector newVector = new Vector(2);\n\n newVector.addElement(new Option(\n\t\t\t\t \"\\tNumber of attempts of generalisation.\\n\",\n\t\t\t\t \"G\", \n\t\t\t\t 1, \n\t\t\t\t \"-G <value>\"));\n newVector.addElement(new Option(\n\t\t\t\t \"\\tNumber of folder for computing the mutual information.\\n\",\n\t\t\t\t \"I\", \n\t\t\t\t 1, \n\t\t\t\t \"-I <value>\"));\n\n return newVector.elements();\n }",
"private void addToolsAndCommands() {\n this.selectTargetCadastreObjectTool\n = new CadastreChangeSelectCadastreObjectTool(this.getPojoDataAccess());\n this.selectTargetCadastreObjectTool.setTargetParcelsLayer(targetParcelsLayer);\n this.selectTargetCadastreObjectTool.setCadastreObjectType(CadastreObjectTypeBean.CODE_PARCEL);\n this.getMap().addTool(this.selectTargetCadastreObjectTool, this.getToolbar(), true);\n }",
"public static native int getCustomSettings(byte[] info);",
"private void addComponents() {\n\t\tthis.add(btn_pause);\n\t\tthis.add(btn_continue);\n\t\tthis.add(btn_restart);\n\t\tthis.add(btn_rank);\n\t\tif(Config.user.getUsername().equals(\"root\")) {\n\t\t\tthis.add(btn_admin);\n\t\t}\n\t\n\t\t\n\t}",
"static void printGeneralOptions(){\n System.out.println(GeneralInfo.PREFIX_COMMAND_DESCRIPTION + \"NameWeapon/Powerup: read the description of that weapon/powerup\");\n }",
"public static void main(String args[]){\n ControlAcceso controlador = new ControlAcceso();\n\n //se asignan los comportamientos\n controlador.asignarComportamientoAcceso(new AccesoPassword());\n\n controlador.asignarComportamientoCifrado(new CifradoNormal());\n\n controlador.acceder();\n controlador.cifrar(\"texto\");\n\n //de forma dinamica cmbio el comportamiento\n controlador.asignarComportamientoCifrado(new CifradoNulo());\n controlador.cifrar(\"djad\");\n }",
"public static String _butpaso4_click() throws Exception{\nmostCurrent._butpaso1.setVisible(anywheresoftware.b4a.keywords.Common.True);\n //BA.debugLineNum = 189;BA.debugLine=\"butPaso2.Visible = False\";\nmostCurrent._butpaso2.setVisible(anywheresoftware.b4a.keywords.Common.False);\n //BA.debugLineNum = 190;BA.debugLine=\"butPaso3.Visible = False\";\nmostCurrent._butpaso3.setVisible(anywheresoftware.b4a.keywords.Common.False);\n //BA.debugLineNum = 191;BA.debugLine=\"butPaso4.Visible = False\";\nmostCurrent._butpaso4.setVisible(anywheresoftware.b4a.keywords.Common.False);\n //BA.debugLineNum = 192;BA.debugLine=\"lblLabelPaso1.Visible = False\";\nmostCurrent._lbllabelpaso1.setVisible(anywheresoftware.b4a.keywords.Common.False);\n //BA.debugLineNum = 193;BA.debugLine=\"lblPaso2a.Visible = False\";\nmostCurrent._lblpaso2a.setVisible(anywheresoftware.b4a.keywords.Common.False);\n //BA.debugLineNum = 194;BA.debugLine=\"lblPaso2b.Visible = False\";\nmostCurrent._lblpaso2b.setVisible(anywheresoftware.b4a.keywords.Common.False);\n //BA.debugLineNum = 195;BA.debugLine=\"lblPaso3.Visible = False\";\nmostCurrent._lblpaso3.setVisible(anywheresoftware.b4a.keywords.Common.False);\n //BA.debugLineNum = 196;BA.debugLine=\"lblPaso3a.Visible = False\";\nmostCurrent._lblpaso3a.setVisible(anywheresoftware.b4a.keywords.Common.False);\n //BA.debugLineNum = 197;BA.debugLine=\"lblPaso4.Visible = True\";\nmostCurrent._lblpaso4.setVisible(anywheresoftware.b4a.keywords.Common.True);\n //BA.debugLineNum = 198;BA.debugLine=\"imgPupas.Visible = False\";\nmostCurrent._imgpupas.setVisible(anywheresoftware.b4a.keywords.Common.False);\n //BA.debugLineNum = 199;BA.debugLine=\"imgLarvas.Visible = False\";\nmostCurrent._imglarvas.setVisible(anywheresoftware.b4a.keywords.Common.False);\n //BA.debugLineNum = 200;BA.debugLine=\"imgMosquito.Visible = True\";\nmostCurrent._imgmosquito.setVisible(anywheresoftware.b4a.keywords.Common.True);\n //BA.debugLineNum = 201;BA.debugLine=\"imgMosquito.Top = 170dip\";\nmostCurrent._imgmosquito.setTop(anywheresoftware.b4a.keywords.Common.DipToCurrent((int) (170)));\n //BA.debugLineNum = 202;BA.debugLine=\"imgMosquito.Left = 30dip\";\nmostCurrent._imgmosquito.setLeft(anywheresoftware.b4a.keywords.Common.DipToCurrent((int) (30)));\n //BA.debugLineNum = 203;BA.debugLine=\"imgMosquito1.Visible = False\";\nmostCurrent._imgmosquito1.setVisible(anywheresoftware.b4a.keywords.Common.False);\n //BA.debugLineNum = 204;BA.debugLine=\"imgHuevos.Visible = False\";\nmostCurrent._imghuevos.setVisible(anywheresoftware.b4a.keywords.Common.False);\n //BA.debugLineNum = 205;BA.debugLine=\"lblEstadio.Text = \\\"Mosquito\\\"\";\nmostCurrent._lblestadio.setText(BA.ObjectToCharSequence(\"Mosquito\"));\n //BA.debugLineNum = 206;BA.debugLine=\"utilidades.CreateHaloEffect(Activity, butPaso1, C\";\nmostCurrent._vvvvvvvvvvvvvvvvvvvvv7._vvvvvvvvv3 /*void*/ (mostCurrent.activityBA,(anywheresoftware.b4a.objects.B4XViewWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.objects.B4XViewWrapper(), (java.lang.Object)(mostCurrent._activity.getObject())),mostCurrent._butpaso1,anywheresoftware.b4a.keywords.Common.Colors.Red);\n //BA.debugLineNum = 207;BA.debugLine=\"End Sub\";\nreturn \"\";\n}",
"private USI_KICKO() {}",
"public void setOperation(String op) {this.operation = op;}",
"private void initComponentsCustom() {\n SGuiUtils.setWindowBounds(this, 480, 300);\n\n moTextUnitSymbol.setTextSettings(jlUnitSymbol.getText(), 15, 1);\n moTextUnitName.setTextSettings(jlName.getText(), 150, 1);\n moTextShortName.setTextSettings(SGuiUtils.getLabelName(jlAnalysisShortName.getText()), 10, 1);\n moTextName.setTextSettings(SGuiUtils.getLabelName(jlName.getText()), 100, 1);\n moKeyAnalysisType.setKeySettings(miClient, SGuiUtils.getLabelName(jlAnalysisType), true);\n\n moFields.addField(moTextUnitSymbol);\n moFields.addField(moTextUnitName);\n \n moFields.addField(moTextShortName);\n moFields.addField(moTextName);\n \n moFields.addField(moKeyAnalysisType);\n\n moFields.setFormButton(jbSave);\n }",
"public Object[] getCompInfo() {\n\t\tObject comp[] = new Object[2];\n\t\tcomp[0] = \"IBM\";\n\t\tcomp[1] = 1000;\n\t\t\n\t\treturn comp;\n\t}",
"void usada() {\n mazo.habilitarCartaEspecial(this);\n }",
"public CFOP() {\n initComponents();\n }",
"protected abstract List<OpcionMenu> inicializarOpcionesMenu();",
"private void setActiveActions() {\n\t\tnewBinaryContext.setEnabled(true);\n\t\tnewValuedContext.setEnabled(true);\n\t\tnewNestedContext.setEnabled(true);\n\t\topenContext.setEnabled(true);\n\t\tsaveContext.setEnabled(true);\n\t\tsaveAsContext.setEnabled(true);\n\t\tsaveAllContexts.setEnabled(true);\n\t\tcloseContext.setEnabled(true);\n\t\tcloseAllContexts.setEnabled(true);\n\t\tquitViewer.setEnabled(true);\n\n\t\tif (contextPanes.size() == 0) {\n\t\t\t/* Boutons de la toolbar */\n\t\t\tsaveBtn.setEnabled(false);\n\t\t\topenBtn.setEnabled(true);\n\t\t\tnewBinCtxBtn.setEnabled(true);\n\t\t\tremoveCtxBtn.setEnabled(false);\n\t\t\tnewAttributeBtn.setEnabled(false);\n\t\t\tnewObjectBtn.setEnabled(false);\n\t\t\tdelAttributeBtn.setEnabled(false);\n\t\t\tdelObjectBtn.setEnabled(false);\n\t\t\tshowLatBtn.setEnabled(false);\n\t\t\tshowRulesBtn.setEnabled(false);\n\n\t\t\t/* Elements du menu \"Edit\" */\n\t\t\taddEmptyLevel.setEnabled(false);\n\t\t\taddContextLevel.setEnabled(false);\n\t\t\tremoveLevel.setEnabled(false);\n\t\t\torderLevels.setEnabled(false);\n\t\t\taddObject.setEnabled(false);\n\t\t\taddAttribute.setEnabled(false);\n\t\t\tmergeAttributes.setEnabled(false);\n\t\t\tlogicalAttribute.setEnabled(false);\n\t\t\tcompareAttributes.setEnabled(false);\n\t\t\tremoveObject.setEnabled(false);\n\t\t\tremoveAttribute.setEnabled(false);\n\t\t\tcreateClusters.setEnabled(false);\n\t\t\tconvertToBinary.setEnabled(false);\n\t\t\tconvertToNested.setEnabled(false);\n\n\t\t\t/* Elements du menu \"Lattice\" */\n\t\t\tshowLatticeMenu.setEnabled(false);\n\n\t\t\t/* Elements du menu \"Rules\" */\n\t\t\tshowRulesMenu.setEnabled(false);\n\t\t\treturn;\n\t\t}\n\n\t\tContextTableScrollPane selectedPane = contextPanes\n\t\t\t\t.elementAt(currentContextIdx);\n\t\tContext currentContext = ((ContextTableModel) selectedPane\n\t\t\t\t.getContextTable().getModel()).getContext();\n\n\t\tif (currentContext instanceof NestedContext) {\n\t\t\t/* Boutons de la toolbar */\n\t\t\tsaveBtn.setEnabled(true);\n\t\t\topenBtn.setEnabled(true);\n\t\t\tnewBinCtxBtn.setEnabled(true);\n\t\t\tremoveCtxBtn.setEnabled(true);\n\t\t\tnewAttributeBtn.setEnabled(false);\n\t\t\tnewObjectBtn.setEnabled(false);\n\t\t\tdelAttributeBtn.setEnabled(false);\n\t\t\tdelObjectBtn.setEnabled(false);\n\t\t\tshowLatBtn.setEnabled(true);\n\t\t\tshowRulesBtn.setEnabled(true);\n\n\t\t\t/* Elements du menu \"Edit\" */\n\t\t\taddEmptyLevel.setEnabled(true);\n\t\t\taddContextLevel.setEnabled(true);\n\t\t\tremoveLevel.setEnabled(true);\n\t\t\torderLevels.setEnabled(true);\n\t\t\taddObject.setEnabled(false);\n\t\t\taddAttribute.setEnabled(false);\n\t\t\tmergeAttributes.setEnabled(false);\n\t\t\tlogicalAttribute.setEnabled(false);\n\t\t\tcompareAttributes.setEnabled(false);\n\t\t\tremoveObject.setEnabled(false);\n\t\t\tremoveAttribute.setEnabled(false);\n\t\t\tcreateClusters.setEnabled(false);\n\t\t\tconvertToBinary.setEnabled(true);\n\t\t\tconvertToNested.setEnabled(false);\n\n\t\t\t/* Elements du menu \"Lattice\" */\n\t\t\tshowLatticeMenu.setEnabled(true);\n\n\t\t\t/* Elements du menu \"Rules\" */\n\t\t\tshowRulesMenu.setEnabled(true);\n\t\t}\n\n\t\telse if (currentContext instanceof BinaryContext) {\n\t\t\t/* Boutons de la toolbar */\n\t\t\tsaveBtn.setEnabled(true);\n\t\t\topenBtn.setEnabled(true);\n\t\t\tnewBinCtxBtn.setEnabled(true);\n\t\t\tremoveCtxBtn.setEnabled(true);\n\t\t\tnewAttributeBtn.setEnabled(true);\n\t\t\tnewObjectBtn.setEnabled(true);\n\t\t\tdelAttributeBtn.setEnabled(true);\n\t\t\tdelObjectBtn.setEnabled(true);\n\t\t\tshowLatBtn.setEnabled(true);\n\t\t\tshowRulesBtn.setEnabled(true);\n\n\t\t\t/* Elements du menu \"Edit\" */\n\t\t\taddEmptyLevel.setEnabled(false);\n\t\t\taddContextLevel.setEnabled(false);\n\t\t\tremoveLevel.setEnabled(false);\n\t\t\torderLevels.setEnabled(false);\n\t\t\taddObject.setEnabled(true);\n\t\t\taddAttribute.setEnabled(true);\n\t\t\tmergeAttributes.setEnabled(true);\n\t\t\tlogicalAttribute.setEnabled(true);\n\t\t\tremoveObject.setEnabled(true);\n\t\t\tremoveAttribute.setEnabled(true);\n\t\t\tcreateClusters.setEnabled(true);\n\t\t\tcompareAttributes.setEnabled(true);\n\t\t\tconvertToBinary.setEnabled(false);\n\t\t\tconvertToNested.setEnabled(true);\n\n\t\t\t/* Elements du menu \"Lattice\" */\n\t\t\tshowLatticeMenu.setEnabled(true);\n\n\t\t\t/* Elements du menu \"Rules\" */\n\t\t\tshowRulesMenu.setEnabled(true);\n\t\t}\n\n\t\telse if (currentContext instanceof ValuedContext) {\n\t\t\t/* Boutons de la toolbar */\n\t\t\tsaveBtn.setEnabled(true);\n\t\t\topenBtn.setEnabled(true);\n\t\t\tnewBinCtxBtn.setEnabled(true);\n\t\t\tremoveCtxBtn.setEnabled(true);\n\t\t\tnewAttributeBtn.setEnabled(true);\n\t\t\tnewObjectBtn.setEnabled(true);\n\t\t\tdelAttributeBtn.setEnabled(true);\n\t\t\tdelObjectBtn.setEnabled(true);\n\t\t\tshowLatBtn.setEnabled(false);\n\t\t\tshowRulesBtn.setEnabled(false);\n\n\t\t\t/* Elements du menu \"Edit\" */\n\t\t\taddEmptyLevel.setEnabled(false);\n\t\t\taddContextLevel.setEnabled(false);\n\t\t\tremoveLevel.setEnabled(false);\n\t\t\torderLevels.setEnabled(false);\n\t\t\taddObject.setEnabled(true);\n\t\t\taddAttribute.setEnabled(true);\n\t\t\tmergeAttributes.setEnabled(true);\n\t\t\tlogicalAttribute.setEnabled(false);\n\t\t\tcompareAttributes.setEnabled(false);\n\t\t\tremoveObject.setEnabled(true);\n\t\t\tremoveAttribute.setEnabled(true);\n\t\t\tcreateClusters.setEnabled(false);\n\t\t\tconvertToBinary.setEnabled(true);\n\t\t\tconvertToNested.setEnabled(false);\n\n\t\t\t/* Elements du menu \"Lattice\" */\n\t\t\tshowLatticeMenu.setEnabled(false);\n\n\t\t\t/* Elements du menu \"Rules\" */\n\t\t\tshowRulesMenu.setEnabled(false);\n\t\t}\n\n\t\telse {\n\t\t\t/* Boutons de la toolbar */\n\t\t\tsaveBtn.setEnabled(false);\n\t\t\topenBtn.setEnabled(false);\n\t\t\tnewBinCtxBtn.setEnabled(false);\n\t\t\tremoveCtxBtn.setEnabled(false);\n\t\t\tnewAttributeBtn.setEnabled(false);\n\t\t\tnewObjectBtn.setEnabled(false);\n\t\t\tdelAttributeBtn.setEnabled(false);\n\t\t\tdelObjectBtn.setEnabled(false);\n\t\t\tshowLatBtn.setEnabled(false);\n\t\t\tshowRulesBtn.setEnabled(false);\n\n\t\t\t/* Elements du menu \"Edit\" */\n\t\t\taddEmptyLevel.setEnabled(false);\n\t\t\taddContextLevel.setEnabled(false);\n\t\t\tremoveLevel.setEnabled(false);\n\t\t\torderLevels.setEnabled(false);\n\t\t\taddObject.setEnabled(false);\n\t\t\taddAttribute.setEnabled(false);\n\t\t\tmergeAttributes.setEnabled(false);\n\t\t\tlogicalAttribute.setEnabled(false);\n\t\t\tcompareAttributes.setEnabled(false);\n\t\t\tremoveObject.setEnabled(false);\n\t\t\tremoveAttribute.setEnabled(false);\n\t\t\tcreateClusters.setEnabled(false);\n\t\t\tconvertToBinary.setEnabled(false);\n\t\t\tconvertToNested.setEnabled(false);\n\n\t\t\t/* Elements du menu \"Lattice\" */\n\t\t\tshowLatticeMenu.setEnabled(false);\n\n\t\t\t/* Elements du menu \"Rules\" */\n\t\t\tshowRulesMenu.setEnabled(false);\n\t\t}\n\t}",
"private static MethodDescriptor[] getMdescriptor(){\n MethodDescriptor[] methods = new MethodDescriptor[1];\n \n try {\n methods[METHOD_toString0] = new MethodDescriptor(org.yccheok.jstock.gui.MutableStock.class.getMethod(\"toString\", new Class[] {})); // NOI18N\n methods[METHOD_toString0].setDisplayName ( \"\" );\n }\n catch( Exception e) {}//GEN-HEADEREND:Methods\n // Here you can add code for customizing the methods array.\n\n return methods; }",
"@Override\n\tpublic Object[] getGUIParameters() {\n\t\treturn null;\n\t}"
] |
[
"0.62820464",
"0.60817283",
"0.60496104",
"0.59433424",
"0.5619116",
"0.5524843",
"0.54717976",
"0.5457615",
"0.54566514",
"0.5442323",
"0.5442091",
"0.5437434",
"0.541037",
"0.5408176",
"0.53983366",
"0.53271705",
"0.5317899",
"0.53111184",
"0.5308063",
"0.5300563",
"0.52961975",
"0.52815646",
"0.5280709",
"0.5272491",
"0.52662176",
"0.52560616",
"0.52522343",
"0.52455217",
"0.5244473",
"0.52340895",
"0.5225649",
"0.5223438",
"0.5220498",
"0.52194214",
"0.52153933",
"0.52145076",
"0.52050453",
"0.5198913",
"0.51963484",
"0.5194694",
"0.5191734",
"0.51914454",
"0.51741207",
"0.516055",
"0.5158414",
"0.5157341",
"0.515605",
"0.5154384",
"0.51516473",
"0.51254886",
"0.5124365",
"0.5114583",
"0.51082766",
"0.50877196",
"0.5084616",
"0.5084229",
"0.50829256",
"0.5071954",
"0.5061852",
"0.5061125",
"0.50607526",
"0.50539076",
"0.5044312",
"0.5039865",
"0.5039668",
"0.5038497",
"0.5025778",
"0.50243384",
"0.50229114",
"0.50211084",
"0.5020113",
"0.50198996",
"0.50173146",
"0.50140315",
"0.5008793",
"0.50016975",
"0.49982736",
"0.49966872",
"0.49953312",
"0.49946275",
"0.49921447",
"0.49917635",
"0.49842554",
"0.4979692",
"0.49795398",
"0.4978767",
"0.49783176",
"0.49765292",
"0.49753353",
"0.49737072",
"0.49731588",
"0.49712187",
"0.49652982",
"0.49643853",
"0.4960393",
"0.49573928",
"0.49560693",
"0.49550226",
"0.4954633",
"0.49524313",
"0.4949992"
] |
0.0
|
-1
|
Recursively deepcopy all char sequences from parInput into Strings.
|
public static Object deepCharSequenceToString(final Object parInput) {
if (parInput == null) {
return null;
} else if (parInput instanceof CharSequence) {
return charSequenceToString((CharSequence) parInput);
} else if (parInput instanceof Map) {
final Map<?, ?> myInputMap = (Map) parInput;
final Map<String, Object> myInputMapCopy = new LinkedHashMap<String, Object>();
for (final Map.Entry<?, ?> myEntry : myInputMap.entrySet()) {
myInputMapCopy.put(charSequenceToString((CharSequence) myEntry.getKey()),
deepCharSequenceToString(myEntry.getValue()));
}
return myInputMapCopy;
} else if (parInput instanceof Collection) {
final Collection<?> myInputList = (Collection) parInput;
final Collection<Object> myInputListCopy = new LinkedList<Object>();
for (final Object myItem : myInputList) {
myInputListCopy.add(deepCharSequenceToString(myItem));
}
return myInputListCopy;
} else if (parInput.getClass().isArray()) {
final Object[] myInputArray = (Object[]) parInput;
for (int myIndex = 0; myIndex < myInputArray.length; myIndex++) {
myInputArray[myIndex] = deepCharSequenceToString(myInputArray[myIndex]);
}
} else if (parInput instanceof IJSONSerializeAware) {
return deepCharSequenceToString(((IJSONSerializeAware) parInput).toJSONable());
} else if (parInput instanceof Double) {
final double myValue = (Double) parInput;
if (myValue == (long) myValue) {
return (long) myValue;
}
} else if (parInput instanceof Float) {
final double myValue = (Float) parInput;
if (myValue == (long) myValue) {
return (long) myValue;
}
}
return parInput;
}
|
{
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
}
|
[
"public static String charSequenceToString(final CharSequence parInput) {\n if (parInput instanceof String || parInput == null) {\n return (String) parInput;\n }\n\n final char[] myChars = new char[parInput.length()];\n CharBuffer.wrap(parInput).get(myChars);\n\n return new String(myChars);\n }",
"public static void permutations(String input){\n\t\tpermutations(\"\", input);\n\t}",
"private static String[] collectInput() {\n\t\tString command = sc.next();\n\t\tString i = sc.next();\n\t\tString destination = sc.next();\n\t\treturn new String[] { command, destination };\n\t\t\n\t}",
"public ConsList<String> tryToConsumeInput( ConsList<String> unprocessedInput );",
"@SuppressWarnings(\"unchecked\")\t\t\t\t\t\t\t//used because of line 17, there is no way to remove warnings, they have to be suppressed\n public String[] permutations(ArrayList<ArrayList<Character> > mat){\n\n if(mat.size()==1){\t\t\t//since the function is recursive, a base case for the first line has been made. \n String[] s = new String[mat.get(0).size()];\n int i = 0;\n for(Object obj:mat.get(0)) {\n if (i < s.length) {\n s[i++] = obj.toString();\n }\n }\n return s;\t\t//returns the characters of the first line of the input as an array of String\n }\n ArrayList<Character>[] arr = new ArrayList[mat.size()]; //this has been created to provide ease of accessibility which is a bit difficult with an ArrayList of an ArrayList\n int k = 0;\n for(ArrayList a:mat){\n if(k<mat.size()){\n arr[k] = a;\n }\n k++;\n }\n int product = 1;\n for(ArrayList a: mat){\n product*= a.size(); \t// product calculates the size of the String to be generated for the given input\n }\n int i = 0;\n String[] ret = new String[product];\n ArrayList<ArrayList<Character> > ret_arr_list = new ArrayList<>();\n for(int exception_index = 0;exception_index<arr.length-1;++exception_index){\n ret_arr_list.add(arr[exception_index]); //ret_arr_list is an ArrayList of an ArrayList except the last row of the original input\n }\n String[] s = permutations(ret_arr_list); //gets the string as mentioned at the very beginning of the function\n int ret_index = 0;\n for(int i_index = 0;i_index < s.length;++i_index){\n for(int j_index = 0;j_index<mat.get(mat.size()-1).size();++j_index){\n ret[ret_index++] = s[i_index] + arr[mat.size()-1].get(j_index).toString(); //appends every character of the last line to \n \t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t //every String element calculated in String[] s\n }\n }\n return ret;\n }",
"private void combine(char[] chars, int begin) {\n\t\tif(begin==chars.length) {\r\n\t\t\tString result = String.valueOf(chars);\r\n\t\t\tif(!list.contains(result)) {\r\n\t\t\t\tlist.add(result);\r\n\t\t\t}\r\n\t\t\treturn ;\r\n\t\t}\r\n\t\tfor(int i=begin;i<chars.length;i++) {\r\n\t\t\tswap(chars,i,begin);\r\n\t\t\tcombine(chars, begin+1);\r\n\t\t\tswap(chars,i,begin);\r\n\t\t}\t\r\n\t}",
"public void permute( ){\n\t\tif( out.length() == in.length() ){\n\t\t\tSystem.out.println( out );\n\t\t\treturn;\n\t\t}\n\t\t//for each character in the input\n\t\tfor( int i = 0; i < in.length(); ++i ){\n\t\t\t//if already marked then skip\n\t\t\tif( used[i] ) \n\t\t\t\tcontinue;\n\t\t\t//otherwise put the character in current position of permuted string\n\t\t\tout.append( in.charAt(i) );\n\t\t\t//mark the position as visited\n\t\t\tused[i] = true;\n\t\t\t//permute remaining characters\n\t\t\tpermute();\n\t\t\t//unmark the position\n\t\t\tused[i] = false;\n\t\t\t//clear the permuted string to start over again\n\t\t\tout.setLength( out.length() - 1 );\n\t\t}\n\t}",
"public void fill(String seqInput) throws BaseException\n {\n fill(seqInput.split(\"\"));\n }",
"public void fill(Base[] seqInput) throws BaseException\n {\n stringRep = null;\n \n //TODO: create a variable; its value should be the minimum of seqInput's length and seq's length\n \n //TODO: copy seqInput into seq. If seqInput has more elements,\n // only copy how many will fit into seq.\n \n validate();\n }",
"public static ArrayList<String> getPerms(String s){\n\t\tArrayList<String> permutations = new ArrayList<String>();\n\t\t\n\t\tif(s==null){\n\t\t\treturn null;\n\t\t}\n\t\t\n\t\tif(s.length()==0){\n\t\t\tpermutations.add(\"\");\n\t\t\treturn permutations;\n\t\t}\n\t\t\n\t\t//firstly, choose the first char\n\t\tchar first = s.charAt(0);\n\t\t\n\t\t//store the remainder\n\t\tString remainder = s.substring(1);\n\t\t\n\t\t\n\t\t//using recursion\n\t\tArrayList<String> words = getPerms(remainder);\n\t\t\n\t\t//adding the first char to the result of the getPerms(remainder)\n\t\tfor(String word:words){\n\t\t\tfor(int i=0;i<=word.length();i++){\n\t\t\t\tpermutations.add(insertCharAt(word,first,i));\n\t\t\t}\n\t\t}\n\t\t\n\t\treturn permutations;\n\t}",
"public RegexNode ReduceConcatenation()\n\t{\n\t\t// Eliminate empties and concat adjacent strings/chars\n\n\t\tboolean wasLastString;\n\t\tRegexOptions optionsLast;\n\t\tRegexOptions optionsAt;\n\t\tint i;\n\t\tint j;\n\n\t\tif (_children == null)\n\t\t{\n\t\t\treturn new RegexNode(RegexNode.Empty, _options);\n\t\t}\n\n\t\twasLastString = false;\n\t\toptionsLast = RegexOptions.forValue(0);\n\n\t\tfor (i = 0, j = 0; i < _children.size(); i++, j++)\n\t\t{\n\t\t\tRegexNode at;\n\t\t\tRegexNode prev;\n\n\t\t\tat = _children.get(i);\n\n\t\t\tif (j < i)\n\t\t\t{\n\t\t\t\t_children.set(j, at);\n\t\t\t}\n\n\t\t\tif (at._type == RegexNode.Concatenate && ((at._options.getValue() & RegexOptions.RightToLeft.getValue()) == (_options.getValue() & RegexOptions.RightToLeft.getValue())))\n\t\t\t{\n\t\t\t\tfor (int k = 0; k < at._children.size(); k++)\n\t\t\t\t{\n\t\t\t\t\tat._children.get(k)._next = this;\n\t\t\t\t}\n\n\t\t\t\t//_children.InsertRange(i + 1, at._children);\n\t\t\t\t_children.addAll(i + 1 , at._children);\n\t\t\t\tj--;\n\t\t\t}\n\t\t\telse if (at._type == RegexNode.Multi || at._type == RegexNode.One)\n\t\t\t{\n\t\t\t\t// Cannot merge strings if L or I options differ\n\t\t\t\toptionsAt = RegexOptions.forValue(at._options.getValue() & (RegexOptions.RightToLeft.getValue() | RegexOptions.IgnoreCase.getValue()));\n\n\t\t\t\tif (!wasLastString || optionsLast != optionsAt)\n\t\t\t\t{\n\t\t\t\t\twasLastString = true;\n\t\t\t\t\toptionsLast = optionsAt;\n\t\t\t\t\tcontinue;\n\t\t\t\t}\n\n\t\t\t\tprev = _children.get(--j);\n\n\t\t\t\tif (prev._type == RegexNode.One)\n\t\t\t\t{\n\t\t\t\t\tprev._type = RegexNode.Multi;\n\t\t\t\t\tprev._str = String.valueOf(prev._ch);\n\t\t\t\t}\n\n\t\t\t\tif ((optionsAt.getValue() & RegexOptions.RightToLeft.getValue()) == 0)\n\t\t\t\t{\n\t\t\t\t\tif (at._type == RegexNode.One)\n\t\t\t\t\t{\n\t\t\t\t\t\tprev._str += (new Character(at._ch)).toString();\n\t\t\t\t\t}\n\t\t\t\t\telse\n\t\t\t\t\t{\n\t\t\t\t\t\tprev._str += at._str;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\telse\n\t\t\t\t{\n\t\t\t\t\tif (at._type == RegexNode.One)\n\t\t\t\t\t{\n\t\t\t\t\t\tprev._str = (new Character(at._ch)).toString() + prev._str;\n\t\t\t\t\t}\n\t\t\t\t\telse\n\t\t\t\t\t{\n\t\t\t\t\t\tprev._str = at._str + prev._str;\n\t\t\t\t\t}\n\t\t\t\t}\n\n\t\t\t}\n\t\t\telse if (at._type == RegexNode.Empty)\n\t\t\t{\n\t\t\t\tj--;\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\twasLastString = false;\n\t\t\t}\n\t\t}\n\n\t\tif (j < i)\n\t\t{\n\t\t\t//_children.removeRange(j, i - j + j);\n\t\t\tArrayExt.removeRange(_children, j, i - j + j);\n\t\t}\n\n\t\treturn StripEnation(RegexNode.Empty);\n\t}",
"private void copyOp(Scanner input) {\n\t\tprogramStack.add(\"copy\");\n\n\t\twhile (input.hasNext()){\n\t\t\tString token = input.next();\n\t\t\tif(token.equalsIgnoreCase(\"add\"))\n\t\t\t\taddOp(input);\n\t\t\telse\n\t\t\t\tprogramStack.push(token);\n\t\t}\n\n\t\twhile (!programStack.peek().equalsIgnoreCase(\"copy\")){\n\t\t\tString tokenToAdd = programStack.pop();\n\t\t\tint valueToAddRam;\n\t\t\tif(isVariable(tokenToAdd))\n\t\t\t\tvalueToAddRam = getRAMValue(tokenToAdd);\n\t\t\telse\n\t\t\t\tvalueToAddRam = Integer.parseInt(tokenToAdd);\n\n\t\t\tString memLocal = programStack.pop();\n\t\t\tputVariable(memLocal, valueToAddRam);\n\t\t}\n\n\t\tprogramStack.pop();\n\t}",
"public static void transform()\r\n {\r\n \t\r\n \tString in = BinaryStdIn.readString();\r\n \tint length = in.length();\r\n \t\t\t\r\n \tchar[] characters = new char[length];\r\n \tcharacters[0] = in.charAt(length-1);\r\n \tfor (int i = 1; i < length ; i++)\r\n \t\tcharacters[i] = in.charAt(i-1);\r\n \t\r\n \tCircularSuffixArray sortedSuffixes = new CircularSuffixArray(in);\r\n \t\r\n \tStringBuilder out = new StringBuilder();\r\n \tint first = -1;\r\n \tfor (int i = 0; i < length; i++)\r\n \t{\r\n \t\tint index = sortedSuffixes.index(i);\r\n \t\tout = out.append(characters[index]);\r\n \t\tif (index == 0)\r\n \t\t\tfirst = i;\r\n \t}\r\n \t\r\n \tBinaryStdOut.write(first);\r\n \tBinaryStdOut.write(out.toString());\r\n \tBinaryStdOut.close();\r\n\r\n }",
"public static String pPermutation(String input) {\n\n assert input.length() == 32;\n\n StringBuilder result = new StringBuilder();\n\n for (int[] ints : PPermutation) {\n for (int anInt : ints) {\n result.append(input.charAt(anInt - 1));\n }\n }\n\n return result.toString();\n }",
"private ArrayList<String> convertChar() {\r\n \tArrayList<String> patterns = new ArrayList<String>();\r\n \tfor (int i = 0; i < this.patterns.size(); i++) {\r\n \t\tString s = \"\";\r\n \t\tfor (int j = 0; j < this.patterns.get(i).length; j++) {\r\n \t\t\ts += this.patterns.get(i)[j];\r\n \t\t}\r\n \t\tpatterns.add(s);\r\n \t}\r\n \treturn patterns;\r\n }",
"public static void transform() {\r\n \tString str = BinaryStdIn.readString();;\r\n \tCircularSuffixArray suffixArr = new CircularSuffixArray(str);\r\n \tfor (int i = 0; i < suffixArr.length(); i++) {\r\n \t\tif (suffixArr.index(i) == 0) {\r\n \t\t\tBinaryStdOut.write(i);\r\n \t\t\tbreak;\r\n \t\t}\r\n \t}\r\n \tfor (int i = 0; i < suffixArr.length(); i++) {\r\n \t\tint pos = suffixArr.index(i);\r\n \t\tif (pos == 0) {\r\n \t\t\tpos = suffixArr.length();\r\n \t\t}\r\n \t\tBinaryStdOut.write(str.charAt(pos - 1), 8);\r\n \t}\r\n \tBinaryStdOut.close();\r\n }",
"public static void main(String[] args) {\n String input = \"ABC\";\n List<String> result = new ArrayList <> ();\n result = permutations(input);\n System.out.println(Arrays.asList(result)); \n }",
"public static void transform() {\n String s = BinaryStdIn.readString();\n\n CircularSuffixArray csa = new CircularSuffixArray(s);\n\n for (int i = 0; i < csa.length(); i++) {\n \n if (csa.index(i) == 0) {\n BinaryStdOut.write(i);\n }\n }\n\n for (int i = 0; i < csa.length(); i++) {\n if (csa.index(i) == 0) {\n BinaryStdOut.write(s.charAt(csa.length() + csa.index(i) - 1));\n }\n else {\n BinaryStdOut.write(s.charAt(csa.index(i) - 1));\n }\n }\n BinaryStdOut.flush();\n }",
"@Override\n\tpublic String visitProgram(ProgramContext ctx) {\n\t\tfor(int i=0; i< ctx.getChildCount();i++)\n\t\t visit(ctx.getChild(i));\n\t\treturn sb.toString();\n\t}",
"public void fill(String[] seqInput) throws BaseException\n {\n fill(stringsToBases(seqInput));\n }",
"public static void main(String[] args) {\nScanner scn=new Scanner(System.in);\nSystem.out.print(\"½Ð¿é¤J¤å¦r\");\nString str=scn.nextLine();\nchar[]data=str.toCharArray();\nint len=str.length();\nchar[]data1=new char[len];\nfor(int i=0;i<len;i++){\n\tdata1[i]=data[len-i-1];\n}\nString str2=new String(data1);\nSystem.out.println(data1);\n\t}",
"public static void transform() {\n String s = BinaryStdIn.readString();\n CircularSuffixArray circularSuffixArray = new CircularSuffixArray(s);\n for (int i = 0; i < s.length(); i++) {\n if (circularSuffixArray.index(i) == 0) {\n BinaryStdOut.write(i);\n }\n }\n for (int i = 0; i < s.length(); i++) {\n int index = circularSuffixArray.index(i);\n if (index == 0) {\n BinaryStdOut.write(s.charAt(s.length() - 1));\n }\n else {\n BinaryStdOut.write(s.charAt(index - 1));\n }\n }\n BinaryStdOut.flush();\n }",
"public List<String> sourceString() {\n // Processing is done here\n return Arrays.asList(\"tomato\", \"carrot\", \"cabbage\");\n }",
"public static void main(String[] args) {\n\t\tScanner in=new Scanner(System.in);\r\n\t\tString str=in.next();\r\n\t\tint len=str.length();\r\n\t\tchar[] ch=str.toCharArray();\r\n\t\tint i=0;\r\n\t\tint j=len-1;\r\n\t\tchar temp=0;\r\n\t\twhile(i<j){\r\n\t\t\ttemp=ch[i];\r\n\t\t\tch[i]=ch[j];\r\n\t\t\tch[j]=temp;\r\n\t\t\ti++;\r\n\t\t\tj--;\r\n\t\t}\r\n\t\tString str1=ch.toString();\r\n System.out.println(ch);\r\n\t}",
"void CopySourcePart (Position pos, int indent) {\n int ch, nChars, i;\n if (pos != null) {\n buffer.setPos(pos.beg); ch = buffer.Read(); nChars = pos.len - 1;\n Indent(indent);\n boolean done = false;\n while (nChars >= 0) {\n while (ch == CR || ch == LF) { // eol is either CR or CRLF or LF\n gen.println(); Indent(indent);\n if (ch == CR) { ch = buffer.Read(); nChars--; } // skip CR\n if (ch == LF) { ch = buffer.Read(); nChars--; } // skip LF\n for (i = 1; i <= pos.col && ch <= ' '; i++) {\n // skip blanks at beginning of line\n ch = buffer.Read(); nChars--;\n }\n if (i <= pos.col) pos.col = i - 1; // heading TABs => not enough blanks\n done = (nChars < 0);\n }\n if (done) break;\n gen.print((char)ch);\n ch = buffer.Read(); nChars--;\n }\n if (indent > 0) gen.println();\n }\n }",
"public void readFromPc(String input) {\n\n }",
"private static String readAll(Reader rd) throws IOException {\n\t\t StringBuilder sb = new StringBuilder();\n\t\t int cp;\n\t\t while ((cp = rd.read()) != -1) {\n\t\t sb.append((char) cp);\n\t\t }\n\t\t return sb.toString();\n\t\t }",
"public static void transform() {\n String input = BinaryStdIn.readString();\n CircularSuffixArray csa = new CircularSuffixArray(input);\n int first = 0;\n for (int i = 0; i < csa.length(); i++) {\n if (csa.index(i) == 0) {\n first = i;\n break;\n }\n }\n BinaryStdOut.write(first);\n\n for (int i = 0; i < csa.length(); i++) {\n if (csa.index(i) == 0) {\n BinaryStdOut.write(input.charAt(csa.length() - 1));\n }\n else BinaryStdOut.write(input.charAt(csa.index(i) - 1));\n }\n BinaryStdOut.close();\n }",
"public static void stringConstructionMain(String[] args) {\n Scanner in = new Scanner(System.in);\n int q = in.nextInt();\n for(int a0 = 0; a0 < q; a0++){\n String s = in.next();\n int result = stringConstruction(s);\n System.out.println(result);\n }\n in.close();\n }",
"public static void permutation(String str) { \n permutation(\"\", str); \n}",
"public static int Main()\n\t{\n\t\tString s = new String(new char[256]);\n\t\tString z = new String(new char[256]);\n\t\tString r = new String(new char[256]);\n\t\tint i;\n\t\ts = new Scanner(System.in).nextLine();\n\t\tz = new Scanner(System.in).nextLine();\n\t\tr = new Scanner(System.in).nextLine();\n//C++ TO JAVA CONVERTER TODO TASK: Pointer arithmetic is detected on this variable, so pointers on this variable are left unchanged:\n\t\tchar * p = tangible.StringFunctions.strStr(s, z);\n\t\tif (p == null)\n\t\t{\n\t\t\tSystem.out.print(s);\n\t\t}\n\t\telse\n\t\t{\n\t\t\tString q = s;\n\t\t\tfor (i = 0; i < (p - q); i++)\n\t\t\t{\n\t\t\t\tSystem.out.print(s.charAt(i));\n\t\t\t}\n\t\t\tSystem.out.print(r);\n\t\t\tp = p + (z.length());\n\t\t\twhile (*p != '\\0')\n\t\t\t{\n\t\t\t\tSystem.out.print(p);\n\t\t\t\tp++;\n\t\t\t}\n\t\t}\n\t\treturn 0;\n\t}",
"public abstract void copyFrom(KeyedString src);",
"public void getPermutation(String s1,int start,int end){\n\t\tif(start==end-1) {\n\t\t\tSystem.out.println(s1);\n\t\t}\n\t\telse {\n\t\t\tfor(int i=start;i<end;i++) {\n\t\t\t\ts1=swap(s1,start,i);\n\t\t\t\t//calling recursive function \n\t\t\t\tgetPermutation(s1,start+1,end);\n\t\t\t\ts1=swap(s1,start,i);\n\t\t\t\t\t\n\t\t\t\t\n\t\t\t}\n\t\t}\n\t\t\n\t}",
"private static char[] composePart(ComposePartArgs paramComposePartArgs, int paramInt1, char[] paramArrayOfChar, int paramInt2, int paramInt3, int paramInt4, UnicodeSet paramUnicodeSet)\n/* */ {\n/* 1642 */ boolean bool = (paramInt4 & 0x1000) != 0;\n/* */ \n/* */ \n/* 1645 */ int[] arrayOfInt = new int[1];\n/* 1646 */ char[] arrayOfChar = new char[(paramInt3 - paramInt1) * 20];\n/* */ for (;;)\n/* */ {\n/* 1649 */ paramComposePartArgs.length = decompose(paramArrayOfChar, paramInt1, paramInt2, arrayOfChar, 0, arrayOfChar.length, bool, arrayOfInt, paramUnicodeSet);\n/* */ \n/* */ \n/* 1652 */ if (paramComposePartArgs.length <= arrayOfChar.length) {\n/* */ break;\n/* */ }\n/* 1655 */ arrayOfChar = new char[paramComposePartArgs.length];\n/* */ }\n/* */ \n/* */ \n/* */ \n/* 1660 */ int i = paramComposePartArgs.length;\n/* */ \n/* 1662 */ if (paramComposePartArgs.length >= 2) {\n/* 1663 */ RecomposeArgs localRecomposeArgs = new RecomposeArgs(null);\n/* 1664 */ localRecomposeArgs.source = arrayOfChar;\n/* 1665 */ localRecomposeArgs.start = 0;\n/* 1666 */ localRecomposeArgs.limit = i;\n/* 1667 */ paramComposePartArgs.prevCC = recompose(localRecomposeArgs, paramInt4, paramUnicodeSet);\n/* 1668 */ i = localRecomposeArgs.limit;\n/* */ }\n/* */ \n/* */ \n/* 1672 */ paramComposePartArgs.length = i;\n/* 1673 */ return arrayOfChar;\n/* */ }",
"public static void permutationsWithoutDups(String str) {\n ArrayList<String> perm = new ArrayList<String>();\n perm.add(str.substring(0,1));\n for(int i=1; i<str.length(); i++) {\n ArrayList<String> output = new ArrayList<String>();\n for(String p: perm) {\n for(int j=0; j<=p.length(); j++) {\n output.add(p.substring(0,j) + str.substring(i,i+1) + p.substring(j));\n }\n }\n perm = output;\n }\n\n for(String s: perm) {\n System.out.println(s);\n }\n }",
"public void getChars(int srcBegin, int srcEnd, char[] dst, int dstBegin) {\n/* 148 */ int destIndex = dstBegin;\n/* 149 */ for (int i = srcBegin; i < srcEnd; i++)\n/* */ {\n/* 151 */ dst[destIndex++] = this.m_str.charAt(i);\n/* */ }\n/* */ }",
"private java.lang.String c(java.lang.String r7) {\n /*\n r6 = this;\n r2 = \"\";\n r0 = r6.e;\t Catch:{ FileNotFoundException -> 0x0052 }\n if (r0 == 0) goto L_0x0050;\n L_0x0006:\n r0 = new java.lang.StringBuilder;\t Catch:{ FileNotFoundException -> 0x0052 }\n r1 = java.lang.String.valueOf(r7);\t Catch:{ FileNotFoundException -> 0x0052 }\n r0.<init>(r1);\t Catch:{ FileNotFoundException -> 0x0052 }\n r1 = \".\";\n r0 = r0.append(r1);\t Catch:{ FileNotFoundException -> 0x0052 }\n r1 = r6.e;\t Catch:{ FileNotFoundException -> 0x0052 }\n r0 = r0.append(r1);\t Catch:{ FileNotFoundException -> 0x0052 }\n r0 = r0.toString();\t Catch:{ FileNotFoundException -> 0x0052 }\n L_0x001f:\n r1 = r6.d;\t Catch:{ FileNotFoundException -> 0x0052 }\n r1 = r1.openFileInput(r0);\t Catch:{ FileNotFoundException -> 0x0052 }\n L_0x0025:\n r3 = new java.io.BufferedReader;\n r4 = new java.io.InputStreamReader;\n r0 = r1;\n r0 = (java.io.InputStream) r0;\n r5 = \"UTF-8\";\n r5 = java.nio.charset.Charset.forName(r5);\n r4.<init>(r0, r5);\n r3.<init>(r4);\n r0 = new java.lang.StringBuffer;\n r0.<init>();\n L_0x003d:\n r4 = r3.readLine();\t Catch:{ IOException -> 0x0065, all -> 0x0073 }\n if (r4 != 0) goto L_0x0061;\n L_0x0043:\n r0 = r0.toString();\t Catch:{ IOException -> 0x0065, all -> 0x0073 }\n r1 = (java.io.InputStream) r1;\t Catch:{ IOException -> 0x007d }\n r1.close();\t Catch:{ IOException -> 0x007d }\n r3.close();\t Catch:{ IOException -> 0x007d }\n L_0x004f:\n return r0;\n L_0x0050:\n r0 = r7;\n goto L_0x001f;\n L_0x0052:\n r0 = move-exception;\n r0 = r6.d;\t Catch:{ IOException -> 0x005e }\n r0 = r0.getAssets();\t Catch:{ IOException -> 0x005e }\n r1 = r0.open(r7);\t Catch:{ IOException -> 0x005e }\n goto L_0x0025;\n L_0x005e:\n r0 = move-exception;\n r0 = r2;\n goto L_0x004f;\n L_0x0061:\n r0.append(r4);\t Catch:{ IOException -> 0x0065, all -> 0x0073 }\n goto L_0x003d;\n L_0x0065:\n r0 = move-exception;\n r1 = (java.io.InputStream) r1;\t Catch:{ IOException -> 0x0070 }\n r1.close();\t Catch:{ IOException -> 0x0070 }\n r3.close();\t Catch:{ IOException -> 0x0070 }\n r0 = r2;\n goto L_0x004f;\n L_0x0070:\n r0 = move-exception;\n r0 = r2;\n goto L_0x004f;\n L_0x0073:\n r0 = move-exception;\n r1 = (java.io.InputStream) r1;\t Catch:{ IOException -> 0x007f }\n r1.close();\t Catch:{ IOException -> 0x007f }\n r3.close();\t Catch:{ IOException -> 0x007f }\n L_0x007c:\n throw r0;\n L_0x007d:\n r1 = move-exception;\n goto L_0x004f;\n L_0x007f:\n r1 = move-exception;\n goto L_0x007c;\n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.tencent.a.b.b.c(java.lang.String):java.lang.String\");\n }",
"public static ArrayList<ArrayList<String>> permuteInterative(char[] chars) {\n ArrayList<ArrayList<String>> resultBySize = new ArrayList<>();\n\n // starts out empty\n ArrayList<StringBuilder> results = new ArrayList<>();\n results.add(new StringBuilder());\n\n for (int i = 0; i< chars.length; i++) {\n ArrayList<StringBuilder> current = new ArrayList<>();\n for (StringBuilder s : results) {\n for (int j = 0; j < s.length() + 1; j++) {\n s.insert(j, chars[i]);\n StringBuilder temp = new StringBuilder(s);\n current.add(temp);\n s.deleteCharAt(j);\n }\n }\n results = new ArrayList<>(current);\n //snap shot of that size\n ArrayList<String> strings = new ArrayList<>();\n for (StringBuilder s: current) {\n strings.add(s.toString());\n }\n resultBySize.add(strings);\n }\n System.out.println(resultBySize);\n return resultBySize;\n }",
"private void helper(String s, int index, List<String> path){\n //base condition to stop recursion\n //when there is no substring to process, add the path to output\n if(index == s.length()){\n output.add(new ArrayList<String>(path));\n return;\n }\n \n //logic\n for(int i=index+1; i <= s.length(); i++){\n /* Generate all possible substrings that start from the current index\n * For each substring, check if it is a palindrome. \n * For each palindromic substring, call the helper function recursively to generate substrings for rest of the string\n */\n String substr = s.substring(index, i);\n if(isPalindrome(substr)){\n path.add(substr);\n helper(s, i, path);\n path.remove(path.size()-1);\n }\n }\n }",
"public static List<String> getPermutationByRecursion(String str, List<String>stringByRecursion, int l, int r) {\n \n \tif(l == r) {\n \n stringByRecursion.add(str);\n }\n \t\n else{\n \t\n for(int i = l; i <= r ; i++){\n \n \tstr = swap(str, l, i);\n getPermutationByRecursion(str, stringByRecursion, l+1, r);\n str = swap(str, l, i);\n\n }\n }\n return stringByRecursion;\n }",
"public Iterator_BuildTextExpansion_ clone(CallContext context);",
"public Sequence(Scanner sc) {\n String s = sc.next();\n for (char c : s.toCharArray()) {\n if (isValid(c)) seq.add(c);\n }\n }",
"public void flattenASTChangesToString(){\n\t\tthis.codeBlob = getCodeString();\n\t\tthis.compUnit = null;\n\t\tthis.rewriter = null;\n\t}",
"@Override\n public String postprocess ( String input ) {\n if (input == null || input.length() == 0)\n return input;\n \n \n char[] car = input.toCharArray();\n int maxLen = (allCharFixMaps.size() <= car.length) ? allCharFixMaps.size() : car.length;\n for(int i = 0; i < maxLen; i++) {\n HashMap<Character, Character> fixes = allCharFixMaps.get( i );\n if (fixes.containsKey( car[i] ))\n car[i] = fixes.get( car[i] );\n }\n return String.valueOf( car ).replaceAll( \" \", \"\" );\n }",
"private static void StackofStrings (Scanner in, PrintStream out) {\n StackofStrings stack = new StackofStrings();\n while(in.hasNext()){\n String s = in.next();\n if ((s.equals(\"-\"))){\n out.print(stack.pop()+ \" \");\n }else{\n stack.push(s);\n }\n }\n}",
"public static String[] m36409a(InputStream inputStream) {\n try {\n BufferedReader bufferedReader = new BufferedReader(new InputStreamReader(inputStream, \"UTF-8\"));\n String[] strArr = new String[100];\n int i = 0;\n while (true) {\n String readLine = bufferedReader.readLine();\n if (readLine == null) {\n break;\n }\n if (i == strArr.length) {\n String[] strArr2 = new String[(i << 1)];\n System.arraycopy(strArr, 0, strArr2, 0, i);\n strArr = strArr2;\n }\n int i2 = i + 1;\n strArr[i] = readLine;\n i = i2;\n }\n bufferedReader.close();\n if (i == strArr.length) {\n return strArr;\n }\n String[] strArr3 = new String[i];\n System.arraycopy(strArr, 0, strArr3, 0, i);\n return strArr3;\n } catch (IOException e) {\n e.printStackTrace();\n return null;\n }\n }",
"void consolidate(String destination);",
"public void readAndWrite() {\n Scanner scanner = new Scanner(System.in);\n String s = scanner.nextLine();\n List<String> passedFiles = new ArrayList<>();\n copy(new File(s), true, passedFiles);\n\n }",
"static void subsequence(String str)\n {\n // iterate over the entire string\n for (int i = 0; i < str.length(); i++) {\n \n // iterate from the end of the string\n // to generate substrings\n for (int j = str.length(); j > i; j--) {\n String sub_str = str.substring(i, j);\n \n if (!st.contains(sub_str))\n st.add(sub_str);\n \n // drop kth character in the substring\n // and if its not in the set then recur\n for (int k = 0; k < sub_str.length(); k++) {\n StringBuffer sb = new StringBuffer(sub_str);\n \n // drop character from the string\n sb.deleteCharAt(k);\n if (!st.contains(sb)) {\n \tsubsequence(sb.toString());\n }\n }\n }\n }\n }",
"void getChars(char dst[], int dstBegin) {\n\t\tSystem.arraycopy(value, 0, dst, dstBegin, value.length);\n\t}",
"public boolean strCopies(String str, String sub, int n) {\n//Solution to problem coming soon\n}",
"public static void inverseTransform()\r\n {\r\n \tint first = BinaryStdIn.readInt();\r\n \tString s = BinaryStdIn.readString();\r\n \tBinaryStdIn.close();\r\n \t\r\n \tchar[] t = s.toCharArray();\r\n \r\n \tchar[] firstCharacters = t.clone();\r\n \tArrays.sort(firstCharacters);\r\n \t\r\n \t// Construction next[] using t[] and first\r\n \tint[] next = constructNext(t, firstCharacters, first);\r\n \t\r\n \t// Writing original string to StdOut using next[] and first\r\n \tint index = first;\r\n \tfor (int i = 0; i < t.length; i++)\r\n \t{\r\n \t\tBinaryStdOut.write(firstCharacters[index]);\r\n \t\tindex = next[index];\r\n \t}\r\n \tBinaryStdOut.close();\r\n }",
"private String readAll(Reader rd) throws IOException {\r\n\t\tStringBuilder sb = new StringBuilder();\r\n\t\tint cp;\r\n\t\twhile ((cp = rd.read()) != -1) {\r\n\t\t\tsb.append((char) cp);\r\n\t\t}\r\n\t\treturn sb.toString();\r\n\t}",
"public static void displayPermutation(String s1, String s2) {\n if (s1.length() == 0) {\n System.out.println(s2 + \" \");\n }\n\n for (int i = 0; i < s1.length(); i++) {\n\n // current character at index (i) of s1\n char ch = s1.charAt(i);\n\n // Rest of the string after excluding the character at current index\n String ros = s1.substring(0, i) + s1.substring(i + 1);\n\n // recursive call\n displayPermutation(ros, s2 + ch);\n }\n }",
"public static void permutationsWithDups(String str) {\n HashSet<String> perm = new HashSet<String>();\n perm.add(str.substring(0,1));\n for(int i=1; i<str.length(); i++) {\n HashSet<String> output = new HashSet<String>();\n for(String p: perm) {\n for(int j=0; j<=p.length(); j++) {\n output.add(p.substring(0,j) + str.substring(i,i+1) + p.substring(j));\n }\n }\n perm = output;\n }\n\n for(String s: perm) {\n System.out.println(s);\n }\n }",
"private void prepareInput() {\n\t\tif(input.charAt(0) == '-') input = \"0\" + input;\n\t\tfor(int i = 0; i < input.length() - 1; i++) {\n\t\t\tif(input.charAt(i) == '(' && input.charAt(i+1) == '-') input = input.substring(0, i+1) + \"0\" + input.substring(i+1); \n\t\t}\n\t}",
"private static String readAll(Reader rd) throws IOException {\n\t\tStringBuilder sb = new StringBuilder();\n\t\tint cp;\n\t\twhile ((cp = rd.read()) != -1) {\n\t\t\tsb.append((char) cp);\n\t\t}\n\t\treturn sb.toString();\n\t}",
"private static String readAll(Reader rd) throws IOException {\n\t\tStringBuilder sb = new StringBuilder();\n\t\tint cp;\n\t\twhile ((cp = rd.read()) != -1) {\n\t\t\tsb.append((char) cp);\n\t\t}\n\t\treturn sb.toString();\n\t}",
"public static void main(String[] args) throws IOException {\n\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\t\tPrintWriter pw = new PrintWriter(System.out);\n\t\tString l = br.readLine();\n\t\tArrayList<String> salida= new ArrayList<>();\n\t\tArrayList<String> a= new ArrayList<>();\n\t\tint r=0;\n\t\twhile (!l.equals(\"\")) {\n\t\t\t\n\t\t\tLinkedList<Character> conjunto = new LinkedList<>();\n\t\t\tfor (int i = 0; i < l.length(); i++) {\n\t\t\t\tconjunto.add(l.charAt(i));\n\t\t\t}\n\t\t\t/*a = permutar(\"\", conjunto,salida);\n\t\t\tSystem.err.println(a.toString());*/\n\t\t\tsalida.clear();\n\t\t\tr = per(\"\", conjunto,salida);\n\t\t\tpw.println(r);\n\t\t\tr=0;\n\t\t\tl = br.readLine();\n\t\t}\n\t\tpw.close();\n\t}",
"private String fill(String[] chain) {\r\n\t\tString result = new String();\r\n\t\tfor (int i = 0; i < chain.length; i++) {\r\n\t\t\tresult += chain[i];\r\n\t\t}\r\n\t\treturn result;\r\n\t}",
"private void readInput(char[] inputArr) {\n\n\t\tfor (char c : inputArr) {\n\t\t\tcheckChar(Character.toString(c));\n\n\t\t\tSystem.out.println(\"==I=N=P=U=T============\");\n\t\t\tSystem.out.println(c);\n\t\t\tSystem.out.println(\"===Q=U=E=U=E===========\");\n\t\t\tSystem.out.println(queue.toString());\n\t\t\tSystem.out.println(\"====S=T=A=C=K==========\");\n\t\t\tSystem.out.println(stack.toString());\n\t\t}\n\t}",
"private static void readInput() { input = sc.nextLine().toLowerCase().toCharArray(); }",
"private static Stream<List<Tile>> substituteBlanks(List<Tile> p) {\n Stream<List<Tile>> res = Stream.of(p);\n //Iterate through all letters.\n for (int i = 0; i < p.size(); i++) {\n //Check for blanks.\n if (p.get(i).getLetter() == Character.MIN_VALUE) {\n //If blank found, substitute it for all a-z, and look again for next blank.\n res = substituteBlankAtIndex(p, i)\n .flatMap(s -> substituteBlanks(s));\n }\n }\n\n return res;\n }",
"private void buildOutStack() {\n this.outputStack[0] = new java.util.ArrayList<String>();\n this.outputStack[1] = new java.util.ArrayList<String>();\n this.outputStack[2] = new java.util.ArrayList<String>();\n this.outputStack[3] = new java.util.ArrayList<String>();\n JTVProg.logPrint(this, 3, \"подготовка выпуска по каналам\");\n for (Integer currentRIndex = 1; currentRIndex < this.getSetSize() + 1; currentRIndex++) {\n chProcUnit currentProc = this.getUnit(currentRIndex);\n if (currentProc.chStored.length() > maxLength) {\n java.util.ArrayList<String> splittedStored = this.textSplit(currentProc.chStored);\n String chHeader = this.pickHead(currentProc.chStored);\n java.util.ListIterator<String> splitIter = splittedStored.listIterator();\n Integer currentSplitIndex = 1;\n while (splitIter.hasNext()) {\n String currentSplitText = splitIter.next();\n this.outputStack[0].add(\"БЛ-\" + currentSplitIndex + \":\" + chHeader);\n if (currentSplitIndex == 1) {\n this.outputStack[1].add(currentSplitText.replace(chHeader, \"БЛ-\" + currentSplitIndex + \":\" + chHeader).trim());\n } else {\n this.outputStack[1].add(\"БЛ-\" + currentSplitIndex + \":\" + chHeader + lineSeparator + lineSeparator + currentSplitText.trim());\n }\n ++currentSplitIndex;\n }\n }\n else {\n this.outputStack[0].add(currentProc.chName);\n this.outputStack[1].add(currentProc.chStored.trim());\n }\n }\n JTVProg.logPrint(this, 3, \"подготовка выпуска по дням\");\n for (Integer dayFileIndex = 0; dayFileIndex < outDays.length; dayFileIndex++) {\n java.io.File currDayFile = this.outDays[dayFileIndex];\n String dayContent = this.getFileContent(currDayFile).trim();\n if (dayContent.length() > maxLength) {\n java.util.ArrayList<String> splittedDay = this.textSplit(dayContent);\n String dayHeader = this.pickHead(dayContent);\n java.util.ListIterator<String> splitIter = splittedDay.listIterator();\n Integer currentSplitIndex = 1;\n while (splitIter.hasNext()) {\n String currentSplitText = splitIter.next();\n this.outputStack[2].add(\"БЛ-\" + currentSplitIndex + \":\" + dayHeader);\n if (currentSplitIndex == 1) {\n this.outputStack[3].add(currentSplitText.replace(dayHeader, \"БЛ-\" + currentSplitIndex + \":\" + dayHeader));\n } else {\n this.outputStack[3].add(\"БЛ-\" + currentSplitIndex + \":\" + dayHeader + lineSeparator + lineSeparator + currentSplitText);\n }\n ++currentSplitIndex;\n }\n }\n else {\n this.outputStack[2].add(this.pickHead(dayContent));\n this.outputStack[3].add(dayContent);\n }\n }\n }",
"public static void main (String args []) {\n\r\n String str = \"\\\"क\\\", \\\"का\\\", \\\"कि\\\", \\\"की\\\", \\\"कु\\\", \\\"कू\\\", \\\"के\\\", \\\"कै\\\", \\\"को\\\", \\\"कौ\\\", \\\"कं\\\", \\\"क:\\\"\" ;\r\n String strEng = \"\\\"ka\\\", \\\"kā\\\", \\\"ki\\\", \\\"kī\\\", \\\"ku\\\", \\\"kū\\\", \\\"kē\\\", \\\"kai\\\", \\\"ko\\\", \\\"kau\\\", \\\"kṁ\\\", \\\"ka:\\\"\" ;\r\n\r\n String additionalConsonants = \"\\\"क़\\\", \\\"क़ा\\\", \\\"क़ि\\\", \\\"क़ी\\\", \\\"क़ु\\\", \\\"क़ू\\\", \\\"क़े\\\", \\\"क़ै\\\", \\\"क़ो\\\", \\\"क़ौ\\\", \\\"क़ं\\\", \\\"क़:\\\"\"; \r\n String additionalConsonantsEng = \"\\\"qa\\\", \\\"qā\\\", \\\"qi\\\", \\\"qī\\\", \\\"qu\\\", \\\"qū\\\", \\\"qē\\\", \\\"qai\\\", \\\"qo\\\", \\\"qau\\\", \\\"qṁ\\\", \\\"qa:\\\"\" ;\r\n\r\n //String str = \"क, का, कि, की, कु, कू, के, कै, को, कौ, कं, क:\" ;\r\n \r\n \r\n \r\n //generateNP(str);\r\n //generateEN(strEng);\r\n //System.out.println();\r\n generateNPAdditionalConsonants(additionalConsonants);\r\n generateENAdditionalConsonants(additionalConsonantsEng);\r\n\r\n\r\n\r\n }",
"public String toString()\n\t{\n\t\tchar [] ToStringChar = new char[length];\n recursiveToString(0, ToStringChar, firstC);\n String contents = new String(ToStringChar);\n return contents;\n\t\t\n\t}",
"public static void transform() {\n String st = BinaryStdIn.readString();\n CircularSuffixArray csa = new CircularSuffixArray(st);\n int length = csa.length();\n int[] index = new int[length];\n for (int i = 0; i < length; i++) {\n index[i] = csa.index(i);\n if (index[i] == 0) {\n BinaryStdOut.write(i);\n }\n }\n\n for (int i = 0; i < length; i++) {\n if (index[i] != 0) BinaryStdOut.write(st.charAt(index[i] - 1));\n else BinaryStdOut.write(st.charAt(length - 1));\n }\n BinaryStdOut.close();\n }",
"public static String iterate(String input, String[] subkeys){\n\n String leftInput;\n String rightInput = input.substring(32);\n String result = \"\";\n\n for (String subkey : subkeys) {\n leftInput = rightInput;\n rightInput = xor(leftInput, fFunction(rightInput, subkey));\n result = leftInput + rightInput;\n }\n\n return result;\n }",
"public static String[] prepareInput(String input) {\n\t\tArrayList<String> als = separatePhrases( input );\n\t\tif( foundQuitWord( als ) )\n\t\t{\n\t\t\t//System.out.println( \"Found\" );\n\t\t\treturn null;\n\t\t}\n\t\tString respondTo = selectPhrase( als );\n\t\tif( respondTo == null )\n\t\t{\n\t\t\t//System.out.println( \"rNull\" );\n\t\t\treturn null;\n\t\t}\n\t\tString result = swapWords( respondTo , Config.INPUT_WORD_MAP );\n\t\tif( result == null )\n\t\t{\n\t\t\t//System.out.println( \"sNull\" );\n\t\t\treturn null;\n\t\t}\n\t\telse\n\t\t\treturn result.split(\" \");\n\t}",
"public static void printAllPossibleCodes(String input) {\n\n String[] str=helper(input);\n for (int i=0;i<str.length;i++){\n System.out.println(str[i]);\n }\n\n }",
"public void permutationOfString(String s, int start, int end){\n if(start == end && !hs.contains(s)){\n hs.add(s);\n System.out.println(s);\n return;\n }\n\n for(int i=start;i<=end;i++){\n s=swap(s,i,start);\n permutationOfString(s,start+1, end);\n s=swap(s,i,start);\n }\n\n }",
"private void traceInput() {\r\n int line = 1, start = 0, stop = input.length();\r\n for (int i = 0; i < in; i++) {\r\n if (input.charAt(i) != '\\n') continue;\r\n line++;\r\n start = i + 1;\r\n }\r\n for (int i = in; i < input.length(); i++) {\r\n if (input.charAt(i) != '\\n') continue;\r\n stop = i;\r\n break;\r\n }\r\n System.out.print(\"I\" + line + \": \");\r\n System.out.print(input.substring(start, in));\r\n System.out.print(\"|\");\r\n System.out.println(input.substring(in, stop));\r\n }",
"Stream<CharSequence> toParagraphs(CharSequence text);",
"public static String toString(Character ch) {\n/* 332 */ if (ch == null) {\n/* 333 */ return null;\n/* */ }\n/* 335 */ return toString(ch.charValue());\n/* */ }",
"private static List<String> testStringGenerator(List<String> palString) {\n\t\tList<String> list = new ArrayList<>();\n\t\tfor (String pal : palString) {\n\t\t\tStringBuilder sb = new StringBuilder();\n\t\t\tfor (int i = 0; i < 10; i++) {\n\t\t\t\tsb.append(pal);\n\t\t\t\tfor (int j = 0; j < pal.length(); j++) {\n\t\t\t\t\tsb.append(j % 10);\n\t\t\t\t}\n\t\t\t}\n\t\t\tlist.add(sb.toString());\n\t\t}\n\t\treturn list;\n\t}",
"public static void main(String[] args) {\n\n\t\t\n\t\tScanner scan = new Scanner(System.in);\n\t\t\n\t\tSystem.out.println(\"\\n\\nEnter the string to find all possible arrangements (Eg : 'xyz', 'pals', 'palsj' )\\n\\n\");\n\t\t\n\t\tString str = scan.nextLine();\n\t\tscan.close();\n\n\t\tchar[] chArr = str.toCharArray();\n\t\tchar[] temp1 = new char[chArr.length];\n\n\t\ttemp1 = chArr;\n\n\t\tint len = chArr.length;\n \n \n\t\tfor (int cnt = 0; cnt < len; cnt++) {\n\t\t\t\n\t\t\tSystem.out.println(\"letter : \" + temp1[0]);\n\n\t\t\t\n\t\t\tfor (int i = 1; i < len; i++) {\n\n\t\t \ttemp1 = printString(temp1); // to print the first swap\n\t\t\t}\n\n\t\t\ttemp1 = moveString1(temp1, 0);\n\n \n\t\t}\n\n\t}",
"public String toString()\r\n/* 94: */ {\r\n/* 95:110 */ return new String(this.chars, 0, this.pos);\r\n/* 96: */ }",
"public static void main(String[] args) {\n\t\tchar cs[] = {'a','b','c','d','e','f'};\n\t\tchar copy[] = new char[cs.length];\n\t\t\n\t\tfor (int i=0; i<cs.length; i++) {\n\t\t\tcopy[i] = cs[i];\n\t\t}\n\t\tfor (char item : copy) {\n\t\t\tSystem.out.println(item);\n\t\t}\n\t}",
"public static void main(String[] args) {\n List<Character> charachterList = Arrays.asList('T', 'h', 'i', 's', ' ', 'i', 's', ' ', 'S', 'p', 'a', 'r', 't', 'a', '!');\n String strings = charachterList.stream()\n .map(c -> c.toString())\n .collect(Collectors.joining());\n\n System.out.println(strings);\n }",
"public static void main(String[] args) {\n\t\tchar[] cs = { 'n', 'e', 'u', 's', 'o', 'f', 't' };\n\n\t\tchar[] copy = new char[cs.length];\n\n\t\tfor (int i = 0; i < cs.length; i++) {\n\t\t\tcopy[i] = cs[i];\n\t\t}\n\n\t\t// ╩ń│÷copy\n\t\tfor (char item : copy) {\n\t\t\tSystem.out.println(item);\n\t\t}\n\n\t}",
"private void cleanPatterns() {\r\n \tfor (int i = this.patterns.size() - 1; i >= 0; i--) {\r\n \t\tchar[] curr = this.patterns.get(i);\r\n \t\tString s = \"\";\r\n \t\tfor (int j = 0; j < curr.length; j++) {\r\n \t\t\ts += curr[j];\r\n \t\t}\r\n \t\tif (!s.equals(this.currPattern)) {\r\n \t\t\tthis.patterns.remove(i);\r\n \t\t}\r\n \t}\r\n }",
"private static void parseSubsequences(String seq, int k, BTree myBTree) throws IOException {\n // Variables used in method\n long key;\n int counter = 0;\n int currentSequencePosition = 0;\n StringBuilder currentSubseq = new StringBuilder();\n\n // Loops while the sequence has more characters to process\n while (currentSequencePosition < seq.length()) {\n // Loops while the subsequence is not at the proper length\n while ((counter < k)) {\n // Appends the current character to the subsequence\n currentSubseq.append(seq.charAt(currentSequencePosition));\n // Increments the subsequence length counter\n counter++;\n // Increments the sequence position index\n currentSequencePosition++;\n }\n // Stores the parsed subsequence into a string;\n String parsedSubseq = currentSubseq.toString();\n // Decrements the subsequence length counter preparing for the next character\n counter--;\n\n // Unit testing print statements\n if (parseTest) {\n System.out.println(\"Parsed SubSequence: \" + parsedSubseq);\n }\n // If the subsequence contains 'n' it is not inserted into the BTree\n if (parsedSubseq.contains(\"n\")) {\n // Unit testing print statements\n if (parseTest) {\n System.out.println(\"SubSequence Contains 'n'\\n\");\n }\n // Deletes first character from subsequence to prepare for next subsequence\n currentSubseq.deleteCharAt(0);\n } else {\n // Parsed subsequence converted to key format\n key = GeneConvert.subsequenceToLong(parsedSubseq, k);\n\n // Unit testing print statements\n if (parseTest) {\n // Print out current key value\n System.out.println(\"Parsed Key: \" + key);\n // Print out conversion to check back to String\n String revert = GeneConvert.longToSubsequence(key, k);\n System.out.println(\"Reverted Key (String): \" + revert);\n System.out.println();\n }\n // Insert subsequence key into tree if not testing\n if (!parseTest) {\n myBTree.insert(myBTree.getRoot().fileOffset, key);\n }\n // Deletes first character from subsequence to prepare for next subsequence\n currentSubseq.deleteCharAt(0);\n }\n }\n // Unit testing print statements\n if (parseTest) {\n // Prints number of completed parses (current ORIGIN // DNA sequence)\n System.out.println(\"*** Completed Parse: \" + parseNum + \" ***\");\n parseNum++;\n }\n }",
"public static void main(String[] args) {\n\n char [] copy = new char[20];\n\n String misery = \"I'm your number one fan.\";\n\n misery.getChars(9, 23, copy, 0);\n\n System.out.println(copy);\n\n }",
"private void make_string(ArrayList node_block , TObj parrentNode, String prefix) {\n\t\tint seq = 0;\n\t\tint end_seq = 0;\n\t\tint prev_seq = 0;\n\t\tStringBuffer sb = new StringBuffer();\n\t\tfor(int j =0 ; j < node_block.size() ; j ++) {\n\t\t\tnode_line_data text = (node_line_data)node_block.get(j);\n\t\t\tif (j == 0) {\n\t\t\t\tseq = text.seq;\n\t\t\t\tprev_seq = text.seq; // 2014.09.16\n\t\t\t}\n\t\t\tif(j == node_block.size()-1)\n\t\t\t\tend_seq = text.seq;\n\t\t\t//sb.append(text.line_data.trim()).append(\"\\n\");\n\t\t\t// 2014.5.21\n\n\t\t\tif(prev_seq != text.seq) { // 2014.09.16\n\t\t\t\tprev_seq = text.seq;\n\t\t\t\tsb.append(\"\\n\");\n\t\t\t}\n\t\t\tsb.append(text.line_data.trim());\n\n/*\t\t\tif(j < node_block.size() -1 ) {\n\t\t\t\tsb.append(\"\\n\");\n\t\t\t}*/\n\n\n\n\n\t\t\tlocallog.trace(\" TEXT ::: \" , text.line_data);\n\t\t}\n\t\t// 2014.01.08\n\t\tif(sb.toString().trim().length() > 0) {\n\t\t\tTObj newnodedata = new TObj(_TEXT_TYPE, make_path(prefix, \"text\"), sb.toString(), 100, new TLocation(seq+1, end_seq+1, 0,0, \"\") );\n\t\t\tparrentNode.add(newnodedata);\n\t\t}\n\t\tnode_block.clear();\n\t}",
"@Override\r\n\tpublic void copy(String from, String to) {\n\t\t\r\n\t}",
"public static int[] finalPermutation(int[] inputText){\n\t\tint[] permutedText = new int[64];\n\t\tfor(int i = 0; i < 8; i++){\n\t\t\tpermutedText[i*8 + 0] = inputText[39 - i];\n\t\t\tpermutedText[i*8 + 1] = inputText[ 7 - i];\n\t\t\tpermutedText[i*8 + 2] = inputText[47 - i];\n\t\t\tpermutedText[i*8 + 3] = inputText[15 - i];\n\t\t\tpermutedText[i*8 + 4] = inputText[55 - i];\n\t\t\tpermutedText[i*8 + 5] = inputText[23 - i];\n\t\t\tpermutedText[i*8 + 6] = inputText[63 - i];\n\t\t\tpermutedText[i*8 + 7] = inputText[31 - i];\n\t\t}\n\t\treturn permutedText;\n\t}",
"@Override\n public void characters(char[] ch, int start, int length) {\n if (parentMatchLevel > 0 && matchLevel > 2) {\n bufferBagged.append(ch, start, length);\n }\n if (parentMatchLevel > 0 && matchLevel > 0) {\n bufferBagless.append(ch, start, length);\n }\n }",
"public void performCopy() {\n \t\ttext.copy();\n \t}",
"abstract CharArraySet build();",
"private void _writeString(char[] text, int offset, int len)\n/* */ throws IOException\n/* */ {\n/* 1049 */ if (this._characterEscapes != null) {\n/* 1050 */ _writeStringCustom(text, offset, len);\n/* 1051 */ return;\n/* */ }\n/* 1053 */ if (this._maximumNonEscapedChar != 0) {\n/* 1054 */ _writeStringASCII(text, offset, len, this._maximumNonEscapedChar);\n/* 1055 */ return;\n/* */ }\n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* 1062 */ len += offset;\n/* 1063 */ int[] escCodes = this._outputEscapes;\n/* 1064 */ int escLen = escCodes.length;\n/* 1065 */ while (offset < len) {\n/* 1066 */ int start = offset;\n/* */ for (;;)\n/* */ {\n/* 1069 */ char c = text[offset];\n/* 1070 */ if ((c < escLen) && (escCodes[c] != 0)) {\n/* */ break;\n/* */ }\n/* 1073 */ offset++; if (offset >= len) {\n/* */ break;\n/* */ }\n/* */ }\n/* */ \n/* */ \n/* 1079 */ int newAmount = offset - start;\n/* 1080 */ if (newAmount < 32)\n/* */ {\n/* 1082 */ if (this._outputTail + newAmount > this._outputEnd) {\n/* 1083 */ _flushBuffer();\n/* */ }\n/* 1085 */ if (newAmount > 0) {\n/* 1086 */ System.arraycopy(text, start, this._outputBuffer, this._outputTail, newAmount);\n/* 1087 */ this._outputTail += newAmount;\n/* */ }\n/* */ } else {\n/* 1090 */ _flushBuffer();\n/* 1091 */ this._writer.write(text, start, newAmount);\n/* */ }\n/* */ \n/* 1094 */ if (offset >= len) {\n/* */ break;\n/* */ }\n/* */ \n/* 1098 */ char c = text[(offset++)];\n/* 1099 */ _appendCharacterEscape(c, escCodes[c]);\n/* */ }\n/* */ }",
"public static void main(String...args){\n\t\tScanner scan = new Scanner(System.in);\r\n\t\tString s = scan.nextLine();\r\n//\t\tString str = s.replaceAll(\"\\\\s\", \"\"); // removing white space from string\r\n//\t\tSystem.out.println(str);\r\n\t\tchar[] ch = s.toCharArray();\r\n\t\tSet<Character> charSet = new HashSet<>();\r\n\t\tfor(char c: ch){\r\n\t\t\t\r\n\t\t\tcharSet.add(c);\t\r\n\t\t}\r\n\t\t\r\n//\t\tStringBuffer sb = new StringBuffer();\r\n\t\tfor(Character character : charSet){\r\n//\t\t\tsb.append(character);\r\n\t\t\tSystem.out.print(character);\r\n\t\t}\r\n//\t\tSystem.out.println(sb.toString());\r\n\t\t\r\n\t}",
"private static char recompose(RecomposeArgs paramRecomposeArgs, int paramInt, UnicodeSet paramUnicodeSet)\n/* */ {\n/* 1315 */ int i3 = 0;int i4 = 0;\n/* */ \n/* */ \n/* */ \n/* 1319 */ int[] arrayOfInt = new int[2];\n/* 1320 */ int i7 = -1;\n/* 1321 */ int n = 0;\n/* 1322 */ int i6 = 0;\n/* 1323 */ int i5 = 0;\n/* */ \n/* 1325 */ NextCombiningArgs localNextCombiningArgs = new NextCombiningArgs(null);\n/* 1326 */ localNextCombiningArgs.source = paramRecomposeArgs.source;\n/* */ \n/* 1328 */ localNextCombiningArgs.cc = '\\000';\n/* 1329 */ localNextCombiningArgs.c2 = '\\000';\n/* */ for (;;)\n/* */ {\n/* 1332 */ localNextCombiningArgs.start = paramRecomposeArgs.start;\n/* 1333 */ int m = getNextCombining(localNextCombiningArgs, paramRecomposeArgs.limit, paramUnicodeSet);\n/* 1334 */ int i1 = localNextCombiningArgs.combiningIndex;\n/* 1335 */ paramRecomposeArgs.start = localNextCombiningArgs.start;\n/* */ \n/* 1337 */ if (((m & 0x80) != 0) && (i7 != -1)) { int i;\n/* 1338 */ int j; int k; if ((i1 & 0x8000) != 0)\n/* */ {\n/* */ \n/* */ \n/* */ \n/* 1343 */ if (((paramInt & 0x100) != 0) || (i5 == 0)) {\n/* 1344 */ i = -1;\n/* 1345 */ m = 0;\n/* 1346 */ localNextCombiningArgs.c2 = paramRecomposeArgs.source[i7];\n/* 1347 */ if (i1 == 65522)\n/* */ {\n/* */ \n/* */ \n/* 1351 */ localNextCombiningArgs.c2 = ((char)(localNextCombiningArgs.c2 - 'ᄀ'));\n/* 1352 */ if (localNextCombiningArgs.c2 < '\\023') {\n/* 1353 */ i = paramRecomposeArgs.start - 1;\n/* 1354 */ localNextCombiningArgs.c = ((char)(44032 + (localNextCombiningArgs.c2 * '\\025' + (localNextCombiningArgs.c - 'ᅡ')) * 28));\n/* */ \n/* 1356 */ if ((paramRecomposeArgs.start != paramRecomposeArgs.limit) && ((localNextCombiningArgs.c2 = (char)(paramRecomposeArgs.source[paramRecomposeArgs.start] - 'ᆧ')) < '\\034'))\n/* */ {\n/* */ \n/* 1359 */ paramRecomposeArgs.start += 1; NextCombiningArgs \n/* 1360 */ tmp261_259 = localNextCombiningArgs;tmp261_259.c = ((char)(tmp261_259.c + localNextCombiningArgs.c2));\n/* */ }\n/* */ else {\n/* 1363 */ m = 64;\n/* */ }\n/* 1365 */ if (!nx_contains(paramUnicodeSet, localNextCombiningArgs.c)) {\n/* 1366 */ paramRecomposeArgs.source[i7] = localNextCombiningArgs.c;\n/* */ }\n/* */ else {\n/* 1369 */ if (!isHangulWithoutJamoT(localNextCombiningArgs.c)) {\n/* 1370 */ paramRecomposeArgs.start -= 1;\n/* */ }\n/* */ \n/* 1373 */ i = paramRecomposeArgs.start;\n/* */ \n/* */ \n/* */ \n/* */ }\n/* */ \n/* */ \n/* */ \n/* */ \n/* */ }\n/* */ \n/* */ \n/* */ \n/* */ \n/* */ }\n/* 1388 */ else if (isHangulWithoutJamoT(localNextCombiningArgs.c2)) {\n/* 1389 */ NextCombiningArgs tmp351_349 = localNextCombiningArgs;tmp351_349.c2 = ((char)(tmp351_349.c2 + (localNextCombiningArgs.c - 'ᆧ')));\n/* 1390 */ if (!nx_contains(paramUnicodeSet, localNextCombiningArgs.c2)) {\n/* 1391 */ i = paramRecomposeArgs.start - 1;\n/* 1392 */ paramRecomposeArgs.source[i7] = localNextCombiningArgs.c2;\n/* */ }\n/* */ }\n/* */ \n/* */ \n/* 1397 */ if (i != -1)\n/* */ {\n/* 1399 */ j = i;\n/* 1400 */ k = paramRecomposeArgs.start;\n/* 1401 */ while (k < paramRecomposeArgs.limit) {\n/* 1402 */ paramRecomposeArgs.source[(j++)] = paramRecomposeArgs.source[(k++)];\n/* */ }\n/* 1404 */ paramRecomposeArgs.start = i;\n/* 1405 */ paramRecomposeArgs.limit = j;\n/* */ }\n/* */ \n/* 1408 */ localNextCombiningArgs.c2 = '\\000';\n/* */ \n/* 1410 */ if (m != 0)\n/* */ {\n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* 1417 */ if (paramRecomposeArgs.start == paramRecomposeArgs.limit) {\n/* 1418 */ return (char)i5;\n/* */ }\n/* */ \n/* */ \n/* 1422 */ n = 65520;\n/* */ \n/* */ \n/* */ \n/* */ }\n/* */ \n/* */ \n/* */ \n/* */ \n/* */ }\n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ }\n/* 1438 */ else if (((n & 0x8000) == 0) && ((paramInt & 0x100) != 0 ? (i5 == localNextCombiningArgs.cc) || (i5 != 0) : (i5 < localNextCombiningArgs.cc) || (i5 == 0)))\n/* */ {\n/* */ int i2;\n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* 1446 */ if (0 != (i2 = combine(combiningTable, n, i1, arrayOfInt)))\n/* */ {\n/* */ \n/* 1449 */ if (!nx_contains(paramUnicodeSet, (char)i3, (char)i4))\n/* */ {\n/* 1451 */ i3 = arrayOfInt[0];\n/* 1452 */ i4 = arrayOfInt[1];\n/* */ \n/* */ \n/* */ \n/* 1456 */ i = localNextCombiningArgs.c2 == 0 ? paramRecomposeArgs.start - 1 : paramRecomposeArgs.start - 2;\n/* */ \n/* */ \n/* 1459 */ paramRecomposeArgs.source[i7] = ((char)i3);\n/* 1460 */ if (i6 != 0) {\n/* 1461 */ if (i4 != 0)\n/* */ {\n/* 1463 */ paramRecomposeArgs.source[(i7 + 1)] = ((char)i4);\n/* */ }\n/* */ else\n/* */ {\n/* 1467 */ i6 = 0;\n/* 1468 */ j = i7 + 1;\n/* 1469 */ k = j + 1;\n/* 1470 */ while (k < i) {\n/* 1471 */ paramRecomposeArgs.source[(j++)] = paramRecomposeArgs.source[(k++)];\n/* */ }\n/* 1473 */ i--;\n/* */ }\n/* 1475 */ } else if (i4 != 0) {\n/* 1476 */ i6 = 1;\n/* 1477 */ paramRecomposeArgs.source[(i7 + 1)] = ((char)i4);\n/* */ }\n/* */ \n/* */ \n/* */ \n/* */ \n/* 1483 */ if (i < paramRecomposeArgs.start) {\n/* 1484 */ j = i;\n/* 1485 */ k = paramRecomposeArgs.start;\n/* 1486 */ while (k < paramRecomposeArgs.limit) {\n/* 1487 */ paramRecomposeArgs.source[(j++)] = paramRecomposeArgs.source[(k++)];\n/* */ }\n/* 1489 */ paramRecomposeArgs.start = i;\n/* 1490 */ paramRecomposeArgs.limit = j;\n/* */ }\n/* */ \n/* */ \n/* */ \n/* */ \n/* 1496 */ if (paramRecomposeArgs.start == paramRecomposeArgs.limit) {\n/* 1497 */ return (char)i5;\n/* */ }\n/* */ \n/* */ \n/* 1501 */ if (i2 > 1) {\n/* 1502 */ n = getCombiningIndexFromStarter((char)i3, (char)i4); continue;\n/* */ }\n/* */ \n/* 1505 */ i7 = -1;\n/* */ \n/* */ \n/* */ \n/* 1509 */ continue;\n/* */ }\n/* */ }\n/* */ }\n/* */ }\n/* 1514 */ i5 = localNextCombiningArgs.cc;\n/* 1515 */ if (paramRecomposeArgs.start == paramRecomposeArgs.limit) {\n/* 1516 */ return (char)i5;\n/* */ }\n/* */ \n/* */ \n/* 1520 */ if (localNextCombiningArgs.cc == 0)\n/* */ {\n/* 1522 */ if ((m & 0x40) != 0)\n/* */ {\n/* 1524 */ if (localNextCombiningArgs.c2 == 0) {\n/* 1525 */ i6 = 0;\n/* 1526 */ i7 = paramRecomposeArgs.start - 1;\n/* */ } else {\n/* 1528 */ i6 = 0;\n/* 1529 */ i7 = paramRecomposeArgs.start - 2;\n/* */ }\n/* 1531 */ n = i1;\n/* */ }\n/* */ else {\n/* 1534 */ i7 = -1;\n/* */ }\n/* 1536 */ } else if ((paramInt & 0x2000) != 0)\n/* */ {\n/* 1538 */ i7 = -1;\n/* */ }\n/* */ }\n/* */ }",
"private Deque<Character> dequeFrom(CharSequence in) {\n if (in == null) {\n return null;\n }\n\n final Deque<Character> out = new ArrayDeque<>(in.length());\n\n for (int i = in.length() - 1; i >= 0; i--) {\n out.push(in.charAt(i));\n }\n\n return out;\n }",
"public static void genPerms(String pre, String str, int k, int len, Set<String> hSet) {\n if (k == len) {\n hSet.add(pre + str);\n }\n\n for (int i = 0; i < str.length(); i++) {\n String x = pre + str.charAt(i);\n String y = str.substring(0, i) + str.substring(i + 1);\n genPerms(x, y, k + 1, len, hSet);\n }\n }",
"private static void permutation(String prefix, String str) {\n int n = str.length();\n if (n == 0) System.out.println(prefix);\n else {\n for (int i = 0; i < n; i++){\n \t System.out.println(\"prefix+str.char at i \" +prefix + str.charAt(i)+\" substring1 \"+str.substring(0, i)+\" substring2 \"+str.substring(i+1, n));\n permutation(prefix + str.charAt(i), str.substring(0, i) + str.substring(i+1, n));}\n }\n}",
"private static String[] resetStringArray() {\n String[] st = new String[L_MAX];\n L = 2 << 8;\n W = 9;\n int i;\n // initialize symbol table with all 1-character strings\n for (i = 0; i < R; i++)\n st[i] = \"\" + (char) i;\n st[i++] = \"\"; // (unused) lookahead for EOF\n return st;\n }",
"private static String readAll(Reader rd,boolean graph) throws IOException {\n StringBuilder sb = new StringBuilder();\n int cp;\n int count = 0;\n while ((cp = rd.read()) != -1) {\n count++;\n sb.append((char) cp);\n }\n //System.out.println(sb.toString());\n if(graph == false) {\n System.out.println(sb.deleteCharAt(0));\n System.out.println(sb.deleteCharAt(count - 2));\n }\n return sb.toString();\n }",
"public static void permutationRecursion(String str, String ans) {\n\t\tif (str.length() == 0) {\r\n\t\t\tSystem.out.print(ans + \" \");\r\n\t\t\tlistPermutationRecursion.add(ans);\r\n\t\t\treturn;\r\n\t\t}\r\n\r\n\t\tfor (int i = 0; i < str.length(); i++) {\r\n\r\n\t\t\t// ith character of str\r\n\t\t\tchar ch = str.charAt(i);\r\n\r\n\t\t\t// Rest of the string after excluding\r\n\t\t\t// the ith character\r\n\t\t\tString temp = str.substring(0, i) + str.substring(i + 1);\r\n\r\n\t\t\t// Recurvise call\r\n\t\t\tpermutationRecursion(temp, ans + ch);\r\n\t\t}\r\n\r\n\t}",
"public static ArrayList<String> permutations(String s) {\r\n ArrayList<String> list = new ArrayList<>();\r\n permutations(\"\", s, list);\r\n return list;\r\n }",
"public SequenceCharMapper(String fromChars, String toChars) {\r\n if(fromChars == null) fromChars = \"\";\r\n if(toChars == null) toChars = \"\";\r\n if(fromChars.length() != toChars.length()) throw new IllegalArgumentException(\"Lenght mismatch for CharMapper from: \" + fromChars.length() + \" to: \" + toChars.length());\r\n this.fromChars = fromChars.toCharArray();\r\n this.toChars = toChars.toCharArray();\r\n this.removeChars = new char[0];\r\n }"
] |
[
"0.5258346",
"0.5037937",
"0.49831775",
"0.48374662",
"0.4815139",
"0.4740667",
"0.46018326",
"0.45827252",
"0.45482436",
"0.45444378",
"0.45330396",
"0.451002",
"0.4502527",
"0.45018667",
"0.4357434",
"0.43540052",
"0.43173975",
"0.43123958",
"0.43091682",
"0.43082005",
"0.4307556",
"0.4293587",
"0.42827678",
"0.42711878",
"0.4258838",
"0.42581752",
"0.42547238",
"0.4254236",
"0.42425758",
"0.4241507",
"0.4233197",
"0.42310417",
"0.42303795",
"0.422921",
"0.4228994",
"0.4222352",
"0.42072144",
"0.42071727",
"0.41949543",
"0.41802508",
"0.41799954",
"0.4174609",
"0.41584614",
"0.41523504",
"0.41493255",
"0.41334385",
"0.41307658",
"0.41304806",
"0.4127473",
"0.41227183",
"0.41222903",
"0.41192362",
"0.4110797",
"0.4106486",
"0.41064724",
"0.41025513",
"0.40980878",
"0.40980878",
"0.40791386",
"0.40777245",
"0.4069643",
"0.4067286",
"0.40595186",
"0.40509918",
"0.4048631",
"0.4047012",
"0.40434816",
"0.4043419",
"0.40390036",
"0.40250677",
"0.4017858",
"0.4017237",
"0.40152094",
"0.401",
"0.4003701",
"0.40021127",
"0.40017954",
"0.4001561",
"0.39955395",
"0.3994342",
"0.39892343",
"0.39884013",
"0.3978097",
"0.39767864",
"0.39765579",
"0.39659473",
"0.3963056",
"0.39605978",
"0.39575246",
"0.39567825",
"0.3955707",
"0.39490908",
"0.39451265",
"0.3943674",
"0.39419255",
"0.39363295",
"0.39340684",
"0.39334106",
"0.39270058",
"0.39220223"
] |
0.6378579
|
0
|
Converts a character sequence to a string.
|
public static String charSequenceToString(final CharSequence parInput) {
if (parInput instanceof String || parInput == null) {
return (String) parInput;
}
final char[] myChars = new char[parInput.length()];
CharBuffer.wrap(parInput).get(myChars);
return new String(myChars);
}
|
{
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
}
|
[
"private String chars2String(char[] chars, int pos, int length) {\r\n\t\t\tStringBuilder sb = new StringBuilder();\r\n\t\t\tfor (int i = pos + 1; i < pos + length - 1; ++i) {// omit initial and final \"\r\n\t\t\t\tchar ch = chars[i];\r\n\t\t\t\tif (ch == '\\\\') { // handle escape\r\n\t\t\t\t\ti++;\r\n\t\t\t\t\tch = chars[i];\r\n\t\t\t\t\tswitch (ch) {\r\n\t\t\t\t\tcase 'b':\r\n\t\t\t\t\t\tsb.append('\\b');\r\n\t\t\t\t\t\tbreak;\r\n\t\t\t\t\tcase 't':\r\n\t\t\t\t\t\tsb.append('\\t');\r\n\t\t\t\t\t\tbreak;\r\n\t\t\t\t\tcase 'f':\r\n\t\t\t\t\t\tsb.append('\\f');\r\n\t\t\t\t\t\tbreak;\r\n\t\t\t\t\tcase 'r':\r\n\t\t\t\t\t\tsb.append('\\r'); //for completeness, line termination chars not allowed in String literals\r\n\t\t\t\t\t\tbreak;\r\n\t\t\t\t\tcase 'n':\r\n\t\t\t\t\t\tsb.append('\\n'); //for completeness, line termination chars not allowed in String literals\r\n\t\t\t\t\t\tbreak;\r\n\t\t\t\t\tcase '\\\"':\r\n\t\t\t\t\t\tsb.append('\\\"');\r\n\t\t\t\t\t\tbreak;\r\n\t\t\t\t\tcase '\\'':\r\n\t\t\t\t\t\tsb.append('\\'');\r\n\t\t\t\t\t\tbreak;\r\n\t\t\t\t\tcase '\\\\':\r\n\t\t\t\t\t\tsb.append('\\\\');\r\n\t\t\t\t\t\tbreak;\r\n\t\t\t\t\tdefault:\r\n\t\t\t\t\t\tassert false;\r\n\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t}\r\n\t\t\t\t} else {\r\n\t\t\t\t\tsb.append(ch);\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\treturn sb.toString();\r\n\t\t}",
"public static String toString(char ch) {\n/* 308 */ if (ch < '') {\n/* 309 */ return CHAR_STRING_ARRAY[ch];\n/* */ }\n/* 311 */ return new String(new char[] { ch });\n/* */ }",
"public static String toString(char value) {\n return String.valueOf(value);\n }",
"protected String toString(char c) {\n\t\t\treturn Character.toString(c);\n\t\t}",
"public String listToString(ArrayList<Character> sequence) {\n \tchar[] cs = new char[sequence.size()];\n \tfor(int i = 0; i < cs.length; i++) {\n \t\tcs[i] = sequence.get(i);\n \t}\n \treturn new String(cs);\n }",
"public static String charToString(char c) \n\t{\n\t\tswitch (c) \n\t\t{\n\t\tcase '0':\n\t\t\treturn \"36\";\n\t\tcase '1':\n\t\t\treturn \"01\";\n\t\tcase '2':\n\t\t\treturn \"02\";\n\t\tcase '3':\n\t\t\treturn \"03\";\n\t\tcase '4':\n\t\t\treturn \"04\";\n\t\tcase '5':\n\t\t\treturn \"05\";\n\t\tcase '6':\n\t\t\treturn \"06\";\n\t\tcase '7':\n\t\t\treturn \"07\";\n\t\tcase '8':\n\t\t\treturn \"08\";\n\t\tcase '9':\n\t\t\treturn \"09\";\n\t\tcase 'A':\n\t\t\treturn \"10\";\n\t\tcase 'B':\n\t\t\treturn \"11\";\n\t\tcase 'C':\n\t\t\treturn \"12\";\n\t\tcase 'D':\n\t\t\treturn \"13\";\n\t\tcase 'E':\n\t\t\treturn \"14\";\n\t\tcase 'F':\n\t\t\treturn \"15\";\n\t\tcase 'G':\n\t\t\treturn \"16\";\n\t\tcase 'H':\n\t\t\treturn \"17\";\n\t\tcase 'I':\n\t\t\treturn \"18\";\n\t\tcase 'J':\n\t\t\treturn \"19\";\n\t\tcase 'K':\n\t\t\treturn \"20\";\n\t\tcase 'L':\n\t\t\treturn \"21\";\n\t\tcase 'M':\n\t\t\treturn \"22\";\n\t\tcase 'N':\n\t\t\treturn \"23\";\n\t\tcase 'O':\n\t\t\treturn \"24\";\n\t\tcase 'P':\n\t\t\treturn \"25\";\n\t\tcase 'Q':\n\t\t\treturn \"26\";\n\t\tcase 'R':\n\t\t\treturn \"27\";\n\t\tcase 'S':\n\t\t\treturn \"28\";\n\t\tcase 'T':\n\t\t\treturn \"29\";\n\t\tcase 'U':\n\t\t\treturn \"30\";\n\t\tcase 'V':\n\t\t\treturn \"31\";\n\t\tcase 'W':\n\t\t\treturn \"32\";\n\t\tcase 'X':\n\t\t\treturn \"33\";\n\t\tcase 'Y':\n\t\t\treturn \"34\";\n\t\tcase 'Z':\n\t\t\treturn \"35\";\n\t\tcase '-':\n\t\t\treturn \"37\";\n\t\tdefault:\n\t\t\treturn \"00\";\n\t\t}\n\t}",
"public String getCharacterSequence();",
"public static String buildString(char character, int length) {\r\n\t\tStringBuilder sb = new StringBuilder(length);\r\n\t\tfor(int index = length - 1; index >= 0; index--)\r\n\t\t\tsb.append(character);\r\n\t\treturn sb.toString();\r\n\t}",
"public static char[] toChars(final CharSequence sequence) {\n Objects.requireNonNull(sequence);\n\n final int length = sequence.length();\n char[] chars = new char[length];\n for (int i = 0; i < length; i++) {\n chars[i] = sequence.charAt(i);\n }\n return chars;\n }",
"public static String makeStringOfChars(char chChar, int intLength)\r\n {\r\n if (intLength <= 0) \r\n {\r\n return \"\";\r\n }\r\n char ach[] = new char[intLength];\r\n for (int i=0; i<intLength; i++)\r\n {\r\n ach[i] = chChar;\r\n }\r\n return new String(ach);\r\n }",
"public static String toString(char[] a) {\n String string = new String(a);\n return string;\n }",
"public static String toString(Character ch) {\n/* 332 */ if (ch == null) {\n/* 333 */ return null;\n/* */ }\n/* 335 */ return toString(ch.charValue());\n/* */ }",
"private String composeCharacterString(String string) {\n return null;\r\n }",
"String escChr(char pChar) throws Exception;",
"private String getCharacterString()\n {\n String returnString = \"Characters:\\n\\t\";\n Set<String> keys = characters.keySet();\n if(characters.size() <= 0) {\n returnString += \"[None]\";\n return returnString;\n }\n for(String character : keys) {\n returnString += \" [\" + character + \"]\";\n }\n return returnString;\n }",
"public char[] toChars() {\n\t\tchar[] chars = new char[this.s.length()];\n\t\tfor (int i = 0; i < chars.length; i++) {\n\t\t\tchars[i] = this.s.charAt(i);\n\t\t}\n\t\treturn chars;\n\t}",
"public java.lang.String getCharacterString()\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(CHARACTERSTRING$1, 0);\n if (target == null)\n {\n return null;\n }\n return target.getStringValue();\n }\n }",
"public static void main(String[] args) {\n List<Character> chars = Arrays.asList('K', 'I', 'T', 'T', 'E', 'N', '.');\n String charsAsString = chars.stream()\n .map(character -> character.toString())\n .collect(Collectors.joining());\n System.out.println(charsAsString);\n }",
"public String encode() {\n\t\tString coded = \"\";\n\t\tfor (Character c: this.input.toCharArray()) {\n\t\t\tcoded += this.mapping.get(c);\n\t\t}\n\t\treturn coded;\n\t}",
"public String toString()\r\n/* 94: */ {\r\n/* 95:110 */ return new String(this.chars, 0, this.pos);\r\n/* 96: */ }",
"String charWrite();",
"@Override\n public String toString() {\n return \"\" + character;\n }",
"public static String toString(CharSequence cs) {\n\t\treturn cs == null ? null : cs.toString();\n\t}",
"public String toString()\n\t{\n\t\tchar [] ToStringChar = new char[length];\n recursiveToString(0, ToStringChar, firstC);\n String contents = new String(ToStringChar);\n return contents;\n\t\t\n\t}",
"public static String createString(char[] charArray) {\r\n return String.copyValueOf(charArray);\r\n }",
"public static String reverseComplementSequence(String sequence) {\n\t\tStringBuilder buffer = new StringBuilder(sequence);\n\t\tbuffer.reverse();\n\t\tfor (int i = 0; i < buffer.length(); ++i) {\n\t\t\tswitch (buffer.charAt(i)) {\n\t\t\tcase 'A':\n\t\t\t\tbuffer.setCharAt(i, 'T');\n\t\t\t\tbreak;\n\t\t\tcase 'C':\n\t\t\t\tbuffer.setCharAt(i, 'G');\n\t\t\t\tbreak;\n\t\t\tcase 'G':\n\t\t\t\tbuffer.setCharAt(i, 'C');\n\t\t\t\tbreak;\n\t\t\tcase 'T':\n\t\t\t\tbuffer.setCharAt(i, 'A');\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\t\treturn buffer.toString();\n\t}",
"public org.apache.xmlbeans.XmlString xgetCharacterString()\n {\n synchronized (monitor())\n {\n check_orphaned();\n org.apache.xmlbeans.XmlString target = null;\n target = (org.apache.xmlbeans.XmlString)get_store().find_element_user(CHARACTERSTRING$1, 0);\n return target;\n }\n }",
"public static String convertText(String s) {\r\n StringCharacterIterator stringcharacteriterator = new StringCharacterIterator(s);\r\n StringBuffer stringbuffer = new StringBuffer();\r\n int ai[] = new int[s.length()];\r\n int i = 0;\r\n int j = 0;\r\n for(char c = stringcharacteriterator.first(); c != '\\uFFFF'; c = stringcharacteriterator.next())\r\n if(c == '%')\r\n {\r\n c = stringcharacteriterator.next();\r\n if(c != '%')\r\n {\r\n stringbuffer.append('%');\r\n c = stringcharacteriterator.previous();\r\n } else\r\n {\r\n c = stringcharacteriterator.next();\r\n switch(c)\r\n {\r\n case 37: // '%'\r\n stringbuffer.append('%');\r\n break;\r\n\r\n case 80: // 'P'\r\n case 112: // 'p'\r\n stringbuffer.append('\\361');\r\n break;\r\n\r\n case 67: // 'C'\r\n case 99: // 'c'\r\n stringbuffer.append('\\355');\r\n break;\r\n\r\n case 68: // 'D'\r\n case 100: // 'd'\r\n stringbuffer.append('\\u00b0');\r\n break;\r\n\r\n case 85: // 'U'\r\n case 117: // 'u'\r\n ai[stringbuffer.length()] ^= 1;\r\n i++;\r\n break;\r\n\r\n case 79: // 'O'\r\n case 111: // 'o'\r\n ai[stringbuffer.length()] ^= 2;\r\n j++;\r\n break;\r\n\r\n default:\r\n if(c >= '0' && c <= '9')\r\n {\r\n int k = 3;\r\n char c1 = (char)(c - 48);\r\n for(c = stringcharacteriterator.next(); c >= '0' && c <= '9' && --k > 0; c = stringcharacteriterator.next())\r\n c1 = (char)(10 * c1 + (c - 48));\r\n\r\n stringbuffer.append(c1);\r\n }\r\n c = stringcharacteriterator.previous();\r\n break;\r\n }\r\n }\r\n } else\r\n if(c == '^')\r\n {\r\n c = stringcharacteriterator.next();\r\n if(c == ' ')\r\n stringbuffer.append('^');\r\n } else\r\n {\r\n stringbuffer.append(c);\r\n }\r\n s = Unicode.char2DOS437(stringbuffer, 2, '?');\r\n\r\n\t\tString ss = s;\r\n\t\treturn ss;\r\n\t}",
"private String asString(ByteBuffer buffer) {\n\t\tByteBuffer copy = buffer.duplicate();\n\t\tbyte[] bytes = new byte[copy.remaining()];\n\t\tcopy.get(bytes);\n\t\treturn new String(bytes, StandardCharsets.UTF_8);\n\t}",
"@Override\n\tchar toChar() {\n\t\treturn 'R';\n\t}",
"private void convertToString(String s)\n\t{\n\t\tchar chars[] = s.toCharArray();\n\t\tfor(int i = 0; i < chars.length; i+=3)\n\t\t{\n\t\t\tString temp = \"\";\n\t\t\ttemp += chars[i];\n\t\t\ttemp += chars[i+1];\n\t\t\tif(chars[i] < '3')\n\t\t\t{\n\t\t\t\ttemp += chars[i+2];\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\ti -= 1;\n\t\t\t}\n\t\t\t\n\t\t\tif(!temp.equals(\"256\"))\n\t\t\t{\n\t\t\t\tmyDecryptedMessage += (char)(Integer.parseInt(temp));\n\t\t\t}\n\t\t}\n\t}",
"public static char toChar(final String s) throws StringValueConversionException\n\t{\n\t\tif (s != null)\n\t\t{\n\t\t\tif (s.length() == 1)\n\t\t\t{\n\t\t\t\treturn s.charAt(0);\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\tthrow new StringValueConversionException(\"Expected single character, not \\\"\" + s\n\t\t\t\t\t\t+ \"\\\"\");\n\t\t\t}\n\t\t}\n\n\t\tthrow new StringValueConversionException(\"Character value was null\");\n\t}",
"private static String getUniqueString() {\n char[] buf = new char[NUM_CHARS];\n\n carry(lastString, buf.length - 1);\n for (int i = 0; i < buf.length; i++) {\n buf[i] = CHARS.charAt(lastString[i]);\n }\n return new String(buf);\n }",
"private String toNormalizedString(final char[] ch, final int start, final int length) {\n\t\tfor (int index = start; index < length; index++) {\r\n\t\t\tif (ch[index] == NON_BREAKING_SPACE) {\r\n\t\t\t\tch[index] = ' ';\r\n\t\t\t}\r\n\t\t}\r\n\t\t\r\n\t\treturn new String(ch, start, length);\r\n\t}",
"static public String charToHex(char c) {\n\t\tbyte hi = (byte) (c >>> 8);\n\t\tbyte lo = (byte) (c & 0xff);\n\t\treturn byteToHex(hi) + byteToHex(lo);\n\t}",
"public CharSequence jaso() {\n if(jaso != null) return jaso;\n\n int preSbLength = 0;\n StringBuilder sb = new StringBuilder();\n for(int i=from; i<to; ++i) {\n char ch = text.charAt(i);\n JasoParser.parseCharAsString(ch, sb);\n\n int curSbLength = sb.length() - preSbLength;\n if(curSbLength == 0) continue;\n\n for(int s=0; s<curSbLength; ++s) {\n jasoToSyllablePosition.add(i);\n }\n\n preSbLength = sb.length();\n }\n\n jaso = sb.toString();\n return jaso;\n }",
"@Override\n public void convertCharacter(char character, StringBuilder outputTextBuilder) {\n }",
"public static String randomString(Random r, char from, char to, int length) {\n return r.ints(from, to + 1).limit(length).mapToObj(x -> Character.toString((char)x)).collect(joining());\n }",
"public static String getUnicode(char ch) {\n\t\treturn \"\\\\u\" + Integer.toHexString(ch | 0x10000).substring(1);\n\t}",
"public static void main(String[] args) {\nScanner scn=new Scanner(System.in);\nSystem.out.print(\"½Ð¿é¤J¤å¦r\");\nString str=scn.nextLine();\nchar[]data=str.toCharArray();\nint len=str.length();\nchar[]data1=new char[len];\nfor(int i=0;i<len;i++){\n\tdata1[i]=data[len-i-1];\n}\nString str2=new String(data1);\nSystem.out.println(data1);\n\t}",
"String asString();",
"public String asString();",
"public static String generateString(String characters, int length) {\r\n Random rng = new Random();\r\n char[] text = new char[length];\r\n for (int i = 0; i < length; i++)\r\n {\r\n text[i] = characters.charAt(rng.nextInt(characters.length()));\r\n }\r\n return new String(text);\r\n }",
"char toChar(int index) {\n if (index >= 0 && index < size()) {\n return _chars[index];\n } else {\n throw new EnigmaException(\"Index out of bounds.\");\n }\n }",
"private static String escape(String value, String chars, String escapeSequence) {\n\t\tString escaped = value;\n\t\t\n\t\tif (escaped == null) {\n\t\t\treturn \"\";\n\t\t}\n\t\t\n\t\tfor (char ch : chars.toCharArray()) {\n\t\t\tescaped = escaped.replaceAll(String.valueOf(ch), escapeSequence + ch);\n\t\t}\n\t\n\t\treturn escaped;\n\t}",
"char toChar(int index) {\n if (index > _chars.length() || index < 0) {\n throw new EnigmaException(\"Alpha.toChar: Index out of range.\");\n }\n return _chars.charAt(index);\n }",
"char toChar(int index) {\n return _chars.charAt(index);\n }",
"public String Entitatequivalent(char c) {\n switch (c) {\r\n case 'A':\r\n return \"Autor\";\r\n case 'P':\r\n return \"Paper\";\r\n case 'C':\r\n return \"Conferencia\";\r\n case 'T':\r\n return \"Termino\";\r\n }\r\n return null;\r\n }",
"@Test\n public void testChars() {\n LOGGER.info(\"testChars\");\n final String expected = \"Hello\";\n final AtomString atomString1 = new AtomString(expected);\n final String actual = atomString1.chars()\n .mapToObj(i -> new String(new int[]{i}, 0, 1))\n .collect(joining());\n assertEquals(expected, actual);\n }",
"java.lang.String getCsStr();",
"public void setCharacterSequence(String chars);",
"protected static String generateString(int length) {\n String characters = \"0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ\";\n Random rnd = new Random(System.nanoTime());\n char[] text = new char[length];\n for (int i = 0; i < length; i++) {\n text[i] = characters.charAt(rnd.nextInt(characters.length()));\n }\n return new String(text);\n }",
"public static String deCharArrayAString(char[] array) {\r\n\t\tString aux = \"\";\r\n\t\tfor (int i = 0; i < array.length; i++) {\r\n\t\t\taux = aux + array[i];\r\n\t\t}\r\n\t\treturn aux;\r\n\t}",
"public static char toChar(String str) {\n/* 173 */ if (StringUtils.isEmpty(str)) {\n/* 174 */ throw new IllegalArgumentException(\"The String must not be empty\");\n/* */ }\n/* 176 */ return str.charAt(0);\n/* */ }",
"String asString ();",
"private char toChar(int u) {\n\t\t \n\t\treturn (char)(u + 64);\n\t}",
"public static Character toCharacterObject(String str) {\n/* 109 */ if (StringUtils.isEmpty(str)) {\n/* 110 */ return null;\n/* */ }\n/* 112 */ return Character.valueOf(str.charAt(0));\n/* */ }",
"public String generateString() {\n\t\tint maxLength = 9;\n\t\tRandom random = new Random();\n\t\tStringBuilder builder = new StringBuilder(maxLength);\n\n\t\t// Looping 9 times, one for each char\n\t\tfor (int i = 0; i < maxLength; i++) {\n\t\t\tbuilder.append(ALPHABET.charAt(random.nextInt(ALPHABET.length())));\n\t\t}\n\t\t// Generates a random ID that has may have a quintillion different combinations\n\t\t// (1/64^9)\n\t\treturn builder.toString();\n\t}",
"public static String getRandomString(int length) {\r\n\t\tRandom rand = new Random();\r\n\t\tStringBuffer sb = new StringBuffer();\r\n\t\tfor (int i = 0; i < length; i++) {\r\n\t\t\tint pos = rand.nextInt(charset.length());\r\n\t\t\tsb.append(charset.charAt(pos));\r\n\t\t}\r\n\t\treturn sb.toString();\r\n\t}",
"private String get_CHAR(int column) {\n if (ccsid_[column - 1] == 1200) {\n return getStringWithoutConvert(columnDataPosition_[column - 1], columnDataComputedLength_[column - 1]);\n }\n\n // check for null encoding is needed because the net layer\n // will no longer throw an exception if the server didn't specify\n // a mixed or double byte ccsid (ccsid = 0). this check for null in the\n // cursor is only required for types which can have mixed or double\n // byte ccsids.\n if (charset_[column - 1] == null) {\n throw new IllegalStateException(\"SQLState.CHARACTER_CONVERTER_NOT_AVAILABLE\");\n }\n\n int dataLength = columnDataComputedLength_[column - 1];\n if (maxFieldSize_ != 0 && maxFieldSize_ < dataLength)\n dataLength = maxFieldSize_;\n return dataBuffer_.getCharSequence(columnDataPosition_[column - 1],\n dataLength, charset_[column - 1]).toString();\n// String tempString = new String(dataBuffer_,\n// columnDataPosition_[column - 1],\n// columnDataComputedLength_[column - 1],\n// charset_[column - 1]);\n// return (maxFieldSize_ == 0) ? tempString :\n// tempString.substring(0, Math.min(maxFieldSize_,\n// tempString.length()));\n }",
"public String extractString()\n\t{\n\t\t// holds the string builder object to return\n\t\tStringBuilder sb = new StringBuilder();\n\t\t\n\t\t// for every byte\n\t\tfor (int i = 0; i < bytes.length; i++)\n\t\t{\n\t\t\t// extract the current character\n\t\t\tchar current = (char) (bytes[i] & 0xFF);\n\t\t\t\n\t\t\t// append the character\n\t\t\tif (current > 0)\n\t\t\t{\n\t\t\t\tsb.append(current);\n\t\t\t}\n\t\t}\n\t\t\n\t\t// return the string\n\t\treturn sb.toString();\n\t}",
"private char toChar(int u)\r\n { \r\n return (char)(u + 64);\r\n }",
"private char resolveIntToChar(int i) {\n switch (i) {\n case 1:\n return 'a';\n case 2:\n return 'b';\n case 3:\n return 'c';\n case 4:\n return 'd';\n case 5:\n return 'e';\n case 6:\n return 'f';\n case 7:\n return 'g';\n case 8:\n return 'h';\n default:\n return 'x';\n }\n }",
"public static String native2ascii(String text){\r\n\t\tif(text == null) return null ;\r\n\t\t\r\n\t\tchar[] myBuffer = text.toCharArray() ;\r\n StringBuffer sb = new StringBuffer() ;\r\n \r\n for (int i = 0; i < myBuffer.length; i++) {\r\n \tchar c = myBuffer[i] ;\r\n Character.UnicodeBlock ub = UnicodeBlock.of(c) ;\r\n \r\n if(ub == UnicodeBlock.BASIC_LATIN){\r\n //英文及数字等\r\n sb.append(c) ;\r\n }else{\r\n //汉字\r\n String hexS = Integer.toHexString(c & 0xffff) ;\r\n sb.append(\"\\\\u\") ;\r\n \r\n if(hexS.length() < 4){\r\n \tswitch(hexS.length()){\r\n\t \tcase 1:\r\n\t \t\tsb.append(\"000\") ;\r\n\t \t\tbreak ;\r\n\t \tcase 2:\r\n\t \t\tsb.append(\"00\") ;\r\n\t \t\tbreak ;\r\n\t \tcase 3:\r\n\t \t\tsb.append('0') ;\r\n \t}\r\n }\r\n \r\n sb.append(hexS.toLowerCase()) ;\r\n }\r\n }\r\n \r\n return sb.toString() ;\r\n\t}",
"public static void main(String[] args) {\n List<Character> charachterList = Arrays.asList('T', 'h', 'i', 's', ' ', 'i', 's', ' ', 'S', 'p', 'a', 'r', 't', 'a', '!');\n String strings = charachterList.stream()\n .map(c -> c.toString())\n .collect(Collectors.joining());\n\n System.out.println(strings);\n }",
"static void asciiToSentence(String str, int len) \n { \n int num = 0; \n for (int i = 0; i < len; i++) { \n \n // Append the current digit \n num = num * 10 + (str.charAt(i) - '0'); \n \n // If num is within the required range \n if (num >= 32 && num <= 122) { \n \n // Convert num to char \n char ch = (char)num; \n System.out.print(ch); \n \n // Reset num to 0 \n num = 0; \n } \n } \n }",
"char[] toCharArray();",
"CharSequence escape(char c);",
"public CodePointIterator asLatin1String() {\n if (! hasNext()) {\n return CodePointIterator.EMPTY;\n }\n return new Latin1DecodingIterator(this, getIndex());\n }",
"public String toString(){\r\n\t\treturn \"\" + letter;\r\n\t}",
"public char getChar() {\n return this.s;\n }",
"String string() {\n return _charsString;\n }",
"public String getChar() {\n\t\tString asciiCode = getProperty(key_delimiter);\n\t\tCharacter c = null;\n\t\tif (asciiCode == null) {\n\t\t\tc = '|';\n\t\t} else if (asciiCode != null && asciiCode.startsWith(\"#\")\n\t\t\t\t&& asciiCode.length() > 1) {\n\t\t\tint i = Integer.valueOf(asciiCode.substring(1));\n\t\t\tc = new Character((char) i);\n\t\t} else if (asciiCode.length() == 1) {\n\t\t\tc = asciiCode.charAt(0);\n\t\t}\n\t\t\n\t\tString result = null;\n\t\t\n\t\tif (c != null){\n\t\t\tresult = String.valueOf(c);\n\t\t}\n\t\t\n\t\treturn result;\n\t}",
"void NCRtoUnicode()\r\n\t{\r\n\t\tStringBuffer ostr = new StringBuffer();\r\n\t\tint i1 = 0;\r\n\t\tint i2 = 0;\r\n\r\n\t\twhile (i2 < str.length()) {\r\n\t\t\ti1 = str.indexOf(\"&#\", i2);\r\n\r\n\t\t\tif (i1 == -1) {\r\n\t\t\t\tostr.append(str.substring(i2, str.length()));\r\n\t\t\t\tbreak;\r\n\t\t\t}\r\n\r\n\t\t\tostr.append(str.substring(i2, i1));\r\n\t\t\ti2 = str.indexOf(\";\", i1);\r\n\r\n\t\t\tif (i2 == -1) {\r\n\t\t\t\tostr.append(str.substring(i1, str.length()));\r\n\t\t\t\tbreak;\r\n\t\t\t}\r\n\r\n\t\t\tString tok = str.substring(i1 + 2, i2);\r\n\r\n\t\t\ttry {\r\n\t\t\t\tint radix = 10;\r\n\r\n\t\t\t\tif (tok.trim().charAt(0) == 'x') {\r\n\t\t\t\t\tradix = 16;\r\n\t\t\t\t\ttok = tok.substring(1, tok.length());\r\n\t\t\t\t}\r\n\r\n\t\t\t\tostr.append((char) Integer.parseInt(tok, radix));\r\n\t\t\t} catch (NumberFormatException exp) {\r\n\t\t\t\tostr.append('?');\r\n\t\t\t}\r\n\r\n\t\t\ti2++;\r\n\t\t}\r\n\r\n\t\tstr = ostr.toString();\r\n\t}",
"public String toString() { return new String(b,0,i_end); }",
"public static String getRandomConsonant()\n\t{\n\t\tchar randLetter = (char) getRandomBetween(97,122);\n\t\twhile (isCharVowel(randLetter))\n\t\t{\n\t\t\trandLetter = (char) getRandomBetween(97,122);\n\t\t}\n\n\t\treturn Character.toString(randLetter);\n\t}",
"public static void main(String[] args) {\n\t\t\r\n\t\tString charArray = \"Benjamin\";\r\n\t\t\r\n\t\tchar[] myChar = charArray.toCharArray(); //string returns to char\r\n\t\t\r\n\t\tSystem.out.println(Arrays.toString(myChar));\r\n\t\t\r\n\t\tSystem.out.println(\"elements in myChar: \"+myChar.length);\r\n\t\t\r\n\r\n\t\t\r\n\t\tString str =\"\";\r\n\t\tchar mychar[] = {'a', 'b', 'c'};\r\n\t\t\r\n\t\tfor(int i=0; i<mychar.length; i++) {\r\n\t\t\tchar c= mychar[i];\r\n\t\t\tstr+=c;\r\n\t\t\t\r\n\t\t}\r\n\t\tSystem.out.println(\"char to string result is: \"+str);\r\n\t}",
"public static String convertNonAscii(String s) {\n\t\tif (s == null)\n\t\t\treturn null;\n\t\tStringBuilder sb = new StringBuilder();\n\t\tint n = s.length();\n\t\tfor (int i = 0; i < n; i++) {\n\t\t\tchar c = s.charAt(i);\n\n\t\t\tswitch (c) {\n\t\t\tcase 'Ä':\n\t\t\t\tsb.append(\"Ae\");\n\t\t\t\tbreak;\n\t\t\tcase 'ä':\n\t\t\t\tsb.append(\"ae\");\n\t\t\t\tbreak;\n\t\t\tcase 'Ö':\n\t\t\t\tsb.append(\"Oe\");\n\t\t\t\tbreak;\n\t\t\tcase 'ö':\n\t\t\t\tsb.append(\"oe\");\n\t\t\t\tbreak;\n\t\t\tcase 'Ü':\n\t\t\t\tsb.append(\"Üe\");\n\t\t\t\tbreak;\n\t\t\tcase 'ü':\n\t\t\t\tsb.append(\"ue\");\n\t\t\t\tbreak;\n\t\t\tcase 'ß':\n\t\t\t\tsb.append(\"ss\");\n\t\t\t\tbreak;\n\t\t\tdefault:\n\t\t\t\tint pos = UNICODE.indexOf(c);\n\t\t\t\tif (pos > -1) {\n\t\t\t\t\tsb.append(PLAIN_ASCII.charAt(pos));\n\t\t\t\t} else if (Character.isLetterOrDigit(c)) {\n\t\t\t\t\tsb.append(c);\n\t\t\t\t}\n\t\t\t\tbreak;\n\t\t\t}\n\n\t\t}\n\t\treturn sb.toString();\n\t}",
"public static char toChar(Character ch, char defaultValue) {\n/* 150 */ if (ch == null) {\n/* 151 */ return defaultValue;\n/* */ }\n/* 153 */ return ch.charValue();\n/* */ }",
"public static String unicodeEscaped(Character ch) {\n/* 380 */ if (ch == null) {\n/* 381 */ return null;\n/* */ }\n/* 383 */ return unicodeEscaped(ch.charValue());\n/* */ }",
"private static char nibbleToChar(byte nibble) {\n\t\tif (nibble <= 9) {\n\t\t\treturn (char) ('0' + nibble);\n\t\t}\n\t\treturn (char) ('a' + nibble - 10);\n\t}",
"protected String getChar(String asciiCode) {\n\t\tString result = null;\n\t\tif(asciiCode == null){\n\t\t\t//default\n\t\t\tresult = \"|\";\n\t\t}else if (asciiCode.startsWith(\"#\")\n\t\t\t\t&& asciiCode.length() > 1) {\n\t\t\tresult = String.valueOf(Character.toChars(Integer.valueOf(asciiCode\n\t\t\t\t\t.substring(1))));\n\t\t} else {\n\t\t\tresult = asciiCode;\n\t\t}\n\t\treturn result;\n\t}",
"public static void main(String[] args) {\n char[] cadeiaCaracter = {'B','E','N','G','I','L'};\n String cadeiaChar = new String(cadeiaCaracter);\n System.out.println(cadeiaChar);\n //Criar string a partir de intervalo de cadeias de caractere\n char[] abcdef = {'A','B','C','D','E','F'};\n String abc = new String(abcdef, 0,3);\n System.out.println(abc);\n //Array de byte, cada byte representa um caractere da tabela ascii\n byte[] ascii = {65,66,67,68,69};\n String abcde = new String(ascii);\n System.out.println(abcde);\n String cde = new String(ascii,1,3);\n System.out.println(cde);\n //Atribuição sem o new\n String let = \"Letícia\";\n String lettis = \"Letícia\";\n System.out.println(let);\n }",
"public static char getUniqueChar() {\n return CHARS.charAt(getNextPosition());\n }",
"public static CharSequence toCharSequence(Object e) {\n StringBuilder b = new StringBuilder();\n if (e instanceof String) {\n if (((String)e).contains(\" \")) {\n b.append(\"\\\"\");\n b.append(e);\n b.append(\"\\\"\");\n } else {\n b.append(e);\n }\n } else if (e instanceof Long || e instanceof Double || e instanceof BigInteger) {\n b.append(e);\n } else if (e instanceof List) {\n b.append('(');\n b.append(String.join(\" \", ((List<?>)e).stream().map(SExpression::toCharSequence)::iterator));\n b.append(')');\n } else {\n throw new IllegalArgumentException(\"unexpected type in S-expression: \" + e.getClass().getName());\n }\n\n return b;\n }",
"char toChar(int index) {\n return _letters.charAt(index);\n }",
"@Override\r\n\tpublic char charAt(int index) {\n\t\treturn chars[index];\r\n\t}",
"public String encode(String text) {\n\t\t// TODO fill this in.\n\n\t\tString encodedText = \"\";\n\t\tSystem.out.println(\"text.length(): \" + text.length());\n\t\tfor (int i = 0; i < text.length(); i++) {\n\t\t\tString characterCode = encodingTable.get(text.charAt(i));\n\t\t\tSystem.out.println(text.charAt(i));\n\t\t\tencodedText = encodedText.concat(characterCode);\n\t\t}\n\t\tSystem.out.println(\"THISHERE: \\n\" + encodedText + \"\\nTHISEND\");\n\n\t\treturn encodedText;\n\t}",
"public static String BitStringToText(String s) {\n StringBuffer sb = new StringBuffer();\n int begIndex = 0;\n int endIndex = 8;\n for (int i = 0; i < s.length() / 8; i++) {\n String chunk = s.substring(begIndex, endIndex);\n int charCode = Integer.parseInt(chunk, 2);\n String y = new Character((char) charCode).toString();\n sb.append(y);\n begIndex += 8;\n endIndex += 8;\n }\n return sb.toString();\n }",
"public static char toChar(Character ch) {\n/* 130 */ if (ch == null) {\n/* 131 */ throw new IllegalArgumentException(\"The Character must not be null\");\n/* */ }\n/* 133 */ return ch.charValue();\n/* */ }",
"public static Symbol string()\r\n\t{\r\n\t\tString str_text = buffer.toString();\r\n\t\tToken token = new Token(fname, str_text, str_linepos, str_charpos,\r\n\t\t\t\tstr_colpos);\r\n\t\treturn new Symbol(sym.STRING, str_linepos, str_colpos, token);\r\n\t}",
"public String bytesToString(byte[] input) {\r\n StringBuilder buildString = new StringBuilder();\r\n for (int i = 0; i < input.length * 4; i++) {\r\n // Begin at the start of byte minus 2, then subtract\r\n // the number of bits into the byte we are\r\n int bytePos = 6 - (i % 4) * 2;\r\n // Only need 2 bits, so and with 3\r\n int currChar = 0x3 & input[i / 4] >> bytePos;\r\n\r\n if (currChar == 0) {\r\n buildString.append('A');\r\n }\r\n else if (currChar == 1) {\r\n buildString.append('C');\r\n }\r\n else if (currChar == 2) {\r\n buildString.append('G');\r\n }\r\n else if (currChar == 3) {\r\n buildString.append('T');\r\n }\r\n }\r\n\r\n String seqString = buildString.toString();\r\n return seqString;\r\n }",
"protected String getString () {\n int utf = 0;\n skipSpaces ();\n if (!eatChar ('\"')) { return null; }\n m_sb.setLength (0);\n char c = getChar ();\n while ( c != '\\0' && c != '\"' ) {\n if (c == '\\\\') {\n c = getNextChar ();\n switch (c) {\n case '\"': c = '\"'; break;\n case '\\\\': c = '\\\\'; break;\n case '/' : c = '/'; break;\n case 'b' : c = '\\b'; break;\n case 'f' : c = '\\f'; break;\n case 'n' : c = '\\n'; break;\n case 'r' : c = '\\r'; break;\n case 't' : c = '\\t'; break;\n case 'u' :\n utf = 0;\n utf += Character.digit(getNextChar (), 16) << 12;\n utf += Character.digit(getNextChar (), 16) << 8;\n utf += Character.digit(getNextChar (), 16) << 4;\n utf += Character.digit(getNextChar (), 16);\n c = (char)utf;\n break;\n }\n }\n m_sb.append (c);\n c = getNextChar ();\n }\n return eatChar ('\"') ? m_sb.toString () : null;\n }",
"@Override\n public String toString() {\n //https://github.com/google/gson/issues/388\n\n String src = super.toString();\n StringBuilder builder = new StringBuilder(src.length() * 4);\n for (char c : src.toCharArray()) {\n if (c >= 0x80) {\n // 为所有非ASCII字符生成转义的unicode字符\n writeUnicodeEscape(builder, c);\n } else {\n // 为ASCII字符中前128个字符使用转义的unicode字符\n int code = (c < ESCAPE_CODES.length ? ESCAPE_CODES[c] : 0);\n if (code == 0) {\n // 此处不用转义\n builder.append(c);\n } else if (code < 0) {\n // 通用转义字符\n writeUnicodeEscape(builder, (char) (-code - 1));\n } else {\n // 短转义字符 (\\n \\t ...)\n builder.append(\"\\\\\").append((char) code);\n }\n }\n }\n return builder.toString();\n }",
"private static String bytes2String(byte[] bytes) {\n StringBuffer stringBuffer = new StringBuffer();\n for (int i = 0; i < bytes.length; i++) {\n stringBuffer.append((char) bytes[i]);\n }\n return stringBuffer.toString();\n }",
"public static String toAscii(String s){\r\n StringBuilder sb = new StringBuilder();\r\n long asciiInt;\r\n // loop through all values in the string, including blanks\r\n for (int i = 0; i < s.length(); i++){\r\n //getting Ascii value of character and adding it to the string.\r\n char c = s.charAt(i);\r\n asciiInt = (int)c; \r\n sb.append(asciiInt);\r\n }\r\n return String.valueOf(sb);\r\n }",
"java.lang.String getScStr();",
"public static String convertCharacterToXml(Character character) {\r\n XStream xstream = new XStream(new DomDriver());\r\n return xstream.toXML(character);\r\n }",
"public static String toString(final byte[] input, final String encoding) throws IOException {\n return new String(input, Charset.forName(encoding));\n }",
"private String getString(byte c) {\n\t\treturn c==1? \"$ \": \" \";\n\t}"
] |
[
"0.65990317",
"0.65250385",
"0.64390135",
"0.63607305",
"0.63378274",
"0.62678564",
"0.62046707",
"0.6035244",
"0.60194707",
"0.596348",
"0.5922108",
"0.5804257",
"0.56924754",
"0.56657666",
"0.56560296",
"0.56501144",
"0.5626548",
"0.56015855",
"0.5497649",
"0.54707944",
"0.54703814",
"0.543259",
"0.54037553",
"0.5398216",
"0.53739667",
"0.5345288",
"0.5343584",
"0.5325475",
"0.53221774",
"0.5306854",
"0.5288011",
"0.5273799",
"0.5268335",
"0.52449",
"0.5239142",
"0.52376384",
"0.52133566",
"0.52089727",
"0.52021027",
"0.51992005",
"0.5185517",
"0.51843005",
"0.518337",
"0.5139194",
"0.51265615",
"0.5113797",
"0.5102277",
"0.50961286",
"0.5084845",
"0.50772935",
"0.50593823",
"0.50386834",
"0.5031825",
"0.501658",
"0.5000508",
"0.49916726",
"0.49887565",
"0.4984063",
"0.49822235",
"0.49801436",
"0.49773026",
"0.4977132",
"0.49753222",
"0.4974771",
"0.49584562",
"0.4952924",
"0.49515572",
"0.49382627",
"0.49376065",
"0.49330458",
"0.491977",
"0.49134448",
"0.49081007",
"0.49001476",
"0.48988777",
"0.4897917",
"0.48946184",
"0.48899412",
"0.4887491",
"0.4883686",
"0.4879769",
"0.48633447",
"0.4858659",
"0.4854944",
"0.48522294",
"0.48416904",
"0.4841402",
"0.48391646",
"0.48347482",
"0.48339882",
"0.48316833",
"0.48211995",
"0.48162216",
"0.4814223",
"0.48095003",
"0.48083603",
"0.48073092",
"0.4805082",
"0.4804864",
"0.4804746"
] |
0.6771115
|
0
|
5write a java program to reverse string? Reverse a string word by word?
|
public static void main(String[] args) {
String given="Welcome to the Java class";
/*to reverse string
* step1:split-->array of string
* step 2:use for loop and use decrement to print values
*/
String reversed="";
String[]str=given.split(" ");
for(int i=str.length-1;i>=0;i--) {
reversed=reversed+str[i]+" ";
}
System.out.println(reversed);
//write a java program to reverse String?
//tochararray();charAt();
System.out.println("1st way_____");
String given1="Today is Java class";
String replaced1="";
char[]charArray=given1.toCharArray();
for(int i=charArray.length-1;i<=0;i--) {
replaced1=replaced1+charArray[i];
}
System.out.println(replaced1);
///2nd way
System.out.println("2nd way______");
String word3="I love JAVA";
String reversed2="";
for(int i=word3.length()-1;i>=0;i--) {
reversed2=reversed2+word3.charAt(i);
}
System.out.println(reversed2);
}
|
{
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
}
|
[
"public String reverse()\n {\n Stack<String> words = new Stack<String>() ;\n char[] r = s.toCharArray() ;\n StringBuffer sb = new StringBuffer() ; \n String[] w = s.split(\" \");\n \n for(String c : w)\n {\n words.push(c) ;\n }\n while(!words.isEmpty())\n {\n \n \tsb.append(words.pop()) ;\n \n sb.append(\" \") ;\n }\n return sb.substring(0, s.length()) .toString();\n }",
"public static void main(String[] args) {\n\r\n\t\tString s = \"hello my name is john\";\r\n\t\t//System.out.println(reverse(s,0,s.length()-1));\r\n\t\t\r\n\t\tSystem.out.println(reverseWordsAlt(s));\r\n\t}",
"public static void reverser(String word) {\n String newStr = \"\";\n for (int i = word.length(); i > 0; i--) {\n newStr += word.substring(i - 1, i);\n }\n System.out.println(newStr);\n }",
"static void reverseString(String s){\n\tString[] words=s.split(\" \");\n\tString ReverseString=\"\";\n\tfor(int i=0;i<words.length;i++)\n\t{\n\t\tString word=words[i];\n\t\tString reverseword=\"\";\n\t\tfor(int j=word.length()-1;j>=0;j--){\n\t\t\treverseword=reverseword+word.charAt(j);\n\t\t}\n\t\t\n\t\tReverseString=ReverseString+reverseword+\"\";\n\t}\n\tSystem.out.println(s);\n\tSystem.out.println(\"ReverseString is - \" +ReverseString);\n\t\n}",
"@Test\n\tpublic void revStrSentances() {\n\n\t\tString s = \"i like this program very much\";\n\t\tString[] words = s.split(\" \");\n\t\tString revStr = \"\";\n\t\tfor (int i = words.length - 1; i >= 0; i--) {\n\t\t\trevStr += words[i] + \" \";\n\n\t\t}\n\n\t\tSystem.out.println(revStr);\n\n\t}",
"private static void reverseWord(String word) {\n // StringBuild.reverse()\n System.out.println(new StringBuilder(word).reverse().toString());\n\n // Add char one by one iteration method\n StringBuilder reversed = new StringBuilder();\n char[] chars = word.toCharArray();\n for (int i = 0; i < chars.length; i++) {\n reversed.append(chars[chars.length - i - 1]);\n }\n System.out.println(reversed.toString());\n }",
"public static void main(String[] args) {\n String s =\" 1\";\n\n System.out.println(reverseWords(s));\n\n }",
"protected static void reverseWordsInAString(String s) {\n\t\t\r\n\t\tStringBuilder sb = new StringBuilder();\r\n\t\r\n String words[] = s.split(\" \"); // splits the input string into an array of\r\n // strings based on a split character\r\n for (String word: words) // iterates through all the entries in the string array\r\n sb.append(new StringBuilder(word).reverse().toString() + \" \"); //uses the reverse\r\n //method to reverse the entry in the array, append it to the string builder and add the\r\n // space back in\r\n System.out.println(sb.toString().trim()); // outputs the fully appended StringBuilder\r\n // .trim() removes any extra whitespace\r\n\t}",
"public static void main(String[] args) {\n String input = \"DXC technologies limited\";\n\n String revr = \"\";\n for (int z = input.length() - 1; z >= 0; z--) {\n revr = revr + input.charAt(z);\n }\n System.out.println(revr);\n\n\n String splitwords[] = input.split(\" \");\n String reverseword = \"\";\n\n for (int i = 0; i < splitwords.length; i++) {\n String word = splitwords[i];\n String reversewords = \"\";\n\n for (int j = word.length() - 1; j >= 0; j--) {\n reversewords = reversewords + word.charAt(j);\n }\n reverseword = reverseword + reversewords + \" \";\n\n }\n System.out.println(\"traditional method is \" +trim(reverseword));\n\n //return reverseword;\n\n }",
"private static String reverse(String in){\n\t\tString reversed = \"\";\n\t\tfor(int i = in.length() - 1; i >= 0; i--){\n\t\t\treversed += in.charAt(i);\n\t\t}\n\t\treturn reversed;\n\t}",
"public static void main(String[] args) {\n\t\tString s = \"I am Ritesh Kumar\";\r\n \r\n\t\tString to = StringRecusiveReverse.reverseMe(s);\r\n\t\tString to1 = StringRecusiveReverse.recursiveReverseString(s);\r\n\t\tSystem.out.println(to);\r\n System.out.println(to1);\r\n /*StringTokenizer st=new StringTokenizer(s);\r\n while(st.hasMoreTokens()) {\r\n \ts1=st.nextToken(); \r\n \tSystem.out.println(s1);\r\n }*/\r\n String[] s1=s.split(\" \");\r\n \r\n for(int i=s1.length-1;i>=0;i--)\r\n \tSystem.out.println(s1[i]);\r\n\t}",
"public static void main(String[] args) {\n\t\tString str = \"Bangalore is capital of Karnataka where\";\n\t\tString[] words = str.split(\" \");\n\t\tString newString=\"\";\n\t\t\t\n\t\tfor(String word: words) {\n\t\n\t\t\t\tnewString= newString+reverse(word);\n\t\t}\n\t\t\n\t\tSystem.out.println(newString);\n\t}",
"public String reverseWords(String s) {\n\n String[] splts = s.split(\" \");\n\n StringBuilder sb = new StringBuilder();\n sb.append(new StringBuilder(splts[0]).reverse());\n \n for(int i = 1 ; i< splts.length ;i ++)\n sb.append(\" \" + new StringBuilder(splts[i]).reverse());\n \n return sb.toString();\n\n }",
"static String reverseWordsInStringInPlace(StringBuffer input_string){\n //step 1\n int j = -1;\n for(int i = 0; i <input_string.length() ;i++ ){\n if(' ' == input_string.charAt(i)){\n reverseString(input_string,j+1,i-1);\n j=i;\n }\n //for last word\n if(i == input_string.length()-1){\n reverseString(input_string,j+1,i);\n }\n }\n //step 2\n reverseString(input_string,0,input_string.length()-1);\n return input_string.toString();\n\n }",
"public static void main(String[] args) {\n String str = null;\n //String str = \"My Name Is Aakash\";\n //String str = \"!@@#$%^&*()+_)(*&^%$#@!@#$%^&*(_)(*&^%$%^&**&^%$#$%^&*&^%$##$%^&*&^%$\";\n //String str = \"_sakdkjashdksahkdhjksahdkjakjshdkjahsdkaskdkasdjhasjhckhagcuagskdjkasdjkaskjdhjkashdkjhakjdjkasdkaskjdajksdhjkashdjkahsjkdhjkasckjackhaduihcadlcdjcbkjsbdcjksdjkckjsdcjksdnjkcnjksdhckjsdhjkvsdjvnkjdsbvjkdsvkjdshkhsdkfheklwjfbjkwegfwegfiuwekjfbewjkhfgwejyfguiwejfbwekhfgywegfkjewbhjfgewjfgewhjfjhewgf\";\n\n System.out.println(reverseString(str));\n }",
"String reverseMyInput(String input);",
"public static void main(String[] args) {\n\t\tString s = \"the sky is blue\";\n\t\tString[] s2 = s.split(\" \");\n\n\t\tfor (String string : s2) {\n\t\t\tSystem.out.print(string + \" \");\n\t\t}\n\n\t\tList<String> s3 = Arrays.asList(s2);\n\t\tCollections.reverse(s3);\n\n\t\tSystem.out.println(\"\\n\");\n\t\tfor (String string : s3) {\n\t\t\tSystem.out.print(string + \" \");\n\t\t}\n\n\t\t// REVERSE STRING NOT USING COLLECTIONS AND ARRAYS\n\t\tString s4 = \"the sky is blue\";\n\t\tString[] s5 = s.split(\" \");\n\n\t\tSystem.out.println(\"\\n\");\n\t\tfor (String string : s5) {\n\t\t\tSystem.out.print(string + \" \");\n\t\t}\n\n\t\tint totalLength = s5.length;\n\t\tfor (int i = 0; i < totalLength / 2; i++) {\n\t\t\tString actual = s5[i];\n\t\t\tString opposite = s5[totalLength - 1 - i];\n\t\t\ts5[i] = opposite;\n\t\t\ts5[totalLength - 1 - i] = actual;\n\t\t}\n\n\t\tSystem.out.println(\"\\n\");\n\t\tfor (String string : s5) {\n\t\t\tSystem.out.print(string + \" \");\n\t\t}\n\n\t\t// REVERSE STRING WITHOUT ALLOCATING EXTRA SPACE\n\t\t/*\n\t\t * 1- convertir a array de char\n\t\t * 2- revertir las letrs de las palabras pero dejŠndolas en su sitio\n\t\t * 3- revertir todo el array de char con actual/opuesto\n\t\t */\n\t\tString cadena = \"the sky is blue\";\n\t\tchar[] s6 = cadena.toCharArray();\n\n\t\tint i = 0;\n\t\tfor (int j = 0; j < s6.length; j++) {\n\t\t\tif (s6[j] == ' ') {\n\t\t\t\treverse(s6, i, j - 1);\n\t\t\t\ti = j + 1;\n\t\t\t}\n\t\t}\n\n\t\treverse(s6, i, s6.length - 1);\n\n\t\treverse(s6, 0, s6.length - 1);\n\t\t\n\t\tSystem.out.print(\"\\n\\nREVERSE STRING WITHOUT ALLOCATING EXTRA SPACE: \");\n\t\tfor(int k = 0; k<s6.length; k++) {\n\t\t\tSystem.out.print(s6[k]);\n\t\t}\n\t}",
"@Test\n public void reverse_Givenastring_ReverseEachWord()\n {\n\n assertEquals(\"a kciuq nworb xof spmuj revo eht yzal god\",fp.Reversethestring(\"a quick brown fox jumps over the lazy dog\"));\n\n }",
"private void reverse(StringBuffer s)\n {\n s.reverse();\n String k = s.toString();\n String tokens[] = k.split(\" \");\n for(int i=0;i<tokens.length;i++)\n {\n StringBuffer temp = new StringBuffer(tokens[i]);\n System.out.print(temp.reverse()+\" \");\n }\n //Normal method\n /*String[] words = s.split(\" \");\n int i = words.length-1;\n while(i>=0)\n {\n System.out.print(words[i]+\" \");\n i--;\n }*/\n }",
"public void StringReverse(String parameter){\n String str=parameter;\n String[] arr=str.split(\"\\\\s+\");\n for(int i=0;i<arr.length;i++){\n arr[i]=arr[i].replaceAll(\"[^\\\\w]\", \"\");\n }\n reverser(arr);\n\n String output=new String();\n for(int i=0;i<arr.length;i++){\n output=output+arr[i]+\" \";\n }\n System.out.println(output);\n }",
"public static void main(String[] args) {\n\n System.out.println(reverseWordOrder(\"Hello World\"));// ->\"World Hello\";\n System.out.println(reverseWordOrder(\"Java is fun\"));// ->\"fun is Java\"\n System.out.println(reverseWordOrder(\"Hi How Are You\")); //->\"You Are How Hi\"\n System.out.println(reverseWordOrder(\"talk is cheap. show me the code\")) ;//->\"code the me show cheap. is talk\"\n\n }",
"public void reverseWords(char[] s) {\n if (s == null || s.length <= 1) {\n return;\n }\n reverse(s, 0, s.length - 1);\n int start = 0;\n for (int i = 0; i < s.length; i++) {\n if (s[i] == ' ') {\n // revresting between publish and i +1\n reverse(s, start, i - 1);\n // setting publish = i +1 assuming there is only\n // one space between words !!!\n start = i + 1;\n } else if (i == s.length - 1) {\n reverse(s, start, i);\n }\n }//end for\n }",
"public static String reverse(String sentence)\n {\n // Complete this method. Use a Stack.\n ...\n\n\n\n\n\n\n }",
"public static void main(String[] args) {\n\t\t\r\n\t\tString str=\"Ali Can\";\r\n\t\t\r\n\t\tString reverse=\"\";\r\n\t\t\r\n\t\tfor(int i=str.length()-1;i>=0;i--) {\r\n\t\t\treverse=reverse+str.charAt(i);\r\n\t\t}\r\n\t\tSystem.out.println(reverse);\r\n\t}",
"public static void main(String[] args) {\n\t\tString str1=\"A man, a plan, a canal: Panama\";\r\n\t\tSystem.out.println(reverseString(str1));\r\n\t}",
"public static String reverse( String s ) {\n String s2 = \"\";\n for (int i = s.length() -1; i >= 0; i--) { // start at the end of the string; keep going while i>= 0; decriment i\n s2 = s2 += s.charAt(i);\n }\n return s2;\n }",
"public String reverse(String input) {\n \n // if there is no string, send it back\n if (input == null) {\n return input;\n }\n // string to return\n String output = \"\";\n // go from the back of input and put its last character at the front of the new string\n for (int i = input.length() - 1; i >= 0; i--) {\n output = output + input.charAt(i);\n }\n \n return output;\n}",
"private String reverseString(String s) {\n char[] c = s.toCharArray();\n int i = 0, j = s.length() - 1;\n while (i < j) {\n if (c[i] != c[j]) {\n c[i] ^= c[j];\n c[j] ^= c[i];\n c[i] ^= c[j];\n }\n ++i;\n --j;\n }\n return new String(c);\n }",
"void reverse(string str) \n{ \n for (int i=str.length()-1; i>=0; i--) \n cout << str[i]; \n}",
"static String stringReverser( String inputString) {\n\t\t// Create an char array of given String \n char[] ch = inputString.toCharArray();\n // Initialize outputString; \n String outputString = \"\";\n // Go through the characters within the given input string, from last to first, and concatinate it to the output String\n for (int i = ch.length -1; (i >= 0) ; i--) {\n \toutputString += ch[i]; \n }\n\t\treturn outputString;\n\t}",
"static void reverseWordInMyString(String str) {\r\n\t\tString[] words = str.split(\" \");\r\n\t\tString reversedString = \"\";\r\n\t\tfor (int i = 0; i < words.length; i++) {\r\n\t\t\tString word = words[i];\r\n\t\t\tString reverseWord = \"\";\r\n\t\t\tfor (int j = word.length() - 1; j >= 0; j--) {\r\n\t\t\t\t/*\r\n\t\t\t\t * The charAt() function returns the character at the given position in a string\r\n\t\t\t\t */\r\n\t\t\t\treverseWord = reverseWord + word.charAt(j);\r\n\t\t\t}\r\n\t\t\treversedString = reversedString + reverseWord + \" \";\r\n\t\t}\r\n\t\tSystem.out.println(str);\r\n\t\tSystem.out.println(reversedString);\r\n\t}",
"public static void main(String[] args) {\n\t\tString str = \"Pooja\";\n\t\tchar str1[] = str.toCharArray();\n\t\tString reverse = \"\";\n\t\t\n\t\tfor (int i = str1.length; i>=0 ; i--) {\n\t\t\treverse = reverse + str1[i];\n\t\t}\n\t\t\n\t\tSystem.out.println(reverse);\n\n\t}",
"public String reversestring(String inputstring){\n String originalstring = inputstring; //Originial String\n int n = originalstring.length(); //Length of the string\n String answer=\"\";\n\n for(int i=n-1;i>=0;i--){\n System.out.print(originalstring.charAt(i));\n answer += originalstring.charAt(i) + \" \";//Reversing the string\n }\n answer = answer.trim();\n return answer;\n }",
"public static void main(String[] args) {\nString str=\"Welcome To Coding Ninja\";\n\nSystem.out.println(reverse_each(str));\n\t\t\n\t}",
"public static void main(String[] args)\n {\n String input = \"now this was interesting\";\n\n StringBuilder input1 = new StringBuilder();\n\n // append a string into StringBuilder input1\n input1.append(input);\n\n // reverse StringBuilder input1\n input1.reverse();\n\n // print reversed String\n System.out.println(input1);\n }",
"@Test\n\tpublic void RevStr() {\n\n\t\tString str = \"i am the tester\";\n\t\tfor (int i = str.length() - 1; i >= 0; i--) {\n\t\t\tSystem.out.println(str.charAt(i));\n\t\t}\n\n\t}",
"public static String reverse(String s){\n \tif(s.length()==0)\n return s;\n else{\n \treturn reverse(s.substring(1))+s.substring(0,1);\n }\n }",
"public static String reverse(String st) {\n\t\t\n\t\tif(st == null || st ==\"\") {\n\t\t\treturn st;\n\t\t}\n\t\tStringBuffer br = new StringBuffer();\n\t\tfor(int i=st.length()-1; i>=0; i--) {\n\t\t\tbr.append(st.charAt(i));\n\t\t}\n\t\treturn br.toString();\n\t}",
"public static void main(String[] args) {\n\t\tScanner s=new Scanner(System.in);\n\t\tSystem.out.println(\"Enter the String\");\n\t\tString string=s.nextLine();\n\t\tSystem.out.println(string);\n\t\tString rev=\"\";\n\t\tint length=string.length();\n\t\tfor(int i=length-1;i>=0;i--) {\n\t\t\trev=rev+string.charAt(i);\n\t\t}\n\t\tSystem.out.println(rev);\n\t}",
"public static void Rev_Str_Fn(){\r\n\t\r\n\tString x=\"ashu TATA\";\r\n\t\r\n\tStringBuilder stb=new StringBuilder();\r\n\tstb.append(x);\r\n\tstb.reverse();\r\n\tSystem.out.println(stb);\r\n}",
"@Override\n\tpublic String reverse() {\n\t\tint len = theString.length();\n\t\tString s1 = \"\";\n\t\tfor (int i = len - 1; i >= 0; i--) {\n\t\t\ts1 = s1 + theString.charAt(i);\n\t\t}\n\t\t// System.out.println(s1);\n\n\t\treturn s1;\n\t}",
"public static String reverseString(String s) {\n\t\tString reverse = \"\";\n\t\tint length = s.length();\n\t\t\n\t\tfor(int i=0; i<length; i++){\n\t\t\t//reverse += (s.charAt(length-1-i) + \"\");\n\t\t\treverse = reverse.concat(s.charAt(length-i-1) + \"\");\n\t\t\t\n\t\t\t\n\t\t}\n\t\treturn reverse;\n \n }",
"public void reverseString(char[] s) {\n for(int i = 0, j = s.length - 1; i < s.length / 2; i++,j--){\n //temporary holder\n char temp = s[j];\n //swap characters\n s[j] = s[i];\n s[i] = temp;\n }\n }",
"public static String reverseWords(String s) {\n String[] words = splitIntoWords(s);\n // reverse each word in the array\n String[] reverseWords = reverseWordsArray(words);\n // join each reversed word by a space\n return String.join(\" \", reverseWords);\n }",
"public static String reverse(String str) {\n String retStr = \"\"; //final string\n for (int i = str.length(); i > 0; i--) { //for loop starting from the end of the string\n retStr += str.substring(i-1,i);\n }\n return retStr;\n }",
"public static void main(String[] args) {\n \n String str1 = \"hello, return olleh\";\n \n System.out.println( \"ReverseString ans: \" + reverseStr(str1)); \n \n }",
"public static String reverse(String word){\n\t\tStringBuilder result = new StringBuilder();\n\t\tif(word.length() <= 1){\n\t\t\treturn word;\n\t\t}\n\n\t\tfor(int i = word.length() - 1; i >= 0; i--){\n\t\t\tresult.append(word.charAt(i));\n\t\t}\n\t\tguessPW(result.toString());\n\t\treturn result.toString();\n\t}",
"public static String reverse(String s)\n\t{\n\t\tStringBuilder stb = new StringBuilder(s);\n\t\treturn stb.reverse().toString();\n\t}",
"public static void main(String[] args) {\n StringBuffer s = new StringBuffer(\"GeeksforGeeks\");\n System.out.println(\"Original string is : \" + s );\n //print the reversed string\n System.out.print(\"Reversed string is : \" );\n //call reverse method\n reverse(s);\n\t}",
"public static void main(String[] args)\r\n\t{\n\t\t\tString s;\r\n\t\t\tSystem.out.println(\"Enter a string\");\r\n\t\t\tScanner in=new Scanner(System.in);\r\n\t\t\ts=in.nextLine();\r\n\t\t\tStringBuffer s2=new StringBuffer(s);\r\n\t\t\tfor(int i=0;i<s.length();i++)\r\n\t\t\t{\r\n\t\t\t\ts2.setCharAt(i,s.charAt(s.length()-i-1));\r\n\t\t\t}\r\n\t\t\tSystem.out.println(\"Reverse is \"+s);\r\n\t}",
"private static void reverseWithSplitArray(String str) {\n\t\tString result = \"\";\r\n\t\tString wordArray[] = str.split(\" \");\r\n\t\tfor (int j = wordArray.length - 1; j >= 0; j--) {\r\n\t\t\tresult = result + wordArray[j] + \" \";\r\n\t\t}\r\n\t\tSystem.out.println(result);\r\n\t}",
"public String reverse(String s) {\n\t\tStringBuilder builder = new StringBuilder();\n\t\tfor (int i = s.length() - 1; i >= 0; i--) {\n\t\t\tchar charS = s.charAt(i);\n\t\t\tbuilder.append(charS);\n\t\t}\n\t\treturn builder.toString();\n\t}",
"public void reverseString(char[] s) {\n for(int i = 0; i < s.length/2; i++){\n char temp = s[i];\n s[i] = s[s.length-(i+1)];\n s[s.length-(i+1)] = temp;\n \n }\n \n \n }",
"public String reverseWords(String s) {\n String[] x = s.split(\" \");\n StringBuilder sb = new StringBuilder(x.length * 2 - 1);\n sb.append(this.reverseString(x[0]));\n for (int i = 1; i < x.length; ++i) {\n sb.append(\" \");\n sb.append(this.reverseString(x[i]));\n }\n return sb.toString();\n }",
"public static void main(String[] args) {\n String input = \"Lukman\";\n StringBuilder input1 = new StringBuilder();\n\n // append a string into StringBuilder input1\n //input1.append(input);\n\n // reverse StringBuilder input1\n //input1 = input1.reverse();\n\n // print reversed String\n int len = input.length() - 1;\n for (int i = len; i >= 0; --i) {\n input1.append(input.charAt(i));\n }\n System.out.println(\"Reverse:\" + input1);\n }",
"void reverse();",
"void reverse();",
"public static void main(String[] args) {\n\n String s = \"Life is beautiful\"; //give any sentence you want to reverse and run program\n\n System.out.println(reverseWordsInSentence(s)); //This line is to print result on the console\n }",
"static String reverseWordsInString(String input_string){\n List<String> input_string_list = Arrays.asList(input_string.split(\"\\\\s+\"));\n\n for(int i = 0 ; i < input_string_list.size()/2 ; i++){\n String temp_string = input_string_list.get(i);\n input_string_list.set(i,input_string_list.get(input_string_list.size()-1-i));\n input_string_list.set(input_string_list.size()-1-i,temp_string);\n }\n\n return String.join(\" \",input_string_list);\n }",
"static String reverse3(String s)\n\t{\n\t\tString reverseStr = new StringBuffer(s).reverse().toString();\n\t\treturn reverseStr;\n \n\t}",
"public static void reverseUsingCustomizedLogic(String str) {\n\t\tint strLength = str.length();\n\n\t\tStringBuilder strBuilder = new StringBuilder();\n\n\t\tfor (int i = strLength - 1; i >= 0; i--) {\n\t\t\tstrBuilder = strBuilder.append(str.charAt(i));\n\t\t}\n\t\tSystem.out.println(\"str value after reverse using customized logic : \" + strBuilder.toString());\n\t}",
"public static void main(String[] args) {\n\t\t\n\t\tSystem.out.println(reverse(\"foo\"));\n\t\tSystem.out.println(reverse(\"student\"));\n\t\t\n\t}",
"public static void main(String[] args) {\n\t\t\r\n\t\tString sampleStr=\"test a is this\";\r\n\t\tchar sampleInput[] = sampleStr.toCharArray();\r\n\t\t\r\n\t\t//char[] sampleInput= new char[] {'t','e','s','t',' ','a',' ','i','s',' ','t','h','i','s',' ','h','i'};\r\n\t\t\r\n\t\tSystem.out.println(\"Original String # \");\r\n\t\tfor (char c : sampleInput) {\r\n\t\t\tSystem.out.print(c);\r\n\t\t}\r\n\t\t\r\n\t\treverseWord(sampleInput, 0, sampleInput.length-1);\r\n\t\t\r\n\t\tSystem.out.println(\"\\nReverted String # \");\r\n\t\tfor (char c : sampleInput) {\r\n\t\t\tSystem.out.print(c);\r\n\t\t}\r\n\t\t\r\n\t\t\r\n\t\tint startindx=0;\r\n\t\t\r\n\t\tfor(int j=0; j<=sampleInput.length; j++) {\r\n\t\t\t\r\n\t\t\t\r\n\t\t\tif(j == sampleInput.length || sampleInput[j]==' ') {\t\t\t\r\n\t\t\t\treverseWord(sampleInput,startindx,j-1);\r\n\t\t\t\tstartindx=j+1;\r\n\t\t\t}\t\t\t\r\n\t\t}\r\n\t\t\r\n\t\tSystem.out.println(\"\\nFinal String # \");\r\n\t\tfor(int i=0;i<sampleInput.length;i++)\r\n\t\t\tSystem.out.print(sampleInput[i]);\r\n\r\n\t}",
"public static String reverseWord(String str){\n StringBuilder result = new StringBuilder();\n StringTokenizer tokenizer = new StringTokenizer(str,\"\");\n\n while (tokenizer.hasMoreTokens()){\n StringBuilder sb = new StringBuilder();\n sb.append(tokenizer.nextToken());\n sb.reverse();\n\n result.append(sb);\n result.append(\" \");\n }\n return result.toString(); //converting the StringBuilder into String\n }",
"public static void main(String[] args) {\n\r\n\t\tString reverse = \"hakunaMatata\";\r\n\t\tchar[] creverse = reverse.toCharArray();\r\n\r\n\t\tList<Character> list = new ArrayList();\r\n\r\n\t\tfor (char c : creverse)list.add(c);\r\n\t\tCollections.reverse(list);\r\n\t\tListIterator litr = list.listIterator();\r\n\t\twhile (litr.hasNext())\r\n\t\t\tSystem.out.println(\"Reverse of String: \" + litr.next());\r\n\t}",
"@Test\n\tvoid testReverseString() {\n\t\tReverseString tester = new ReverseString();\n\t\tchar[] input = new char[] { 'h', 'e', 'l', 'l', 'o' };\n\t\ttester.reverseString(input);\n\t\tassertArrayEquals(new char[] { 'o', 'l', 'l', 'e', 'h' }, input);\n\n\t\tinput = new char[] { 'H', 'a', 'n', 'n', 'a', 'h' };\n\t\ttester.reverseString(input);\n\t\tassertArrayEquals(new char[] { 'h', 'a', 'n', 'n', 'a', 'H' }, input);\n\n\t\tinput = new char[] { 'H' };\n\t\ttester.reverseString(input);\n\t\tassertArrayEquals(new char[] { 'H' }, input);\n\n\t\tinput = new char[0];\n\t\ttester.reverseString(input);\n\t\tassertArrayEquals(new char[0], input);\n\t}",
"static void findReverseString(String string){\n\t\tfor (int i = string.length() -1; i >= 0; i--) {\n\t\t\tSystem.out.print(string.charAt(i));\n\t\t}\n\t}",
"public String reverse(String s) {\n String ret = \"\";\n for(int i = 0; i < s.length; i+= 1) {\n ret = s.charAt(i) + ret; //this will go in reverse as the next character will appear before the previously placed ret character.\n }\n return ret;\n}",
"public static void main(String[] args) {\n\n StringBuilder lz = new StringBuilder(\"Led Zeppelin\");\n lz.reverse();\n System.out.println(lz);\n\n String lz2 = \"Led Zeppelin\";\n// System.out.println(lz2.reverse()); // does not compile\n\n }",
"public static void main(String[] args) {\n\t\tString name=\"BEGMYRAT\";\r\n\t\tString reversed=\"\";\r\n\t\t\r\n\t\tfor(int idx=name.length()-1; idx>=0; idx--) {\r\n\t\t\treversed=reversed+name.charAt(idx);\r\n\t\t}System.out.println(reversed);\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\r\n\t}",
"public static String reverseStringWords(String s)\n\t{\n\t\t String words[] = split(s);\n\t\t \n\t\t StringBuilder stb = new StringBuilder();\n\t\t for (String word: words)\n\t\t stb.append(reverse(word) + \" \");\n\t\t return stb.toString().trim();\n\t}",
"public String reverse(String input) \n {\n \tString outputt = \"\";\n \t//Finds the length of the string input\n \tint i = input.length();\n \t\n \tif (input == \"\")\n \t{\n \t\treturn outputt;\n \t}\n \telse\n \t{\n \t\t//Goes letter by letter building the string backwards\n \t\tfor (int c = 0; c < i; c++)\n \t\t{\n \t\tString a_letter = Character.toString(input.charAt((i - c -1)));\n \t\toutputt = (outputt + a_letter);\n \t\t}\n \t\treturn outputt;\n \t\t//return new StringBuffer(input).reverse().toString();\n \t}\n }",
"public static void main(String[] args) {\n String s = \"Let's take LeetCode contest\";\n System.out.println(s);\n System.out.println(reverseWords(s));\n }",
"public static String reverse(String s)\n {\n return new StringBuilder(s).reverse().toString();\n }",
"public static void main (String []args){\n\t\tString reverse=\"\";\n\t\tString s=\"ABCDEF\";\n\t\tint length=s.length();\n\t\tSystem.out.println(length);\n\t\tfor (int i=length-1;i>=0;i--)\n\t\t{\n\t\t\treverse=reverse+s.charAt(i);\n\n\t\t}\n\n\n\n\t\t//String reversing with String Builder class\n\n\t\tStringBuilder str= new StringBuilder(\"ReverseNumber\");\n\t\tString\tNewoff= \"\"+str.reverse();\n\t\tSystem.out.println(Newoff);\n\n\n\n\n\t}",
"public static void main(String[] args) {\n\n String name = \"Mesud\";\n ReverseString(name);\n\n System.out.println(\"Hello World\");\n\n String name2 = \"Leyla\";\n ReverseString(name2);\n\n }",
"public static void main(String[] args) {\n\t\tString str = \"Geeks for Geeks\";\n\t\treverse(str);\n\t\treverseUsingLoop(str);\n\t\treverseUisngStringBuilder(str);\n\t}",
"public void reverseWords2(char[] s) {\n // reverse the whole sentense\n reverse(s, 0, s.length - 1);\n int start = 0;\n // reverse each word (except the last)\n for (int i = 0; i < s.length; i++) {\n if (s[i] == ' ') {\n reverse(s, start, i - 1);\n start = i + 1;\n }\n }\n // reverse the last word\n reverse(s, start, s.length - 1);\n }",
"@Test\n\tpublic void checkReverseString()\n\n\t{\n\t\tassertEquals(\"nitin si a doog yob \",test.testReverseString(\"nitin is a good boy\"));\n\t\t\n\t}",
"public static String reflect1(String word){\n\t\tif(word.length() <= 1){\n\t\t\treturn word;\n\t\t}\n\t\tStringBuilder result = new StringBuilder(word);\n\t\tresult.append(reverse(word)).toString();\n\t\treturn result.toString();\n\t}",
"public String reverse(String input) {\n if (input == null || input.length() <= 1) {\n return input;\n }\n char[] array = input.toCharArray();\n int slow = 0;\n int fast = array.length - 1;\n while (slow < fast) {\n swap(array, slow, fast);\n slow++;\n fast--;\n }\n return new String(array);\n }",
"public static void main(String[] args) {\r\n\t\tString str = \"madam\";\r\n\t\tString rev = \"\";\r\n\t\tfor(int i = str.length()-1; i>=0; i--)\r\n\t\t{\r\n\t\t rev = rev+str.charAt(i);\t\r\n\t\t}\r\n\t\tSystem.out.println(rev);\r\n\t\tif(rev.equals(str))\r\n\t\t{\r\n\t\t\tSystem.out.println(\"its a palendrome\");\r\n\t\t}else {\r\n\t\t\tSystem.out.println(\"its not palendrome\");\r\n\t\t}\r\n\t\treverse(\"avinesh\");\r\n\t\t\r\n\r\n\t}",
"public static void main(String[] args) {\n\t\tStringReverse m = new StringReverse();\n\t\t//char[] a = {'A',' ','m','a','n',',',' ','a',' ','p','l','a','n',',',' ','a',' ','c','a','n','a','l',':',' ','P','a','n','a','m','a'};\n\t\tchar[] a = {'a','b','c','d','e','f','g','h','i','j','k','l','m','n','o','p','q','r','s','t','u','v','w','x','y','z'};\n\t\tSystem.out.println(m.reverseString(a));\n\t}",
"public static String reverse(String text) {\n String helper=\"\";\n int a=0;\n \n \n while (a < text.length()){\n helper = helper + text.charAt(text.length() - (1+a));\n a++;\n }\n return helper;\n }",
"static void reverse(StringBuffer str)\n\t {\n\t\t Stack<Character> s = new Stack<Character>();\n\t\t int len = str.length();\n\t\t for(int i= 0; i<len ;i ++)\n\t\t {\n\t\t\t s.push(str.charAt(i));\n\t\t }\n\t\t \n\t\t //pop the string and print it\n\t\t for(int i= 0; i<len ;i ++)\n\t\t {\n\t\t\t System.out.print(s.pop());\n\t\t }\n\t }",
"@Test\n public void reverseString_passString_ReturnReversedString() {\n String output = Java8Streams.reverseString(\"java interview\");\n\n assertThat(output).isEqualTo(\"weivretni avaj\");\n }",
"public static String reverseAlternative(String str) {\n str = str.trim();\r\n // remove all extra white spaces in between words\r\n str = str.replaceAll(\"( )+\", \" \");\r\n\r\n char c[] = str.toCharArray();\r\n int n = c.length;\r\n\r\n int start = 0, count = 0;\r\n String res = \" \";\r\n\r\n for (int end = 0; end < n; end++) {\r\n\r\n if (c[end] == ' ') {\r\n count++;\r\n if (count == 1 || count % 2 == 1) {\r\n res = same(c, start, end - 1);\r\n start = end + 1;\r\n }\r\n if (count % 2 == 0) {\r\n res = reverse(c, start, end - 1);\r\n start = end + 1;\r\n }\r\n }\r\n }\r\n\r\n // condition will be change, becoz last space is not count.\r\n if (count % 2 == 1) {\r\n res = reverse(c, start, n - 1);\r\n }\r\n\r\n // if only one string contained in the whole line.\r\n if(res==\" \"){\r\n res=str;\r\n }\r\n \r\n return res;\r\n }",
"private static String reverseString(String s) \r\n\t{\r\n\t\tif(s.length() == 1)\r\n\t\t\treturn s;\r\n\t\treturn \"\" + s.charAt(s.length() - 1) + reverseString(s.substring(0, s.length() - 1));\r\n\t}",
"public static void main(String[] args) {\n\t\t\n\t\tString given1= \"Today is the Java Class\"; //This is the original sentence\n\t\tchar [] charArray = given1.toCharArray();\t\t// This sentence is placed in a charArray \n\t\t\n\t\tfor(int i = charArray.length-1; i>=0; i--) {\n\t\t\tSystem.out.print(charArray[i]);\n\t\t}\n\t\t\n\t\t\n\t\t\n\t\tSystem.out.println();\n\t\t\n\t\t\n\t\t\n\t\t// This is the solution for Part 2 \"Reverse a string word by word\" \n\t\t\n\t\t/*\n\t\t * to reverse String\n\t\t * Step1: spit --> array of String\n\t\t * Step2: use for loop and use decrement to print values\n\t\t * Step3: \n\t\t */\n\t\tString given = \"Welcome to the Java class\";\n\t\t\n\t\tString reversed = \"\";\t\t\t\t\t\t\t//This string is empty\n\t\tString [] str = given.split(\" \");\t\t\t\t//This places the \"given\" in an array and splits it by space \n\t\tfor (int j=str.length-1;j>=0;j--) {\t\t\t\t//This for loop is reversing the string \n\t\t\treversed = reversed+str[j]+\" \";\n\t\t}\n\t\tSystem.out.println(reversed);\n\t\t\n\t\t\n\t\t\n\t\t\n\t\t\n\t\t\n\n\t}",
"public String reverse(String string) {\n\t\t// TODO Write an implementation for this method declaration\n\t\tString result = \"\";\n\t\tint indexCount = string.length()-1;\n\t\t\n\t\twhile(indexCount > -1) {\n//\t\t\tresult += string.charAt(indexCount);\n\t\t\tchar character = string.charAt(indexCount);\n\t\t\t//System.out.println(character);\n\t\t\tresult = result + character;\n\t\t\tindexCount--;\n\t\t}\n\t\t\n\t\t//System.out.println(result);\n\t\treturn result;\n\n\t}",
"public static void main(String[] args) {\n\t\tString reverse = \"Ragha\";\r\n\t\t//String reversed = ;\r\n //System.out.println(reverseAstring(reverse.toCharArray(),0));\r\n \t//printReverseString(reverse.toCharArray(),0);\r\n \tSystem.out.println('A'^'B');\r\n \tSystem.out.println('B'^3);\r\n \tSystem.out.println(3^65);\r\n\t}",
"public static String reverseWordsAlt(String str){\r\n\t\t\r\n\t\tstr = reverse(str, 0,str.length()-1);\r\n\t\t\r\n\t\tint start=0;\r\n\t\tint end =0;\r\n\t\t\r\n\t\twhile(end < str.length()){\r\n\t\t\t\r\n\t\t\twhile(end<str.length() && str.charAt(end)!=' '){\r\n\t\t\t\tend++;\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\tif(start<end){\r\n\t\t\t\tstr=reverse(str,start,end-1);\r\n\t\t\t\tstart=end+1;\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\tend++;\r\n\t\t\t\r\n\t\t}\r\n\t\t\r\n\t\t\r\n\t\tstr = reverse(str,start,end-1);\r\n\t\t\r\n\t\treturn str;\r\n\t}",
"String reverseWords(String input){\n\t\tStringBuilder output = new StringBuilder(input.length());\n\t\tint startIndex = -1;\n\t\tfor(int i = input.length()-1; i >= 0; i--){\n\t\t\tif(input.charAt(i) == ' ' || i == 0){\n\t\t\t\tif(i == 0)\n\t\t\t\t\tstartIndex = i;\n\t\t\t\telse\n\t\t\t\t\tstartIndex = i+1;\n\t\t\t\twhile(startIndex != input.length() && input.charAt(startIndex) != ' '){\n\t\t\t\t\toutput.append(input.charAt(startIndex));\n\t\t\t\t\tstartIndex++;\n\t\t\t\t}\n\t\t\t\toutput.append(' ');\n\t\t\t}\n\t\t}\n\t\treturn output.toString();\n\t}",
"public static String reverseWordsInSentence(String str){\n String [] words = str.split(\" \");\n String reversedSentence = \"\";\n\n for(int i = words.length-1; i >= 0; i--){\n reversedSentence += words[i] + \" \";\n }\n return reversedSentence.trim();\n }",
"public IDnaStrand reverse();",
"public static void main1(String[] args) {\n String str = \"i am a student\";\n String[] arr = str.split(\" \");\n reverse(arr);\n System.out.println(Arrays.toString(arr));\n StringBuilder builder = new StringBuilder();\n for (int i = 0; i < arr.length; i++) {\n builder.append(arr[i]);\n if (i != arr.length - 1) {\n builder.append(\" \");\n }\n }\n builder.reverse();\n System.out.println(builder);\n }",
"public static void main(String[] args) {\n\t\t\n\t\tString str=\"Selenium\";\n\t\tString revStr=\"\";\n\t\t\n\t\tfor (int i=str.length()-1;i>=0;i--){\n\t\t\trevStr=revStr+str.charAt(i);\n\t\t}\n\t\t\n\t\tSystem.out.println(\"Reverse String is \"+revStr);\n\n\t}",
"public static void main(String[] args) {\n\tScanner s = new Scanner(System.in);\n\tSystem.out.println(\"Enter String\");\n\tString input = s.nextLine();\n\tString a=reverse(input);\n\tSystem.out.print(a);\n}",
"static String reverseWords(String str) {\r\n\r\n\t\t// Specifying the pattern to be searched\r\n\t\tPattern pattern = Pattern.compile(\"\\\\s\");\r\n\r\n\t\t// splitting String str with a pattern\r\n\t\t// (i.e )splitting the string whenever their\r\n\t\t// is whitespace and store in temp array.\r\n\t\tString[] temp = pattern.split(str);\r\n\t\tString result = \"\";\r\n\r\n\t\t// Iterate over the temp array and store\r\n\t\t// the string in reverse order.\r\n\t\tfor (int i = 0; i < temp.length; i++) {\r\n\t\t\tif (i == temp.length - 1)\r\n\t\t\t\tresult = temp[i] + result;\r\n\t\t\telse\r\n\t\t\t\tresult = \" \" + temp[i] + result;\r\n\t\t}\r\n\t\treturn result;\r\n\t}",
"public static void main(String[] args) {\n\t\tStringBuilder sb = new StringBuilder(\"12345\");\n\t\t\n\t\t//inverte a posição dos caracteres da string de traz pra frente e imprime a mensagem\n\t\tSystem.out.println(sb.reverse());\n\t}",
"public static void main(String[] args) {\n\t\tScanner scanner = new Scanner(System.in);\n\t\tSystem.out.print(\"Please enter a string to reverse each word of the string individually: \");\n\t\tString input = scanner.nextLine();\n\t\tSystem.out.printf(\"The string obtained after reversing each word of a string individually is as below: %n%s\", reverseWordsOfAStringIndividually(input));\t\n\t}"
] |
[
"0.7469434",
"0.74339396",
"0.735377",
"0.731329",
"0.7249151",
"0.72475415",
"0.7182789",
"0.7153199",
"0.71407425",
"0.71006036",
"0.7086287",
"0.70818996",
"0.7072714",
"0.7062455",
"0.7051683",
"0.6953522",
"0.69329077",
"0.6929381",
"0.6925139",
"0.69140685",
"0.69117975",
"0.6884486",
"0.68645173",
"0.6850706",
"0.6846887",
"0.68420154",
"0.68389124",
"0.68363476",
"0.6828373",
"0.68064284",
"0.6798745",
"0.6793229",
"0.67850435",
"0.6780773",
"0.6773989",
"0.67674893",
"0.6767314",
"0.6764583",
"0.67577195",
"0.6753721",
"0.6751352",
"0.674909",
"0.6743335",
"0.6742459",
"0.6736463",
"0.6728064",
"0.6717519",
"0.67172146",
"0.6704125",
"0.66976464",
"0.6695416",
"0.668362",
"0.6683264",
"0.66799444",
"0.66768295",
"0.66745627",
"0.66745627",
"0.66700333",
"0.66642725",
"0.6664243",
"0.6659489",
"0.66556567",
"0.66542816",
"0.66531694",
"0.66328186",
"0.6630351",
"0.66108674",
"0.65985066",
"0.6597064",
"0.6592992",
"0.65913093",
"0.6587074",
"0.6579933",
"0.6566776",
"0.6559913",
"0.6556569",
"0.6554592",
"0.65484065",
"0.6541834",
"0.6540534",
"0.6535277",
"0.65330076",
"0.6513946",
"0.65111125",
"0.6498796",
"0.64891833",
"0.6488792",
"0.6487149",
"0.64859277",
"0.6483184",
"0.6479136",
"0.64708674",
"0.6453735",
"0.64532745",
"0.64488214",
"0.6448244",
"0.64427805",
"0.6412958",
"0.6410033",
"0.6406331",
"0.6405505"
] |
0.0
|
-1
|
TODO Autogenerated method stub
|
private static double FToC(double f) {
return (f-32)*5/9;
}
|
{
"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
|
Gets attribute value alias.
|
public String getAttributeValueAlias() {
return attributeValueAlias;
}
|
{
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
}
|
[
"public java.lang.CharSequence getAlias() {\n return alias;\n }",
"public java.lang.CharSequence getAlias() {\n return alias;\n }",
"public Name getAlias() {\n\t\treturn getSingleName();\n\t}",
"public final String attributeNameRef ()\r\n {\r\n return _value.xmlTreePath().attribute();\r\n }",
"public String getAlias() {\n return alias;\n }",
"public String getAlias() {\n return alias;\n }",
"public String getAlias() {\n return alias;\n }",
"public String getAlias() {\r\n return getAlias(this.getClass());\r\n }",
"public String getAlias() {\n return alias;\n }",
"public String getAlias() {\n\t\treturn alias;\n\t}",
"@NotNull\n public String getAlias()\n {\n return alias;\n }",
"public String getAlias();",
"public String getAlias();",
"public String getAlias() {\n return this.key.substring(this.key.lastIndexOf(\".\") + 1);\n }",
"public final String getAlias() {\n return this.keyAlias;\n }",
"private String getAttrValue(Object name) {\n\t return (String)this.mAtts.get(name);//.toString();\n\t}",
"@Override\r\n\tpublic String getValue() {\r\n\t\t//\r\n\t\treturn this.elementWrapper.getAttribute(this.attribute);\r\n\t}",
"@Override\n\tpublic String alias() {\n\t\treturn toString();\n\t}",
"public String getValue() {\n return super.getAttributeValue();\n }",
"public String getAliasname() {\n return aliasname;\n }",
"public String getUserAlias() {\n return userItem.getUserAlias();\n }",
"public String getAgentAlias() {\n return (String)getAttributeInternal(AGENTALIAS);\n }",
"public String getAliasName() {\n return name;\n }",
"public String getAliasName() {\n return name;\n }",
"public String getAliasName() {\n return name;\n }",
"public String getAliasName() {\n return name;\n }",
"@Override\n public Optional<String> getAlias() {\n String symbol = atom.symbol();\n if(!atom.isRSite() && !Elements.isElementSymbol(symbol)){\n return Optional.of(symbol);\n }\n return Optional.empty();\n }",
"java.lang.String getAttribute();",
"public String name() {\n return aliases.get(0);\n }",
"public MonetaryAccountReference getAlias() {\n return this.alias;\n }",
"@Override\n\t\tprotected String getValueAsString() {\n\t\t\tAttr attr = element.getAttributeNodeNS(namespaceURI, localName);\n\t\t\tif (attr == null) {\n\t\t\t\treturn defaultValue;\n\t\t\t}\n\t\t\treturn attr.getValue();\n\t\t}",
"public java.lang.String getUserAlias() {\r\n return userAlias;\r\n }",
"public String getValue(String name) {\n/* 192 */ Attr attr = (Attr)this.m_attrs.getNamedItem(name);\n/* 193 */ return (null != attr) ? attr.getValue() : null;\n/* */ }",
"public String toString() {\n\t\t\treturn aliases[0];\n\t\t}",
"public static QUser alias() {\n return _alias;\n }",
"public String getAliasId() {\n return this.AliasId;\n }",
"String getAttribute();",
"public String getAttribute_value() {\n return attribute_value;\n }",
"public String getValue() throws SdpParseException {\n\t\tNameValue nameValue = getAttribute();\n\t\tif (nameValue == null)\n\t\t\treturn null;\n\t\telse {\n\t\t\tObject value = nameValue.getValue();\n\t\t\tif (value == null)\n\t\t\t\treturn null;\n\t\t\telse if (value instanceof String)\n\t\t\t\treturn (String) value;\n\t\t\telse\n\t\t\t\treturn value.toString();\n\t\t}\n\t}",
"Attribute getAttribute();",
"Aliasing getVariable();",
"public String getValue(int i) {\n/* 151 */ return ((Attr)this.m_attrs.item(i)).getValue();\n/* */ }",
"public String getUserAlias() {\n\t\t\treturn userAlias;\n\t\t}",
"public String getAttributeDisplay() {\r\n\t\treturn String.valueOf(this.getAttributeValue());\r\n\t}",
"public com.flexnet.opsembedded.webservices.SimpleQueryType getAlias() {\n return alias;\n }",
"public String getLable () {\n return getString(ATTRIBUTE_LABEL);\n }",
"public Object attribute(String name) {\n return Classes.getFieldValue(this, name);\n }",
"public String getValue(int index)\n {\n if (index < 0 || index >= attributesList.size())\n {\n return null;\n }\n return ((Attribute) attributesList.get(index)).value;\n }",
"public String getAttributeValue(Node node, String attributeName) throws Exception;",
"public java.lang.String getAttributeValue() {\r\n return localAttributeValue;\r\n }",
"public String getAslName() {\n return (String) getAttributeInternal(ASLNAME);\n }",
"public String getAttributeValue(int id) {\n Attribute attr = super.findById(id, false);\n if (attr != null ) {\n return attr.getValue();\n } else {\n return \"unknown attribute\";\n }\n }",
"@Override\n\tpublic IAttributeValue value() { return value; }",
"default String getAliasPrefix() {\n\t\treturn getDataSet() + \"_\";\n\t}",
"public String getAttribute(String name);",
"public String getValueProperty() {\r\n return getAttributeAsString(\"valueProperty\");\r\n }",
"@ZAttr(id=775)\n public String getDomainAliasTargetId() {\n return getAttr(Provisioning.A_zimbraDomainAliasTargetId, null);\n }",
"private String getAttributeValue() {\n\t\tString attributes = \"\";\r\n\t\tfor(int i=0;i< JTable1.getRowCount();i++ ) {\r\n\t\t\tString attributename = ((String) JTable1.getValueAt(i, 0)).trim();\r\n\t\t\tString attributeValue = ((String) JTable1.getValueAt(i, 1)).trim();\r\n\t\t\t//attributeValue.trim();\r\n\t\t\tif(attributeValue != null && attributeValue.length() > 0)\r\n\t\t\tattributes = attributes.trim() + attributename+ \"=\" + attributeValue + \";\";\r\n\t\t\t\r\n\t\t}\r\n\t\tif(attributes.trim().length() > 0)\r\n\t\treturn attributes.substring(0, attributes.length()-1);\r\n\t\treturn attributes;\r\n\t}",
"@Nonnull\n public final synchronized String getAttributeValue() {\n return attributeValue;\n }",
"String attributeToGetter(String name);",
"public Object getProperty(String attName);",
"public AXValue getName() {\n return name;\n }",
"public String getAttribute(String name)\n {\n return getAttribute(name,null);\n }",
"public String getAliasURI() {\n return uri;\n }",
"public String getAttrVal() {\n return attrVal;\n }",
"String getValueName();",
"public void setAttributeValueAlias(String attributeValueAlias) {\n this.attributeValueAlias = attributeValueAlias;\n }",
"public org.omg.uml.foundation.core.Attribute getAttribute();",
"public Object getAttribute(String name);",
"@Override\n\tpublic String getValue() {\n\t\treturn name;\n\t}",
"public String getAttribute() {\n return attribute;\n }",
"public String getStringAttribute();",
"public String getConnectionAlias() {\n Object ref = connectionAlias_;\n if (!(ref instanceof String)) {\n com.google.protobuf.ByteString bs =\n (com.google.protobuf.ByteString) ref;\n String s = bs.toStringUtf8();\n connectionAlias_ = s;\n return s;\n } else {\n return (String) ref;\n }\n }",
"public String getConnectionAlias() {\n Object ref = connectionAlias_;\n if (!(ref instanceof String)) {\n com.google.protobuf.ByteString bs =\n (com.google.protobuf.ByteString) ref;\n String s = bs.toStringUtf8();\n connectionAlias_ = s;\n return s;\n } else {\n return (String) ref;\n }\n }",
"Object getAttribute(String name);",
"Object getAttribute(String name);",
"Object getAttribute(String name);",
"public String getAttributeValue(final String name) {\n return getAttributeValue(name, \"\");\n }",
"public String getAttribute(String name) {\n return _getAttribute(name);\n }",
"public String asText() {\n return getValueAttribute();\n }",
"public String getAttribute(String name,String dft)\n {\n if(_attrs==null||name==null)\n return dft;\n for(int i=0;i<_attrs.length;i++)\n if(name.equals(_attrs[i].getName()))\n return _attrs[i].getValue();\n return dft;\n }",
"public String getLocalAttribute(String name) {\n\t\treturn localAttributes.get(name);\n\t}",
"private String getPropertyValue() {\n return EmfPropertyHelper.getValue(itemPropertyDescriptor, eObject);\n }",
"private String getAttributeValue(final Attribute attribute) {\n\t List<String> values = this.getAttributeValues(attribute);\n\t if (values.size()>0) {\n\t return values.get(0);\n\t } else {\n\t return \"\";\n\t }\n\t}",
"Object getAttribute(int attribute);",
"public String getAliasintroduce() {\n return aliasintroduce;\n }",
"public String getAttributeValueByName(String name) {\n\t\tif(attributes!=null) {\n\t\t\treturn attributes.get(name);\n\t\t}\n\t\treturn null;\n\t}",
"public void setAlias(java.lang.CharSequence value) {\n this.alias = value;\n }",
"String getAttributeStringValue(Object attr);",
"@Override\n\tpublic String getValue() {\n\t\tif(exps!=null)\n\t\t\treturn id.getValue() + \"(\" + exps.getValue()+ \")\" + expDash.getValue(); \n\t\t\telse\n\t\t\t\treturn id.getValue() + \"()\" + expDash.getValue(); \n\t}",
"public String getAttribute() {\n\t\treturn attribute;\n\t}",
"public String getAttribute() {\n\t\treturn attribute;\n\t}",
"public Object get(String aName) { return _attrMap.get(aName); }",
"java.lang.String getValue();",
"java.lang.String getValue();",
"java.lang.String getValue();",
"java.lang.String getValue();",
"java.lang.String getValue();",
"java.lang.String getValue();",
"public java.lang.String getValue()\n {\n synchronized (monitor())\n {\n check_orphaned();\n org.apache.xmlbeans.SimpleValue target = null;\n target = (org.apache.xmlbeans.SimpleValue)get_store().find_attribute_user(VALUE$12);\n if (target == null)\n {\n return null;\n }\n return target.getStringValue();\n }\n }"
] |
[
"0.7101191",
"0.70845705",
"0.7058604",
"0.7043525",
"0.6901694",
"0.6901694",
"0.68952215",
"0.686895",
"0.6854659",
"0.6854058",
"0.6836654",
"0.6745501",
"0.6745501",
"0.67402416",
"0.66021353",
"0.65486646",
"0.651843",
"0.6507738",
"0.6397602",
"0.6379974",
"0.6343271",
"0.6321812",
"0.62944514",
"0.62944514",
"0.62944514",
"0.62944514",
"0.62681675",
"0.6264164",
"0.6261785",
"0.6242584",
"0.6225838",
"0.61587745",
"0.61580503",
"0.6143269",
"0.6095076",
"0.6075011",
"0.60010093",
"0.5991774",
"0.5937359",
"0.593302",
"0.5932259",
"0.5930131",
"0.5919915",
"0.5873192",
"0.58126175",
"0.5792086",
"0.5777738",
"0.5772104",
"0.5763156",
"0.57548445",
"0.57399684",
"0.5739734",
"0.57287395",
"0.57233286",
"0.571733",
"0.57142955",
"0.570953",
"0.5700255",
"0.56722283",
"0.5671887",
"0.5662561",
"0.5633991",
"0.56332225",
"0.5615891",
"0.56097",
"0.5605961",
"0.55915844",
"0.55909395",
"0.5586961",
"0.55759513",
"0.55708927",
"0.55662495",
"0.55646944",
"0.55646944",
"0.5561772",
"0.5561772",
"0.5561772",
"0.556136",
"0.5551835",
"0.55503726",
"0.5537384",
"0.55344486",
"0.55342394",
"0.55271775",
"0.5526936",
"0.5525638",
"0.55130166",
"0.5510891",
"0.5496533",
"0.5488879",
"0.54779464",
"0.54779464",
"0.5471139",
"0.54548216",
"0.54548216",
"0.54548216",
"0.54548216",
"0.54548216",
"0.54548216",
"0.5448108"
] |
0.78244483
|
0
|
Sets attribute value alias.
|
public void setAttributeValueAlias(String attributeValueAlias) {
this.attributeValueAlias = attributeValueAlias;
}
|
{
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
}
|
[
"public void setAlias(java.lang.CharSequence value) {\n this.alias = value;\n }",
"public export.serializers.avro.DeviceInfo.Builder setAlias(java.lang.CharSequence value) {\n validate(fields()[4], value);\n this.alias = value;\n fieldSetFlags()[4] = true;\n return this;\n }",
"public void setAlias(String alias);",
"public void setAlias(String newAlias) {\n alias = newAlias;\n }",
"public void setAgentAlias(String value) {\n setAttributeInternal(AGENTALIAS, value);\n }",
"@Override\n public void setAlias(String alias) {\n throw new UnsupportedOperationException(\"View doesn't support alias\");\n }",
"public static void setAlias(String alias, String value) throws ConfigurationException, IOException {\r\n if (!alias.equals(\"\")) {\r\n UnitAction.SetRunTimeData(alias, value);\r\n }\r\n }",
"public String getAttributeValueAlias() {\n return attributeValueAlias;\n }",
"public void set_attribute(Object instance, String attribute_name, Object value) throws XtumlException;",
"public void setAlias(String alias)\n {\n this.alias = alias;\n }",
"public void setAttrib(String name, String value);",
"@Override\n\tpublic void setValue(final Attribute att, final String value) {\n\n\t}",
"public void setAlias(String alias) {\r\n\t\tthis.alias = alias;\r\n\t}",
"void setProperty(String attribute, String value);",
"public void setAliases(final String alias, final String rowAlias, final String rowSetAlias);",
"public void setAlias(String alias) {\n this.alias = alias == null ? null : alias.trim();\n }",
"public void setAlias(String alias) {\n this.alias = alias == null ? null : alias.trim();\n }",
"public String getAlias() {\n return alias;\n }",
"public void setAlias(String alias) {\n\t\tthis.alias = alias;\n\t}",
"@Override\n\tpublic void setValue(final int attIndex, final String value) {\n\n\t}",
"public T set(String name, Object value)\n\t\t\tthrows TablesawException\n\t\t{\n\t\ttry\n\t\t\t{\n\t\t\tif (value instanceof String)\n\t\t\t\t{\n\t\t\t\tm_intHelper.setAttribute(m_project, m_antObject, name, (String)value);\n\t\t\t\t}\n\t\t\telse\n\t\t\t\t{\n\t\t\t\tMethod m = m_intHelper.getAttributeMethod(name);\n\t\t\t\tm.invoke(m_antObject, value);\n\t\t\t\t}\n\t\t\t}\n\t\tcatch (IllegalArgumentException iae)\n\t\t\t{\n\t\t\t// TODO: add better error\n\t\t\tthrow new TablesawException(iae);\n\t\t\t}\n\t\tcatch (Exception e)\n\t\t\t{\n\t\t\tthrow new TablesawException(\"Error setting attribute '\"+name+\"' on '\"+m_elementName+\"'\", e);\n\t\t\t}\n\t\t\n\t\treturn ((T)this);\n\t\t}",
"public String getAlias() {\n return alias;\n }",
"public String getAlias() {\n return alias;\n }",
"public PropertySpecBuilder<T> alias(String alias)\n {\n Preconditions.checkArgument(this.alias == null, \"alias already set\");\n this.alias = alias;\n\n return this;\n }",
"public OwnerTrace<T> alias(String alias) {\n\t\tdata.alias = alias;\n\t\treturn this;\n\t}",
"public String getAlias() {\n return alias;\n }",
"public java.lang.CharSequence getAlias() {\n return alias;\n }",
"@Override\n public String getDescription() {\n return \"Alias assignment\";\n }",
"String attributeToSetter(String name);",
"public java.lang.CharSequence getAlias() {\n return alias;\n }",
"@Override\r\n\tpublic void setValue(String x) {\r\n\t\tthis.elementWrapper.setAttribute(this.attribute, x);\r\n\t}",
"public void setUserAlias(java.lang.String userAlias) {\r\n this.userAlias = userAlias;\r\n }",
"public String getAlias() {\n\t\treturn alias;\n\t}",
"public Builder setConnectionAlias(\n String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n\n connectionAlias_ = value;\n onChanged();\n return this;\n }",
"public Builder setConnectionAlias(\n String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n\n connectionAlias_ = value;\n onChanged();\n return this;\n }",
"public void setAttribute(String name, Object value);",
"public String getAlias();",
"public String getAlias();",
"void setAttribute(String name, Object value);",
"void setAttribute(String name, Object value);",
"protected abstract void setContextAttribute(String name, Object value);",
"@Override\n\tpublic void attribute(QName qName, String value) {\n\t\t\n\t}",
"@NotNull\n public String getAlias()\n {\n return alias;\n }",
"void setInternal(ATTRIBUTES attribute, Object iValue);",
"@Override\n\t\tpublic void setAttribute(String name, Object value) {\n\t\t\t\n\t\t}",
"@Override\n\t\tprotected void setAttributeValue(String value) {\n\t\t\ttry {\n\t\t\t\tchanging = true;\n\t\t\t\telement.setAttributeNS(namespaceURI, localName, value);\n\t\t\t} finally {\n\t\t\t\tchanging = false;\n\t\t\t}\n\t\t}",
"public void setUserAlias(String userAlias) {\n\t\t\tthis.userAlias = userAlias;\n\t\t}",
"void setValueExpression(String attributeName, ValueExpression valueExpression);",
"AliasVariable createAliasVariable();",
"@Override\n\t\tprotected void setAttributeValue(String value) {\n\t\t}",
"void setString(String attributeValue);",
"public void setValue(final String value) {\n super.setAttributeValue(value);\n }",
"@Override\n\tpublic void setAttrVal(String attrName, Object attrVal) {\n\n\t}",
"public void setAliasname(String aliasname) {\n this.aliasname = aliasname;\n }",
"void setAttributes(String attributeName, String attributeValue);",
"void setMetadataValue(String name, String value) throws IOException;",
"@Deprecated\r\n public Criteria setAlias(String alias) {\r\n this.alias = alias.trim();\r\n return this;\r\n }",
"void registerAlias( String beanName, String alias );",
"final public void setAttr(final String name, final Object value) {\r\n\t\tmOptmizedKey++;\r\n\t\tfor(final Attr attr : mAttributes) {\r\n\t\t\tif(attr.Name.equals(name))\r\n\t\t\t\tattr.Object = value;\r\n\t\t}\r\n\t}",
"public void setAttribute_value(String string) {\n this.attribute_value = string;\n }",
"public String getAliasname() {\n return aliasname;\n }",
"public void setAttribute(Object key, Object value);",
"public void setName(AXValue name) {\n this.name = name;\n }",
"@Override\n\tpublic void setAttribute(String arg0, Object arg1) {\n\n\t}",
"public void setAlias(com.flexnet.opsembedded.webservices.SimpleQueryType alias) {\n this.alias = alias;\n }",
"public static void setProperty(String tag, String val) {\n\n prop.setProperty(tag, val);\n }",
"public void setAttributeValue(String name, String value) throws Exception {\n if (!_attributes.containsKey(name)) {\n throw new Exception(name + \" is not a valid attribute name for features in the\" + _layer.getDisplayName() + \" layer\");\n }\n _attributes.setProperty(name, value);\n }",
"@Deprecated\n\tpublic <K> void setAttribute(String attributeName, K value);",
"public void setAttribute(Execution exec, String name, Object value);",
"public static void attribute(String name, long value) {\n openAttribute(name); Log.write(value); closeAttribute();\n }",
"@Override\n\t\tpublic void setAttribute(String name, Object o) {\n\t\t\t\n\t\t}",
"public void setExtAttribute3(String value) {\n setAttributeInternal(EXTATTRIBUTE3, value);\n }",
"@Override\n\tpublic void setAttribute(String name, Object value) {\n super.setAttribute(name, value);\n Enumeration<Figure> k = figures();\n while (k.hasMoreElements())\n k.nextElement().setAttribute(name, value);\n }",
"@ReactMethod\n public void alias(String newId) {\n mixpanel.alias(newId, mixpanel.getDistinctId());\n }",
"@VisibleForTesting\n protected static String quoteAlias(String alias) {\n return String.format(\"`%s`\", alias);\n }",
"void setAttribute( String attrName, Object value ) throws FileSystemException;",
"@Override\n\tpublic String alias() {\n\t\treturn toString();\n\t}",
"@Override\n\tpublic void setAttribute(String name, Object o) {\n\t\t\n\t}",
"public void setAttribute1(String value)\n {\n setAttributeInternal(ATTRIBUTE1, value);\n }",
"public void setAttrVal(String attrVal) {\n this.attrVal = attrVal;\n }",
"public void setAttribute(String key, Object value)\n {\n final IAttributeEditor editor = editors.get(key);\n if (editor != null)\n {\n editor.setValue(value);\n }\n }",
"public void setValue(Class<? extends ADao> pType, String pName, String pAttribute, Object pValue) {\n\t\t\n\t}",
"public void setAttribute(NameValue a) {\n\t\tattribute = a;\n\t\tattribute.setSeparator(Separators.COLON);\n\t}",
"public final void mT__101() throws RecognitionException {\r\n try {\r\n int _type = T__101;\r\n int _channel = DEFAULT_TOKEN_CHANNEL;\r\n // InternalSpringConfigDsl.g:102:8: ( 'alias=' )\r\n // InternalSpringConfigDsl.g:102:10: 'alias='\r\n {\r\n match(\"alias=\"); \r\n\r\n\r\n }\r\n\r\n state.type = _type;\r\n state.channel = _channel;\r\n }\r\n finally {\r\n }\r\n }",
"public void storeAttribute(final String elementLocator, final String attributeName, final String variableName);",
"public void addAlias(Origin alias, Origin target) {\n aliases.put(alias, target);\n }",
"public void setAttributeValue(java.lang.String param) {\r\n localAttributeValueTracker = true;\r\n\r\n this.localAttributeValue = param;\r\n\r\n\r\n }",
"public void setAttribute3(String value)\n {\n setAttributeInternal(ATTRIBUTE3, value);\n }",
"public void setTargetValue(String name, Object def);",
"public PetAttributeValueHistory(java.lang.String alias) {\n\t\tsuper(alias, com.petpace.db.jooq.Rigel.RIGEL, com.petpace.db.jooq.tables.PetAttributeValueHistory.PET_ATTRIBUTE_VALUE_HISTORY);\n\t}",
"@Override\n\tprotected void setValue(String name, TipiValue tv) {\n\t}",
"@Override\n\t\tpublic void addAttribute(String name, String value) {\n\t\t\t\n\t\t}",
"@Override\n\t\tpublic void addAttribute(String name, String value) {\n\t\t\t\n\t\t}",
"public void set(String attribute, Object value) {\r\n\t\tput(attribute, value);\r\n\t}",
"public void set(String name, Object value) {\n }",
"public void setGraphAttribute(String id, String value) {\n this.setGraphAttribute(new DotGraphAttribute(id, value));\n }",
"@Override\r\n\tpublic void addAttr(String name, String value) {\n\t}",
"public void setTarget(DmcObjectName value) {\n DmcAttribute<?> attr = get(DmpDMSAG.__target);\n if (attr == null)\n attr = new DmcTypeNameContainerSV(DmpDMSAG.__target);\n \n try{\n attr.set(value);\n set(DmpDMSAG.__target,attr);\n }\n catch(DmcValueException ex){\n throw(new IllegalStateException(\"The alternative type specific set() method shouldn't throw exceptions!\",ex));\n }\n }",
"public void setSessionAttribute(String name, Object val, String scope) { \n\t\tthrow new UnsupportedOperationException();\n\t}",
"public void setProperty(String name,Object value);"
] |
[
"0.73284954",
"0.7244069",
"0.69388705",
"0.6709019",
"0.6629519",
"0.6620057",
"0.6581526",
"0.64841944",
"0.62650615",
"0.62581176",
"0.621629",
"0.6138156",
"0.60421586",
"0.6025324",
"0.5995422",
"0.5965306",
"0.5965306",
"0.5963535",
"0.5962097",
"0.59533775",
"0.5944236",
"0.5919069",
"0.5919069",
"0.5895682",
"0.58816475",
"0.5875596",
"0.58636856",
"0.58522415",
"0.58285475",
"0.58254504",
"0.5800159",
"0.5792712",
"0.579117",
"0.5773673",
"0.5773673",
"0.57734114",
"0.57576996",
"0.57576996",
"0.5755035",
"0.5755035",
"0.5731075",
"0.5725956",
"0.5711884",
"0.56918174",
"0.5687699",
"0.5675184",
"0.5652486",
"0.56489724",
"0.56277025",
"0.5625155",
"0.5582974",
"0.5567831",
"0.5545205",
"0.5544428",
"0.55346674",
"0.5533185",
"0.5520507",
"0.55169237",
"0.5463189",
"0.5455504",
"0.54512304",
"0.5411448",
"0.5408999",
"0.5396171",
"0.5387825",
"0.5376819",
"0.5365768",
"0.53396237",
"0.5329903",
"0.5309328",
"0.5304355",
"0.5303861",
"0.53018916",
"0.5284763",
"0.5279328",
"0.52791226",
"0.5272488",
"0.5269372",
"0.52641124",
"0.52625036",
"0.52592343",
"0.52584136",
"0.52574825",
"0.52552515",
"0.5255097",
"0.525482",
"0.5252988",
"0.5250928",
"0.524545",
"0.52402747",
"0.5238986",
"0.5236635",
"0.5236635",
"0.52174985",
"0.5216908",
"0.5204665",
"0.5201937",
"0.5196175",
"0.51875335",
"0.51844877"
] |
0.6583663
|
6
|
Gets account id type.
|
public String getAccountIdType() {
return accountIdType;
}
|
{
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
}
|
[
"public String getAccountType() {\n return accountType;\n }",
"public String getAccountType() {\n return accountType;\n }",
"public int getAccountType() {\r\n return accountType;\r\n }",
"GlAccountType getGlAccountType();",
"public abstract int getAccountType();",
"protected String getType(){\n sharedPref = getSharedPreferences(AppCSTR.PREF_NAME, Context.MODE_PRIVATE);\n //Log.d(\"TYPE\", sharedPref.getString(\"accountType\", null));\n return sharedPref.getString(AppCSTR.ACCOUNT_TYPE, null);\n }",
"public static int getAccountType(int accountId) throws SQLException {\n boolean cdt1 = Checker.checkValidUserAccountAccountId(accountId);\n // if it is a valid account id, establish a connection\n if (cdt1) {\n Connection connection = DatabaseDriverHelper.connectOrCreateDataBase();\n int accountType = DatabaseSelector.getAccountType(accountId, connection);\n connection.close();\n return accountType;\n }\n \n return -1;\n\n }",
"public AccountType getAccountType() {\n return accountType;\n }",
"public AccountType getAccountType() {\n return accountType;\n }",
"public String getTypeAccountInNumber() {\n return typeAccountInNumber;\n }",
"public PaymentAccountTypeId getAccountType() {\n return this.accountType;\n }",
"@Column(name = \"ACCOUNT_TYPE\")\n\tpublic String getAccountType()\n\t{\n\t\treturn accountType;\n\t}",
"public String getIdType() {\n return idType;\n }",
"public String getId_type() {\n return id_type;\n }",
"String getAccountID();",
"String getAccountID();",
"public Integer getIdType() {\n return idType;\n }",
"public int getIdType() {\r\n return idType;\r\n }",
"public String getAccountTypeCode() {\n return accountTypeCode;\n }",
"public String getIDType() {\n return idType;\n }",
"public String getBankAccountType();",
"public static String getAccountTypeName(int accountTypeId) throws SQLException {\n boolean cdt1 = Checker.checkValidAccountsType(accountTypeId);\n // establish a connection\n String accountTypeName = null;\n Connection connection = DatabaseDriverHelper.connectOrCreateDataBase();\n // if it is a valid account type id\n if (cdt1) {\n\n accountTypeName = DatabaseSelector.getAccountTypeName(accountTypeId, connection);\n\n }\n connection.close();\n return accountTypeName;\n }",
"public int getAccType() {\n\t\treturn accType;\n\t}",
"public String getTypeAccountInLetter() {\n return typeAccountInLetter;\n }",
"public String getTypeId() {\r\n return typeId;\r\n }",
"public String getAccountID() {\n return (tozAdAccountID);\n }",
"IDType getID();",
"int getTypeIdValue();",
"public java.lang.Object getAccountID() {\n return accountID;\n }",
"public Integer getTypeId() {\n return typeId;\n }",
"protected int getTypeIdFor( final String type )\n {\n if( type.equalsIgnoreCase( TYPE_CLASS_STR ) )\n {\n return TYPE_CLASS;\n }\n else\n {\n return super.getTypeIdFor( type );\n }\n }",
"@Override\n\tpublic BigInteger selectUserIdByAccount(String account,Long type) {\n\t\t\n\t\tLoginNo loginNo = accountManageDao.selectLoginNoDetail(account, type);\n\t\tBigInteger res = loginNo==null?null:loginNo.gettUserFId();\n\t\treturn res;\n\t}",
"public java.lang.String getAccount_Id() {\n return account_Id;\n }",
"com.google.ads.googleads.v13.enums.LinkedAccountTypeEnum.LinkedAccountType getType();",
"public int getTypeId() {\n return typeId_;\n }",
"public int getTypeId() {\n return instance.getTypeId();\n }",
"public BigDecimal getTypeId() {\n return typeId;\n }",
"private String getBillSysId(String accountType) throws Exception {\n\t\tString delimiter = \"_\";\n\t\tString[] str = accountType.split(delimiter);\n\t\taccountType = str[0];\n\t\tif (accountType.equals(TelstraCBMConstants.SOURCE_SYSTEM_FLEXCAB)) {\n\t\t\treturn BILL_SYS_ID_FLEXCAB;\n\t\t} else if (accountType.equals(TelstraCBMConstants.SOURCE_SYSTEM_MNET)) {\n\t\t\treturn BILL_SYS_ID_MICA;\n\t\t}\n\t\telse throw new Exception(\"Unsupported account type: \" + accountType);\n\t}",
"@ApiModelProperty(value = \"This is used to identify the account type of the senderPrimaryAccountNumber in the request. Below are the possible values.<br><br> 00-Not applicable<br> 10-Saving account<br> 20-Checking account<br> 30-Credit card account<br> 40-Universal account<br><br>Default is set to \\\"00\\\" if not provided.\")\n public String getAccountType() {\n return accountType;\n }",
"public TypeID getTypeID() {\n\t\treturn typeID;\n\t}",
"public TypeId getTypeId() {\r\n return typeId;\r\n }",
"public Long getAccountID() {\n return accountID;\n }",
"public Long getAccountID() {\n return accountID;\n }",
"public Integer getEntityTypeId() {\n // get entity type code\n String code = getEntityTypeCode();\n // check cache, (may contain null)\n if (entityTypeIdCache.containsKey(code)) {\n return entityTypeIdCache.get(code);\n }\n // query, cache, and return metadata driven ids\n EntityType entityType = getMetadata().getEntityTypeByName(code);\n Integer id = ((entityType != null) ? entityType.getEntityTypeId() : null);\n entityTypeIdCache.put(code, id);\n return id;\n }",
"public Long getAccountID() {\n return accountID;\n }",
"public Long getAccountID() {\n return accountID;\n }",
"public interface ID_TYPE {\r\n public static final int OWNER = 1;\r\n public static final int ATTENDANT = 2;\r\n public static final int DRIVER = 3;\r\n }",
"public void setAccountType(int value) {\r\n this.accountType = value;\r\n }",
"public static List<Integer> getAccountTypesIds() throws SQLException {\n Connection connection = DatabaseDriverHelper.connectOrCreateDataBase();\n ResultSet results = DatabaseSelector.getAccountTypesId(connection);\n List<Integer> ids = new ArrayList<>();\n // add the account types ids to the arraylist\n while (results.next()) {\n ids.add(results.getInt(\"ID\"));\n }\n connection.close();\n return ids;\n }",
"public Class<?> getIdType(Class<?> aClass) {\n\t\tFw pkfld = this.getExplicitIdField(aClass);\n\t\tif (pkfld != null) {\n\t\t\tClass<?> result = pkfld.type();\n\t\t\tImportHelper.addImport(result);\n\t\t\treturn result;\n\t\t}\n\n\t\treturn Long.class;\n\t}",
"public String getType() {\n return \"uid\";\n }",
"java.lang.String getAccountNumber();",
"public void setAccountIdType(String accountIdType) {\n this.accountIdType = accountIdType;\n }",
"public static int getIdByType(String type)\n {\n return idTypeMap.get(type).intValue();\n }",
"public Long getTypeId() {\r\n\t\treturn typeId;\r\n\t}",
"public Long getTypeid() {\n return typeid;\n }",
"private int getAchievementTypeID(String achievement) {\n\t\tint result = 0;\n\t\tString query = \"SELECT * FROM \" + DBInfo.ACHIEVEMENT_TYPES + \" WHERE NAME = ?;\";\n\t\ttry {\n\t\t\tPreparedStatement preparedStatement = con.prepareStatement(query);\n\t\t\tpreparedStatement.setString(1, achievement);\n\t\t\tResultSet rs = preparedStatement.executeQuery();\n\t\t\twhile (rs.next()) {\n\t\t\t\tint id = rs.getInt(DBInfo.ACHIEVEMENT_TYPES_ID);\n\t\t\t\treturn id;\n\t\t\t}\n\t\t} catch (SQLException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t\treturn result;\n\t}",
"Long getAccountId();",
"public int getTypeId();",
"public int getTypeId();",
"public int getAccountID() {\n return accountID;\n }",
"public String getIdTypeName() {\n\t\treturn this.getIdType(this.currentClass()).getSimpleName();\n\t}",
"@Override\n public String getDeviceTypeId() {\n \n return this.strTypId;\n }",
"String getOrderTypeId();",
"private String getSchemaTypeTypeGUID(SchemaType schemaType)\n {\n ElementType type = schemaType.getType();\n if (type != null)\n {\n return type.getElementTypeId();\n }\n else\n {\n return SchemaElementMapper.SCHEMA_TYPE_TYPE_GUID;\n }\n }",
"java.lang.String getAccountId();",
"java.lang.String getAccountId();",
"java.lang.String getAccountId();",
"protected String getID(){\n sharedPref = getSharedPreferences(AppCSTR.PREF_NAME, Context.MODE_PRIVATE);\n //Log.d(\"ID\", sharedPref.getString(\"id\", null));\n return sharedPref.getString(AppCSTR.ACCOUNT_ID, null);\n }",
"int getLoginType();",
"public int getType();",
"public int getType();",
"public int getType();",
"public int getType();",
"public int getType();",
"@Override\r\n\tpublic String getAccountTypeName() {\n\t\treturn null;\r\n\t}",
"public Class<Long> getIdType() {\n return Long.class;\n }",
"public String getIdentityType() {\n return identityType;\n }",
"java.lang.String getAccount();",
"public HashMap<String, Integer> getId_types() {\n return id_types;\n }",
"public String getId() {\n return typeDeclaration.getId();\n }",
"Account findByAccountType(String accountType);",
"public String getAccountNo();",
"@Override\n\tpublic java.lang.String getAccountCode() {\n\t\treturn _lineaGastoCategoria.getAccountCode();\n\t}",
"public Integer getAcctId() {\n return acctId;\n }",
"@Override\n public byte getType() {\n return TYPE_ACCOUNT_CONTROL;\n }",
"public int getType()\n {\n return pref.getInt(KEY_TYPE, 0);\n }",
"public long getType() {\r\n return type;\r\n }",
"int getType();",
"int getType();",
"int getType();",
"int getType();",
"int getType();",
"int getType();",
"int getType();",
"int getType();",
"final public int getType() {\n return type;\n }",
"public java.lang.String getAccountId() {\n java.lang.Object ref = accountId_;\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 accountId_ = s;\n }\n return s;\n }\n }",
"public java.lang.String getAccountId() {\n java.lang.Object ref = accountId_;\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 accountId_ = s;\n }\n return s;\n }\n }",
"public java.lang.String getAccountId() {\n java.lang.Object ref = accountId_;\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 accountId_ = s;\n }\n return s;\n }\n }"
] |
[
"0.74639636",
"0.74639636",
"0.7458631",
"0.7313",
"0.7306576",
"0.72319704",
"0.72102505",
"0.71769273",
"0.71769273",
"0.7041861",
"0.7001838",
"0.69551957",
"0.6900362",
"0.68951756",
"0.6859013",
"0.6859013",
"0.67706585",
"0.67006606",
"0.6568521",
"0.6476085",
"0.6400569",
"0.63980085",
"0.6317334",
"0.6255035",
"0.6227013",
"0.6215288",
"0.6198933",
"0.6198464",
"0.61790067",
"0.61745113",
"0.61656916",
"0.615899",
"0.6153438",
"0.61523575",
"0.6152031",
"0.614572",
"0.61317986",
"0.6123371",
"0.60898536",
"0.6087519",
"0.6075425",
"0.6073003",
"0.6073003",
"0.606842",
"0.6065606",
"0.6065606",
"0.60520905",
"0.60513467",
"0.60457516",
"0.60435283",
"0.60148084",
"0.60129666",
"0.6010592",
"0.600782",
"0.60069716",
"0.60000837",
"0.59833735",
"0.5968971",
"0.59370404",
"0.59370404",
"0.5924106",
"0.5904239",
"0.589906",
"0.5889416",
"0.5880716",
"0.58778",
"0.58778",
"0.58778",
"0.5863498",
"0.58542264",
"0.58527064",
"0.58527064",
"0.58527064",
"0.58527064",
"0.58527064",
"0.58512145",
"0.58131105",
"0.5792759",
"0.57922",
"0.5790113",
"0.5786271",
"0.5778207",
"0.5767854",
"0.5744611",
"0.57444507",
"0.5730623",
"0.5725617",
"0.5718363",
"0.5712691",
"0.5712691",
"0.5712691",
"0.5712691",
"0.5712691",
"0.5712691",
"0.5712691",
"0.5712691",
"0.5709983",
"0.5697909",
"0.5697909",
"0.5697909"
] |
0.80406773
|
0
|
Sets account id type.
|
public void setAccountIdType(String accountIdType) {
this.accountIdType = accountIdType;
}
|
{
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
}
|
[
"public void setAccountType(int value) {\r\n this.accountType = value;\r\n }",
"public void setAccountType(PaymentAccountTypeId value) {\n this.accountType = value;\n }",
"public void setId_type(String id_type) {\n this.id_type = id_type;\n }",
"public void setIdType(int idType) {\r\n this.idType = idType;\r\n }",
"public void setIdType(Integer idType) {\n this.idType = idType;\n }",
"public void setType(int id) {\n _type = id;\n }",
"public void setAccountType(AccountType accountType) {\n this.accountType = accountType;\n }",
"public void setAccountType(AccountType accountType) {\n this.accountType = accountType;\n }",
"public void setIdType(String idType) {\n this.idType = idType == null ? null : idType.trim();\n }",
"public String getAccountIdType() {\n return accountIdType;\n }",
"public void setAccountType(AccountType accountType) {\n if (accountType != null && !accountType.equals(this.accountType)) {\n previousAccountType = this.accountType;\n lastAccountChangeDate = new Date();\n }\n\n this.accountType = accountType;\n\n }",
"public void setAccountType(String accountType)\n\t{\n\t\tthis.accountType = accountType;\n\t}",
"private void setTypeId(int value) {\n \n typeId_ = value;\n }",
"public void setType(int type)\n {\n editor.putInt(KEY_TYPE, type);\n // commit changes\n editor.commit();\n Log.d(TAG,\"user type modified in pref\");\n }",
"public void setTypeAccountInNumber(String typeAccountInNumber) {\n if (NUM_CTA_AHORROS.equalsIgnoreCase(typeAccountInNumber) || NUM_CTA_CORRIENTE.equalsIgnoreCase(typeAccountInNumber)) {\n this.typeAccountInNumber = typeAccountInNumber;\n } else {\n this.typeAccountInNumber = AdministradorUtilidades.formatoTipoCuentaNumero(typeAccountInNumber);\n }\n\n }",
"protected void setPrefValue(String type, String id, String name){\n //adds a key value pair to pref\n edit.putString(AppCSTR.ACCOUNT_TYPE, type);\n edit.putString(AppCSTR.ACCOUNT_ID, id);\n edit.putString(AppCSTR.ACCOUNT_NAME, name);\n //records changes\n edit.commit();\n }",
"public void setAccountType(String accountType) {\n this.accountType = accountType == null ? null : accountType.trim();\n }",
"public void setType(int atype)\n {\n type = atype;\n }",
"public void setTypeId(Integer typeId) {\n this.typeId = typeId;\n }",
"public static void setType(int type) {\n\t\t\tGamePreferences.type = type;\n\t\t}",
"public int getAccountType() {\r\n return accountType;\r\n }",
"public String getAccountType() {\n return accountType;\n }",
"public String getAccountType() {\n return accountType;\n }",
"public void setType(int type) {\r\n this.type = type;\r\n }",
"public void setType(int type) {\r\n this.type = type;\r\n }",
"public void setType (int type) {\n this.type = type;\n }",
"public void setType (int type) {\n this.type = type;\n }",
"public void setType(int type) {\n this.type = type;\n }",
"public void setAccountID(Long value) {\n this.accountID = value;\n }",
"public void setAccountID(Long value) {\n this.accountID = value;\n }",
"public void setUserType(String type) {\r\n switch(type) {\r\n case (\"admin\"): \r\n this.userType = 0;\r\n break;\r\n case (\"seller\"):\r\n this.userType = 1;\r\n break;\r\n case (\"buyer\"):\r\n this.userType = 2;\r\n break;\r\n \r\n }\r\n }",
"public void setType(int type)\n\t{\n\t\tthis.type = type;\n\t}",
"public void setType(int type) {\n\t\tthis.type = type;\n\t}",
"public void setBankAccountType (String BankAccountType);",
"public void setType( int type ) {\r\n typ = type;\r\n }",
"public void setType(int t){\n this.type = t;\n }",
"public void setType(int type) {\n type_ = type;\n }",
"public void setType(long type) {\r\n this.type = type;\r\n }",
"@Override\n\tpublic Account updateAccount(Integer id, String type) {\n\t\tfor(Account account:accountList) {\n\t\t\tif(id.compareTo(account.returnAccountNumber()) == 0 ) {\n\t\t\t\taccount.updateAccountType(type);\n\t\t\t\treturn account;\n\t\t\t}\n\t\t}\n\t\t\n\t\treturn null;\n\t}",
"public void setTypeId(String typeId) {\r\n this.typeId = typeId == null ? null : typeId.trim();\r\n }",
"public void setTypeID(TypeID typeID) {\n\t\tthis.typeID = typeID;\n\t}",
"void setType(final UserType type);",
"public void setTypeId(Long typeId) {\r\n\t\tthis.typeId = typeId;\r\n\t}",
"void setAccountId(Long accountId);",
"public void xsetType(org.apache.xmlbeans.XmlInt type)\n {\n synchronized (monitor())\n {\n check_orphaned();\n org.apache.xmlbeans.XmlInt target = null;\n target = (org.apache.xmlbeans.XmlInt)get_store().find_attribute_user(TYPE$2);\n if (target == null)\n {\n target = (org.apache.xmlbeans.XmlInt)get_store().add_attribute_user(TYPE$2);\n }\n target.set(type);\n }\n }",
"public void setUserType(int type) throws IllegalArgumentException {\n\t\tif (type != TELEPHONE_SUBSCRIBER && type != USER) {\n\t\t\tthrow new IllegalArgumentException(\"Parameter not in range\");\n\t\t}\n\t\tuserType = type;\n\t}",
"public void setType(int a_type) {\n\t\tthis.m_type = a_type;\n\t}",
"void setTxnTypeId(int id)\t{\n\t\tmType = TransactionTypeEnum.getTransactionType(id);\n\t}",
"public void setType(Integer type) {\n this.type = type;\n }",
"public void setType(Integer type) {\n this.type = type;\n }",
"public void setType(Integer type) {\n this.type = type;\n }",
"public void setType(Integer type) {\n this.type = type;\n }",
"public void setType(Integer type) {\n this.type = type;\n }",
"public void setType(Integer type) {\n this.type = type;\n }",
"public void setType(Integer type) {\n this.type = type;\n }",
"public void setTypeId(final ReferenceTypeId typeId);",
"public void setType(int t) {\r\n\t\ttype = t;\r\n\t}",
"public void setType(java.lang.Integer type) {\n this.type = type;\n }",
"public void setType(java.lang.Integer type) {\n this.type = type;\n }",
"public void setType(gov.nih.nci.calims2.domain.common.Type type) {\n this.type = type;\n }",
"public void setTypeid(Long typeid) {\n this.typeid = typeid;\n }",
"public void setData_type_id(int data_type_id) {\n this.data_type_id = data_type_id;\n }",
"public void setAccType(int fromAcc);",
"public void setType(Integer type) {\r\n\t\tthis.type = type;\r\n\t}",
"public PaymentAccountTypeId getAccountType() {\n return this.accountType;\n }",
"public void setTypeId(String typeId) {\r\n\t\t\tthis.typeId = typeId;\r\n\t\t}",
"public void setAccount(String accountID) {\n this.account = accountID;\n }",
"public void setType(Integer type) {\n\t\tthis.type = type;\n\t}",
"@ApiModelProperty(value = \"This is used to identify the account type of the senderPrimaryAccountNumber in the request. Below are the possible values.<br><br> 00-Not applicable<br> 10-Saving account<br> 20-Checking account<br> 30-Credit card account<br> 40-Universal account<br><br>Default is set to \\\"00\\\" if not provided.\")\n public String getAccountType() {\n return accountType;\n }",
"protected void setTypeId(String typeId) {\n\t\tcontext.getElement().setAttribute(\"typeId\", \"org.csstudio.opibuilder.widgets.\" + typeId);\n\t}",
"public void setAccountId(long value) {\n this.accountId = value;\n }",
"public void setTypeId(com.walgreens.rxit.ch.cda.POCDMT000040InfrastructureRootTypeId typeId)\n {\n synchronized (monitor())\n {\n check_orphaned();\n com.walgreens.rxit.ch.cda.POCDMT000040InfrastructureRootTypeId target = null;\n target = (com.walgreens.rxit.ch.cda.POCDMT000040InfrastructureRootTypeId)get_store().find_element_user(TYPEID$2, 0);\n if (target == null)\n {\n target = (com.walgreens.rxit.ch.cda.POCDMT000040InfrastructureRootTypeId)get_store().add_element_user(TYPEID$2);\n }\n target.set(typeId);\n }\n }",
"public void setType(String type);",
"public void setType(String type);",
"public void setType(String type);",
"public AccountType getAccountType() {\n return accountType;\n }",
"public AccountType getAccountType() {\n return accountType;\n }",
"@Column(name = \"ACCOUNT_TYPE\")\n\tpublic String getAccountType()\n\t{\n\t\treturn accountType;\n\t}",
"void setType(String type) {\n this.type = type;\n }",
"public Builder setAccountID(long value) {\n validate(fields()[0], value);\n this.accountID = value;\n fieldSetFlags()[0] = true;\n return this; \n }",
"public void setType(final int t) {\n\t\ttype = t;\n\t}",
"public Builder setAccountID(long value) {\n validate(fields()[2], value);\n this.accountID = value;\n fieldSetFlags()[2] = true;\n return this; \n }",
"public void setType (int nType)\n\t{\n\t\tm_nType = nType;\n\t}",
"public void setType (String type) { n.setAttribute(ATTNAMECOMMONPREFIX + ATTNAMESUFFIX_TYPE , type); }",
"public void setType(int nType) { m_nType = nType; }",
"public void setType(Object type)\r\n {\r\n\tthis.type = type;\r\n }",
"public void setAccountId(String value) {\r\n setAttributeInternal(ACCOUNTID, value);\r\n }",
"public void setType(int type)\n {\n synchronized (monitor())\n {\n check_orphaned();\n org.apache.xmlbeans.SimpleValue target = null;\n target = (org.apache.xmlbeans.SimpleValue)get_store().find_attribute_user(TYPE$2);\n if (target == null)\n {\n target = (org.apache.xmlbeans.SimpleValue)get_store().add_attribute_user(TYPE$2);\n }\n target.setIntValue(type);\n }\n }",
"void setType(Type type)\n {\n this.type = type;\n }",
"public static void savePaguthiID(Context context, String type) {\n SharedPreferences sharedPreferences = PreferenceManager\n .getDefaultSharedPreferences(context);\n SharedPreferences.Editor editor = sharedPreferences.edit();\n editor.putString(GMSConstants.PAGUTHI_ID, type);\n editor.apply();\n }",
"public final void setType(String type){\n\t\tthis.type = type;\t\n\t}",
"BankAccount(String accountType){\n\t\tSystem.out.println(\"NEW ACCOUNT: \" + accountType);\n\t\tthis.accountType = accountType; \n\t}",
"public void setTypeId(BigDecimal typeId) {\n this.typeId = typeId;\n }",
"@JsonIgnore\r\n public void setType(URI type) {\r\n this.type = type == null ? null : new TypeReference<AlternateIdType>(type);\r\n }",
"public void setAccountId(Integer value) {\n this.accountId = value;\n }",
"public void setType( final int type )\n {\n this.type = type;\n fireActionChanged();\n }",
"private void setType(String type) {\n mType = type;\n }",
"public void setType(String type){\n \tthis.type = type;\n }",
"public final void setType(String type) {\n this.type = type;\n }",
"public void setType(String type) {\r\n this.type = type;\r\n }"
] |
[
"0.7574974",
"0.7270411",
"0.70815605",
"0.7050753",
"0.6981319",
"0.6845383",
"0.6737334",
"0.6737334",
"0.6728479",
"0.66781753",
"0.6582205",
"0.65528095",
"0.64793485",
"0.64774996",
"0.64617705",
"0.64564633",
"0.63717645",
"0.6365468",
"0.6230471",
"0.62055236",
"0.6152462",
"0.6141947",
"0.6141947",
"0.6133506",
"0.6133506",
"0.61274874",
"0.61274874",
"0.61148936",
"0.61147004",
"0.61147004",
"0.60664326",
"0.60617304",
"0.60292494",
"0.6010302",
"0.5997567",
"0.59861535",
"0.5982115",
"0.59680367",
"0.5945237",
"0.59319323",
"0.59285665",
"0.5918118",
"0.59142476",
"0.59083575",
"0.5900686",
"0.589899",
"0.5898535",
"0.58817273",
"0.5880306",
"0.5880306",
"0.5880306",
"0.5880306",
"0.5880306",
"0.5880306",
"0.5880306",
"0.58673465",
"0.5864982",
"0.5863416",
"0.5863416",
"0.5861678",
"0.58609796",
"0.5851858",
"0.5840272",
"0.5822883",
"0.58226913",
"0.58213437",
"0.5816321",
"0.581259",
"0.5807977",
"0.57953155",
"0.57860464",
"0.5779496",
"0.5774261",
"0.5774261",
"0.5774261",
"0.57591033",
"0.57591033",
"0.57444024",
"0.5743281",
"0.5737477",
"0.5723548",
"0.57151425",
"0.5709199",
"0.5696131",
"0.5695949",
"0.5687025",
"0.56810206",
"0.56800735",
"0.5679431",
"0.5671038",
"0.5652497",
"0.56502646",
"0.56470776",
"0.56338894",
"0.56305057",
"0.5629026",
"0.5625647",
"0.5625504",
"0.56246316",
"0.5624155"
] |
0.6976699
|
5
|
Gets meta object code.
|
public String getMetaObjectCode() {
return metaObjectCode;
}
|
{
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
}
|
[
"@gw.internal.gosu.parser.ExtendedProperty\n public java.lang.String getCode() {\n return (java.lang.String)__getInternalInterface().getFieldValueForCodegen(CODE_PROP.get());\n }",
"@gw.internal.gosu.parser.ExtendedProperty\n public java.lang.String getCode() {\n return (java.lang.String)__getInternalInterface().getFieldValueForCodegen(CODE_PROP.get());\n }",
"Code getCode();",
"public org.thdl.lex.component.Meta getMeta();",
"int getMeta();",
"public String getFirstObjectCode() {\r\n return firstObjectCode;\r\n }",
"String getCode();",
"String getCode();",
"String getCode();",
"String getCode();",
"String getCode();",
"public String getCode();",
"public String getCode();",
"java.lang.String getCode();",
"java.lang.String getCode();",
"public Object getMeta() {\n return meta;\n }",
"public String getCode() {\n return super.getString(Constants.Properties.CODE);\n }",
"public void setMetaObjectCode(String metaObjectCode) {\n this.metaObjectCode = metaObjectCode;\n }",
"@Accessor(qualifier = \"code\", type = Accessor.Type.GETTER)\n\tpublic String getCode()\n\t{\n\t\treturn getPersistenceContext().getPropertyValue(CODE);\n\t}",
"public CodeableConcept code() {\n return getObject(CodeableConcept.class, FhirPropertyNames.PROPERTY_CODE);\n }",
"@Override\r\n\tpublic String getCode() {\n\t\treturn code;\r\n\t}",
"public String getCode(){\n\t\treturn new SmartAPIModel().getCpSourceCode(cp.getLocalName());\n\t}",
"public long getCode () {\r\n\t\treturn code;\r\n\t}",
"public String getCode() {\t\t\t\t\t\t\t\t\treturn code;\t\t\t\t\t\t\t}",
"public String getCode () {\r\n\t\treturn code;\r\n\t}",
"public java.lang.String getCode() {\r\n return code;\r\n }",
"public String getCode() {\n return (String) get(\"code\");\n }",
"public edu.ustb.sei.mde.morel.resource.morel.IMorelMetaInformation getMetaInformation();",
"public String getCode(){\n\t\treturn code;\n\t}",
"public String getCode()\n {\n return code;\n }",
"public int getCode();",
"public long getCode() {\n return code;\n }",
"@Override\n public String toString() {\n return metaObject.getType().toString();\n }",
"public String getCode()\r\n\t{\r\n\t\treturn code;\r\n\t}",
"com.appscode.api.kubernetes.v1beta2.Meta getMeta();",
"public String getCode() {\r\n return code;\r\n }",
"public String getCode() {\r\n return code;\r\n }",
"public String getCode() {\r\n return code;\r\n }",
"public String getCode() {\r\n return code;\r\n }",
"public String getCode() {\r\n return code;\r\n }",
"public String getCode() {\r\n return code;\r\n }",
"public String getCode() {\r\n return code;\r\n }",
"public int getCode () {\n return code;\n }",
"public String getCode() {\n return code;\n }",
"public String getCode() {\n return code;\n }",
"public String getCode() {\n return code;\n }",
"public String getCode() {\n return code;\n }",
"public String getCode() {\n return code;\n }",
"public String getCode() {\n return code;\n }",
"public String getCode() {\n return code;\n }",
"public String getCode() {\n return code;\n }",
"public String getCode() {\n return code;\n }",
"public String getCode() {\n return code;\n }",
"public String getCode() {\n return code;\n }",
"public String getCode() {\n return code;\n }",
"public String getCode() {\n return code;\n }",
"public String getCode() {\n return code;\n }",
"public String getCode() {\n return code;\n }",
"public String getCode() {\n return code;\n }",
"public String getCode() {\n return code;\n }",
"public String getCode() {\n return code;\n }",
"public String getCode() {\n return code;\n }",
"public String getCode() {\n return code;\n }",
"public String getCode() {\n return code;\n }",
"public String getCode() {\n return code;\n }",
"public String getCode() {\n return code;\n }",
"public String getCode() {\n return code;\n }",
"public java.lang.Integer getMetaId();",
"public String code() {\n return this.code;\n }",
"public String code() {\n return this.code;\n }",
"@Override\n\tpublic int getMeta() {\n\t\t\n\t\treturn meta;\n\t}",
"public String getCode() {\r\n\t\treturn code;\r\n\t}",
"public String getCode() {\r\n\t\treturn code;\r\n\t}",
"public String getCode() {\n\t\treturn code;\n\t}",
"public String getCode() {\n\t\treturn code;\n\t}",
"public String getCode() {\n\t\treturn code;\n\t}",
"public String getCode() {\n\t\treturn code;\n\t}",
"public String getCode() {\n\t\treturn code;\n\t}",
"public String getCode() {\n\t\treturn code;\n\t}",
"public byte getCode();",
"public Long getCode() {\n return code;\n }",
"public Long getCode() {\n return code;\n }",
"Integer getCode();",
"public String getCode() {\n return (String)getAttributeInternal(CODE);\n }",
"public int getCode()\n {\n return code;\n }",
"public int getCode() {\r\n return code;\r\n }",
"public int getCode() {\r\n return code;\r\n }",
"@JsonIgnore\n @Override\n public String getCode()\n {\n return code;\n }",
"public int getCode() {\n return code;\n }",
"public int getCode() {\n return code;\n }",
"public int getCode() {\n return code;\n }",
"public int getCode() {\n return code;\n }",
"public int getCode() {\n return code;\n }",
"public String getCode() {\n\t\treturn Code;\n\t}",
"public String getCode() {\n return _code;\n }",
"public String getCode()\n {\n return fCode;\n }",
"public String getCreatorCode() {\n return creatorCode;\n }",
"public String code() {\n\t\treturn (\"ID\"+this.hashCode()).replace(\"-\", \"M\");\n\t}",
"public String getCode()\n {\n return code;\n}",
"public java.lang.String getCodeProp()\n\t{\n\t\treturn codeProp;\n\t}"
] |
[
"0.64218247",
"0.6402877",
"0.6311344",
"0.6286154",
"0.62258625",
"0.62053525",
"0.6165645",
"0.6165645",
"0.6165645",
"0.6165645",
"0.6165645",
"0.6157909",
"0.6157909",
"0.6151058",
"0.6151058",
"0.6136269",
"0.6118319",
"0.60894793",
"0.6052755",
"0.601931",
"0.59956735",
"0.59313506",
"0.59069306",
"0.59032273",
"0.58929765",
"0.58885163",
"0.5885932",
"0.5880685",
"0.5832425",
"0.5831384",
"0.5829527",
"0.5829015",
"0.58228004",
"0.5804306",
"0.58033067",
"0.57999086",
"0.57999086",
"0.57999086",
"0.57999086",
"0.57999086",
"0.57999086",
"0.57999086",
"0.5788242",
"0.5778976",
"0.5778976",
"0.5778976",
"0.5778976",
"0.57789683",
"0.57789683",
"0.57789683",
"0.57789683",
"0.57789683",
"0.57789683",
"0.57789683",
"0.57789683",
"0.57789683",
"0.57789683",
"0.57789683",
"0.57789683",
"0.57789683",
"0.57789683",
"0.57789683",
"0.57789683",
"0.57789683",
"0.57789683",
"0.57789683",
"0.57789683",
"0.57707816",
"0.57686275",
"0.57686275",
"0.5744531",
"0.573812",
"0.573812",
"0.57379746",
"0.57379746",
"0.57379746",
"0.57379746",
"0.57379746",
"0.57379746",
"0.57358646",
"0.57199454",
"0.57199454",
"0.56835884",
"0.5683403",
"0.56636524",
"0.5660609",
"0.5660609",
"0.56422305",
"0.5628798",
"0.5628798",
"0.5628798",
"0.5628798",
"0.5628798",
"0.5609179",
"0.5605374",
"0.55917114",
"0.5585066",
"0.55692136",
"0.55657285",
"0.5560672"
] |
0.7631958
|
0
|
Sets meta object code.
|
public void setMetaObjectCode(String metaObjectCode) {
this.metaObjectCode = metaObjectCode;
}
|
{
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
}
|
[
"void setCode(String code);",
"public String getMetaObjectCode() {\n return metaObjectCode;\n }",
"public void setMeta(org.thdl.lex.component.Meta meta);",
"public void setCode(java.lang.String value) {\n __getInternalInterface().setFieldValueForCodegen(CODE_PROP.get(), value);\n }",
"public void setCode(java.lang.String value) {\n __getInternalInterface().setFieldValueForCodegen(CODE_PROP.get(), value);\n }",
"public final void setCode(com.mendix.systemwideinterfaces.core.IContext context, java.lang.String code)\n\t{\n\t\tgetMendixObject().setValue(context, MemberNames.Code.toString(), code);\n\t}",
"@Accessor(qualifier = \"code\", type = Accessor.Type.SETTER)\n\tpublic void setCode(final String value)\n\t{\n\t\tgetPersistenceContext().setPropertyValue(CODE, value);\n\t}",
"public void setCode(Code code) {\n this.Code = code;\n }",
"public void setCode(org.hl7.fhir.CodeableConcept code)\n {\n generatedSetterHelperImpl(code, CODE$6, 0, org.apache.xmlbeans.impl.values.XmlObjectBase.KIND_SETTERHELPER_SINGLETON);\n }",
"public abstract void setContentObject(Object object);",
"public final void setCode(java.lang.String code)\n\t{\n\t\tsetCode(getContext(), code);\n\t}",
"public void setCodeset (String codeset)\r\n\t{\r\n\t\tthis.codeset = codeset;\r\n\t}",
"public ObjectCodeField(String label, Class<T> objectClass) {\n this(label, objectClass, \"Code\", 0);\n }",
"void setCode(Integer aCode);",
"public void setDataCode(String dataCode);",
"public void setCode(byte[] code);",
"public void setCode(String code)\n {\n this.code = code;\n }",
"public abstract BaseQuantityDt setCode(String theCode);",
"protected void setCode(@Code int code) {\n\t\tthis.mCode = code;\n\t}",
"public void xsetCode(org.openarchives.www.oai._2_0.OAIPMHerrorcodeType code)\n {\n synchronized (monitor())\n {\n check_orphaned();\n org.openarchives.www.oai._2_0.OAIPMHerrorcodeType target = null;\n target = (org.openarchives.www.oai._2_0.OAIPMHerrorcodeType)get_store().find_attribute_user(CODE$0);\n if (target == null)\n {\n target = (org.openarchives.www.oai._2_0.OAIPMHerrorcodeType)get_store().add_attribute_user(CODE$0);\n }\n target.set(code);\n }\n }",
"@Override\r\n public void setObject(String object) {\n }",
"public void setCode(int code) {\n this.code = code;\n }",
"public void setCode(int code) {\n this.code = code;\n }",
"public void setMetaId(java.lang.Integer metaId);",
"public abstract void setCustomData(Object data);",
"public void setCode (String code) {\r\n\t\tthis.code = code;\r\n\t}",
"public Builder setCode(\n java.lang.String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n \n code_ = value;\n onChanged();\n return this;\n }",
"public void setMeta (boolean meta) {\n\tthis.meta = meta;\n }",
"public void setMetaKey(String metaKey) {\n this.metaKey = metaKey;\n }",
"public void setCodeSet(String codeset) {\n\t\tthis.codeset = codeset;\n\t}",
"public abstract void setContent(Object o);",
"public void setCode(String value) {\n setAttributeInternal(CODE, value);\n }",
"public void setCode(String code) {\n this.code = code;\n }",
"public void setCode(String code) {\n this.code = code;\n }",
"public void setCode(String code) {\n this.code = code;\n }",
"public void setCode(String code) {\n this.code = code;\n }",
"public void setCode(String code) {\n this.code = code;\n }",
"public void setCode(String code) {\n this.code = code;\n }",
"public void setCode(String code){\n\t\tthis.code = code;\n\t}",
"public void setCode(java.lang.String code) {\r\n this.code = code;\r\n }",
"public abstract void setNativeCodeDescriptions(SortedSet<NativeCodeDescription> nativeCodeDescriptions) throws BundleException;",
"public int set_code(String b);",
"public void setCode(Integer code) {\n this.code = code;\n }",
"private void setCustomInstrumentationData(java.lang.String value) {\n __getInternalInterface().setFieldValueForCodegen(CUSTOMINSTRUMENTATIONDATA_PROP.get(), value);\n }",
"void setCode(LineLoader in) {\n code=in;\n }",
"public void setCode(String code) {\r\n\t\tthis.code = code;\r\n\t}",
"public void setCode(String code) {\r\n\t\tthis.code = code;\r\n\t}",
"public void setCode(String code) {\r\n\t\tthis.code = code;\r\n\t}",
"public Type setCode(BoundCodeDt<DataTypeEnum> theValue) {\n\t\tmyCode = theValue;\n\t\treturn this;\n\t}",
"public void code (String code) throws LuchthavenException\r\n\t{\r\n\t\tluchthaven.setCode(code);\r\n\t}",
"public void setCode(String code) {\n\t\tCode = code;\n\t}",
"public void setCode(OAIPMHErrorcodeType code) {\r\n this.code = code;\r\n }",
"public void setCode(org.openarchives.www.oai._2_0.OAIPMHerrorcodeType.Enum code)\n {\n synchronized (monitor())\n {\n check_orphaned();\n org.apache.xmlbeans.SimpleValue target = null;\n target = (org.apache.xmlbeans.SimpleValue)get_store().find_attribute_user(CODE$0);\n if (target == null)\n {\n target = (org.apache.xmlbeans.SimpleValue)get_store().add_attribute_user(CODE$0);\n }\n target.setEnumValue(code);\n }\n }",
"public void setCode(Long code) {\n this.code = code;\n }",
"public void setCode(Long code) {\n this.code = code;\n }",
"@Override\n public Object setMetadata(String key, Object value) {\n return null;\n }",
"void setValueCodeableConcept(org.hl7.fhir.CodeableConcept valueCodeableConcept);",
"public Builder setCode(int value) {\n bitField0_ |= 0x00000001;\n code_ = value;\n onChanged();\n return this;\n }",
"void setObject(String id, Object data);",
"@Override\n public void setObject(Object arg0)\n {\n \n }",
"public void setCode(String code) {\n\t\tthis.code = code;\n\t}",
"public void setCode(String code) {\n\t\tthis.code = code;\n\t}",
"public Builder setCode(int value) {\n\n code_ = value;\n onChanged();\n return this;\n }",
"private void createMetaModelCode(SubMonitor progress,\n \t\t\tfinal ConcreteSyntax cSyntax) {\n \t\tif (EMFTextEditUIPlugin.getDefault().getPreferenceStore().getBoolean(EMFTextEditUIPlugin.GENERATE_GEN_MODEL)) {\n \t\t\tgenerateMetaModelCode(cSyntax.getPackage(), progress.newChild(TICKS_GENERATE_METAMODEL_CODE));\n \t\t} else {\n \t\t\tprogress.internalWorked(TICKS_GENERATE_METAMODEL_CODE);\n \t\t}\n \t}",
"public void setCode (java.lang.Long code) {\r\n\t\tthis.code = code;\r\n\t}",
"public void setMetadata(PDMetadata meta) {\n/* 557 */ this.stream.setItem(COSName.METADATA, meta);\n/* */ }",
"public void setCode(long value) {\n this.code = value;\n }",
"private void setCode(JsonElement element) {\n if (element instanceof JsonPrimitive) {\n setCode(element.getAsInt());\n }\n }",
"public void setObject(Object obj) {\n\tObject bean = ((AxBridgeObject)obj).getJavaObject();\n\ttry {\n\t Class cls = bInfo.getBeanDescriptor().getCustomizerClass();\n\t if(cls != null) {\n\t\tcustomizer = (Customizer)cls.newInstance();\n\t\tcomp = (Component)customizer;\n\t\tcustomizer.setObject(bean);\n\t }\n\t \n\t //If no customizer, try property editors\n\t if(comp == null) {\n\t\tPropertyDescriptor[] pds = bInfo.getPropertyDescriptors();\n\t\tfor(int i=0;i<pds.length;i++) {\n\t\t cls = pds[i].getPropertyEditorClass();\n\t\t if(cls != null) {\n\t\t\t//System.out.println(cls.toString() + i);\n\t\t\tpropEditor = (PropertyEditor)cls.newInstance();\n\t\t\tif(propEditor.supportsCustomEditor()) {\n\t\t\t comp = propEditor.getCustomEditor();\n\t\t\t propEditor.setValue(bean);\n\t\t\t break;\n\t\t\t}\n\t\t }\n\t\t}\n\t }\n\t} catch(Throwable e) {\n\t e.printStackTrace();\n\t}\n }",
"@Override\n\tpublic void setValue(Object object) {\n\n\t}",
"public void setCode(final int code) {\n this.code = code;\n commited = true;\n }",
"@Override\n\tpublic void setValue(Object object) {\n\t\t\n\t}",
"IPayerEntry setCode(CD value);",
"@Accessor(qualifier = \"dataExportMediaCode\", type = Accessor.Type.SETTER)\n\tpublic void setDataExportMediaCode(final String value)\n\t{\n\t\tgetPersistenceContext().setPropertyValue(DATAEXPORTMEDIACODE, value);\n\t}",
"public void setJigyoCode(String jigyoCode) {\n this.jigyoCode = jigyoCode;\n }",
"public void setTypeCode(Integer value) {\n setAttributeInternal(TYPECODE, value);\n }",
"private void addSetter(JavaObject object, JavaModelBeanField field) {\n\t\tIJavaCodeLines arguments = getArguments(field, object.getImports());\n\t\tSetterMethod method = new SetterMethod(field.getName(), field.getType(), arguments, objectType);\n\t\tobject.addBlock(method);\n\t}",
"void setObjectValue(Object dataObject);",
"protected void setCode(UiAction uiAction, ResultSet rs, int rowNumber) throws SQLException{\n\t\t\n\t\tString code = rs.getString(UiActionTable.COLUMN_CODE);\n\t\t\n\t\tif(code == null){\n\t\t\t//do nothing when nothing found in database\n\t\t\treturn;\n\t\t}\n\t\t\n\t\tuiAction.setCode(code);\n\t}",
"public void setMetaValue(String metaValue) {\n this.metaValue = metaValue;\n }",
"@Override\n\tpublic void setDataCode(java.lang.String dataCode) {\n\t\t_dictData.setDataCode(dataCode);\n\t}",
"public void setMetadata(gov.ucore.ucore._2_0.ContentMetadataType metadata)\n {\n synchronized (monitor())\n {\n check_orphaned();\n gov.ucore.ucore._2_0.ContentMetadataType target = null;\n target = (gov.ucore.ucore._2_0.ContentMetadataType)get_store().find_element_user(METADATA$0, 0);\n if (target == null)\n {\n target = (gov.ucore.ucore._2_0.ContentMetadataType)get_store().add_element_user(METADATA$0);\n }\n target.set(metadata);\n }\n }",
"public void xsetBundleCode(org.apache.xmlbeans.XmlString bundleCode)\n {\n synchronized (monitor())\n {\n check_orphaned();\n org.apache.xmlbeans.XmlString target = null;\n target = (org.apache.xmlbeans.XmlString)get_store().find_element_user(BUNDLECODE$0, 0);\n if (target == null)\n {\n target = (org.apache.xmlbeans.XmlString)get_store().add_element_user(BUNDLECODE$0);\n }\n target.set(bundleCode);\n }\n }",
"@Test\n\tpublic void testGetAndSetCode() {\n\t\tContainerCode code = new ContainerCode( \"CSQU3054383\" ) ;\n\t\tAssert.assertEquals( \"CSQU3054383\" , code.getCode() ) ;\n\t\t\n\t\tcode.setCode( \"TOLU4734787\" ) ;\n\t\tAssert.assertEquals( \"TOLU4734787\" , code.getCode() ) ;\n\t\t\n\t\tcode.setCode( \"TOLU473478\" ) ;\n\t\tAssert.assertEquals( \"TOLU473478\" , code.getCode() ) ;\n\t}",
"public void setCode(String cod){\n\t\tcodeService = cod;\n\t}",
"protected void setMetdata(HashMap<PageMetadataEnum,String> m ){\r\n\t\tthis.metadata = m; \r\n\t}",
"public void set2320MOA03RemarkCode$1(java.lang.CharSequence value) {\n this._2320MOA03RemarkCode = value;\n }",
"public ObjectCodeField(String label, Class<T> objectClass, int maxLength) {\n this(label, objectClass, \"Code\", maxLength);\n }",
"public void setCustomInstrumentationData(java.lang.String value) {\n __getInternalInterface().setFieldValueForCodegen(CUSTOMINSTRUMENTATIONDATA_PROP.get(), value);\n }",
"public void setCodeBlock(String codeBlock) {\n this.codeBlock = codeBlock;\n }",
"CodeSetType createCodeSetType();",
"org.hl7.fhir.CodeableConcept addNewValueCodeableConcept();",
"void setPictureType ( int code )\n {\n pictureType = code;\n }",
"public void setMetaData(MetaData newMetaData);",
"public void setGeneralEncapsulatedObject(DataObject value) {\r\n\t\tBase.set(this.model, this.getResource(), GENERALENCAPSULATEDOBJECT, value);\r\n\t}",
"void setCodes(Code[] codes);",
"public void setMetaType(ARecordType metaType);",
"@Accessor(qualifier = \"mediasExportMediaCode\", type = Accessor.Type.SETTER)\n\tpublic void setMediasExportMediaCode(final String value)\n\t{\n\t\tgetPersistenceContext().setPropertyValue(MEDIASEXPORTMEDIACODE, value);\n\t}",
"public void setInlineCode(String inlineCode) {\n this.inlineCode = inlineCode;\n }",
"private void setBlockMeta() {\n\t\tint meta = getBlockMetadata();\n\t\tForgeDirection dir = ForgeDirection.getOrientation(meta);\n\t\tif(dir != direction) {\n\t\t\tworldObj.setBlockMetadataWithNotify(xCoord, yCoord, zCoord, direction.ordinal(), 3);\n\t\t\tmarkDirty();\n\t\t}\n\t}"
] |
[
"0.6440932",
"0.6360448",
"0.6291863",
"0.6054057",
"0.59984314",
"0.5958018",
"0.5815122",
"0.5779112",
"0.5765155",
"0.5690103",
"0.5578588",
"0.55557966",
"0.5535253",
"0.5517533",
"0.5514867",
"0.5491303",
"0.54549223",
"0.54508114",
"0.5440514",
"0.5432248",
"0.5429511",
"0.54134846",
"0.54134846",
"0.5406977",
"0.53675604",
"0.5366552",
"0.53571",
"0.53502077",
"0.5348239",
"0.5335726",
"0.53289133",
"0.5323629",
"0.5314634",
"0.5314634",
"0.5314634",
"0.5314634",
"0.5314634",
"0.5314634",
"0.53020096",
"0.52761096",
"0.52757835",
"0.5255464",
"0.5252932",
"0.520615",
"0.52026147",
"0.51927674",
"0.51927674",
"0.51927674",
"0.5185796",
"0.5184039",
"0.5181521",
"0.51614434",
"0.5151703",
"0.51416814",
"0.51416814",
"0.51171416",
"0.5110398",
"0.5107007",
"0.5105138",
"0.5098034",
"0.507448",
"0.507448",
"0.50699496",
"0.5063704",
"0.5052546",
"0.5042753",
"0.5034543",
"0.50332075",
"0.50252247",
"0.50180316",
"0.50151634",
"0.4994195",
"0.4991941",
"0.49915233",
"0.49766254",
"0.4972048",
"0.49680737",
"0.496591",
"0.4963035",
"0.49599314",
"0.49531305",
"0.4952865",
"0.4950503",
"0.49437183",
"0.49388587",
"0.49303314",
"0.4925826",
"0.4919232",
"0.49009103",
"0.48818278",
"0.4881612",
"0.488136",
"0.4879903",
"0.48787004",
"0.48776343",
"0.48733354",
"0.4862523",
"0.4859947",
"0.48579782",
"0.48574737"
] |
0.765781
|
0
|
Creates new form PatientPanel
|
public PatientPanelPrescription() {
initComponents();
set();
}
|
{
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
}
|
[
"@SuppressWarnings({ \"unchecked\", \"rawtypes\" })\n\tpublic void createListPatientsPanel() {\n\n\t\tlistPatientsPanel = new JPanel();\n\t\tlistPatientsPanel.setSize(700, 430);\n\t\tlistPatientsPanel.setLocation(0, 70);\n\t\tlistPatientsPanel.setLayout(new GridLayout(1, 1));\n\t\t// textArea\n\t\tpatientList = new JList(getDoctor(tempDoctorId).getPList().toArray());\n\t\tpatientList.setSelectionMode(ListSelectionModel.SINGLE_SELECTION);\n\t\tpatientList.addMouseListener(new MouseListener() {\n\t\t\t@Override\n\t\t\tpublic void mouseReleased(MouseEvent e) {\n\t\t\t}\n\n\t\t\tpublic void mousePressed(MouseEvent e) {\n\t\t\t}\n\n\t\t\tpublic void mouseExited(MouseEvent e) {\n\t\t\t}\n\n\t\t\tpublic void mouseEntered(MouseEvent e) {\n\t\t\t}\n\n\t\t\tpublic void mouseClicked(MouseEvent e) {\n\t\t\t\tif (e.getClickCount() == 2) {\n\t\t\t\t\tPatient p = (Patient) patientList.getSelectedValue();\n\t\t\t\t\ttempPatientId = p.getPId();\n\t\t\t\t\tupdateSearchPatientPanel();\n\t\t\t\t\tsearchPatientPanel.setVisible(true);\n\t\t\t\t\tlistPatientsPanel.setVisible(false);\n\t\t\t\t}\n\n\t\t\t}\n\t\t});\n\n\t\tJScrollPane sp1 = new JScrollPane(patientList);\n\t\tlistPatientsPanel.add(sp1);\n\t\ttotalGUIPanel.add(listPatientsPanel);\n\t\tlistPatientsPanel.setVisible(false);\n\t}",
"public PatientRegForm() {\n initComponents();\n }",
"public Patient_Info() {\n initComponents();\n }",
"public void createPartyPanel()\n {\n setPartyLabel(game.getPartyPane(), 0);\n //setPartyLabel(\"EMPTY\", 1);\n //setPartyLabel(\"EMPTY\", 2);\n //setPartyLabel(\"EMPTY\", 3);\n reloadPartyPanel();\n }",
"private void onAddPatient() {\n\t\tGuiManager.openFrame(GuiManager.FRAME_ADD_PATIENT);\n\t}",
"public SinglePatientPN() {\n initComponents();\n }",
"public PatientUI() {\n initComponents();\n }",
"public void createSearchForPatientPanel() {\n\n\t\tsearchPatientPanel = new JPanel();\n\t\tsearchPatientPanel.setSize(700, 430);\n\t\tsearchPatientPanel.setLocation(0, 70);\n\t\tsearchPatientPanel.setLayout(null);\n\n\t\tJPanel topSearchPanel = new JPanel(new FlowLayout());\n\t\ttopSearchPanel.setSize(500, 30);\n\t\ttopSearchPanel.setLocation(100, 0);\n\t\ttopSearchPanel.add(new JLabel(\"Enter Patiets Name/ID:\"));\n\t\tsearchPatientTF = new JTextField(20);\n\t\ttopSearchPanel.add(searchPatientTF);\n\t\tsearchButton = new JButton(\"Find Patient\");\n\n\t\tsearchButton.addActionListener(this);\n\n\t\ttopSearchPanel.add(searchButton);\n\t\tsearchPatientPanel.add(topSearchPanel);\n\n\t\t// searched patients details labels\n\t\tJPanel searchedPatientDetailsPanel = new JPanel(new GridLayout(4, 2));\n\t\tsearchedPatientDetailsPanel.setLocation(40, 60);\n\t\tsearchedPatientDetailsPanel.setSize(250, 200);\n\t\tsearchedPatientDetailsPanel.setBackground(Color.WHITE);\n\n\t\tl1 = new JLabel(\"Name:\");\n\t\tsearchLabel1 = new JLabel(\"\");\n\t\tl2 = new JLabel(\"Address:\");\n\t\tsearchLabel2 = new JLabel(\"\");\n\t\tl3 = new JLabel(\"Phone Number:\");\n\t\tsearchLabel3 = new JLabel(\"\");\n\t\tl4 = new JLabel(\"DOB:\");\n\t\tsearchLabel4 = new JLabel(\"\");\n\n\t\tsearchedPatientDetailsPanel.add(l1);\n\t\tsearchedPatientDetailsPanel.add(searchLabel1);\n\t\tsearchedPatientDetailsPanel.add(l2);\n\t\tsearchedPatientDetailsPanel.add(searchLabel2);\n\t\tsearchedPatientDetailsPanel.add(l3);\n\t\tsearchedPatientDetailsPanel.add(searchLabel3);\n\t\tsearchedPatientDetailsPanel.add(l4);\n\t\tsearchedPatientDetailsPanel.add(searchLabel4);\n\n\t\tsearchPatientPanel.add(searchedPatientDetailsPanel);\n\n\t\t// update button\n\t\tJPanel updateButtonPanel = new JPanel();\n\t\tupdateButtonPanel.setSize(200, 40);\n\t\tupdateButtonPanel.setLocation(40, 300);\n\n\t\tupdatePatientPanel = new JPanel();\n\t\tupdatePatientButton = new JButton(\"Upadate Current Patient\");\n\t\tupdatePatientButton.setVisible(false);\n\n\t\tupdatePatientButton.addActionListener(this);\n\t\tupdateButtonPanel.add(updatePatientButton);\n\t\tsearchPatientPanel.add(updateButtonPanel);\n\n\t\tJPanel updateAddNewHistoryButtonPanel = new JPanel();\n\t\tupdateAddNewHistoryButtonPanel.setSize(200, 40);\n\t\tupdateAddNewHistoryButtonPanel.setLocation(40, 350);\n\n\t\taddNewHistoryButton = new JButton(\"Add New History\");\n\t\taddNewHistoryButton.addActionListener(this);\n\t\taddNewHistoryButton.setVisible(false);\n\n\t\tupdateAddNewHistoryButtonPanel.add(addNewHistoryButton);\n\t\tsearchPatientPanel.add(updateAddNewHistoryButtonPanel);\n\n\t\t// searched patients history text area\n\t\tJPanel patientsHistoryPanel = new JPanel();\n\t\tpatientsHistoryPanel.setSize(350, 300);\n\t\tpatientsHistoryPanel.setLocation(330, 50);\n\n\t\tpatientsHistoryReport = new JTextArea(17, 30);\n\t\tJScrollPane sp2 = new JScrollPane(patientsHistoryReport);\n\t\tpatientsHistoryPanel.add(sp2);\n\t\tpatientsHistoryReport.setEditable(false);\n\t\tpatientsHistoryReport.setLineWrap(true);\n\t\tpatientsHistoryReport.setWrapStyleWord(true);\n\t\tpatientsHistoryReport.setWrapStyleWord(true);\n\n\t\tsearchPatientPanel.add(patientsHistoryPanel);\n\n\t\ttotalGUIPanel.add(searchPatientPanel);\n\t}",
"public Patient(nf.Patient p) {\n initComponents();\n this.pack();\n Patient.setDefaultLookAndFeelDecorated(true);\n this.setExtendedState(Patient.MAXIMIZED_BOTH);\n setDefaultCloseOperation(Patient.DO_NOTHING_ON_CLOSE);\n \n this.pat = p;\n initRenderer();\n buildTree();\n }",
"public PatientView() throws IOException {\r\n \t\tsetTitle(\"Medical Manager\");\r\n \t\t// Ensures the panel closes when you press the close button\r\n \t\tsetDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\r\n \t\t\r\n \t\t// Opening size\r\n \t\tsetBounds(100, 100, 838, 609);\r\n \t\t\r\n \t\t// Base panel of the application\r\n \t\tcontentPane = new JPanel();\r\n \t\tcontentPane.setBorder(new EmptyBorder(5, 5, 5, 5));\r\n \t\tcontentPane.setLayout(card); // Card layout to access the other components such as Patient or About\r\n \r\n \t\tsetContentPane(contentPane);\r\n \t\t\r\n \t\t// Place the menu on the content pane\r\n \t\tplaceMenu();\r\n \t\t\r\n \t\t// Instantiate the welcome panel\r\n \t\tmakeWelcomePanel();\r\n \t\t\r\n \t\t// Instantiate the patient panel\r\n \t\tmakePatientPanel();\r\n \t\t\r\n \t\t// Bootstrap the event handlers\r\n \t\tactionTime();\r\n \t\t\r\n \t\t// Set the standard write directory - possibly add settings to change where this is\r\n \t\tDatabase.setWriteDirectory(System.getProperty(\"user.home\") + \"\\\\My Documents\\\\Medical Manager\\\\\");\r\n \t\t\r\n \t\t// Set the standard file that is written to\r\n \t\tDatabase.setFile(\"patients.txt\");\r\n \t\t\r\n \t\t// Create the directory and file if it isn't already there\r\n \t\tDatabase.prepareFile();\r\n \t\t\r\n\t\tnew Test();\r\n \t\t\r\n \t\t// Read all the patients from the file dumping them into an array list for use later\r\n \t\tDatabase.readAllPatientsFromFile();\r\n\t\tSystem.out.println(Database.linSearch(patientArray, 0).getFullName());\r\n \t}",
"private HorizontalPanel createContent() {\n\t\tfinal HorizontalPanel panel = new HorizontalPanel();\n\t\tfinal VerticalPanel form = new VerticalPanel();\n\t\tpanel.add(form);\n\t\t\n\t\tfinal Label titleLabel = new Label(CONSTANTS.actorLabel());\n\t\ttitleLabel.addStyleName(AbstractField.CSS.cbtAbstractPopupLabel());\n\t\tform.add(titleLabel);\n\t\t\n\t\tfinal Label closeButton = new Label();\n\t\tcloseButton.addClickHandler(new ClickHandler() {\n\t\t\t@Override\n\t\t\tpublic void onClick(ClickEvent event) {\n\t\t\t\tActorPopup.this.hide();\n\t\t\t}\n\t\t});\n\t\tcloseButton.addStyleName(AbstractField.CSS.cbtAbstractPopupClose());\n\t\tform.add(closeButton);\n\t\t\n\t\t//-----------------------------------------------\n\t\t// Party field\n\t\t//-----------------------------------------------\n\t\tpartyField = new SuggestField(this, null,\n\t\t\t\tnew NameIdAction(Service.PARTY),\n\t\t\t\tCONSTANTS.partynameLabel(),\n\t\t\t\t20,\n\t\t\t\ttab++);\n\t\tpartyField.setReadOption(Party.CREATED, true);\n\t\tpartyField.setDoubleclickable(true);\n\t\tpartyField.setHelpText(CONSTANTS.partynameHelp());\n\t\tform.add(partyField);\n\n\t\t//-----------------------------------------------\n\t\t// Email Address field\n\t\t//-----------------------------------------------\n\t\temailaddressField = new TextField(this, null,\n\t\t\t\tCONSTANTS.emailaddressLabel(),\n\t\t\t\ttab++);\n\t\temailaddressField.setMaxLength(100);\n\t\temailaddressField.setHelpText(CONSTANTS.emailaddressHelp());\n\t\tform.add(emailaddressField);\n\n\t\t//-----------------------------------------------\n\t\t// Password field\n\t\t//-----------------------------------------------\n\t\tpasswordField = new PasswordField(this, null,\n\t\t\t\tCONSTANTS.passwordLabel(),\n\t\t\t\ttab++);\n\t\tpasswordField.setSecure(true);\n\t\tpasswordField.setHelpText(CONSTANTS.passwordHelp());\n\t\tform.add(passwordField);\n\n\t\t//-----------------------------------------------\n\t\t// Check Password field\n\t\t//-----------------------------------------------\n\t\tcheckpasswordField = new PasswordField(this, null,\n\t\t\t\tCONSTANTS.checkpasswordLabel(),\n\t\t\t\ttab++);\n\t\tcheckpasswordField.setSecure(true);\n\t\tcheckpasswordField.setHelpText(CONSTANTS.checkpasswordHelp());\n\t\tform.add(checkpasswordField);\n\n\t\t//-----------------------------------------------\n\t\t// Date Format field\n\t\t//-----------------------------------------------\n\t\tformatdateField = new ListField(this, null,\n\t\t\t\tNameId.getList(Party.DATE_FORMATS, Party.DATE_FORMATS),\n\t\t\t\tCONSTANTS.formatdateLabel(),\n\t\t\t\tfalse,\n\t\t\t\ttab++);\n\t\tformatdateField.setDefaultValue(Party.MM_DD_YYYY);\n\t\tformatdateField.setFieldHalf();\n\t\tformatdateField.setHelpText(CONSTANTS.formatdateHelp());\n\t\t\n\t\t//-----------------------------------------------\n\t\t// Phone Format field\n\t\t//-----------------------------------------------\n\t\tformatphoneField = new TextField(this, null,\n\t\t\t\tCONSTANTS.formatphoneLabel(),\n\t\t\t\ttab++);\n\t\tformatphoneField.setMaxLength(25);\n\t\tformatphoneField.setFieldHalf();\n\t\tformatphoneField.setHelpText(CONSTANTS.formatphoneHelp());\n\n\t\tHorizontalPanel ff = new HorizontalPanel();\n\t\tff.add(formatdateField);\n\t\tff.add(formatphoneField);\n\t\tform.add(ff);\n\t\t\n\t\t//-----------------------------------------------\n\t\t// Roles option selector\n\t\t//-----------------------------------------------\n\t\trolesField = new OptionField(this, null,\n\t\t\t\tAbstractRoot.hasPermission(AccessControl.AGENCY) ? getAgentroles() : getOrganizationroles(),\n\t\t\t\tCONSTANTS.roleLabel(),\n\t\t\t\ttab++);\n\t\trolesField.setHelpText(CONSTANTS.roleHelp());\n\t\tform.add(rolesField);\n\n\t\tform.add(createCommands());\n\t\t\n\t\tonRefresh();\n\t\tonReset(Party.CREATED);\n\t\treturn panel;\n\t}",
"public PatientFrame(Patient pa) {\n patient = pa;\n initComponents();\n updateTable();\n }",
"CreateNewPatientJPanel(JPanel cardContainer, UserAccount account, Department department, Hospital hospital) {\n initComponents();\n this.cardContainer = cardContainer;\n this.account = account;\n this.department = department;\n this.hospital = hospital;\n log = Logger.getLogger(CreateNewPatientJPanel.class);\n \n lblLoggedInUser.setText(account.getEmployee().getPerson().getLastName()+\", \"+account.getEmployee().getPerson().getFirstName());\n \n populateDepartments();\n populateGender();\n populateSates();\n }",
"public RegisterPanel() {\n control = new ControlRegister();\n initComponents();\n }",
"public ProcedureFormPanel() {\n initComponents();\n }",
"public StandardizedPatientDetailsViewImpl() {\n \t\tinitWidget(uiBinder.createAndBindUi(this));\n \t\t//TabPanelHelper.moveTabBarToBottom(patientPanel);\n \t\thorizontalPatientPanel.addStyleName(\"horizontalPanelStyle\");\n \t\thorizontalPatientPanel.add(patientPanel);\n \t\tpatientPanel.setHeight(\"250px\");\n \t\t//roleDetailPanel.addStyleName(\"autoHeight\");\n \t\t//patientPanel.setWidth(\"570px\");\n \t\t\n \t\t//patientPanel.addStyleName(\"gwt-InvertedTabPanel\");\n \t\t\n \t\t\n \t\tpatientPanel.selectTab(0);\n \t\t\n \t\t// reorder the Tab- and Content-Panels\n \t\t//ScrolledTab Changes start\n \t\t\n \t\t//ScrolledTab Changes start\n \t\tpull.setText(constants.pull());\n \t\tsend.setText(constants.send());\n \t\tprint.setText(constants.print());\n \t\tedit.setText(constants.edit());\n \t\tdelete.setText(constants.delete());\n \t\tmaps.setText(constants.googleMaps());\n \t\tanamnesisPanelTitle.setInnerText(constants.anamnesisValues());\n \t\t\t\t\n \t\tsetTabTexts();\n \t\tsetLabelTexts();\n \t\t\n \t\t//spec start\n //\t\tpatientDisclosurePanel.setContent(patientPanel);\n \t\tpatientDisclosurePanel.setStyleName(\"\");\n \t\tanamnesisDisclosurePanel.setStyleName(\"\");\n \t\t//spec end\n \t\t\n \t\tpatientPanel.addSelectionHandler(new SelectionHandler<Integer>() {\n \t\t\t@Override\n \t\t\tpublic void onSelection(SelectionEvent<Integer> event) {\n \t\t\t\tstoreDisplaySettings();\n \t\t\t}\n \t\t});\n \t}",
"void createGebruikersBeheerPanel() {\n frame.add(gebruikersBeheerView.createGebruikersBeheerPanel());\n frame.setTitle(gebruikersBeheerModel.getTitle());\n }",
"public MainForm() {\n\t\tsuper(\"Hospital\", List.IMPLICIT);\n\n\t\tstartComponents();\n\t}",
"public JPanel createPanel(Hospital_Management_System hms)\n\t{\n\t\t//set table settings\n\t\ttable.setColumnSelectionAllowed(false);\n\t\ttable.setRowSelectionAllowed(true);\n\t\ttable.getTableHeader().setEnabled(false);\n\t\ttable.setRowHeight(50);\n\t\ttable.setEnabled(true);\n\t\ttable.getTableHeader().setReorderingAllowed(false);\n\t\tJScrollPane tableContainer = new JScrollPane(table);\n\t\ttableContainer.setLocation(86, 244);\n\t\ttableContainer.setSize(1746, 700);\n\t\t//initialize the panel layout and size\n\t\tJPanel patientListPanel = new JPanel();\n\t\tpatientListPanel.setLayout(null);\n\t\tpatientListPanel.setBounds(0, 0, 1920, 1080);\n\t\t//set background\n\t\tJLabel lblBackground = new JLabel();\n\t\tlblBackground.setIcon(new ImageIcon(PatientListPanel.class.getResource(\"/graphics/list_background.png\")));\n\t\tlblBackground.setBounds(0, 0, 1920, 1080);\n\t\t/*\n\t\t * HEADER MESSAGE\n\t\t */\n\t\tJLabel lblWelcomeBackAdministrator = new JLabel(\"Welcome Back!\");\n\t\tlblWelcomeBackAdministrator.setFont(bArial);\n\t\tlblWelcomeBackAdministrator.setBounds(166, 29, 510, 26);\n\t\t/*\n\t\t * DATE DISPLAYED BELOW HEADER\n\t\t */\n\t\tDateFormat df = new SimpleDateFormat(\"EEE MMM dd, yyyy\");\n\t\tDate today = new Date();\n\t\tJLabel date = new JLabel(\"Today is: \"+df.format(today));\n\t\tdate.setFont(new Font(\"Calibri Light\", Font.PLAIN, 26));\n\t\tdate.setBounds(166, 87, 560, 26);\n\t\t/*\n\t\t * RETURN BUTTON\n\t\t */\n\t\tJButton btnReturn = new JButton(\"Return\");\n\t\tbtnReturn.addActionListener(new ActionListener() \n\t\t{\n\t\t\tpublic void actionPerformed(ActionEvent e) \n\t\t\t{\n\t\t\t\tif(hms.getAccessFrom() == \"Admin\")\n\t\t\t\t{\n\t\t\t\t\thms.displayPatientManagementPage();\n\t\t\t\t}\n\t\t\t\telse if(hms.getAccessFrom() == \"Employee\")\n\t\t\t\t{\n\t\t\t\t\thms.displayEmployeeMainPage();\n\t\t\t\t}\n\t\t\t}\n\t\t});\n\t\tbtnReturn.setFont(new Font(\"Arial\", Font.BOLD, 16));\n\t\tbtnReturn.setBounds(725, 955, 500, 59);\n\t\t/*\n\t\t * FILTER TEXTBOX\n\t\t */\n\t\tJTextField filterField = RowFilterUtil.createRowFilter(table);\n\t\tfilterField.setFont(new Font(\"Arial\", Font.BOLD, 24));\n\t\tfilterField.setColumns(10);\n\t\tfilterField.setBounds(265, 955, 300, 59);\n\t\t/*\n\t\t * SEARCH LABEL\t\t\n\t\t */\n\t\tJLabel lbSearch = new JLabel(\"Search:\");\n\t\tlbSearch.setFont(new Font(\"Arial\", Font.BOLD, 28));\n\t\tlbSearch.setBounds(125, 955, 300, 59);\n\t\t//add all the components to panel\n\t\tpatientListPanel.add(btnReturn);\n\t\tpatientListPanel.add(tableContainer, BorderLayout.CENTER);\n\t\tpatientListPanel.add(lblWelcomeBackAdministrator);\n\t\tpatientListPanel.add(date);\n\t\tpatientListPanel.add(filterField);\n\t\tpatientListPanel.add(lbSearch);\n\t\tpatientListPanel.add(lblBackground);\n\t\t\n\t\treturn patientListPanel;\n\t}",
"public RegisterPanel() {\n initComponents();\n }",
"public void crearPanel(){\n\n panel = new JPanel();\n this.getContentPane().add(panel);\n panel.setBackground(Color.CYAN);\n panel.setLayout(null);\n }",
"@Override\n public void actionPerformed(ActionEvent e) {\n Members members = Members.getInstance();\n if (members.getPatients().doesMemberExist(name.getText().toUpperCase())==true){\n //launch patient GUI\n MainJFrame.changeState(ViewState.PATIENT);\n \n //find person\n Person p = members.getPatients().findMemberByName(name.getText());\n \n //make person a patient to access patient methods\n Patient patient = (Patient)p;\n \n //Get instance of patient panel\n PatientPanel patientPanel = PatientPanel.getInstance();\n \n //update fields with patient information\n patientPanel.setNameField(patient.getName());\n patientPanel.setAppointmentList(patient.getFormattedAppointments());\n patientPanel.setDobField(patient.getFormattedDate());\n patientPanel.setDoctorField(patient.getDoctor().getName());\n patientPanel.setGenderField(patient.getGenderAsString());\n patientPanel.setHouseField(patient.getContact().getHouse());\n patientPanel.setPhoneField(patient.getContact().getPhoneNum());\n patientPanel.setPostcodeField(patient.getContact().getPostcode());\n patientPanel.setRoadField(patient.getContact().getRoad());\n patientPanel.setTownField(patient.getContact().getTown());\n }\n else if (members.getDoctors().doesMemberExist(name.getText().toUpperCase())==true){\n //launch doctor GUI\n MainJFrame.changeState(ViewState.DOCTOR);\n \n //find person\n Person d = members.getDoctors().findMemberByName(name.getText());\n \n //make person a patient to access patient methods\n Doctor doctor = (Doctor)d;\n \n //Get instance of Doctors panel\n DoctorPanel doctorPanel = DoctorPanel.getInstance();\n \n //populate doctors schedule on log in\n doctorPanel.setSchedule(doctor.getFormattedSchedule());\n \n //set the doctors name to a string, used to maintain which doctor is logged in\n DoctorPanel.doctorsName = name.getText();\n\n }\n else if (members.getSecretaries().doesMemberExist(name.getText().toUpperCase())==true){\n //Launch Secretary GUI\n MainJFrame.changeState(ViewState.SECRETARY);\n }\n else if (members.getPharmacists().doesMemberExist(name.getText().toUpperCase())==true){\n //Launch Pharmacist GUI\n MainJFrame.changeState(ViewState.PHARMACIST);\n } \n else{\n //if no patient matches, return error dialog box.\n JOptionPane.showMessageDialog (null, \"Incorrect username entered\", \"Program Error\", JOptionPane.ERROR_MESSAGE);\n }\n \n //Get instance of login panel\n LoginPanel loginPanel = LoginPanel.getInstance();\n //Clear the text box\n loginPanel.clearLoginButton();\n }",
"private void btnNewActionPerformed(java.awt.event.ActionEvent evt) {\n\n initPanel();\n }",
"FORM createFORM();",
"private Panel designPanel() {\n Panel panel = new Panel();\n contentLayout = new FormLayout();\n wrapperLayout = new VerticalLayout();\n numberOfDatasetsBox = new ComboBox<>();\n numberOfReplicatesBox = new ComboBox<>(\"Select number of Replicates\");\n\n\n List<Integer> possibleDatasetNumber =\n IntStream.rangeClosed(1, 100).boxed().collect(Collectors.toList());\n numberOfDatasetsBox.setItems(possibleDatasetNumber);\n\n List<Integer> possibleReplicateNumber =\n IntStream.rangeClosed(1, 100).boxed().collect(Collectors.toList());\n numberOfReplicatesBox.setItems(possibleReplicateNumber);\n\n datasetAccordion = new Accordion();\n datasetAccordion.setWidth(\"100%\");\n\n panel.setContent(wrapperLayout);\n return panel;\n }",
"private JPanel makePanel()\n {\n JPanel mainPanel = new JPanel();\n mainPanel.add(myLoginPanel);\n\n return mainPanel;\n }",
"public CreateAccountPanel() {\n initComponents();\n initializeDateChooser();\n }",
"public New_appointment() {\n initComponents();\n }",
"private void addToPanel(){\n getContentPane().add(jdpFondo);\n jtpcContenedor.add(jtpPanel);\n\tjtpcContenedor.add(jtpPanel2);\n jdpFondo.add(jtpcContenedor, BorderLayout.CENTER);\n jdpFondo.add(jpnlPanelPrincilal);\n }",
"private void createpanel1() {\r\n\t\theader = new JLabel();\r\n\t\theader.setText(\"Type in Userinformation\");\r\n\t\theader.setFont(customFont.deriveFont(25f));\r\n\t\theader.setForeground(Color.WHITE);\r\n\r\n\t\tpanels[0].add(header);\r\n\t\tpanels[0].setOpaque(false);\r\n\t\tallComponents.add(panels[0]);\r\n\r\n\t}",
"public ControlPanel() {\n\t\tpanelName = null;\n\t}",
"private JPanel addPannelName(){\n\t\tJPanel panNom = new JPanel();\n\t\tpanNom.setPreferredSize(new Dimension(175, 75));\n\t\tnameT = new JTextField();\n\t\tnameT.setPreferredSize(new Dimension(100, 25));\n\t\tpanNom.setBorder(BorderFactory.createTitledBorder(\"Channel name\"));\n\t\tname = new JLabel(\"Put a name :\");\n\t\tpanNom.add(name);\n\t\tpanNom.add(nameT);\n\t\treturn panNom;\n\t}",
"public CreateNewEventJPanel() {\n }",
"public Records_Panel() {\n\t\tsuper();\n\t\tinitialize();\n\t}",
"public frm_tutor_subida_prueba() {\n }",
"public void transitionToNewParticipantPage(){\n removeAll();\n newParticipantPanel = new NewParticipantPanel(contr);\n add(newParticipantPanel, \"span 1\");\n }",
"private FactoryViewPanel buildBasicPanel()\r\n {\r\n FactoryViewPanel panel = new FactoryViewPanel();\r\n JComponent pathComponent = addField(panel, myDataSourceModel.getPath());\r\n if (pathComponent instanceof JTextComponent)\r\n {\r\n ((JTextComponent)pathComponent).setEditable(false);\r\n }\r\n addField(panel, myDataSourceModel.getSourceName());\r\n return panel;\r\n }",
"public PatientView(PatientController controller) {\n\t\tthis.controller = controller;\n\t\tthis.clear = controller.getRole();\n\t\tthis.setTop(controller.getRole());\n\t\tinitGUI();\n\t}",
"public Panel() {\n }",
"public PatientModelSetForm() {\n\n\t}",
"public Patient (){\r\n }",
"public ControladorPanel() { }",
"private SeeRegisteredPatientFoundamentalDataPanel getSeeRegisteredPatientFoundamentalDataPanel() {\n if (seeRegisteredPatientFoundamentalDataPanel == null) {\n seeRegisteredPatientFoundamentalDataPanel = new SeeRegisteredPatientFoundamentalDataPanel();\n //seeRegisteredPatientFoundamentalDataPanel.setLayout(new GridBagLayout());\n }\n return seeRegisteredPatientFoundamentalDataPanel;\n }",
"public JComponent buildPanel(PatientModelSet dataModel) {\n\t\tdModel = dataModel;\n\n\t\tpatientSetPresenter = new PatientModelSetPresentationModel(dataModel);\n\n\t\t// Create a FormLayout instance on the given column and row specs.\n\t\t// For almost all forms you specify the columns; sometimes rows are\n\t\t// created dynamically. In this case the labels are right aligned.\n\t\tFormLayout layout = new FormLayout(\"max(40dlu;pref), 1dlu, max(40dlu;pref)\"\n\t\t// 1st major column\n\t\t\t\t+ \",2dlu , max(40dlu;pref), 1dlu, max(40dlu;pref)\"\n\t\t// 2nd major column\n\t\t\t\t, \"\"); // add rows dynamically\n\n\t\t// Specify that columns 1 & 5 as well as 3 & 7 have equal widths.\n\t\t// layout.setColumnGroups(new int[][]{{1, 5}, {3, 7}});\n\n\t\t// Create a builder that assists in adding components to the container.\n\t\t// Wrap the panel with a standardized border.\n\t\tDefaultFormBuilder builder = new DefaultFormBuilder(layout);\n\t\tbuilder.setDefaultDialogBorder();\n\n\t\t// Fill the grid with components; the builder offers to create\n\t\t// frequently used components, e.g. separators and labels.\n\n\t\t// Add a titled separator.\n\t\t// The builder holds the layout container that we now return.\n\t\t// Add a titled separator.\n\t\tbuilder.appendSeparator(\"Graph Options\");\n\n\t\t// Then add fields.\n\t\tValueModel graphTitleModel = patientSetPresenter\n\t\t\t\t.getModel(\"graphTitleString\");\n\t\tgraphTitleField = ComponentFactory.createTextField(graphTitleModel);\n\t\tValidationComponentUtils.setMessageKey(graphTitleField,\n\t\t\t\t\"PatientModelSet.Graph Title\");\n\t\tbuilder.append(\"Graph Title:\", graphTitleField, 5);\n\n\t\t// Choose a curve set.\n\t\tValueModel curveModelModel = patientSetPresenter\n\t\t\t\t.getModel(PatientModelSet.PROPERTYNAME_CURVEMODEL);\n\t\tpossibleValues = new ArrayList<String>();\n\t\tpossibleValues.add(\"Survival\");\n\t\tpossibleValues.add(\"Hazard\");\n\t\tcurveModelList = new JComboBox(new ComboBoxAdapter<String>(possibleValues,\n\t\t\t\tcurveModelModel));\n\t\tbuilder.append(\"Graph Model: \", curveModelList);\n//\t\t// post a legend.\n//\t\tValueModel legendLocationModel = patientSetPresenter\n//\t\t\t\t.getModel(PatientModelSet.PROPERTYNAME_LEGENDLOCATION);\n//\t\tpossibleValues = new ArrayList<String>();\n//\t\tpossibleValues.add(\"None\");\n//\t\tpossibleValues.add(\"Lower Left\");\n//\t\tpossibleValues.add(\"Upper Right\");\n//\t\tpossibleValues.add(\"Lower Right\");\n//\n//\t\t// TODO Fix legending.\n//\t\tlegendLocationList = new JComboBox(new ComboBoxAdapter(possibleValues,\n//\t\t\t\tlegendLocationModel));\n//\n//\t\tbuilder.append(\"Legend Location: \", legendLocationList);\n\n\t\tValueModel graphTimeModel = patientSetPresenter.getModel(\"graphTime\");\n\t\tJTextField graphTimeField = ComponentFactory.createFormattedTextField(\n\t\t\t\tgraphTimeModel, NumberFormat.getNumberInstance());\n\n\t\tgraphTimeField.setToolTipText(\"How long do you want the graph?\");\n\t\tValidationComponentUtils.setMessageKey(graphTimeField,\n\t\t\t\t\"PatientModelSet.Graph Time\");\n\t\tbuilder.append(\"Graph Time [years]:\", graphTimeField);\n\n\t\tbuilder.nextLine();\n\n\t\tJButton refreshButton = new JButton(\"Refresh Graph\");\n\t\trefreshButton.addActionListener(dModel.getRunAction());\n\n\t\tbuilder.append(refreshButton, 4);\n\n\t\tpatientSetPanel = builder.getPanel();\n\t\tJPanel graphPanel = new JPanel();\n\t\tgraphPanel.setLayout(new BorderLayout());\n\t\t// The entry pane is the view of the current patient, the patients control\n\t\t// panel Sand the menu.\n\t\tgraphPanel.add(dModel.getUIPanel(), BorderLayout.CENTER);\n\t\tgraphPanel.add(new IconFeedbackPanel(patientSetPresenter\n\t\t\t\t.getValidationResultModel(), patientSetPanel), BorderLayout.SOUTH);\n\n\t\tinitEventHandling();\n\n\t\treturn (graphPanel);\n\n\t}",
"private void crearPanel() {\r\n\t\tJLabel lbl_Empresa = new JLabel(\"Empresa:\");\r\n\t\tlbl_Empresa.setBounds(10, 52, 72, 14);\r\n\t\tadd(lbl_Empresa);\r\n\r\n\t\ttxField_Empresa = new JTextField();\r\n\t\ttxField_Empresa.setBounds(116, 49, 204, 20);\r\n\t\tadd(txField_Empresa);\r\n\t\ttxField_Empresa.setColumns(10);\r\n\r\n\t\tlbl_Oferta = new JLabel(\" \");\r\n\t\tlbl_Oferta.setFont(new Font(\"Tahoma\", Font.PLAIN, 20));\r\n\t\tlbl_Oferta.setBounds(10, 11, 742, 20);\r\n\t\tadd(lbl_Oferta);\r\n\r\n\t\tJLabel lbl_sueldoMin = new JLabel(\"Sueldo Minimo:\");\r\n\t\tlbl_sueldoMin.setBounds(10, 83, 96, 14);\r\n\t\tadd(lbl_sueldoMin);\r\n\r\n\t\ttxField_sueldoMin = new JTextField();\r\n\t\ttxField_sueldoMin.setColumns(10);\r\n\t\ttxField_sueldoMin.setBounds(116, 80, 93, 20);\r\n\t\tadd(txField_sueldoMin);\r\n\r\n\t\tJLabel lbl_sueldoMax = new JLabel(\"Sueldo Maximo:\");\r\n\t\tlbl_sueldoMax.setBounds(10, 115, 96, 14);\r\n\t\tadd(lbl_sueldoMax);\r\n\r\n\t\ttxField_sueldoMax = new JTextField();\r\n\t\ttxField_sueldoMax.setColumns(10);\r\n\t\ttxField_sueldoMax.setBounds(116, 112, 93, 20);\r\n\t\tadd(txField_sueldoMax);\r\n\r\n\t\tJLabel lbl_experiencia = new JLabel(\"A\\u00F1os de experiencia minimos:\");\r\n\t\tlbl_experiencia.setBounds(10, 143, 185, 14);\r\n\t\tadd(lbl_experiencia);\r\n\r\n\t\ttxField_experiencia = new JTextField();\r\n\t\ttxField_experiencia.setColumns(10);\r\n\t\ttxField_experiencia.setBounds(205, 140, 93, 20);\r\n\t\tadd(txField_experiencia);\r\n\r\n\t\tJLabel lbl_aspectosValorar = new JLabel(\"Aspectos a valorar:\");\r\n\t\tlbl_aspectosValorar.setBounds(10, 178, 137, 14);\r\n\t\tadd(lbl_aspectosValorar);\r\n\r\n\t\ttxArea_aspectosValorar = new JTextArea();\r\n\t\ttxArea_aspectosValorar.setBorder(UIManager.getBorder(\"TextField.border\"));\r\n\t\ttxArea_aspectosValorar.setBounds(157, 172, 253, 41);\r\n\t\tadd(txArea_aspectosValorar);\r\n\r\n\t\tJLabel lbl_aspectosImpres = new JLabel(\"Aspectos imprescindibles:\");\r\n\t\tlbl_aspectosImpres.setBounds(10, 238, 133, 14);\r\n\t\tadd(lbl_aspectosImpres);\r\n\r\n\t\ttxArea_aspectosImpres = new JTextArea();\r\n\t\ttxArea_aspectosImpres.setBorder(UIManager.getBorder(\"TextField.border\"));\r\n\t\ttxArea_aspectosImpres.setBounds(157, 232, 253, 41);\r\n\t\tadd(txArea_aspectosImpres);\r\n\r\n\t\tJLabel lbl_descripcion = new JLabel(\"Descripcion:\");\r\n\t\tlbl_descripcion.setBounds(10, 302, 107, 14);\r\n\t\tadd(lbl_descripcion);\r\n\r\n\t\ttxArea_descripcion = new JTextArea();\r\n\t\ttxArea_descripcion.setBorder(UIManager.getBorder(\"TextField.border\"));\r\n\t\ttxArea_descripcion.setBounds(10, 328, 465, 149);\r\n\t\tadd(txArea_descripcion);\r\n\r\n\t\tJLabel lbl_conocimientos = new JLabel(\"Conocimientos requeridos:\");\r\n\t\tlbl_conocimientos.setBounds(537, 125, 169, 14);\r\n\t\tadd(lbl_conocimientos);\r\n\r\n\t\tpa_conocimientos = new PanelListaDoble(Usuario.getConocimientosTotales(), miOferta.getConocimientos());\r\n\t\tpa_conocimientos.setBounds(537, 174, 215, 180);\r\n\t\tadd(pa_conocimientos);\r\n\r\n\t\ttxField_buscarCono = new JTextField();\r\n\t\ttxField_buscarCono.setBounds(537, 140, 135, 20);\r\n\t\tadd(txField_buscarCono);\r\n\t\ttxField_buscarCono.setColumns(10);\r\n\r\n\t\tJButton btn_buscar = new JButton(\"\");\r\n\t\tbtn_buscar.setBounds(682, 138, 24, 23);\r\n\t\tadd(btn_buscar);\r\n\r\n\t\tbtn_crear = new JButton(\"\");\r\n\t\tbtn_crear.setBounds(716, 138, 24, 23);\r\n\t\tadd(btn_crear);\r\n\r\n\t\ttxField_lugar = new JTextField();\r\n\t\ttxField_lugar.setEditable(false);\r\n\t\ttxField_lugar.setColumns(10);\r\n\t\ttxField_lugar.setBounds(506, 49, 234, 20);\r\n\t\tadd(txField_lugar);\r\n\r\n\t\tJLabel lbl_lugar = new JLabel(\"Lugar de trabajo:\");\r\n\t\tlbl_lugar.setBounds(392, 52, 104, 14);\r\n\t\tadd(lbl_lugar);\r\n\r\n\t\tJLabel lbl_contrato = new JLabel(\"Tipo de contrato:\");\r\n\t\tlbl_contrato.setBounds(392, 83, 104, 14);\r\n\t\tadd(lbl_contrato);\r\n\r\n\t\tcombo_contrato = new JComboBox<Contrato>();\r\n\t\tcombo_contrato.addItem(Contrato.INDEFINIDO_TIEMPO_COMPLETO);\r\n\t\tcombo_contrato.addItem(Contrato.INDEFINIDO_TIEMPO_PARCIAL);\r\n\t\tcombo_contrato.addItem(Contrato.TEMPORAL_TIEMPO_COMPLETO);\r\n\t\tcombo_contrato.addItem(Contrato.TEMPORTAL_TIEMPO_PARCIAL);\r\n\t\tcombo_contrato.setBounds(506, 83, 159, 20);\r\n\t\tadd(combo_contrato);\r\n\t\t// d\r\n\t\tinicializar(miOferta);\r\n\t\tdesHabCampos(false);\r\n\t\tif (miOferta.getEmpresa().getNumID().compareToIgnoreCase(Aplicacion.getUsuario().getNumID()) == 0) {\r\n\t\t\tbtnEliminar = new JButton(\"Eliminar\");\r\n\t\t\tbtnEliminar.setToolTipText(\"Eliminar\");\r\n\t\t\tbtnEliminar.setBounds(492, 384, 125, 41);\r\n\t\t\tadd(btnEliminar);\r\n\r\n\t\t\tbtnRetirar = new JButton(\"\\uD83D\\uDC40\");\r\n\t\t\tbtnRetirar.setToolTipText(\"Retirar Oferta\");\r\n\t\t\tbtnRetirar.setBounds(627, 384, 125, 41);\r\n\t\t\tadd(btnRetirar);\r\n\r\n\t\t\tbutton_Editar = new JButton(\"Editar\");\r\n\t\t\tbutton_Editar.setToolTipText(\"Editar\");\r\n\t\t\tbutton_Editar.setBounds(627, 436, 125, 41);\r\n\t\t\tadd(button_Editar);\r\n\r\n\t\t\tbutton_Editar.addMouseListener(new MouseAdapter() {\r\n\t\t\t\t@Override\r\n\t\t\t\tpublic void mouseClicked(MouseEvent e) {\r\n\t\t\t\t\tdesHabCampos(true);\r\n\t\t\t\t\tbutton_Editar.setVisible(false);\r\n\t\t\t\t\tbtnEliminar.setVisible(false);\r\n\t\t\t\t\tbtnRetirar.setVisible(false);\r\n\t\t\t\t\tbtn_crear.setVisible(false);\r\n\r\n\t\t\t\t\tbtn_guardar = new JButton(\"Guardar\");\r\n\t\t\t\t\tbtn_guardar.setToolTipText(\"Guardar\");\r\n\t\t\t\t\tbtn_guardar.setBounds(627, 436, 125, 41);\r\n\t\t\t\t\tadd(btn_guardar);\r\n\r\n\t\t\t\t\tbtn_cancelar = new JButton(\"Cancelar\");\r\n\t\t\t\t\tbtn_cancelar.setToolTipText(\"Cancelar\");\r\n\t\t\t\t\tbtn_cancelar.setBounds(492, 436, 125, 41);\r\n\t\t\t\t\tadd(btn_cancelar);\r\n\r\n\t\t\t\t\tbtn_cancelar.addMouseListener(new MouseAdapter() {\r\n\t\t\t\t\t\t@Override\r\n\t\t\t\t\t\tpublic void mouseClicked(MouseEvent e) {\r\n\t\t\t\t\t\t\tbtn_guardar.removeAll();\r\n\t\t\t\t\t\t\tbtn_cancelar.removeAll();\r\n\t\t\t\t\t\t\tbtn_cancelar.setVisible(false);\r\n\t\t\t\t\t\t\tbtn_guardar.setVisible(false);\r\n\t\t\t\t\t\t\tbtnEliminar.setVisible(true);\r\n\t\t\t\t\t\t\tbutton_Editar.setVisible(true);\r\n\t\t\t\t\t\t\tbtnRetirar.setVisible(true);\r\n\t\t\t\t\t\t\tbtn_crear.setVisible(true);\r\n\t\t\t\t\t\t\tinicializar(miOferta);\r\n\t\t\t\t\t\t\tdesHabCampos(false);\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t});\r\n\r\n\t\t\t\t\tbtn_guardar.addMouseListener(new MouseAdapter() {\r\n\t\t\t\t\t\t@Override\r\n\t\t\t\t\t\tpublic void mouseClicked(MouseEvent e) {\r\n\t\t\t\t\t\t\tEmergenteCambios.createWindow(\"┐Desea guardar los cambios?\", (TieneEmergente) padre);\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t});\r\n\t\t\t\t}\r\n\t\t\t});\r\n\t\t}\r\n\t}",
"@SuppressWarnings(\"unchecked\")\n // <editor-fold defaultstate=\"collapsed\" desc=\"Generated Code\">//GEN-BEGIN:initComponents\n private void initComponents() {\n\n txtPatientName = new javax.swing.JTextField();\n lblMaritalStatus = new javax.swing.JLabel();\n txtAge = new javax.swing.JTextField();\n lblPatientName = new javax.swing.JLabel();\n btnRegisterPatient = new javax.swing.JButton();\n lblAge = new javax.swing.JLabel();\n lblUserName = new javax.swing.JLabel();\n txtUserName = new javax.swing.JTextField();\n lblPassword = new javax.swing.JLabel();\n ddlGender = new javax.swing.JComboBox();\n txtContactNumber = new javax.swing.JTextField();\n lblTitle = new javax.swing.JLabel();\n ddlMaritalStatus = new javax.swing.JComboBox();\n lblGender = new javax.swing.JLabel();\n lblContactNumber = new javax.swing.JLabel();\n btnBack = new javax.swing.JButton();\n jLabel1 = new javax.swing.JLabel();\n txtEmail = new javax.swing.JTextField();\n txtPassword = new javax.swing.JPasswordField();\n\n setBackground(new java.awt.Color(255, 255, 255));\n\n lblMaritalStatus.setText(\"Marital Status:\");\n\n lblPatientName.setText(\"Patient name:\");\n\n btnRegisterPatient.setText(\"Register Patient\");\n btnRegisterPatient.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n btnRegisterPatientActionPerformed(evt);\n }\n });\n\n lblAge.setText(\"Age:\");\n\n lblUserName.setText(\"Username:\");\n\n lblPassword.setText(\"Password:\");\n\n lblTitle.setFont(new java.awt.Font(\"Lucida Grande\", 1, 14)); // NOI18N\n lblTitle.setForeground(new java.awt.Color(102, 102, 102));\n lblTitle.setText(\"Register Patient Panel\");\n\n lblGender.setText(\"Gender:\");\n\n lblContactNumber.setText(\"Contact Number:\");\n\n btnBack.setText(\"<<Back\");\n btnBack.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n btnBackActionPerformed(evt);\n }\n });\n\n jLabel1.setText(\"Email:\");\n\n javax.swing.GroupLayout layout = new javax.swing.GroupLayout(this);\n this.setLayout(layout);\n layout.setHorizontalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(layout.createSequentialGroup()\n .addGap(394, 394, 394)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, layout.createSequentialGroup()\n .addComponent(lblTitle)\n .addGap(353, 353, 353))\n .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, layout.createSequentialGroup()\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)\n .addGroup(layout.createSequentialGroup()\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING, false)\n .addGroup(layout.createSequentialGroup()\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)\n .addComponent(lblGender, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addComponent(lblAge, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addComponent(lblPatientName, javax.swing.GroupLayout.Alignment.TRAILING, javax.swing.GroupLayout.DEFAULT_SIZE, 82, Short.MAX_VALUE))\n .addGap(135, 135, 135))\n .addGroup(layout.createSequentialGroup()\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)\n .addComponent(lblUserName, javax.swing.GroupLayout.DEFAULT_SIZE, 95, Short.MAX_VALUE)\n .addComponent(lblPassword, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))\n .addGap(122, 122, 122)))\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)\n .addComponent(txtPatientName, javax.swing.GroupLayout.PREFERRED_SIZE, 140, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(txtAge, javax.swing.GroupLayout.PREFERRED_SIZE, 140, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(txtUserName, javax.swing.GroupLayout.PREFERRED_SIZE, 140, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(ddlGender, javax.swing.GroupLayout.PREFERRED_SIZE, 140, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(txtPassword)))\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)\n .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, layout.createSequentialGroup()\n .addComponent(btnBack, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addGap(160, 160, 160)\n .addComponent(btnRegisterPatient))\n .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, layout.createSequentialGroup()\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(lblContactNumber, javax.swing.GroupLayout.Alignment.TRAILING, javax.swing.GroupLayout.PREFERRED_SIZE, 95, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(lblMaritalStatus, javax.swing.GroupLayout.Alignment.TRAILING, javax.swing.GroupLayout.PREFERRED_SIZE, 95, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(jLabel1, javax.swing.GroupLayout.PREFERRED_SIZE, 95, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGap(122, 122, 122)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)\n .addComponent(ddlMaritalStatus, javax.swing.GroupLayout.PREFERRED_SIZE, 140, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(txtContactNumber, javax.swing.GroupLayout.PREFERRED_SIZE, 140, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(txtEmail, javax.swing.GroupLayout.PREFERRED_SIZE, 140, javax.swing.GroupLayout.PREFERRED_SIZE)))))\n .addGap(222, 222, 222))))\n );\n layout.setVerticalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(layout.createSequentialGroup()\n .addGap(63, 63, 63)\n .addComponent(lblTitle)\n .addGap(40, 40, 40)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(txtPatientName, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGroup(layout.createSequentialGroup()\n .addGap(3, 3, 3)\n .addComponent(lblPatientName, javax.swing.GroupLayout.PREFERRED_SIZE, 15, javax.swing.GroupLayout.PREFERRED_SIZE)))\n .addGap(9, 9, 9)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(txtAge, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(lblAge, javax.swing.GroupLayout.PREFERRED_SIZE, 17, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(lblGender)\n .addComponent(ddlGender, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(txtUserName, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(lblUserName, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))\n .addGap(18, 18, 18)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(lblPassword)\n .addComponent(txtPassword, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGap(17, 17, 17)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(txtContactNumber, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(lblContactNumber, javax.swing.GroupLayout.PREFERRED_SIZE, 19, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(ddlMaritalStatus, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(lblMaritalStatus, javax.swing.GroupLayout.PREFERRED_SIZE, 20, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(jLabel1, javax.swing.GroupLayout.PREFERRED_SIZE, 21, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(txtEmail, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGap(34, 34, 34)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(btnRegisterPatient)\n .addComponent(btnBack))\n .addGap(120, 120, 120))\n );\n }",
"public HospitalHistoryCasePanel() {\n initComponents();\n }",
"public static void createUI (JTextField fName, JTextField lName, JTextField vDesc, JTextField cLoc,\r\n JTextField dLoc, JTextField pNum, JPanel panel) {\n panel.setLayout(new BoxLayout(panel, BoxLayout.Y_AXIS));\r\n panel.setAlignmentX(Component.LEFT_ALIGNMENT);\r\n panel.add(new JLabel(\"First Name:\"));\r\n panel.add(fName);\r\n panel.add(Box.createHorizontalStrut(15)); // a spacer\r\n panel.add(new JLabel(\"Last Name:\"));\r\n panel.add(lName);\r\n panel.add(new JLabel(\"Vehicle Description:\"));\r\n panel.add(vDesc);\r\n panel.add(new JLabel(\"Pick Up Location\"));\r\n panel.add(cLoc);\r\n panel.add(new JLabel(\"Drop Off Location\"));\r\n panel.add(dLoc);\r\n panel.add(new JLabel(\"Phone Number\"));\r\n panel.add(pNum);\r\n }",
"@Override\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\t\n\t\t\t\tArrayList<String> constructorInput = null;\n\t\t\t\tconstructorInput = NewPatientWindow.showInputdialog(true);\n\t\t\t\t\n\t\t\t\t// if cancel or close chosen on new patient window:\n\t\t\t\tif (constructorInput == null)\n\t\t\t\t\treturn; \n\t\t\t\t\n\t\t\t\t//else:\n\t\t\t\tBrainFreezeMain.patients.add(new Patient(\n\t\t\t\t\t\t(constructorInput.toArray( new String[constructorInput.size()]))));\n\t\t\t\tBrainFreezeMain.currentPatientIndex = BrainFreezeMain.patients.size()-1;\n\t\t\t\t\n\t\t\t\t\n\t\t\t\tLeftPanel.refreshPatientLabel(); // change to patient list, update label\n\t\t\t\tLeftPanel.refreshPatientData(); // change to patient, update data\n\t\t\t\t\t\n\t\t\t\t}",
"private void initPanel() {\r\n panel = new JDialog(mdiForm);\r\n panel.setTitle(\"Groups\");\r\n panel.setSize(325, 290);\r\n panel.getContentPane().add(groupsController.getControlledUI());\r\n Dimension screenSize = Toolkit.getDefaultToolkit().getScreenSize();\r\n java.awt.Dimension dlgSize = panel.getSize();\r\n int x = screenSize.width/1 - ((dlgSize.width/1)+20);\r\n int y = screenSize.height/1 - ((dlgSize.height/1)+60);\r\n panel.setLocation(x, y);\r\n panel.setFocusable(false);\r\n panel.show();\r\n panel.setDefaultCloseOperation(JDialog.DO_NOTHING_ON_CLOSE);\r\n panel.addWindowListener(new java.awt.event.WindowAdapter() {\r\n public void windowClosing(java.awt.event.WindowEvent event) {\r\n panel.dispose();\r\n maintainSponsorHierarchyBaseWindow.mnuItmPanel.setSelected(false);\r\n maintainSponsorHierarchyBaseWindow.btnPanel.setSelected(false);\r\n }\r\n });\r\n }",
"public Doctor_register() {\n initComponents();\n }",
"private void makePanelTask() {\r\n if (panelTask == null) {\r\n panelTask = makePanel(jframe, BorderLayout.CENTER,\r\n \"Task Details\", 180, 50, 200, 25);\r\n\r\n JLabel createLabelName = makeJLabel(\"Name: \", 10, 100, 80, 25);\r\n JLabel createLabelDescription = makeJLabel(\"Description: \", 10, 130, 80, 25);\r\n JLabel createLabelDueDate = makeJLabel(\"Due Date: \", 10, 160, 80, 25);\r\n JLabel createLabelPriority = makeJLabel(\"Priority Level: \", 10, 190, 80, 25);\r\n\r\n addToTodoTaskGui(createLabelName, createLabelDescription, createLabelDueDate, createLabelPriority);\r\n\r\n JButton clickSave = makeButton(\"saveTask\", \"Save\", 80, 250, 150, 25,\r\n JComponent.BOTTOM_ALIGNMENT, \"cli.wav\");\r\n panelTask.add(clickSave);\r\n\r\n JButton clickCancel = makeButton(\"cancelTask\", \"Cancel\", 280, 250, 150, 25,\r\n JComponent.BOTTOM_ALIGNMENT, \"cli.wav\");\r\n panelTask.add(clickCancel);\r\n }\r\n }",
"public Patient() {\n }",
"public Patient() {\r\n\r\n\t}",
"@Override\n\tpublic Pane generateForm() {\n\t\treturn painelPrincipal;\n\t}",
"public TemporizadorPanel() {\n initComponents();\n }",
"public NewJPanel() {\n initComponents();\n }",
"public NewJPanel() {\n initComponents();\n }",
"public void addNewPatient(View v) {\n\tDataHandler dh;\n\ttry {\n\t dh = new DataHandler(this.getApplicationContext().getFilesDir(),\n\t\t DataHandler.PATIENT_DATA);\n\t vitalSigns\n\t\t .put(new Date(),\n\t\t\t new VitalSigns(\n\t\t\t\t Double.parseDouble(((EditText) findViewById(R.id.temperature_field))\n\t\t\t\t\t .getText().toString()),\n\t\t\t\t Double.parseDouble(((EditText) findViewById(R.id.heartRate_field))\n\t\t\t\t\t .getText().toString()),\n\t\t\t\t new BloodPressure(\n\t\t\t\t\t Integer.parseInt(((EditText) findViewById(R.id.bloodpressure_systolic_field))\n\t\t\t\t\t\t .getText().toString()),\n\t\t\t\t\t Integer.parseInt(((EditText) findViewById(R.id.bloodpressure_diastolic_field))\n\t\t\t\t\t\t .getText().toString()))));\n\t Patient pat = new Patient(personalData, vitalSigns, symptoms,\n\t\t new Date(), new Prescription());\n\n\t dh.appendNewPatient(pat);\n\t try {\n\t\tdh.savePatientsToFile(this\n\t\t\t.getApplicationContext()\n\t\t\t.openFileOutput(DataHandler.PATIENT_DATA, MODE_PRIVATE));\n\t } catch (FileNotFoundException e) {\n\t\t// TODO Auto-generated catch block\n\t\te.printStackTrace();\n\t }\n\t} catch (NumberFormatException e) {\n\t // TODO Auto-generated catch block\n\t e.printStackTrace();\n\t} catch (IOException e) {\n\t // TODO Auto-generated catch block\n\t e.printStackTrace();\n\t} catch (ParseException e) {\n\t // TODO Auto-generated catch block\n\t e.printStackTrace();\n\t}\n\n\tIntent newIntent = new Intent(this, DisplayActivityNurse.class);\n\tstartActivity(newIntent);\n }",
"public ContactPanel() {\n initComponents();\n }",
"public JComponent createContentPanel() {\n\t\t// Separating the component initialization and configuration\n\t\t// from the layout code makes both parts easier to read.\n\t\tinitControls();\n\t\t//TODO set minimum size\n\t\tFormLayout layout = new FormLayout(\"default, 3dlu, 120dlu:grow\", // cols //$NON-NLS-1$\n\t\t\t\t\"p, 3dlu,p,3dlu,p\"); // rows //$NON-NLS-1$\n\n\t\t// Create a builder that assists in adding components to the container.\n\t\t// Wrap the panel with a standardized border.\n\t\tDefaultFormBuilder builder = new DefaultFormBuilder(layout);\n\t\tbuilder.setDefaultDialogBorder();\n\t\tbuilder.append(Messages.getString(\"RenameDialog.CurrentName\"), oldName); //$NON-NLS-1$\n\t\tbuilder.nextLine(2);\n\t\tbuilder.append(Messages.getString(\"RenameDialog.NewName\"), newName); //$NON-NLS-1$\n\t\treturn builder.getPanel();\n\t}",
"private void createSchedulePanel()\n\t{\n\t\t//newWeek=new Week(selectedId);\n\t\t//contentPane.add(newWeek,BorderLayout.SOUTH);\n\t\t//System.out.println(\"first time load:\"+selectedId);\n\t\tschedule=new Schedule(selectedId, isSprinklerSelected);\n\t\tschedulePane=new JPanel();\n\t\tschedulePane.setLayout(new FlowLayout(FlowLayout.CENTER));\n\t\tschedulePane.add(schedule);\n\t\tcontentPane.add(schedulePane,BorderLayout.CENTER);//add to content pane\n\t}",
"public Patient() {\n\t\t\n\t}",
"private JPanel createFortifyPanel(Player p){\n\t\tthis.add( panels[2] );\n\t\tfortifyFrom.removeAllItems();\n\t\tfor (Country country : this.game.getCurrentPlayer().getOwnedCountries()){\n\t\t\t\n\t\t\tfortifyFrom.addItem(country.getName());\n\t\t}\n\t\tfortifyTo.removeAllItems();\n\t\tfor (Country country1 : this.game.getCurrentPlayer().getOwnedCountries()){\n\t\t\tfortifyTo.addItem(country1.getName());\n\t\t}\n\t\tthis.panels[2].add( labels[ 5 ]);\n\t\tthis.panels[2].add( fortifyFrom );\n\t\tthis.panels[2].add( labels[ 6 ]);\n\t\tthis.panels[2].add( numberOfArmies[2] );\t\t\t// panel for fortify command \n\t\tthis.panels[2].add( labels[ 7 ]);\n\t\tthis.panels[2].add( fortifyTo );\n\t\tthis.panels[2].add( execute[0] );\n\t\tpanels[2].setVisible( false );\n\t\treturn panels[2];\n\t}",
"public void preparePanelPoder(){\n\t\tpanelNombrePoder = new JPanel();\n\t\tpanelNombrePoder.setLayout( new GridLayout(3,1,0,0 ));\n\t\t\n\t\tString name = ( game.getCurrentSorpresa() == null )?\" No hay sorpresa\":\" \"+game.getCurrentSorpresa().getClass().getName();\n\t\tn1 = new JLabel(\"Sorpresa actual:\"); \n\t\tn1.setForeground(Color.WHITE);\n\t\t\n\t\tn2 = new JLabel();\n\t\tn2.setText(name.replace(\"aplicacion.\",\"\"));\n\t\tn2.setForeground(Color.WHITE);\n\t\t\n\t\tpanelNombrePoder.add(n1);\n\t\tpanelNombrePoder.add(n2);\n\t\tpanelNombrePoder.setBounds( 34,200 ,110,50);\n\t\tpanelNombrePoder.setOpaque(false);\n\t\tthis.add( panelNombrePoder);\n\t\t\n\t\t\n\t\t\n\t\t\n\t}",
"public JComponent createFieldsPlayer() {\n \tJPanel namePanel = new JPanel(new SpringLayout());\n \t\n \tString[] labelStrings = {\n// \t\t\t\"User ID: \",\n \t\t\t\"First Name: \",\n \t\t\t\"Last Name: \" \t\t\t\n \t};\n \t\n \tpLabels = new JLabel[labelStrings.length];\n \tJComponent[] fields = new JComponent[labelStrings.length];\n \tint fieldNum = 0;\n \t\n \tfirstFieldP = new JTextField();\n \tfirstFieldP.setColumns(20);\n \tfields[fieldNum++] = firstFieldP;\n \t\n \tlastFieldP = new JTextField();\n \tlastFieldP.setColumns(20);\n \tfields[fieldNum++] = lastFieldP;\n \t\n \tnamePanel.setOpaque(false);\n \t\n \t//Associate label/field pairs, add everything and lay it out\n \tfor(int i=0; i<labelStrings.length;i++) {\n \t\tpLabels[i] = new JLabel(labelStrings[i], JLabel.TRAILING);\n \t\tpLabels[i].setLabelFor(fields[i]);\n \t\tnamePanel.add(pLabels[i]);\n \t\tnamePanel.add(fields[i]);\n \t\t\n \t\t// for each field, create a spinner for every entry added\n \t\t/****** To Do ********/\n \t}\n \tSpringUtilities.makeCompactGrid(namePanel, labelStrings.length, 2, \n \t\t\t\t\t\t\t\t\tGAP, GAP, //init x,y\n \t\t\t\t\t\t\t\t\tGAP, GAP/2); //xpad, ypad\n \treturn namePanel; \t \t\n }",
"public void createNew(PatientBO patient)\n {\n _dietTreatment = new DietTreatmentBO();\n _dietTreatment.setPatient(patient);\n setPatient(patient);\n }",
"public JFrmPrincipal() {\n initComponents();\n }",
"public ComandaPanel() {\n\n initComponents();\n // comanda = new Comanda();\n }",
"public Patient_Record_Lookup_Panel() \n\t{\n\t\t//setLayout(new GridLayout(3, 1));\n setLayout(new BoxLayout(this, BoxLayout.PAGE_AXIS));\n\n JPanel top = new JPanel();\n\t\ttop.add(new Centered_Text_Panel(\"Record Lookup:\"));\n add(top);\n \n\t\tadd(new Lookup_Panel());\n\n\t\tadd(record_output_panel = new Patient_Record_Output());\n\t}",
"public NewJFrame() {\n initComponents();\n \n \n //combo box\n comboCompet.addItem(\"Séléction officielle\");\n comboCompet.addItem(\"Un certain regard\");\n comboCompet.addItem(\"Cannes Courts métrages\");\n comboCompet.addItem(\"Hors compétitions\");\n comboCompet.addItem(\"Cannes Classics\");\n \n \n //redimension\n this.setResizable(false);\n \n planning = new Planning();\n \n \n }",
"public void patientReferralPanel(Container pane) {\n JPanel referralPanel = new JPanel();\n referralPanel.setLayout(new GridLayout(1,2));\n \n // creating the left hand side of the page \n JPanel leftPanel = new JPanel();\n leftPanel.setLayout(new BoxLayout(leftPanel, BoxLayout.Y_AXIS));\n \n // creating the specality section\n JPanel specialtyPanel = new JPanel();\n specialtyPanel.setBorder(BorderFactory.createTitledBorder(\"Specialty\"));\n JComboBox specalites = new JComboBox(new Object[] { \"\", \"Radiology\", \"Obstetrics & Gynecology\", \"Cardiovascular\", \"Anesthesiology\", \"Orthopaedic Surgery\", \"Ophthalmology\", \"Dermatology\", \"Pediatrics\" });\n \n specialtyPanel.add(specalites);\n leftPanel.add(specialtyPanel);\n \n // creating the provider section\n JPanel providerPanel = new JPanel();\n providerPanel.setBorder(BorderFactory.createTitledBorder(\"Provider\"));\n \n /**** Data Retrieve *****/\n String [] fields = {};\n String [] params = {};\n docs = serv.getData(CShareObjects.DOCTOR, fields, params);\n \n \n JComboBox providers = new JComboBox(docs.toArray());\n providerPanel.add(providers);\n \n // adding the provider panel to the left panel\n leftPanel.add(providerPanel);\n \n // creating the additional notes section\n JPanel notes = new JPanel();\n notes.setBorder(BorderFactory.createTitledBorder(\"Additional Notes\"));\n notes.setLayout(new BoxLayout(notes, BoxLayout.Y_AXIS));\n \n // creating the notes entered text area\n JTextArea notesEntered = new JTextArea(4, 10);\n notesEntered.setText(\"\");\n notesEntered.setEditable(true);\n notesEntered.setLineWrap(true);\n JScrollPane scroll = new JScrollPane(notesEntered);\n scroll.setVerticalScrollBarPolicy(ScrollPaneConstants.VERTICAL_SCROLLBAR_ALWAYS);\n notes.add(scroll);\n \n // adding the notes to the notes and submit section\n leftPanel.add(notes);\n \n // adding the left panel to the main panel veiw\n referralPanel.add(leftPanel);\n \n // creating the right hand side of the page \n JPanel rightPanel = new JPanel();\n rightPanel.setLayout(new GridLayout(2,1));\n \n // creating reason for referral panel\n JPanel reason = new JPanel();\n reason.setBorder(BorderFactory.createTitledBorder(\"Reason For Referral\"));\n reason.setLayout(new BoxLayout(reason, BoxLayout.Y_AXIS));\n \n /***** Data retrieval ******/\n String [] fields2 = {\"PatientID\"};\n String [] params2 = {pat.getID()};\n List<PatientDiagnosis> diags = serv.getData(CShareObjects.PATIENTDIAGNOSIS, fields2, params2);\n \n for (PatientDiagnosis pd : diags) {\n \t reason.add(createDiagnosis(pd));\n }\n JCheckBox other = new JCheckBox(\"Other (input reason below)\");\n other.setSelected(false);\n reason.add(other);\n JTextArea otherReason = new JTextArea(1, 5);\n otherReason.setEditable(true);\n reason.add(otherReason);\n \n // adding invisible panels for formating\n reason.add(new JPanel());\n reason.add(new JPanel());\n reason.add(new JPanel());\n reason.add(new JPanel());\n\n // adding the reason for referral to the right panel\n rightPanel.add(reason);\n \n // creating the refer button\n JPanel refferButtonPanel = new JPanel();\n refferButtonPanel.setLayout(new BoxLayout(refferButtonPanel, BoxLayout.LINE_AXIS));\n refferButtonPanel.add(new JPanel());\n refferButtonPanel.add(new JButton(\"Refer\"));\n refferButtonPanel.add(new JPanel());\n \n // adding the submit panel to the notes and submit panel\n rightPanel.add(refferButtonPanel);\n\n // adding the right panel to the main referral page\n referralPanel.add(rightPanel);\n \n // adding the referral panel to the passed in container\n pane.add(referralPanel);\n }",
"public Hospital() {\n initComponents();\n }",
"public Managing_Staff_Main_Form() {\n initComponents();\n }",
"public JPanel getPanelConsulta(){\n\n\t\tJPanel panel = new JPanel();\n\t\tpanel.setLayout(new GridLayout(5, 1, 50, 10));\n\n\t\tpanel.add(new JLabel(\"Fecha inicio:\"));\n\t\tcampoInicio = new JTextField(\"yyyy-mm-dd\");\n\t\tcampoInicio.setForeground(new Color(111,111,111));\n\t\tcampoInicio.addFocusListener(control);\n\t\tcampoInicio.setActionCommand(\"fecahaInicio\");\n\n\t\tpanel.add(campoInicio);\n\n\t\tpanel.add(new JLabel(\"Fecha final:\"));\n\t\tcampoFinal = new JTextField(\"yyyy-mm-dd\");\n\t\tcampoFinal.setForeground(new Color(111,111,111));\n\t\tcampoFinal.addFocusListener(control);\n\t\tcampoFinal.setActionCommand(\"fecahaFinal\");\n\t\n\t\tpanel.add(campoFinal);\n\n\t\tpanel.setBorder(BorderFactory.createTitledBorder(\"Datos Reporte\"));\n\n\t\tJButton consulta = new JButton(\"Consultar\");\n\t\tconsulta.addActionListener(control);\n\t\tconsulta.setActionCommand(\"consulta\");\n\t\tpanel.add(consulta);\n\t\tpanel.setPreferredSize(new Dimension(190, 250));\n\n\t\treturn panel;\n\n\t}",
"public FormularioP() {\n initComponents();\n }",
"public DetailsPanel( )\n {\n initComponents();\n }",
"public Patient_Update() {\n initComponents();\n ButtonGroup bg = new ButtonGroup();\n bg.add(p_male);\n bg.add(p_female);\n showDate();\n showTime();\n }",
"public CreatePatientFragment() {\n\n }",
"public PanelSgamacView1()\n {\n }",
"public InfoPanel()\n\t\t{\n\t\t\t//setting color and instantiating textfield and button\n\t\t\tsetBackground(bCol);\n\t\t\tnameJF = new JTextField(\"Type Your Name\", 20);\n\t\t\tFont naFont = new Font(\"Serif\", Font.PLAIN, 25);\n\t\t\tnameJF.setFont(naFont);\n\t\t\tsub = new JButton(\"Submit\");\n\t\t\tsub.addActionListener(this);\n\t\t\tsub.setFont(naFont);\n\t\t\tname = new String(\"\");\n\t\t\tadd(nameJF);\n\t\t\tadd(sub);\n\t\t}",
"private void buildPanel()\n\t{\n\t\tvoterIDMessage = new JLabel(\"Please Enter Your Voter ID.\");\n\t\tbutton1 = new JButton(\"Cancel\");\n\t\tbutton1.addActionListener(new ButtonListener());\n\t\tbutton2 = new JButton(\"OK\");\n\t\tbutton2.addActionListener(new ButtonListener());\n\t\tidText = new JTextField(10);\n\t\tpanel1 = new JPanel();\n\t\tpanel2 = new JPanel();\n\t\tpanel3 = new JPanel();\n\t\tpanel1.add(voterIDMessage);\n\t\tpanel2.add(idText);\n\t\tpanel3.add(button1);\n\t\tpanel3.add(button2);\n\t}",
"public Panel() {\n initComponents();\n\n\n }",
"public Principal() {\r\n initComponents();\r\n setLocationRelativeTo(null); \r\n panel_Compras = new Compras();\r\n panel_Ventas = new Ventas();\r\n }",
"public static JPanel newPanel() {\n\t\treturn null;\n\t}",
"public frmPrincipal() {\n initComponents();\n }",
"private void createPanel() {\n JPanel panel = new JPanel();\n \n for(int i = 0; i < button.size(); i++){\n panel.add(button.get(i));\n }\n panel.add(label);\n \n add(panel);\n }",
"public PatientList()\r\n\t{\r\n\t\treadPatientListFromFile();\r\n\t\t//showPatientList();\r\n\t}",
"private JPanel addPannelPassword(){\n\t\tJPanel panPass = new JPanel();\n\t\tpanPass.setPreferredSize(new Dimension(175, 75));\n\t\tpasswordT = new JTextField();\n\t\tpasswordT.setPreferredSize(new Dimension(100, 25));\n\t\tpanPass.setBorder(BorderFactory.createTitledBorder(\"Password\"));\n\t\tpassword = new JLabel(\"Put a password :\");\n\t\tpanPass.add(password);\n\t\tpanPass.add(passwordT);\n\t\treturn panPass;\n\t}",
"public Patient(String n, String type){\n name =\"Brendan\";\n pid = \"01723-X72312-7123\";\n birthDate = new Date();\n nationalID = n;\n sex =\"Female\";\n mothersName = \"Mary\";\n fathersName = \"John\";\n enrolledSchema = new Schema();\n doctype = 1;\n }",
"public PatientAdmit_WardRecord() {\n initComponents();\n }",
"public PanelSubMenuMedico() {\n initComponents();\n pnForm = null;\n pnViewer = null;\n observadores = new ArrayList<>();\n nombre = \"medico\";\n }",
"private static void assembleAddPanel(){\n addPanel.add(addPlayerNameLabel);\n addPanel.add(newPlayerNameTextBox);\n addPlayerButton.addStyleName(\"add-button\");\n newPlayerNameTextBox.addStyleName(\"player-name-textbox\");\n addPlayerButton.addStyleName(\"btn btn-default\");\n resetRosterButton.addStyleName(\"btn btn-default\");\n addPlayerButton.setHTML(\"<span class=\\\"glyphicon glyphicon-plus\\\" aria-hidden=\\\"true\\\"></span>Add Player\");\n resetRosterButton.setHTML(\"<span class=\\\"glyphicon glyphicon-repeat\\\" aria-hidden=\\\"true\\\"></span>Reset All\");\n }",
"public S2SSubmissionDetailForm() {\r\n initComponents();\r\n }",
"public FormInserir() {\n initComponents();\n }",
"public static AssessmentCreationForm openFillCreationForm(Assessment assm) {\n openCreationSearchForm(Roles.STAFF, WingsTopMenu.WingsStaffMenuItem.P_ASSESSMENTS, Popup.Create);\n\n Logger.getInstance().info(\"Fill out the required fields with valid data\");\n AssessmentCreationForm creationForm = new AssessmentCreationForm();\n creationForm.fillAssessmentInformation(new User(Roles.STAFF), assm);\n\n return new AssessmentCreationForm();\n }",
"public JPanel getNewClientAccountPanel() {\n clientAccountView = new ClientAccountView();\n clientAccountView.setAccNum(smCntr.getID());\n clientAccountView.setFormToAdd();\n return clientAccountView;\n }",
"public void onNew() {\t\t\n\t\tdesignWidget.addNewForm();\n\t}",
"@Override\n public void newPanelModel() {\n\n }",
"@Override\n public void newPanelModel() {\n\n }"
] |
[
"0.68953466",
"0.6612389",
"0.65380454",
"0.6474942",
"0.64713883",
"0.64052445",
"0.6392737",
"0.6316887",
"0.6290799",
"0.6261326",
"0.61916",
"0.61813915",
"0.61473584",
"0.61103916",
"0.60625374",
"0.60616845",
"0.6040732",
"0.60185134",
"0.5998534",
"0.5976558",
"0.5962185",
"0.5928792",
"0.5927342",
"0.59235716",
"0.58980596",
"0.58850914",
"0.58807784",
"0.58731085",
"0.5864415",
"0.5861289",
"0.58567774",
"0.5854648",
"0.5851643",
"0.58466494",
"0.5840708",
"0.5834846",
"0.5833822",
"0.5817324",
"0.58173215",
"0.5814918",
"0.5804376",
"0.57883763",
"0.57750833",
"0.5769208",
"0.5762596",
"0.5759778",
"0.5758169",
"0.57429385",
"0.5737127",
"0.5736619",
"0.57360154",
"0.5734365",
"0.572624",
"0.57168865",
"0.5703317",
"0.5703152",
"0.5702018",
"0.5702018",
"0.56978166",
"0.56933707",
"0.56928724",
"0.5685737",
"0.5684882",
"0.56740665",
"0.5673447",
"0.56733185",
"0.5668853",
"0.5652203",
"0.5649319",
"0.56393397",
"0.5639332",
"0.5633614",
"0.5631131",
"0.56242394",
"0.56212276",
"0.5620287",
"0.56188923",
"0.5616442",
"0.56109315",
"0.5605227",
"0.560341",
"0.5595595",
"0.55955917",
"0.55928236",
"0.55902785",
"0.5583568",
"0.55828077",
"0.5582609",
"0.5574613",
"0.55739635",
"0.557388",
"0.5573304",
"0.5558237",
"0.5557592",
"0.5556739",
"0.55534714",
"0.5551719",
"0.55417013",
"0.5525008",
"0.5525008"
] |
0.6595617
|
2
|
This method is called from within the constructor to initialize the form. WARNING: Do NOT modify this code. The content of this method is always regenerated by the Form Editor.
|
@SuppressWarnings("unchecked")
// <editor-fold defaultstate="collapsed" desc="Generated Code">//GEN-BEGIN:initComponents
private void initComponents() {
jPanel13 = new javax.swing.JPanel();
jPanel12 = new javax.swing.JPanel();
add4 = new javax.swing.JLabel();
update3 = new javax.swing.JLabel();
jPanel11 = new javax.swing.JPanel();
update4 = new javax.swing.JLabel();
update5 = new javax.swing.JLabel();
jPanel4 = new javax.swing.JPanel();
jLabel8 = new javax.swing.JLabel();
jLabel1 = new javax.swing.JLabel();
name = new javax.swing.JTextField();
jLabel9 = new javax.swing.JLabel();
jLabel2 = new javax.swing.JLabel();
jFulname = new javax.swing.JTextField();
jLabel15 = new javax.swing.JLabel();
jDisease = new javax.swing.JTextField();
jLabel4 = new javax.swing.JLabel();
jMedicineName = new javax.swing.JTextField();
jLabel17 = new javax.swing.JLabel();
jDose = new javax.swing.JComboBox<>();
jLabel18 = new javax.swing.JLabel();
jTime = new javax.swing.JTextField();
jLabel7 = new javax.swing.JLabel();
jScrollPane1 = new javax.swing.JScrollPane();
jDiscription = new javax.swing.JTextArea();
setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE);
setTitle("Hospital Management System");
jPanel13.setBackground(new java.awt.Color(255, 255, 255));
jPanel12.setBackground(new java.awt.Color(24, 44, 97));
add4.setBackground(new java.awt.Color(0, 204, 204));
add4.setFont(new java.awt.Font("Arial Black", 1, 18)); // NOI18N
add4.setForeground(new java.awt.Color(255, 255, 255));
add4.setText("Prescription");
add4.addMouseListener(new java.awt.event.MouseAdapter() {
public void mouseClicked(java.awt.event.MouseEvent evt) {
addMouseClicked(evt);
}
});
update3.setBackground(new java.awt.Color(0, 204, 204));
update3.setFont(new java.awt.Font("Arial Black", 1, 18)); // NOI18N
update3.setForeground(new java.awt.Color(255, 255, 255));
update3.setText("Set Appointment");
update3.addMouseListener(new java.awt.event.MouseAdapter() {
public void mouseClicked(java.awt.event.MouseEvent evt) {
updateMouseClicked(evt);
}
});
jPanel11.setBackground(new java.awt.Color(255, 255, 255));
javax.swing.GroupLayout jPanel11Layout = new javax.swing.GroupLayout(jPanel11);
jPanel11.setLayout(jPanel11Layout);
jPanel11Layout.setHorizontalGroup(
jPanel11Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addGap(0, 0, Short.MAX_VALUE)
);
jPanel11Layout.setVerticalGroup(
jPanel11Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addGap(0, 8, Short.MAX_VALUE)
);
update4.setBackground(new java.awt.Color(0, 204, 204));
update4.setFont(new java.awt.Font("Arial Black", 1, 18)); // NOI18N
update4.setForeground(new java.awt.Color(255, 255, 255));
update4.setText("Edit Profile");
update4.addMouseListener(new java.awt.event.MouseAdapter() {
public void mouseClicked(java.awt.event.MouseEvent evt) {
update4updateMouseClicked(evt);
}
});
update5.setBackground(new java.awt.Color(0, 204, 204));
update5.setFont(new java.awt.Font("Arial Black", 1, 18)); // NOI18N
update5.setForeground(new java.awt.Color(255, 255, 255));
update5.setText("My Appointments");
update5.addMouseListener(new java.awt.event.MouseAdapter() {
public void mouseClicked(java.awt.event.MouseEvent evt) {
update5updateMouseClicked(evt);
}
});
javax.swing.GroupLayout jPanel12Layout = new javax.swing.GroupLayout(jPanel12);
jPanel12.setLayout(jPanel12Layout);
jPanel12Layout.setHorizontalGroup(
jPanel12Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addComponent(jPanel11, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
.addGroup(jPanel12Layout.createSequentialGroup()
.addContainerGap()
.addGroup(jPanel12Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addGroup(jPanel12Layout.createSequentialGroup()
.addComponent(update3, javax.swing.GroupLayout.DEFAULT_SIZE, 183, Short.MAX_VALUE)
.addContainerGap(13, Short.MAX_VALUE))
.addGroup(jPanel12Layout.createSequentialGroup()
.addComponent(add4)
.addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
.addComponent(update4, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
.addComponent(update5, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)))
);
jPanel12Layout.setVerticalGroup(
jPanel12Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addGroup(jPanel12Layout.createSequentialGroup()
.addGap(77, 77, 77)
.addComponent(add4)
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
.addComponent(jPanel11, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
.addGap(32, 32, 32)
.addComponent(update3)
.addGap(41, 41, 41)
.addComponent(update4)
.addGap(31, 31, 31)
.addComponent(update5)
.addContainerGap(335, Short.MAX_VALUE))
);
jPanel4.setBackground(new java.awt.Color(24, 44, 97));
jLabel8.setBackground(new java.awt.Color(0, 204, 204));
jLabel8.setFont(new java.awt.Font("Arial Black", 1, 36)); // NOI18N
jLabel8.setForeground(new java.awt.Color(255, 255, 255));
jLabel8.setText("Prescription");
jLabel1.setBackground(new java.awt.Color(0, 204, 204));
jLabel1.setFont(new java.awt.Font("Arial Black", 1, 24)); // NOI18N
jLabel1.setForeground(new java.awt.Color(255, 255, 255));
jLabel1.setIcon(new javax.swing.ImageIcon(getClass().getResource("/icon/hms60.png"))); // NOI18N
jLabel1.setText("HMS");
name.setEditable(false);
name.setBackground(new java.awt.Color(24, 44, 97));
name.setFont(new java.awt.Font("Segoe UI", 0, 18)); // NOI18N
name.setForeground(new java.awt.Color(255, 255, 255));
name.setHorizontalAlignment(javax.swing.JTextField.RIGHT);
name.setText("Abdul Wahid");
name.setBorder(null);
name.addActionListener(new java.awt.event.ActionListener() {
public void actionPerformed(java.awt.event.ActionEvent evt) {
nameActionPerformed(evt);
}
});
jLabel9.setFont(new java.awt.Font("Arial Black", 0, 14)); // NOI18N
jLabel9.setForeground(new java.awt.Color(232, 65, 24));
jLabel9.setText("(Logout)");
jLabel9.addMouseListener(new java.awt.event.MouseAdapter() {
public void mouseClicked(java.awt.event.MouseEvent evt) {
jLabel9MouseClicked(evt);
}
});
javax.swing.GroupLayout jPanel4Layout = new javax.swing.GroupLayout(jPanel4);
jPanel4.setLayout(jPanel4Layout);
jPanel4Layout.setHorizontalGroup(
jPanel4Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addGroup(jPanel4Layout.createSequentialGroup()
.addContainerGap()
.addComponent(jLabel1, javax.swing.GroupLayout.PREFERRED_SIZE, 137, javax.swing.GroupLayout.PREFERRED_SIZE)
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
.addGroup(jPanel4Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)
.addComponent(jLabel9)
.addGroup(jPanel4Layout.createSequentialGroup()
.addComponent(jLabel8)
.addGap(130, 130, 130)
.addComponent(name, javax.swing.GroupLayout.PREFERRED_SIZE, 170, javax.swing.GroupLayout.PREFERRED_SIZE)))
.addContainerGap())
);
jPanel4Layout.setVerticalGroup(
jPanel4Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jPanel4Layout.createSequentialGroup()
.addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
.addComponent(name, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
.addComponent(jLabel9)
.addContainerGap())
.addGroup(jPanel4Layout.createSequentialGroup()
.addGroup(jPanel4Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)
.addComponent(jLabel8)
.addComponent(jLabel1, javax.swing.GroupLayout.PREFERRED_SIZE, 70, javax.swing.GroupLayout.PREFERRED_SIZE))
.addGap(0, 28, Short.MAX_VALUE))
);
jLabel2.setFont(new java.awt.Font("Segoe UI Semibold", 0, 24)); // NOI18N
jLabel2.setText("Full Name");
jFulname.setEditable(false);
jFulname.setFont(new java.awt.Font("Segoe UI Semibold", 0, 18)); // NOI18N
jLabel15.setFont(new java.awt.Font("Segoe UI Semibold", 0, 24)); // NOI18N
jLabel15.setText("Disease");
jDisease.setEditable(false);
jDisease.setFont(new java.awt.Font("Segoe UI Semibold", 0, 18)); // NOI18N
jLabel4.setFont(new java.awt.Font("Segoe UI Semibold", 0, 24)); // NOI18N
jLabel4.setText("Medicine Name");
jMedicineName.setEditable(false);
jMedicineName.setFont(new java.awt.Font("Segoe UI Semibold", 0, 18)); // NOI18N
jLabel17.setFont(new java.awt.Font("Segoe UI Semibold", 0, 24)); // NOI18N
jLabel17.setText("Dose");
jDose.setFont(new java.awt.Font("Segoe UI Semibold", 0, 14)); // NOI18N
jDose.setModel(new javax.swing.DefaultComboBoxModel<>(new String[] { "Select", "1", "2", "3", "4", "5" }));
jLabel18.setFont(new java.awt.Font("Segoe UI Semibold", 0, 24)); // NOI18N
jLabel18.setText("Time");
jTime.setEditable(false);
jTime.setFont(new java.awt.Font("Segoe UI Semibold", 0, 18)); // NOI18N
jLabel7.setFont(new java.awt.Font("Segoe UI Semibold", 0, 24)); // NOI18N
jLabel7.setText("Description");
jDiscription.setEditable(false);
jDiscription.setColumns(20);
jDiscription.setRows(5);
jScrollPane1.setViewportView(jDiscription);
javax.swing.GroupLayout jPanel13Layout = new javax.swing.GroupLayout(jPanel13);
jPanel13.setLayout(jPanel13Layout);
jPanel13Layout.setHorizontalGroup(
jPanel13Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addComponent(jPanel4, javax.swing.GroupLayout.Alignment.TRAILING, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
.addGroup(jPanel13Layout.createSequentialGroup()
.addComponent(jPanel12, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
.addGap(18, 18, 18)
.addGroup(jPanel13Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addGroup(jPanel13Layout.createSequentialGroup()
.addComponent(jLabel2)
.addGap(79, 79, 79)
.addComponent(jFulname, javax.swing.GroupLayout.PREFERRED_SIZE, 186, javax.swing.GroupLayout.PREFERRED_SIZE))
.addGroup(jPanel13Layout.createSequentialGroup()
.addGroup(jPanel13Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addComponent(jLabel4)
.addComponent(jLabel15))
.addGap(18, 18, 18)
.addGroup(jPanel13Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addComponent(jDisease, javax.swing.GroupLayout.PREFERRED_SIZE, 149, javax.swing.GroupLayout.PREFERRED_SIZE)
.addComponent(jMedicineName, javax.swing.GroupLayout.PREFERRED_SIZE, 290, javax.swing.GroupLayout.PREFERRED_SIZE)))
.addComponent(jLabel17)
.addGroup(jPanel13Layout.createSequentialGroup()
.addGroup(jPanel13Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addComponent(jLabel7)
.addComponent(jLabel18))
.addGroup(jPanel13Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addGroup(jPanel13Layout.createSequentialGroup()
.addGap(66, 66, 66)
.addGroup(jPanel13Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addComponent(jDose, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
.addComponent(jTime, javax.swing.GroupLayout.PREFERRED_SIZE, 161, javax.swing.GroupLayout.PREFERRED_SIZE)))
.addGroup(jPanel13Layout.createSequentialGroup()
.addGap(62, 62, 62)
.addComponent(jScrollPane1, javax.swing.GroupLayout.PREFERRED_SIZE, 499, javax.swing.GroupLayout.PREFERRED_SIZE)))))
.addContainerGap(106, Short.MAX_VALUE))
);
jPanel13Layout.setVerticalGroup(
jPanel13Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addGroup(jPanel13Layout.createSequentialGroup()
.addComponent(jPanel4, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
.addGroup(jPanel13Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addComponent(jPanel12, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
.addGroup(jPanel13Layout.createSequentialGroup()
.addGap(18, 18, 18)
.addGroup(jPanel13Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
.addComponent(jLabel2)
.addComponent(jFulname, javax.swing.GroupLayout.PREFERRED_SIZE, 31, javax.swing.GroupLayout.PREFERRED_SIZE))
.addGap(18, 18, 18)
.addGroup(jPanel13Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
.addComponent(jLabel15)
.addComponent(jDisease, javax.swing.GroupLayout.PREFERRED_SIZE, 31, javax.swing.GroupLayout.PREFERRED_SIZE))
.addGap(18, 18, 18)
.addGroup(jPanel13Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
.addComponent(jLabel4)
.addComponent(jMedicineName, javax.swing.GroupLayout.PREFERRED_SIZE, 31, javax.swing.GroupLayout.PREFERRED_SIZE))
.addGap(18, 18, 18)
.addGroup(jPanel13Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
.addComponent(jLabel17)
.addComponent(jDose, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
.addGap(18, 18, 18)
.addGroup(jPanel13Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
.addComponent(jLabel18)
.addComponent(jTime, javax.swing.GroupLayout.PREFERRED_SIZE, 31, javax.swing.GroupLayout.PREFERRED_SIZE))
.addGroup(jPanel13Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addGroup(jPanel13Layout.createSequentialGroup()
.addGap(18, 18, 18)
.addComponent(jLabel7))
.addGroup(jPanel13Layout.createSequentialGroup()
.addGap(34, 34, 34)
.addComponent(jScrollPane1, javax.swing.GroupLayout.PREFERRED_SIZE, 202, javax.swing.GroupLayout.PREFERRED_SIZE))))))
);
javax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane());
getContentPane().setLayout(layout);
layout.setHorizontalGroup(
layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addComponent(jPanel13, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
);
layout.setVerticalGroup(
layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addComponent(jPanel13, javax.swing.GroupLayout.PREFERRED_SIZE, 697, Short.MAX_VALUE)
);
pack();
setLocationRelativeTo(null);
}
|
{
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
}
|
[
"public Form() {\n initComponents();\n }",
"public MainForm() {\n initComponents();\n }",
"public MainForm() {\n initComponents();\n }",
"public MainForm() {\n initComponents();\n }",
"public frmRectangulo() {\n initComponents();\n }",
"public form() {\n initComponents();\n }",
"public AdjointForm() {\n initComponents();\n setDefaultCloseOperation(HIDE_ON_CLOSE);\n }",
"public FormListRemarking() {\n initComponents();\n }",
"public MainForm() {\n initComponents();\n \n }",
"public FormPemilihan() {\n initComponents();\n }",
"public GUIForm() { \n initComponents();\n }",
"public FrameForm() {\n initComponents();\n }",
"public TorneoForm() {\n initComponents();\n }",
"public FormCompra() {\n initComponents();\n }",
"public muveletek() {\n initComponents();\n }",
"public Interfax_D() {\n initComponents();\n }",
"public quanlixe_form() {\n initComponents();\n }",
"public SettingsForm() {\n initComponents();\n }",
"public RegistrationForm() {\n initComponents();\n this.setLocationRelativeTo(null);\n }",
"public Soru1() {\n initComponents();\n }",
"public FMainForm() {\n initComponents();\n this.setResizable(false);\n setLocationRelativeTo(null);\n }",
"public soal2GUI() {\n initComponents();\n }",
"public EindopdrachtGUI() {\n initComponents();\n }",
"public MechanicForm() {\n initComponents();\n }",
"public AddDocumentLineForm(java.awt.Frame parent) {\n super(parent);\n initComponents();\n myInit();\n }",
"public BloodDonationGUI() {\n initComponents();\n }",
"public quotaGUI() {\n initComponents();\n }",
"public Customer_Form() {\n initComponents();\n setSize(890,740);\n \n \n }",
"public PatientUI() {\n initComponents();\n }",
"public Oddeven() {\n initComponents();\n }",
"public myForm() {\n\t\t\tinitComponents();\n\t\t}",
"public Magasin() {\n initComponents();\n }",
"public intrebarea() {\n initComponents();\n }",
"public RadioUI()\n {\n initComponents();\n }",
"public NewCustomerGUI() {\n initComponents();\n }",
"public ZobrazUdalost() {\n initComponents();\n }",
"public FormUtama() {\n initComponents();\n }",
"public p0() {\n initComponents();\n }",
"public INFORMACION() {\n initComponents();\n this.setLocationRelativeTo(null); \n }",
"public ProgramForm() {\n setLookAndFeel();\n initComponents();\n }",
"public AmountReleasedCommentsForm() {\r\n initComponents();\r\n }",
"public form2() {\n initComponents();\n }",
"public MainForm() {\n\t\tsuper(\"Hospital\", List.IMPLICIT);\n\n\t\tstartComponents();\n\t}",
"public kunde() {\n initComponents();\n }",
"public LixeiraForm() {\n initComponents();\n setLocationRelativeTo(null);\n }",
"@SuppressWarnings(\"unchecked\")\n // <editor-fold defaultstate=\"collapsed\" desc=\"Generated Code\">//GEN-BEGIN:initComponents\n private void initComponents() {\n\n setName(\"Form\"); // NOI18N\n setRequestFocusEnabled(false);\n setVerifyInputWhenFocusTarget(false);\n\n javax.swing.GroupLayout layout = new javax.swing.GroupLayout(this);\n this.setLayout(layout);\n layout.setHorizontalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGap(0, 465, Short.MAX_VALUE)\n );\n layout.setVerticalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGap(0, 357, Short.MAX_VALUE)\n );\n }",
"public MusteriEkle() {\n initComponents();\n }",
"public frmMain() {\n initComponents();\n }",
"public frmMain() {\n initComponents();\n }",
"public DESHBORDPANAL() {\n initComponents();\n }",
"public GUIForm() {\n initComponents();\n inputField.setText(NO_FILE_SELECTED);\n outputField.setText(NO_FILE_SELECTED);\n progressLabel.setBackground(INFO);\n progressLabel.setText(SELECT_FILE);\n }",
"public frmVenda() {\n initComponents();\n }",
"public Botonera() {\n initComponents();\n }",
"public FrmMenu() {\n initComponents();\n }",
"public OffertoryGUI() {\n initComponents();\n setTypes();\n }",
"public JFFornecedores() {\n initComponents();\n }",
"@SuppressWarnings(\"unchecked\")\n // <editor-fold defaultstate=\"collapsed\" desc=\"Generated Code\">//GEN-BEGIN:initComponents\n private void initComponents()\n {\n\n setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE);\n setBackground(new java.awt.Color(255, 255, 255));\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 .addGap(0, 983, Short.MAX_VALUE)\n );\n layout.setVerticalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGap(0, 769, Short.MAX_VALUE)\n );\n\n pack();\n }",
"public EnterDetailsGUI() {\n initComponents();\n }",
"public vpemesanan1() {\n initComponents();\n }",
"public Kost() {\n initComponents();\n }",
"public FormHorarioSSE() {\n initComponents();\n }",
"public frmacceso() {\n initComponents();\n }",
"public HW3() {\n initComponents();\n }",
"public UploadForm() {\n initComponents();\n }",
"public Managing_Staff_Main_Form() {\n initComponents();\n }",
"@SuppressWarnings(\"unchecked\")\n // <editor-fold defaultstate=\"collapsed\" desc=\"Generated Code\">//GEN-BEGIN:initComponents\n private void initComponents()\n {\n\n setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE);\n getContentPane().setLayout(null);\n\n pack();\n }",
"@SuppressWarnings(\"unchecked\")\n // <editor-fold defaultstate=\"collapsed\" desc=\"Generated Code\">//GEN-BEGIN:initComponents\n private void initComponents() {\n\n setName(\"Form\"); // NOI18N\n\n javax.swing.GroupLayout layout = new javax.swing.GroupLayout(this);\n this.setLayout(layout);\n layout.setHorizontalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGap(0, 400, Short.MAX_VALUE)\n );\n layout.setVerticalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGap(0, 300, Short.MAX_VALUE)\n );\n }",
"public sinavlar2() {\n initComponents();\n }",
"public P0405() {\n initComponents();\n }",
"public MiFrame2() {\n initComponents();\n }",
"public IssueBookForm() {\n initComponents();\n }",
"public Choose1() {\n initComponents();\n }",
"public MainForm() {\n initComponents();\n\n String oldAuthor = prefs.get(\"AUTHOR\", \"\");\n if(oldAuthor != null) {\n this.authorTextField.setText(oldAuthor);\n }\n String oldBook = prefs.get(\"BOOK\", \"\");\n if(oldBook != null) {\n this.bookTextField.setText(oldBook);\n }\n String oldDisc = prefs.get(\"DISC\", \"\");\n if(oldDisc != null) {\n try {\n int oldDiscNum = Integer.parseInt(oldDisc);\n oldDiscNum++;\n this.discNumberTextField.setText(Integer.toString(oldDiscNum));\n } catch (Exception ex) {\n this.discNumberTextField.setText(oldDisc);\n }\n this.bookTextField.setText(oldBook);\n }\n\n\n }",
"public GUI_StudentInfo() {\n initComponents();\n }",
"public Lihat_Dokter_Keseluruhan() {\n initComponents();\n }",
"public JFrmPrincipal() {\n initComponents();\n }",
"public bt526() {\n initComponents();\n }",
"public Pemilihan_Dokter() {\n initComponents();\n }",
"public Ablak() {\n initComponents();\n }",
"@Override\n\tprotected void initUi() {\n\t\t\n\t}",
"@SuppressWarnings(\"unchecked\")\n\t// <editor-fold defaultstate=\"collapsed\" desc=\"Generated\n\t// Code\">//GEN-BEGIN:initComponents\n\tprivate void initComponents() {\n\n\t\tlabel1 = new java.awt.Label();\n\t\tlabel2 = new java.awt.Label();\n\t\tlabel3 = new java.awt.Label();\n\t\tlabel4 = new java.awt.Label();\n\t\tlabel5 = new java.awt.Label();\n\t\tlabel6 = new java.awt.Label();\n\t\tlabel7 = new java.awt.Label();\n\t\tlabel8 = new java.awt.Label();\n\t\tlabel9 = new java.awt.Label();\n\t\tlabel10 = new java.awt.Label();\n\t\ttextField1 = new java.awt.TextField();\n\t\ttextField2 = new java.awt.TextField();\n\t\tlabel14 = new java.awt.Label();\n\t\tlabel15 = new java.awt.Label();\n\t\tlabel16 = new java.awt.Label();\n\t\ttextField3 = new java.awt.TextField();\n\t\ttextField4 = new java.awt.TextField();\n\t\ttextField5 = new java.awt.TextField();\n\t\tlabel17 = new java.awt.Label();\n\t\tlabel18 = new java.awt.Label();\n\t\tlabel19 = new java.awt.Label();\n\t\tlabel20 = new java.awt.Label();\n\t\tlabel21 = new java.awt.Label();\n\t\tlabel22 = new java.awt.Label();\n\t\ttextField6 = new java.awt.TextField();\n\t\ttextField7 = new java.awt.TextField();\n\t\ttextField8 = new java.awt.TextField();\n\t\tlabel23 = new java.awt.Label();\n\t\ttextField9 = new java.awt.TextField();\n\t\ttextField10 = new java.awt.TextField();\n\t\ttextField11 = new java.awt.TextField();\n\t\ttextField12 = new java.awt.TextField();\n\t\tlabel24 = new java.awt.Label();\n\t\tlabel25 = new java.awt.Label();\n\t\tlabel26 = new java.awt.Label();\n\t\tlabel27 = new java.awt.Label();\n\t\tlabel28 = new java.awt.Label();\n\t\tlabel30 = new java.awt.Label();\n\t\tlabel31 = new java.awt.Label();\n\t\tlabel32 = new java.awt.Label();\n\t\tjButton1 = new javax.swing.JButton();\n\n\t\tlabel1.setFont(new java.awt.Font(\"Segoe UI Semibold\", 0, 18)); // NOI18N\n\t\tlabel1.setText(\"It seems that some of the buttons on the ATM machine are not working!\");\n\n\t\tlabel2.setFont(new java.awt.Font(\"Segoe UI Semibold\", 0, 18)); // NOI18N\n\t\tlabel2.setText(\"Unfortunately these numbers are exactly what Professor has to use to type in his password.\");\n\n\t\tlabel3.setFont(new java.awt.Font(\"Segoe UI Semibold\", 0, 18)); // NOI18N\n\t\tlabel3.setText(\n\t\t\t\t\"If you want to eat tonight, you have to help him out and construct the numbers of the password with the working buttons and math operators.\");\n\n\t\tlabel4.setFont(new java.awt.Font(\"Segoe UI Semibold\", 0, 14)); // NOI18N\n\t\tlabel4.setText(\"Denver's Password: 2792\");\n\n\t\tlabel5.setFont(new java.awt.Font(\"Consolas\", 0, 14)); // NOI18N\n\t\tlabel5.setText(\"import java.util.Scanner;\\n\");\n\n\t\tlabel6.setFont(new java.awt.Font(\"Consolas\", 0, 14)); // NOI18N\n\t\tlabel6.setText(\"public class ATM{\");\n\n\t\tlabel7.setFont(new java.awt.Font(\"Consolas\", 0, 14)); // NOI18N\n\t\tlabel7.setText(\"public static void main(String[] args){\");\n\n\t\tlabel8.setFont(new java.awt.Font(\"Consolas\", 0, 14)); // NOI18N\n\t\tlabel8.setText(\"System.out.print(\");\n\n\t\tlabel9.setFont(new java.awt.Font(\"Dialog\", 0, 14)); // NOI18N\n\t\tlabel9.setText(\" -\");\n\n\t\tlabel10.setFont(new java.awt.Font(\"Consolas\", 0, 14)); // NOI18N\n\t\tlabel10.setText(\");\");\n\n\t\ttextField1.addActionListener(new java.awt.event.ActionListener() {\n\t\t\tpublic void actionPerformed(java.awt.event.ActionEvent evt) {\n\t\t\t\ttextField1ActionPerformed(evt);\n\t\t\t}\n\t\t});\n\n\t\tlabel14.setFont(new java.awt.Font(\"Consolas\", 0, 14)); // NOI18N\n\t\tlabel14.setText(\"System.out.print( (\");\n\n\t\tlabel15.setFont(new java.awt.Font(\"Consolas\", 0, 14)); // NOI18N\n\t\tlabel15.setText(\"System.out.print(\");\n\n\t\tlabel16.setFont(new java.awt.Font(\"Consolas\", 0, 14)); // NOI18N\n\t\tlabel16.setText(\"System.out.print( ( (\");\n\n\t\tlabel17.setFont(new java.awt.Font(\"Dialog\", 0, 14)); // NOI18N\n\t\tlabel17.setText(\")\");\n\n\t\tlabel18.setFont(new java.awt.Font(\"Dialog\", 0, 14)); // NOI18N\n\t\tlabel18.setText(\" +\");\n\n\t\tlabel19.setFont(new java.awt.Font(\"Consolas\", 0, 14)); // NOI18N\n\t\tlabel19.setText(\");\");\n\n\t\tlabel20.setFont(new java.awt.Font(\"Dialog\", 0, 14)); // NOI18N\n\t\tlabel20.setText(\" /\");\n\n\t\tlabel21.setFont(new java.awt.Font(\"Dialog\", 0, 14)); // NOI18N\n\t\tlabel21.setText(\" %\");\n\n\t\tlabel22.setFont(new java.awt.Font(\"Dialog\", 0, 14)); // NOI18N\n\t\tlabel22.setText(\" +\");\n\n\t\tlabel23.setFont(new java.awt.Font(\"Consolas\", 0, 14)); // NOI18N\n\t\tlabel23.setText(\");\");\n\n\t\tlabel24.setFont(new java.awt.Font(\"Dialog\", 0, 14)); // NOI18N\n\t\tlabel24.setText(\" +\");\n\n\t\tlabel25.setFont(new java.awt.Font(\"Dialog\", 0, 14)); // NOI18N\n\t\tlabel25.setText(\" /\");\n\n\t\tlabel26.setFont(new java.awt.Font(\"Dialog\", 0, 14)); // NOI18N\n\t\tlabel26.setText(\" *\");\n\n\t\tlabel27.setCursor(new java.awt.Cursor(java.awt.Cursor.DEFAULT_CURSOR));\n\t\tlabel27.setFont(new java.awt.Font(\"Consolas\", 0, 14)); // NOI18N\n\t\tlabel27.setText(\")\");\n\n\t\tlabel28.setFont(new java.awt.Font(\"Dialog\", 0, 14)); // NOI18N\n\t\tlabel28.setText(\")\");\n\n\t\tlabel30.setFont(new java.awt.Font(\"Consolas\", 0, 14)); // NOI18N\n\t\tlabel30.setText(\"}\");\n\n\t\tlabel31.setFont(new java.awt.Font(\"Consolas\", 0, 14)); // NOI18N\n\t\tlabel31.setText(\"}\");\n\n\t\tlabel32.setFont(new java.awt.Font(\"Consolas\", 0, 14)); // NOI18N\n\t\tlabel32.setText(\");\");\n\n\t\tjButton1.setFont(new java.awt.Font(\"Segoe UI Semibold\", 0, 14)); // NOI18N\n\t\tjButton1.setText(\"Check\");\n\t\tjButton1.addActionListener(new java.awt.event.ActionListener() {\n\t\t\tpublic void actionPerformed(java.awt.event.ActionEvent evt) {\n\t\t\t\tjButton1ActionPerformed(evt);\n\t\t\t}\n\t\t});\n\n\t\tjavax.swing.GroupLayout layout = new javax.swing.GroupLayout(this);\n\t\tlayout.setHorizontalGroup(layout.createParallelGroup(Alignment.LEADING)\n\t\t\t\t.addGroup(layout.createSequentialGroup().addGap(28).addGroup(layout\n\t\t\t\t\t\t.createParallelGroup(Alignment.LEADING).addComponent(getDoneButton()).addComponent(jButton1)\n\t\t\t\t\t\t.addComponent(label7, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t.addComponent(label6, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t.addComponent(label5, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t.addComponent(label4, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t.addComponent(label3, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t.addGroup(layout.createSequentialGroup()\n\t\t\t\t\t\t\t\t.addComponent(label1, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t.addGap(1)\n\t\t\t\t\t\t\t\t.addComponent(label2, GroupLayout.PREFERRED_SIZE, 774, GroupLayout.PREFERRED_SIZE))\n\t\t\t\t\t\t.addGroup(layout.createSequentialGroup()\n\t\t\t\t\t\t\t\t.addGap(92).addGroup(layout.createParallelGroup(Alignment.LEADING).addGroup(layout\n\t\t\t\t\t\t\t\t\t\t.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createParallelGroup(Alignment.LEADING, false)\n\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label15, GroupLayout.PREFERRED_SIZE, 145,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField8, GroupLayout.PREFERRED_SIZE, 20,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGap(2)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label21, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField7, GroupLayout.PREFERRED_SIZE, 20,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE))\n\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label8, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField1, GroupLayout.PREFERRED_SIZE, 20,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label9, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED).addComponent(\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\ttextField2, GroupLayout.PREFERRED_SIZE, 20,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE))\n\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label31, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup().addGroup(layout\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.createParallelGroup(Alignment.LEADING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label14, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGap(37))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup().addGap(174)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField5, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t20, GroupLayout.PREFERRED_SIZE)))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label18, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGap(7)))\n\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createParallelGroup(Alignment.LEADING).addGroup(layout\n\t\t\t\t\t\t\t\t\t\t\t\t.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.createParallelGroup(Alignment.TRAILING, false).addGroup(layout\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField4, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t20, GroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label17, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label22, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField9, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t20, GroupLayout.PREFERRED_SIZE)))\n\t\t\t\t\t\t\t\t\t\t\t\t.addGap(20)\n\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createParallelGroup(Alignment.TRAILING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label23, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label20, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField3, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t20, GroupLayout.PREFERRED_SIZE)))\n\t\t\t\t\t\t\t\t\t\t\t\t.addGap(20).addComponent(label19, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE))\n\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup().addGap(23).addComponent(\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tlabel10, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE))))\n\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label16, GroupLayout.PREFERRED_SIZE, 177,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField12, GroupLayout.PREFERRED_SIZE, 20,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label24, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField6, GroupLayout.PREFERRED_SIZE, 20,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label27, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label25, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField11, GroupLayout.PREFERRED_SIZE, 20,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label28, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t.addGap(1)\n\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label26, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField10, GroupLayout.PREFERRED_SIZE, 20,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED).addComponent(label32,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE))))\n\t\t\t\t\t\t.addComponent(label30, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE))\n\t\t\t\t\t\t.addContainerGap(GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)));\n\t\tlayout.setVerticalGroup(\n\t\t\t\tlayout.createParallelGroup(Alignment.LEADING).addGroup(layout.createSequentialGroup().addContainerGap()\n\t\t\t\t\t\t.addGroup(layout.createParallelGroup(Alignment.TRAILING)\n\t\t\t\t\t\t\t\t.addComponent(label1, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t.addComponent(label2, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE))\n\t\t\t\t\t\t.addGap(1)\n\t\t\t\t\t\t.addComponent(label3, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t.addComponent(label4, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t.addComponent(label5, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t.addComponent(label6, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t.addComponent(label7, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t.addGroup(layout\n\t\t\t\t\t\t\t\t.createParallelGroup(\n\t\t\t\t\t\t\t\t\t\tAlignment.TRAILING)\n\t\t\t\t\t\t\t\t.addGroup(\n\t\t\t\t\t\t\t\t\t\tlayout.createSequentialGroup().addGroup(layout.createParallelGroup(\n\t\t\t\t\t\t\t\t\t\t\t\tAlignment.TRAILING)\n\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.createSequentialGroup().addGroup(layout\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.createParallelGroup(Alignment.TRAILING).addGroup(layout\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.createParallelGroup(Alignment.LEADING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label9,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.createParallelGroup(Alignment.TRAILING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label8,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField1,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\ttextField2, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label10,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGap(3)))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGap(19)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createParallelGroup(Alignment.TRAILING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createParallelGroup(Alignment.LEADING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField5,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label14,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup().addGroup(layout\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.createParallelGroup(Alignment.LEADING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label18,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.createParallelGroup(Alignment.TRAILING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label17,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField4,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGap(1))))\n\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label20, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createParallelGroup(Alignment.LEADING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label19, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField3, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)))\n\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createParallelGroup(Alignment.LEADING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup().addGap(78)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label27, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup().addGap(76)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField11, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup().addGap(75)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createParallelGroup(Alignment.TRAILING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label32,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField10,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED, 20,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tShort.MAX_VALUE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.createParallelGroup(Alignment.TRAILING, false)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.createParallelGroup(\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tAlignment.TRAILING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label15,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField8,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label21,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField7,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGap(27))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.createParallelGroup(\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tAlignment.TRAILING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField9,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.createParallelGroup(\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tAlignment.LEADING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label22,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tlayout.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGap(3)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tlabel23,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE))))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGap(29)))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createParallelGroup(Alignment.TRAILING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.createParallelGroup(Alignment.LEADING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label16,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField12,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.createParallelGroup(\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tAlignment.TRAILING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label24,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField6,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGap(1))))))\n\t\t\t\t\t\t\t\t.addGroup(layout.createParallelGroup(Alignment.LEADING)\n\t\t\t\t\t\t\t\t\t\t.addComponent(label25, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t.addComponent(label28, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t.addComponent(label26, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)))\n\t\t\t\t\t\t.addGap(30)\n\t\t\t\t\t\t.addComponent(label31, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t.addGap(25)\n\t\t\t\t\t\t.addComponent(label30, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t.addGap(26).addComponent(jButton1).addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t.addComponent(getDoneButton()).addContainerGap(23, Short.MAX_VALUE)));\n\t\tthis.setLayout(layout);\n\n\t\tlabel16.getAccessibleContext().setAccessibleName(\"System.out.print( ( (\");\n\t\tlabel17.getAccessibleContext().setAccessibleName(\"\");\n\t\tlabel18.getAccessibleContext().setAccessibleName(\" +\");\n\t}",
"public Pregunta23() {\n initComponents();\n }",
"public FormMenuUser() {\n super(\"Form Menu User\");\n initComponents();\n }",
"public AvtekOkno() {\n initComponents();\n }",
"public busdet() {\n initComponents();\n }",
"public ViewPrescriptionForm() {\n initComponents();\n }",
"public Ventaform() {\n initComponents();\n }",
"public Kuis2() {\n initComponents();\n }",
"public CreateAccount_GUI() {\n initComponents();\n }",
"public POS1() {\n initComponents();\n }",
"public Carrera() {\n initComponents();\n }",
"public EqGUI() {\n initComponents();\n }",
"public JFriau() {\n initComponents();\n this.setLocationRelativeTo(null);\n this.setTitle(\"BuNus - Budaya Nusantara\");\n }",
"@SuppressWarnings(\"unchecked\")\n // <editor-fold defaultstate=\"collapsed\" desc=\"Generated Code\">//GEN-BEGIN:initComponents\n private void initComponents() {\n\n setBackground(new java.awt.Color(204, 204, 204));\n setMinimumSize(new java.awt.Dimension(1, 1));\n setPreferredSize(new java.awt.Dimension(760, 402));\n\n javax.swing.GroupLayout layout = new javax.swing.GroupLayout(this);\n this.setLayout(layout);\n layout.setHorizontalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGap(0, 750, Short.MAX_VALUE)\n );\n layout.setVerticalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGap(0, 400, Short.MAX_VALUE)\n );\n }",
"public nokno() {\n initComponents();\n }",
"public dokter() {\n initComponents();\n }",
"public ConverterGUI() {\n initComponents();\n }",
"public hitungan() {\n initComponents();\n }",
"public Modify() {\n initComponents();\n }",
"public frmAddIncidencias() {\n initComponents();\n }",
"public FP_Calculator_GUI() {\n initComponents();\n \n setVisible(true);\n }"
] |
[
"0.73208135",
"0.7291972",
"0.7291972",
"0.7291972",
"0.7287118",
"0.72494483",
"0.7214677",
"0.72086734",
"0.7197058",
"0.71912485",
"0.7185818",
"0.71596724",
"0.71489036",
"0.7094215",
"0.7082007",
"0.70579666",
"0.6988024",
"0.6978225",
"0.6955616",
"0.6955434",
"0.69458616",
"0.69446844",
"0.6937443",
"0.69325924",
"0.69280547",
"0.69266534",
"0.69264925",
"0.6912501",
"0.6911917",
"0.6894212",
"0.6893167",
"0.68922186",
"0.6892184",
"0.6890009",
"0.688444",
"0.6883334",
"0.68823224",
"0.6879555",
"0.68768615",
"0.6875667",
"0.68722147",
"0.6860655",
"0.68569547",
"0.6856804",
"0.6856167",
"0.6855431",
"0.6854634",
"0.68536645",
"0.68536645",
"0.684493",
"0.6837617",
"0.68372554",
"0.68303156",
"0.6828861",
"0.6827668",
"0.68246883",
"0.68245596",
"0.6818436",
"0.6818284",
"0.6812057",
"0.681017",
"0.68095857",
"0.68093693",
"0.6809163",
"0.68027467",
"0.67963576",
"0.6794979",
"0.6793972",
"0.6792247",
"0.67903155",
"0.67896885",
"0.67893314",
"0.6783135",
"0.6767654",
"0.67672074",
"0.67655265",
"0.6757984",
"0.6757062",
"0.6754005",
"0.67513984",
"0.674334",
"0.6740801",
"0.6737678",
"0.6737453",
"0.6734575",
"0.67281",
"0.6727845",
"0.67219335",
"0.67169774",
"0.67163646",
"0.6715783",
"0.67106164",
"0.6708574",
"0.6705358",
"0.67030907",
"0.6701408",
"0.6700769",
"0.66998196",
"0.6695165",
"0.66917574",
"0.6691252"
] |
0.0
|
-1
|
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_login_screen, 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\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 boolean onCreateOptionsMenu(Menu menu) {\n this.getMenuInflater().inflate(R.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.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 void onCreateOptionsMenu(Menu menu, MenuInflater inflater) {\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\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.7246102",
"0.7201358",
"0.7194834",
"0.7176498",
"0.71066517",
"0.7039537",
"0.7037961",
"0.70112145",
"0.70094734",
"0.69807225",
"0.6944953",
"0.69389373",
"0.6933199",
"0.6916928",
"0.6916928",
"0.6891486",
"0.68831646",
"0.68754137",
"0.68745375",
"0.68621665",
"0.68621665",
"0.68621665",
"0.68621665",
"0.68515885",
"0.68467957",
"0.68194443",
"0.6817494",
"0.6813087",
"0.6813087",
"0.6812847",
"0.6805774",
"0.6801204",
"0.6797914",
"0.6791314",
"0.6789091",
"0.67883503",
"0.6783642",
"0.6759701",
"0.6757412",
"0.67478645",
"0.6744127",
"0.6744127",
"0.67411774",
"0.6740183",
"0.6726017",
"0.6723245",
"0.67226785",
"0.67226785",
"0.67208904",
"0.67113477",
"0.67079866",
"0.6704564",
"0.6699229",
"0.66989094",
"0.6696622",
"0.66952467",
"0.66865396",
"0.6683476",
"0.6683476",
"0.6682188",
"0.6681209",
"0.6678941",
"0.66772443",
"0.6667702",
"0.66673946",
"0.666246",
"0.6657578",
"0.6657578",
"0.6657578",
"0.6656586",
"0.66544783",
"0.66544783",
"0.66544783",
"0.66524047",
"0.6651954",
"0.6650132",
"0.66487855",
"0.6647077",
"0.66467404",
"0.6646615",
"0.66464466",
"0.66449624",
"0.6644209",
"0.6643461",
"0.6643005",
"0.66421187",
"0.6638628",
"0.6634786",
"0.6633529",
"0.6632049",
"0.6632049",
"0.6632049",
"0.66315657",
"0.6628954",
"0.66281766",
"0.6627182",
"0.6626297",
"0.6624309",
"0.6619582",
"0.6618876",
"0.6618876"
] |
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.saveRouteButton) {
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 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 // 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 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\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 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\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.7904231",
"0.78061396",
"0.7767007",
"0.77273244",
"0.76318634",
"0.7621818",
"0.7585249",
"0.7531511",
"0.7488678",
"0.74574006",
"0.74574006",
"0.7439257",
"0.7421747",
"0.7403457",
"0.73920685",
"0.7387285",
"0.7379893",
"0.73710734",
"0.7363068",
"0.73565257",
"0.7346117",
"0.73421544",
"0.73308754",
"0.7328614",
"0.7326444",
"0.73191214",
"0.7316894",
"0.73141056",
"0.7304816",
"0.7304816",
"0.73023325",
"0.7298775",
"0.7294159",
"0.72872293",
"0.7283658",
"0.72814363",
"0.72793216",
"0.72604835",
"0.72604835",
"0.72604835",
"0.72604495",
"0.7260065",
"0.72506464",
"0.7223512",
"0.7220288",
"0.721808",
"0.7204778",
"0.72007537",
"0.7199708",
"0.7193875",
"0.7185878",
"0.7178243",
"0.7169468",
"0.7168278",
"0.71544755",
"0.7154114",
"0.71363086",
"0.7135266",
"0.7135266",
"0.7129425",
"0.71291506",
"0.712514",
"0.71239674",
"0.7123848",
"0.71223545",
"0.7118021",
"0.7117761",
"0.7117381",
"0.7117381",
"0.7117381",
"0.7117381",
"0.7117378",
"0.71157014",
"0.7112743",
"0.71105623",
"0.710936",
"0.7106081",
"0.7100549",
"0.7099009",
"0.70957214",
"0.7094029",
"0.7094029",
"0.7086948",
"0.70828027",
"0.70810676",
"0.7080609",
"0.707419",
"0.70687926",
"0.7062512",
"0.70614976",
"0.70604354",
"0.7051683",
"0.7037832",
"0.7037832",
"0.7036669",
"0.70357877",
"0.70357877",
"0.7033191",
"0.7030764",
"0.70303047",
"0.70192975"
] |
0.0
|
-1
|
Check if autologon option was enabled and then login to the app automatically based on the setting. If the user had signed out of the app explicitly in the previous session, then prompt for credentials
|
private void autoLogon() {
// Get the username from the shared preferences file
String strMailID = null;
SharedPreferences appPreferences = getSharedPreferences(RegistrationScreenActivity.PREFERENCES_FILENAME, MODE_PRIVATE);
if( appPreferences.contains(RegistrationScreenActivity.KEY_MAIL_ID) ) {
strMailID = appPreferences.getString(RegistrationScreenActivity.KEY_MAIL_ID, null);
}
// If the username is not stored in the file, then request
// the user to explicitly login by providing the credentials
if(strMailID != null) {
// Fetch the data from the database
DatabaseHandler dbHandler = new DatabaseHandler(getApplicationContext());
AccountInformation accountInfo = dbHandler.getAccountInfo(strMailID);
if(accountInfo != null) {
// If the account exists, then check auto logon is set to true
if( !accountInfo.getIfSignedOut() && accountInfo.getIfAlwaysSignIn() ) {
strUserMailID = accountInfo.getEmail();
strUserName = accountInfo.getName();
// Do auto login by auto displaying the home screen
Intent intent = new Intent(this, HomeScreenActivity.class);
intent.putExtra(RegistrationScreenActivity.KEY_MAIL_ID, strUserMailID);
intent.putExtra(RegistrationScreenActivity.KEY_NAME, strUserName);
startActivity(intent);
} else {
// Request user to enter the credentials
Toast.makeText(getApplicationContext(), "Session signed out previously. \n " +
"Please enter credentials to login", Toast.LENGTH_LONG).show();
}
} else {
// Display error if the account does not exists
Toast.makeText(getApplicationContext(), "No such user exists. \n " +
"Please register to login", Toast.LENGTH_LONG).show();
}
}
}
|
{
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
}
|
[
"@Override\r\n protected final String loginAsAutoUser(boolean launch) {\r\n \t//login(DDConstants.AUTO_USERNAME, DDConstants.AUTO_PASSWORD, launch);\r\n \tsuper.login(getAutoUserName(), getAutoPassword(), launch);\r\n\r\n \tchooseApp();\r\n\r\n \treturn getCurrentUser();\r\n }",
"public static void forceLogin() {\n forcedLogin = true;\n }",
"final String loginAsAutoUser() {\r\n \treturn loginAsAutoUser(false);\r\n }",
"public boolean getAutomaticLogin() {\n return this.automaticLogin;\n }",
"public void setAutomaticLogin(boolean automaticLogin) {\n this.automaticLogin = automaticLogin;\n }",
"public static boolean isManualLogin() {\n return manualLogin;\n }",
"private void tryLogin() {\n AsyncTask<String, Void, Boolean> task = new AsyncTask<String, Void, Boolean>(){\n @Override\n protected Boolean doInBackground(String... ci_session) {\n boolean isValid = PwcatsRequester.isValidCiSession(ci_session[0]);\n return isValid;\n }\n @Override\n protected void onPostExecute(Boolean isValid) {\n isLogined = isValid;\n showOrHideLogInOut(isLogined);\n if (!isValid)\n authLogout();\n TextView mNavAuthLogin = (TextView) findViewById(R.id.nav_auth_login);\n TextView mNavAuthLogout = (TextView) findViewById(R.id.nav_auth_logout);\n }\n };\n String ci_session = prefs.getString(getString(R.string.ci_session), null);\n task.execute(ci_session);\n }",
"public boolean getManualLogin() {\n return sp.getBoolean(USER_MANUAL_LOGIN, false);\n }",
"private void auto_log_in()\n {\n jtf_username.setText(Config.USERNAME);\n jpf_password.setText(Config.PASSWORD);\n jb_prijavi.doClick();\n\n }",
"private void checkLogin() {\n SharedPref sp = new SharedPref(this);\n if (!sp.readLoginStatus()) {\n Intent i = new Intent(this, LoginActivity.class);\n i.addFlags(Intent.FLAG_ACTIVITY_NO_ANIMATION);\n startActivity(i);\n }\n }",
"public static boolean shouldLogin() {\n if (AppPreference.getInstance().getUserLoggedIn() == null ) {\n //|| deltaActive > Constant.SESSION_EXIPRED_TIME) {\n return true;\n }\n\n return false;\n }",
"@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 static boolean doCheckLogin(SharedPreferences sharedPreferences) {\n boolean loginRecorded = sharedPreferences.getBoolean(LOGIN_SAVED_KEY, false); // check if a login has been recorded by another session\n\n loggedIn = loginRecorded && FirebaseAuth.getInstance().getCurrentUser() != null; // if current user is null, force a re-login\n return loggedIn;\n }",
"@Test\n public void conditionalOTPDefaultForce() {\n Map<String, String> config = new HashMap<>();\n config.put(DEFAULT_OTP_OUTCOME, FORCE);\n \n setConditionalOTPForm(config);\n \n //test OTP is forced\n driver.navigate().to(oauth.getLoginFormUrl());\n testRealmLoginPage.form().login(testUser);\n assertTrue(loginConfigTotpPage.isCurrent());\n\n configureOTP();\n driver.navigate().to(oauth.getLoginFormUrl());\n testRealmLoginPage.form().login(testUser);\n\n //verify that the page is login page, not totp setup\n assertCurrentUrlStartsWith(testLoginOneTimeCodePage);\n }",
"public boolean checkLogin() {\n return sharedPref.getBoolean(LOGGEDIN_KEY, false);\n }",
"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 }",
"private void DoAttemptSignon(View SignonButton)\n\t {\n\t \t\n\t \tClearOldErrors();\n\t \t\n\t \t// Validate Email address\n\t \tEditText EmailView = (EditText)findViewById(R.id.signonemail_edit);\n\t \tEmailAddress = EmailView.getText().toString();\n\t \t\n\t \tif(EmailAddress.length()==0)\n\t \t{\n\t \t\tDisplayError(R.id.signonemail_error,R.string.error_email_cannot_be_empty);\n\t \t\treturn;\n\t \t}\n\t \t\n\t \t// Validate password non-empty\n\t \tEditText PasswordView = (EditText)findViewById(R.id.signonpassword_edit);\n\t \tPassword = PasswordView.getText().toString();\n\t \tif(Password.length()==0)\n\t \t{\n\t \t\tDisplayError(R.id.signonpassword_error,R.string.error_password_cannot_be_empty);\n\t \t\treturn;\n\t \t}\n\t \t\n\t \tif(FreewayCoffeeXMLHelper.CheckPasswordStrength(Password)!=true)\n\t \t{\n\t \t\tshowDialog(PASSWORD_NOT_STRONG_DIALOG);\n\t \t\treturn;\n\t \t}\n\t \t// Auto signin\n\t \t//CheckBox AutoSigninView = (CheckBox)findViewById(R.id.signon_loginautomatically);\n\t \t//LoginAutomatically = AutoSigninView.isChecked();\n\t \tLoginAutomatically = true;\n\t \tDoLogin();\n\t \t\n\t \t\n\t }",
"private void startAuth() {\n if (ConnectionUtils.getSessionInstance().isLoggedIn()) {\n ConnectionUtils.getSessionInstance().logOut();\n } else {\n ConnectionUtils.getSessionInstance().authenticate(this);\n }\n updateUiForLoginState();\n }",
"private void doLogin() {\n\t\tSharedPreferences.Editor prefEditor = mSP.edit();\n\t\tSession.FirstLogin = true;\n\t\tmUserPin = et_password.getText().toString();\n\t\t// Time to update the session\n\t\tif (inTruckMode) {\n\t\t\tSession.setVehicle(vehicle);\n\t\t\tSession.setDriver(userDao.getByPin(mUserPin));\n\n\t\t\tprefEditor.putString(Config.VEHICLE_ID_KEY, vehicle.getId());\n\t\t\tprefEditor.putString(Config.LAST_VEHICLE_KEY, vehicle.getId());\n\t\t\tprefEditor.putString(Config.SITE_ID_KEY, null);\n\n\t\t\tSession.setType(SessionType.VEHICLE_SESSION);\n\t\t} else {\n\t\t\tSession.setSite(site);\n\t\t\tSession.setDriver(userDao.getByPin(mUserPin));\n\n\t\t\tprefEditor.putString(Config.VEHICLE_ID_KEY, null);\n\t\t\tprefEditor.putString(Config.LAST_VEHICLE_KEY, null);\n\t\t\tprefEditor.putString(Config.SITE_ID_KEY, site.getId());\n\n\t\t\tSession.setType(SessionType.SITE_SESSION);\n\t\t}\n\n\t\tstartupSync();\n\t\tstartSync();\n\n\t\tprefEditor.putString(Config.USER_PIN_KEY, mUserPin);\n\t\tprefEditor.putString(Config.LAST_USER_PIN_KEY, mUserPin);\n\t\tprefEditor.putString(Config.SYNC_SERVICE_KEY, \"yes\");\n\t\tprefEditor.commit();\n\n\t\t// if no VIMEI associated with truck, starting GPSService on SB device\n\t\tif (!vehiclesDao.xergoEsn(getApplicationContext())) {\n\t\t\tvimei = vehiclesDao.getVimei(this);\n\n\t\t\tIntent intent = new Intent();\n\t\t\tintent.setAction(GPSService.UPDATE_IMEI_EVENT);\n\t\t\tintent.putExtra(\"Value\", vimei);\n\t\t\tsendBroadcast(intent);\n\n\t\t\tintent = new Intent();\n\t\t\tintent.setAction(GPSService.SEND_IGNITION_ON_EVENT);\n\t\t\tsendBroadcast(intent);\n\t\t}\n\n\t\tstartSession(mUserPin);\n\t\tIntent intent = new Intent(this, MapActivity.class);\n\t\tthis.startActivity(intent);\n\t\tfinish();\n\t}",
"@Test (enabled = false, retryAnalyzer = Retry.class, testName = \"Sanity Tests\", description = \"Settings: Save Login\",\n\t\t\tgroups = { \"Sanity Android1\" })\n\t\t\t\n\tpublic void settingsKeepMeSignedIn() throws Exception, Throwable {\n\t\tgenMeth.clickName(genMeth, droidData.Settings_Name);\n//\t\tgenMeth.takeScreenShotPositive(genMeth, \"keep me signed in is checked\");\n\t\t\n\t\ttry {\n\t\t\tdriver.launchApp();\n\n\t\t} catch (Exception e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t}\n\t\t\n\t\tgenMeth.isElementVisible(By.name(\"Pogoplug Cloud\"));\n\t\t\n\t\t\n\t\t// Keep me signed in = False\n\t\tgenMeth.clickId(genMeth, droidData.IconLeftUpperBack_ID);\n\t\tgenMeth.clickName(genMeth, droidData.Settings_Name);\n\t\tgenMeth.clickName(genMeth, \"Keep me signed in\");\n\t\t\n\t\ttry {\n\t\t\tdriver.close();\n\t\t\tdriver.launchApp();\n\t\t} catch (Exception e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t}\n\t\t\n\t\tgenMeth.isElementVisible(By.id(droidData.BTNalreadyHaveAnAccount_id));\n\n\t}",
"private static void attemptToLogin() {\n\t\tString id = null;\n\t\tString password = null;\n\t\tString role = null;\n\t\tint chances = 3;\n\t\t//User will get 3 chances to login into the system.\n\t\twhile(chances-->0){\n\t\t\tlog.info(\"Email Id:\");\n\t\t\tid = sc.next();\n\t\t\tlog.info(\"Password:\");\n\t\t\tpassword = sc.next();\n\t\t\trole = LogInAuthentication.authenticate(id, password);\n\t\t\t//If correct credentials are entered then role of user will be fetch from the database. \n\t\t\tif(role == null) {\n\t\t\t\t//If role is not fetched, error and left chances will be shown.\n\t\t\t\tlog.error(\"Invalid EmailId or password\");\n\t\t\t\tlog.info(\"Chances left: \"+chances);\n\t\t\t}\n\t\t\telse\n\t\t\t\tbreak;\n\t\t}\n\t\t//After verifying credentials User will be on-board to its portal depending upon the role.\n\t\tonboard(id,role);\n\t}",
"public void attemptLogin() {\n\t\t// Reset errors.\n\t\temailTextView.setError(null);\n\t\tpasswordTextView.setError(null);\n\n\t\t// Store values at the time of the login attempt.\n\t\temail = emailTextView.getText().toString();\n\t\tpassword = passwordTextView.getText().toString();\n\n\t\tboolean cancel = false;\n\n\t\t// Check for a valid email address.\n\t\tcancel = Validate.PresenceOf(emailTextView);\n\t\tif (!cancel) cancel = Validate.PatternOf(emailTextView, Patterns.EMAIL_ADDRESS);\n\t\t\n\t\t// check valid password\n\t\tif (!cancel) cancel = Validate.PresenceOf(passwordTextView);\t\t\n\n\t\tif (!cancel) {\t\n\t\t\tKeyboard.hide(getActivity());\n\t\t\tlogin();\n\t\t}\n\t}",
"@Override\n protected void onCreate(Bundle savedInstanceState) {\n super.onCreate(savedInstanceState);\n\n\n if(isLogged() == true){\n //NOT my first time here!\n\n //Hooking activity\n Intent intent = new Intent(LauncherActivity.this, MainActivity.class);\n startActivity(intent);\n finish();\n }\n // Else it's users first time here so user has to sign in or sign up\n\n\n //Validation formula\n registerViews();\n\n\n // Set action to button\n Button loginBtn = (Button) findViewById(R.id.button_login);\n loginBtn.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View v) {\n onClickSignIn();\n }\n });\n \n Button registerBtn = (Button) findViewById(R.id.button_register);\n registerBtn.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View v) {\n onClickRegister();\n }\n });\n\n\n }",
"public static void setManualLogin(boolean manualLogin) {\n Login.manualLogin = manualLogin;\n }",
"private void autoLogin(String username, String password) {\n userDao.findByName(username, password)\n .subscribeOn(Schedulers.io())\n .observeOn(AndroidSchedulers.mainThread())\n .subscribe(users -> {\n if (users.size() > 0) {\n User user = users.get(0);\n SharedPreferences.Editor editor = sharedPref.edit();\n editor.putInt(\"uid\", user.uid);\n editor.putString(\"username\", user.username);\n editor.putString(\"password\", user.password);\n editor.commit();\n Intent intent = new Intent(LoginActivity.this, MeasureActivity.class);\n startActivity(intent);\n finish();\n }\n }, e -> {});\n }",
"@Override\r\n\tpublic boolean checkLogin() {\n\t\treturn false;\r\n\t}",
"@Override\r\n\tpublic boolean checkLogin() {\n\t\treturn false;\r\n\t}",
"public static boolean checkLogin(Context context) {\n if (forcedLogin) {\n forcedLogin = false;\n return false;\n } else {\n SharedPreferences sharedPreferences = context.getSharedPreferences(Utils.SHARED_PREFERENCES_FILE, Context.MODE_PRIVATE);\n return doCheckLogin(sharedPreferences);\n }\n }",
"public boolean checklogin() {\n\t\treturn (pref.getBoolean(\"isLog\", false));\n\t}",
"private boolean AlreadyLogin() {\n\t\tString usn = uPreferences.getString(\"username\", null);\n\t\tString pwd = uPreferences.getString(\"password\", null);\n\t\tif((usn == null) || ((pwd == null))){\n\t\t\treturn false;\n\t\t}\n\t\telse \n\t\t\treturn true;\n\t}",
"private void GoToLogin() {\n\t\tstartActivity(new Intent(this, LoginActivity.class));\r\n\t\tapp.user.sessionID = \"\";\r\n\t\tMassVigUtil.setPreferenceStringData(this, \"SESSIONID\", \"\");\r\n\t}",
"private void attemptLogin() {\r\n if (mAuthTask != null) {\r\n return;\r\n }\r\n\r\n\r\n // Store values at the time of the login attempt.\r\n String email = mEmailView.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\r\n // Check for a valid email address.\r\n if (TextUtils.isEmpty(email)) {\r\n mEmailView.setError(getString(R.string.error_field_required));\r\n focusView = mEmailView;\r\n cancel = true;\r\n } else if (!isEmailValid(email)) {\r\n mEmailView.setError(getString(R.string.error_invalid_email));\r\n focusView = mEmailView;\r\n cancel = true;\r\n }\r\n mAuthTask = new UserLoginTask(email, password);\r\n try {\r\n Boolean logStatus = mAuthTask.execute(\"http://shubhamgoswami.me/login\").get();\r\n if(logStatus){\r\n SQLiteDatabase db = openOrCreateDatabase(\"adharShila\",MODE_PRIVATE, null);\r\n db.execSQL(\"UPDATE LOGSTATUS SET USERNAME=\\\"\"+mEmailView.getText()+\"\\\", STATUS=1 WHERE ENTRY=1\");\r\n db.close();\r\n Intent i = new Intent(getApplicationContext(), MainActivity.class);\r\n i.putExtra(\"username\", mEmailView.getText());\r\n i.putExtra(\"password\", password);\r\n startActivity(i);\r\n }\r\n } catch (InterruptedException e) {\r\n e.printStackTrace();\r\n } catch (ExecutionException e) {\r\n e.printStackTrace();\r\n }\r\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 }",
"@Test\n public void conditionalOTPDefaultForceWithChecks() {\n Map<String, String> config = new HashMap<>();\n config.put(OTP_CONTROL_USER_ATTRIBUTE, \"noSuchUserSkipAttribute\");\n config.put(SKIP_OTP_ROLE, \"no_such_otp_role\");\n config.put(FORCE_OTP_ROLE, \"no_such_otp_role\");\n config.put(SKIP_OTP_FOR_HTTP_HEADER, \"NoSuchHost: nolocalhost:65536\");\n config.put(FORCE_OTP_FOR_HTTP_HEADER, \"NoSuchHost: nolocalhost:65536\");\n config.put(DEFAULT_OTP_OUTCOME, FORCE);\n \n setConditionalOTPForm(config);\n \n //test OTP is forced\n driver.navigate().to(oauth.getLoginFormUrl());\n testRealmLoginPage.form().login(testUser);\n assertTrue(loginConfigTotpPage.isCurrent());\n\n configureOTP();\n driver.navigate().to(oauth.getLoginFormUrl());\n testRealmLoginPage.form().login(testUser);\n\n //verify that the page is login page, not totp setup\n assertCurrentUrlStartsWith(testLoginOneTimeCodePage);\n }",
"private void countDownToLogin() {\n\n new Handler().postDelayed(new Runnable() {\n @Override\n public void run() {\n if (isOnline()) {\n if (sharedPreferences.getBoolean(Constant.AUTO_LOGIN, false)) {\n String userEmail = sharedPreferences.getString(Constant.USER_EMAIL, \"\");\n String userPw = sharedPreferences.getString(Constant.USER_PW, \"\");\n if (!userEmail.equals(\"\") && !userPw.equals(\"\")) {\n new LoginPresenter(SplashActivity.this).login(userEmail, userPw);\n } else {\n onLoginFail(null);\n }\n } else {\n onLoginFail(null);\n }\n } else {\n// startActivity(new Intent(context, DisconnectActivity.class));\n// finish();\n //Go to DisconnectActivity\n }\n\n }\n }, SPLASH_TIME);\n }",
"public void verifyLogin(){\n\n //Verifica que haya conexion de internet\n networkManager = (ConnectivityManager) this.getSystemService(\n Context.CONNECTIVITY_SERVICE);\n NetworkInfo networkInfo = networkManager.getActiveNetworkInfo();\n boolean isConnected = networkInfo != null && networkInfo.isConnectedOrConnecting();\n\n if (PreferenceUtils.getEmail (this) != null) { //Verifica que hay una session abierta.\n showSplash ();\n if(isConnected){\n\n //Checa el tipo de session\n if(PreferenceUtils.getSession (this))\n //Facebook session\n new LoadDataLoginFacebook (this).execute(\n PreferenceUtils.getName (this),\n PreferenceUtils.getEmail (this),\n PreferenceUtils.getPassword (this));\n else\n //Manual session\n new LoadDataLogin (this).execute (\n PreferenceUtils.getEmail (this),\n PreferenceUtils.getPassword (this));\n }\n else{ //Si no hay internet pasa directo a la session abierta.\n Intent intent = new Intent (AccessActivity.this, MainActivity.class);\n startActivity (intent);\n }\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}",
"public void tryLogin() {\n\t\tcontroller.setupClient(txtNickname.getText());\n\t\tString cardDesign = comboBoxCardDesign.getSelectionModel()\n\t\t\t\t.getSelectedItem();\n\t\tConfiguration.chooseCardDesign(cardDesign);\n\t\tConfiguration.chooseMeepleDesign(cardDesign);\n\t}",
"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 }",
"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 }",
"public void onClickedActiveDirectorySignIn() {\n showProgressDialog(getString(R.string.authentication_attempting));\n // Attempt to get a user and acquireTokenSilently\n // If this fails we will do an interactive request\n Log.d(TAG, \"onClickedActiveDirectorySignIn\");\n IAccount currentAccount =\n MicrosoftIdentityHelper.getUserByPolicy(activeDirectoryApp.getAccounts(), Constants.SISU_POLICY);\n final String[] scopes = Constants.SCOPES.split(\"\\\\s+\");\n if (currentAccount != null) {\n // We have 1 user\n activeDirectoryApp.acquireTokenSilentAsync(\n scopes,\n currentAccount,\n getAuthSilentCallback());\n } else {\n // We have no user (for required policy)\n activeDirectoryApp.acquireToken(MainActivity.this, scopes, getAuthInteractiveCallback());\n }\n }",
"public void authUser(){\n\n String emptyString = \"\";\n if(!(String.valueOf(userName.getText()).equals(emptyString) ||\n String.valueOf(userNumber.getText()).equals(emptyString))){\n\n SharedPreferences preferences = getApplicationContext().getSharedPreferences(\"user_info\", 0);\n SharedPreferences.Editor editor = preferences.edit();\n editor.putBoolean(getResources().getString(R.string.isLoggedIn), true);\n editor.putString(getResources().getString(R.string.userName), String.valueOf(userName.getText()));\n editor.putString(getResources().getString(R.string.userNumber), String.valueOf(userNumber.getText()));\n editor.apply();\n\n Intent intent = new Intent(getApplicationContext(), HomeScreen.class);\n\n startActivity(intent);\n }\n else{\n Toast.makeText(getApplicationContext(),\n \"Please enter compelete credentials..\", Toast.LENGTH_SHORT)\n .show();\n }\n\n }",
"private void makeLogin() {\n if (enableLoginActivity && mAuth.getCurrentUser() == null) {\n startActivity(new Intent(MainActivity.this, LoginActivity.class));\n finish();\n }\n else if (!enableLoginActivity) {\n user = new User(\"johnDoe\", \"johnDoe@gmail.com\", \"1234\");\n }\n }",
"public void checkLogin() {\n // Check login status\n if (!this.isLoggedIn()) {\n // user is not logged in redirect him to Login Activity\n Intent intent = new Intent(context, MainActivity.class);\n // Closing all the Activities\n intent.addFlags(Intent.FLAG_ACTIVITY_CLEAR_TOP);\n\n // Add new Flag to start new Activity\n intent.setFlags(Intent.FLAG_ACTIVITY_NEW_TASK);\n\n // Staring Login Activity\n context.startActivity(intent);\n }\n\n }",
"private boolean isUserExplicitlyLoggedIn() {\n // User is explicitly logged in, if his securityStatus is more than or equal to security status login.\n String securityStatusPropertyName = getStorePropertyManager().getSecurityStatusPropertyName();\n int securityStatus = ((Integer) getProfile().getPropertyValue(securityStatusPropertyName)).intValue();\n return securityStatus >= getStorePropertyManager().getSecurityStatusLogin();\n }",
"boolean isLoginAvailable();",
"private void checkForSavedLogin() {\n\t\taccessToken = getAccessToken();\n\t\tif (accessToken==null) return;\t//if there are no credentials stored then return to usual activity\n\n\t\t// initialize Twitter4J\n\t\ttwitter.setOAuthAccessToken(accessToken);\n\t}",
"private boolean checkLogin() {\n firebaseAuth = FirebaseAuth.getInstance();\n currentUser = firebaseAuth.getCurrentUser();\n if(currentUser == null) {\n //show login activity\n Intent intent = new Intent(this, LoginActivity.class);\n startActivity(intent);\n return false;\n } else {\n verifyUserPII(currentUser);\n return true;\n }\n }",
"public 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_user));\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\n // save data in local shared preferences\n if (savePassword.isChecked()) {\n saveLoginDetails(email, password);\n }\n\n\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, password);\n mAuthTask.execute((Void) null);\n }\n }",
"private void setGoogleLoginSetting() {\n GoogleSignInOptions gso = new GoogleSignInOptions.Builder(GoogleSignInOptions.DEFAULT_SIGN_IN)\n .requestIdToken(getString(R.string.default_web_client_id))\n .requestEmail()\n .build();\n\n mAuth = FirebaseAuth.getInstance();\n googleSignInClient = GoogleSignIn.getClient(this, gso);\n\n googleApiClient = new GoogleApiClient.Builder(this)\n .enableAutoManage(this, new GoogleApiClient.OnConnectionFailedListener() {\n @Override\n public void onConnectionFailed(@NonNull ConnectionResult connectionResult) {\n Log.d(Constant.TAG, \"Login fail\");\n }\n })\n .addApi(Auth.GOOGLE_SIGN_IN_API, gso)\n .build();\n\n // auto login\n GoogleSignInAccount account = GoogleSignIn.getLastSignedInAccount(this);\n if(account!=null)\n firebaseAuthWithGoogle(account);\n }",
"public boolean getFacebookLogin() {\n return sp.getBoolean(USER_MANUAL_LOGIN, false);\n }",
"@Override\n protected boolean tryAlreadyLoginOrRememberMe(LoginHandlingResource resource) {\n if (super.tryAlreadyLoginOrRememberMe(resource)) { // if hybrid with session\n return true;\n }\n return requestManager.getHeader(\"x-authorization\").flatMap(token -> {\n return findByAuthToken(token).map(member -> {\n syncCheckLoginSessionIfNeeds(createUserBean(member)); // sometimes synchronize with database\n saveLoginInfoToSession(member); // if hybrid with session\n return true;\n });\n }).orElse(false);\n }",
"@Override\n public boolean check() {\n return GlobalParams.isLogin();\n }",
"public void loginAsAdmin() {\n mAuth.signInWithEmailAndPassword(\"admin@gmail.com\", \"password\")\n .addOnCompleteListener(new OnCompleteListener<AuthResult>() {\n @Override\n public void onComplete(@NonNull Task<AuthResult> task) {\n if (! task.isSuccessful()) {\n alert(\"Firebase\", \"ERROR: Invalid username or password!\");\n return;\n }\n\n authenticationDone = true;\n if (splashTimeoutFinished) {\n Intent intent = new Intent(getApplicationContext(), MainActivity.class);\n startActivity(intent);\n }\n }\n });\n }",
"@Override\n protected void onActivityResult(int requestCode, int resultCode, Intent data) {\n // Either way, check log in again\n checkAccessAndLoggIn();\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 void onRegistrationAccomplished() {\n Prefs.setSignedIn(true);\n // Proceed to Main\n proceedToMainActivityAndFinish();\n }",
"private void masuk(){\n Preferences.setLoggedInUser(getBaseContext(),Preferences.getRegisteredUser(getBaseContext()));\n Preferences.setLoggedInStatus(getBaseContext(), true);\n startActivity(new Intent(getBaseContext(),MainActivity.class));\n finish();\n }",
"private void checkIfLoggedIn() {\n LocalStorage localStorage = new LocalStorage(getApplicationContext());\n\n if(localStorage.checkIfAuthorityPresent()){\n Intent intent = new Intent(getApplicationContext(),AuthorityPrimaryActivity.class);\n startActivity(intent);\n } else if(localStorage.checkIfUserPresent()){\n Intent intent = new Intent(getApplicationContext(), UserPrimaryActivity.class);\n startActivity(intent);\n }\n }",
"public static void saveLoginWhenFirst(Context context) {\n SharedPreferences.Editor editor = context.getSharedPreferences(SHARED_PREFERENCES_KEY, context.MODE_PRIVATE).edit();\n editor.putBoolean(IS_FIRST_TOKEN,false);\n editor.commit();\n }",
"private void loginFlow() {\n\t\tActiveUserModel userController = ActiveUserModel.getInstance();\n\n\t\tif (userController.isLoggedIn()) {\n\t\t\t// continue\n\t\t} else {\n\t\t\tIntent intent = new Intent(this, LoginActivity.class);\n\t\t\tstartActivityForResult(intent, LOGIN_ACTIVITY);\n\t\t}\n\t}",
"public boolean getRememberLogin() {return this.accountConfig.getProperty(\"rememberLogin\").equals(\"true\");}",
"public boolean loginUser();",
"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 }",
"public void login () {\n\t\tGPPSignIn.sharedInstance().authenticate();\n\t}",
"private void attemptLogin() {\n String email = text_email.getText().toString();\n String password = text_password.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 text_password.setError(getString(R.string.error_field_required));\n focusView = text_password;\n cancel = true;\n }\n if (!isPasswordValid(password)) {\n text_password.setError(getString(R.string.error_invalid_password));\n focusView = text_password;\n cancel = true;\n }\n\n\n // Check for a valid email address.\n if (TextUtils.isEmpty(email)) {\n text_email.setError(getString(R.string.error_field_required));\n focusView = text_email;\n cancel = true;\n } else if (!isEmailValid(email)) {\n text_email.setError(getString(R.string.error_invalid_email));\n focusView = text_email;\n cancel = true;\n }\n\n if (cancel) {\n focusView.requestFocus();\n } else {\n //showProgress(true);\n login(USER_NORMAL);\n }\n }",
"public void checkLogin() {\n // Check login status\n if (!this.isLoggedIn()) {\n // user is not logged in redirect him to Login Activity\n Intent i = new Intent(_context, LoginActivity.class);\n // Closing all the Activities\n i.addFlags(Intent.FLAG_ACTIVITY_CLEAR_TOP);\n\n // Add new Flag to start new Activity\n i.setFlags(Intent.FLAG_ACTIVITY_NEW_TASK);\n\n // Staring Login Activity\n _context.startActivity(i);\n }\n\n }",
"public void checkLogin() {\n // Check login status\n if (!this.isLoggedIn()) {\n // user is not logged in redirect him to Login Activity\n Intent i = new Intent(_context, LoginActivity.class);\n // Closing all the Activities\n i.addFlags(Intent.FLAG_ACTIVITY_CLEAR_TOP);\n // Add new Flag to start new Activity\n i.setFlags(Intent.FLAG_ACTIVITY_NEW_TASK);\n // Staring Login Activity\n _context.startActivity(i);\n }\n\n }",
"@Override\n public void run() {\n if (sharedPreferences.contains(\"User-id\")) {\n loginUserId = sharedPreferences.getString(\"User-id\", null);\n if (loginUserId.equals(\"\") || loginUserId.equals(null)) {\n startActivity(new Intent(SplashScreen.this, LoginActivity.class));\n } else {\n startActivity(new Intent(SplashScreen.this, HomePageActivity.class));\n }\n } else {\n startActivity(new Intent(SplashScreen.this, LoginActivity.class));\n }\n }",
"public void checkLogin(){\n // Check login status\n if(!this.isLoggedIn()){\n Intent i = new Intent(mContext, LoginActivity.class);\n // Closing all the Activities\n i.addFlags(Intent.FLAG_ACTIVITY_CLEAR_TOP);\n i.setFlags(Intent.FLAG_ACTIVITY_NEW_TASK);\n mContext.startActivity(i);\n }\n }",
"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 static void setDoLogin()\t{\n\t\tlatch.countDown();\n\t}",
"private boolean checkRemember() {\n boolean ricorda = sessionManager.checkLogin();\n\n if (ricorda) {\n rememberMe.setChecked(true);\n editTextUsername.setText(sessionManager.getSessionUsername());\n editTextPassword.setText(sessionManager.getSessionPassword());\n ricorda = true;\n }\n return ricorda;\n }",
"@Override\n public void run() {\n isLoggedin = PreferenceManager.getDefaultSharedPreferences(getApplicationContext()).getBoolean(\"loggedIn\",Boolean.FALSE);\n if(isLoggedin.equals(Boolean.TRUE)){\n Intent mainIntent = new Intent(Splash.this,MainActivity.class);\n Splash.this.startActivity(mainIntent);\n }\n else{\n Intent mainIntent = new Intent(Splash.this,Login.class);\n Splash.this.startActivity(mainIntent);}\n Splash.this.finish();\n }",
"private void checkAccountLoggedIn()\r\n\t{\n\t\tSharedPreferences pref = this.getSharedPreferences(\"accountdata\", 0);\r\n\t\tSystem.out.println(\"Checking if an account is logged in\");\r\n\t\tif (pref.getBoolean(\"accountLoggedIn\", false))\r\n\t\t{\r\n\t\t\tloginButton.setEnabled(false);\r\n\t\t\tregisterButton.setEnabled(false);\r\n\r\n\t\t\t// Make a crouton notifying the user\r\n\t\t\tCrouton crouton = Crouton.makeText(this, this.getResources()\r\n\t\t\t\t\t.getString(R.string.activity_login_account_loggedin),\r\n\t\t\t\t\tStyle.INFO);\r\n\t\t\tConfiguration.Builder configBuild = new Configuration.Builder();\r\n\t\t\tconfigBuild.setDuration(Configuration.DURATION_INFINITE);\r\n\t\t\tcrouton.setConfiguration(configBuild.build());\r\n\t\t\tcrouton.setOnClickListener(new OnClickListener()\r\n\t\t\t{\r\n\r\n\t\t\t\t@Override\r\n\t\t\t\tpublic void onClick(View v)\r\n\t\t\t\t{\r\n\t\t\t\t\tSystem.out.println(\"Crouton clicked\");\r\n\t\t\t\t\t((LoginActivity) v.getContext()).onBackPressed();\r\n\t\t\t\t}\r\n\t\t\t});\r\n\t\t\tcrouton.show();\r\n\t\t}\r\n\t}",
"@Override\n\tpublic boolean isLogin() {\n\t\treturn false;\n\t}",
"@Test\n\t\tpublic void login() {\n\n\t\t\tlaunchApp(\"chrome\", \"http://demo1.opentaps.org/opentaps/control/main\");\n\t\t\t//Enter username\n\t\t\tenterTextById(\"username\", \"DemoSalesManager\");\n\t\t\t//Enter Password\n\t\t\tenterTextById(\"password\", \"crmsfa\");\n\t\t\t//Click Login\n\t\t\tclickByClassName(\"decorativeSubmit\");\n\t\t\t//Check Browser Title\n\t\t\tverifyBrowserTitle(\"Opentaps Open Source ERP + CRM\");\n\t\t\t//Click Logout\n\t\t\tclickByClassName(\"decorativeSubmit\");\n\t\t\t\n\n\t\t}",
"public void logincredentials() {\n\t\tutil.entertext(prop.getValue(\"locators.text.uname\"), \"admin\");\n\t\tutil.entertext(prop.getValue(\"locators.text.password\"), \"Admin123\");\n\t\tutil.ClickElement(prop.getValue(\"locators.button.regdesk\"));\n\t\tutil.ClickElement(prop.getValue(\"locators.button.login\"));\n\t\tlogreport.info(\"logged into the application\");\n\n\t}",
"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 attemptLogin() {\n\n // Reset errors.\n trylogin = false;\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(\"Invalid Password\");\n focusView = mPasswordView;\n cancel = true;\n }\n\n if(email.equals(null) || password.equals(null)) {\n mPasswordView.setError(\"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(\"Please enter something\");\n focusView = mEmailView;\n cancel = true;\n }\n\n else if (TextUtils.isEmpty(password)) {\n mPasswordView.setError(\"Please enter something\");\n focusView = mPasswordView;\n cancel = true;\n }\n\n else if (!isEmailValid(email)) {\n mEmailView.setError(\"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\n dialog.setMessage(\"Registering user...\");\n dialog.show();\n\n firebaseAuth.signInWithEmailAndPassword(email, password)\n .addOnCompleteListener(MainActivity.this, new OnCompleteListener<AuthResult>() {\n @Override\n public void onComplete(@NonNull Task<AuthResult> task) {\n dialog.hide();\n if(task.isSuccessful()) {\n //trylogin = true;\n Toast.makeText(MainActivity.this, \"Login Successful!\", Toast.LENGTH_SHORT).show();\n Intent i = new Intent(MainActivity.this, FoodActivity.class);\n startActivity(i);\n }\n else {\n Toast.makeText(MainActivity.this, \"Login Failed!\", Toast.LENGTH_SHORT).show();\n\n }\n }\n });\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)) {\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\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.kkkkkkkkl[]/\\]\n\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, password);\n mAuthTask.execute((Void) null);\n\n // Intent signInActivityIntent= new Intent(this,UserProfileActivity.class);\n // startActivity(signInActivityIntent);\n }\n }",
"public void attemptLogin() {\n\t\tif (mAuthTask != null) {\n\t\t\treturn;\n\t\t}\n\n\t\t// Reset errors.\n\t\tmEmailView.setError(null);\n\t\tmPasswordView.setError(null);\n\n\t\t// Store values at the time of the login attempt.\n\t\tmEmail = mEmailView.getText().toString();\n\t\tmPassword = mPasswordView.getText().toString();\n\n\t\tboolean cancel = false;\n\t\tView focusView = null;\n\n\t\t/*\n\t\t * // Check for a valid password. if (TextUtils.isEmpty(mPassword)) {\n\t\t * mPasswordView.setError(getString(R.string.error_field_required));\n\t\t * focusView = mPasswordView; cancel = true; } else if\n\t\t * (mPassword.length() < 4) {\n\t\t * mPasswordView.setError(getString(R.string.error_invalid_password));\n\t\t * focusView = mPasswordView; cancel = true; }\n\t\t * \n\t\t * // Check for a valid email address. if (TextUtils.isEmpty(mEmail)) {\n\t\t * mEmailView.setError(getString(R.string.error_field_required));\n\t\t * focusView = mEmailView; cancel = true; } else if\n\t\t * (!mEmail.contains(\"@\")) {\n\t\t * mEmailView.setError(getString(R.string.error_invalid_email));\n\t\t * focusView = mEmailView; cancel = true; }\n\t\t */\n\t\tif (cancel) {\n\t\t\t// There was an error; don't attempt login and focus the first\n\t\t\t// form field with an error.\n\t\t\tfocusView.requestFocus();\n\t\t} else {\n\t\t\t// Show a progress spinner, and kick off a background task to\n\t\t\t// perform the user login attempt.\n\t\t\tshowProgress(true);\n\t\t\tmAuthTask = new UserLoginTask();\n\t\t\tmAuthTask.execute((Void) null);\n\t\t}\n\t}",
"public void user_signin()\r\n\t{\r\n\t\t\r\n\t\tdriver.findElement(By.id(\"email\")).clear();\r\n\t\tdriver.findElement(By.id(\"email\")).sendKeys(UID);\r\n\t\t\r\n\t\tdriver.findElement(By.id(\"pass\")).clear();\r\n\t\tdriver.findElement(By.id(\"pass\")).sendKeys(PWD);\r\n\t}",
"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 hasLoginapiavgrtt();",
"private void attemptLogin() {\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\n\n // Check for a valid email address.\n if (TextUtils.isEmpty(email)) {\n mEmailView.setError(getString(R.string.error_email_is_required));\n focusView = mEmailView;\n cancel = true;\n } else if (!mPresenter.isEmailValid(email)) {\n //mEmailView.setError(getString(R.string.error_invalid_email));\n customConfirmDialog(getString(R.string.message_incorrect_email), getString(R.string.message_require_format_email));\n focusView = mEmailView;\n cancel = true;\n }else if (!TextUtils.isEmpty(password) && !mPresenter.isPasswordValid(password)) {\n mPasswordView.setError(getString(R.string.error_invalid_password));\n //customConfirmDialog(getString(R.string.message_incorrect_password), getString(R.string.message_please_insert_valid_password));\n focusView = mPasswordView;\n cancel = true;\n }else if(TextUtils.isEmpty(password))\n {\n customConfirmDialog(getString(R.string.message_incorrect_password), getString(R.string.message_please_insert_valid_password));\n focusView = mPasswordView;\n cancel = true;\n }\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 if (isNetworkOffline()) {\n return;\n }\n showLoadingDialog(getString(R.string.message_please_wait));\n mPresenter.doLoginByEmail(email, password);\n }\n }",
"public void appLoggingOnClick(View view) {\n Intent intent = new Intent(Settings.ACTION_SECURITY_SETTINGS);\n intent.setComponent(new ComponentName(\"com.android.settings\", \"com.android.settings.Settings$UsageAccessSettingsActivity\"));\n intent.setFlags(Intent.FLAG_ACTIVITY_NEW_TASK);\n startActivity(intent);\n }",
"public void attemptLogin() {\n if (mAuthTask != null) {\n return;\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\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 mAuthTask = new UserLoginTask(this, email, password);\n mAuthTask.execute((Void) null);\n }\n }",
"public void enterSiteAsFirstTimeVisitor(){\n if(!browser.browserDriver().browser().isDesktop()) {\n enterSiteWithCleanBrowser();\n if (browser.browserDriver().browser().isTablet() && ((AppiumDriver) browser.driver()).getOrientation() == ScreenOrientation.PORTRAIT) {\n ((AppiumDriver) browser.driver()).rotate(ScreenOrientation.LANDSCAPE);\n }\n } else {\n navigateToHome();\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 }",
"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 loginAsAdmin() {\n vinyardApp.navigateToUrl(\"http://localhost:8080\");\n vinyardApp.fillUsername(\"admin\");\n vinyardApp.fillPassord(\"321\");\n vinyardApp.clickSubmitButton();\n }",
"public void run() {\n if (userAutentification(email, password)) {\n onLoginSuccess(name, email);\n } else {\n onLoginFailed();\n // onLoginFailed();\n }\n mConnectionProgressDialog.dismiss();\n }",
"public void logOut() {\n\t\t// Close all opened windows and start up the App again\n\t\tcurrentUser = null;\n\t\tcurrentContact = null;\n\t\tjava.awt.Window win[] = java.awt.Window.getWindows();\n\t\tfor (int i = 0; i < win.length; i++) {\n\t\t\twin[i].dispose();\n\t\t}\n\t\tApp.main(null);\n\t}",
"@Override\r\nprotected void onCreate(Bundle savedInstanceState) {\n\tsuper.onCreate(savedInstanceState);\r\n\tsetContentView(R.layout.login);\r\n\tbutton=(Button)this.findViewById(R.id.login);\r\n\taccount=(EditText)this.findViewById(R.id.account);\r\n\tpwd=(EditText)this.findViewById(R.id.pwd);\r\n\treBox=(CheckBox)this.findViewById(R.id.checkBox1);\r\n\tpreferences=PreferenceManager.getDefaultSharedPreferences(this);\r\n boolean re=preferences.getBoolean(\"remeber\", false);\r\n if (re) {\r\n\t\taccount.setText(preferences.getString(\"account\", \"\"));\r\n\t\tpwd.setText(preferences.getString(\"pwd\", \"\"));\r\n\t\treBox.setChecked(true);\r\n\t}\r\n\t\r\n\tbutton.setOnClickListener(new OnClickListener() {\r\n\t\t\r\n\t\t@Override\r\n\t\tpublic void onClick(View arg0) {\r\n\t\t\t// TODO Auto-generated method stub\r\n\t\t\tString ac=account.getText().toString();\r\n\t\t\tString ppString=pwd.getText().toString();\r\n\t\t\tif (ac.equals(\"admin\") && ppString.equals(\"123456\")) {\r\n\t\t\t\teditor=preferences.edit();\r\n\t\t\t\tif (reBox.isChecked()) {\r\n\t\t\t\t\teditor.putBoolean(\"remeber\", true);\r\n\t\t\t\t\teditor.putString(\"account\", ac);\r\n\t\t\t\t\teditor.putString(\"pwd\", ppString);\r\n\t\t\t\t\t\r\n\t\t\t\t}else{\r\n\t\t\t\t\teditor.clear();\r\n\t\t\t\t}\r\n\t\t\t\teditor.commit();\r\n\t\t\t\tIntent intent=new Intent(LoginActivity.this,MainActivity.class);\r\n\t\t\t\tstartActivity(intent);\r\n\t\t\t\tfinish();\r\n\t\t\t}else {\r\n\t\t\t\tToast.makeText(LoginActivity.this, \"²»ÕýÈ·\", 1).show();\r\n\t\t\t}\r\n\t\t}\r\n\t});\r\n}",
"public void testSSOForceAuthn(@Nullable final BrowserData browserData) throws Exception {\n\n startSeleniumClient(browserData);\n\n startServer();\n\n startFlow();\n\n waitForLoginPage();\n\n login();\n\n // attribute release\n\n waitForAttributeReleasePage();\n\n releaseAllAttributes();\n\n rememberConsent();\n\n submitForm();\n\n // response\n\n waitForResponsePage();\n\n validateResponse();\n\n // twice\n\n driver.get(getBaseURL() + forceAuthnRequestURLPath);\n\n waitForLoginPage();\n\n login();\n\n waitForResponsePage();\n\n validateResponse();\n }",
"private void dontShowThisAgain() {\n SharedPreferences.Editor editor = prefs.edit();\n editor.putBoolean(\"isFirstAppLaunch\", false);\n editor.apply();\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 mAuthTask = new UserLoginTask(email, password, false);\n mAuthTask.execute((Void) null);\n }\n }",
"@Override\n protected void onCreate(Bundle savedInstanceState) {\n super.onCreate(savedInstanceState);\n setContentView(R.layout.activity_login);\n\n try {\n ApplicationInfo ai = getPackageManager().getApplicationInfo(this.getPackageName(), PackageManager.GET_META_DATA);\n Bundle bundle = ai.metaData;\n azure_server = bundle.getString(\"azure_server\");\n } catch (PackageManager.NameNotFoundException e) {\n Log.e(\"AZURE_SERVICE\", \"Failed to load meta-data, NameNotFound: \" + e.getMessage());\n } catch (NullPointerException e) {\n Log.e(\"AZURE_SERVICE\", \"Failed to load meta-data, NullPointer: \" + e.getMessage());\n }\n\n autoLogin = false;\n assetsManager = getAssets();\n userNameET = (EditText) findViewById(R.id.emailET);\n passwordET = (EditText) findViewById(R.id.passwordET);\n userNameET.setText(\"\");\n passwordET.setText(\"\");\n complaintSingleton = ComplaintSingleton.getInstance();\n\n Button loginBTN = (Button) findViewById(R.id.loginBtn);\n Button createAccBTN = (Button) findViewById(R.id.creatAccountBtn);\n init();\n String sharedUserName = loginPrefs.getString(USERNAME_KEY, \"\");\n String sharedPassword = loginPrefs.getString(PASSWORD_KEY, \"\");\n\n pswd = passwordET.getText().toString();\n uname = userNameET.getText().toString();\n loginBTN.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View v) {\n userNameForValidation = userNameET.getText().toString();\n passwordForValidation = passwordET.getText().toString();\n\n try {\n loginSrvcResposnse = new HttpAsyncTask().execute(azure_server + \"token\").get();\n } catch (InterruptedException e) {\n e.printStackTrace();\n } catch (ExecutionException e) {\n e.printStackTrace();\n }\n if(loginSrvcResposnse.length()>0) {\n String credentialsJSON = loginSrvcResposnse;//getCredentialsValidationJSON();\n parseCredentialsJSON(credentialsJSON, userNameForValidation, passwordForValidation);\n if(validLogin) {\n try {\n String userResponse = new HttpAsyncTaskForUserInfo().execute(azure_server+ \"Api/Account/UserInfo\").get();\n validLogin = true;\n } catch (InterruptedException e) {\n e.printStackTrace();\n } catch (ExecutionException e) {\n e.printStackTrace();\n }\n }\n else\n {\n Toast.makeText(getApplicationContext(),\"Login Failed!\",Toast.LENGTH_SHORT).show();\n }\n }\n }\n });\n if (sharedUserName.length() > 0 && sharedPassword.length() > 0) {\n fillData();\n pswd = passwordET.getText().toString();\n uname = userNameET.getText().toString();\n if (uname.length() > 0 && pswd.length() > 0) {\n if (loginPrefs.getString(USERNAME_KEY, \"\").length() > 0 && loginPrefs.getString(PASSWORD_KEY, \"\").length() > 0) {\n autoLogin = true;\n loginBTN.performClick();\n\n } else {\n userNameET.setText(\"\");\n passwordET.setText(\"\");\n }\n }\n client = new GoogleApiClient.Builder(this).addApi(AppIndex.API).build();\n }\n createAccBTN.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View view) {\n new HttpAsyncTask().execute(azure_server + \"token\");\n\n\n Intent createAccIntent = new Intent(LoginActivity.this, SignUpActivity.class);\n startActivity(createAccIntent);\n }\n });\n }"
] |
[
"0.7184883",
"0.6818082",
"0.6620058",
"0.6488171",
"0.6482528",
"0.62505496",
"0.6169603",
"0.6132178",
"0.60141295",
"0.6012879",
"0.5970502",
"0.5845902",
"0.5791021",
"0.57881284",
"0.5724141",
"0.57148975",
"0.5688584",
"0.56762636",
"0.5675487",
"0.5653096",
"0.56510884",
"0.56356114",
"0.56186295",
"0.56158906",
"0.5612613",
"0.56080365",
"0.56080365",
"0.55867994",
"0.5584261",
"0.5566807",
"0.5564929",
"0.55618715",
"0.55571675",
"0.55327296",
"0.55312675",
"0.55138177",
"0.5503322",
"0.55029845",
"0.54884136",
"0.548449",
"0.54824424",
"0.54666525",
"0.5466319",
"0.5458494",
"0.5451691",
"0.5437836",
"0.5417911",
"0.5417323",
"0.54100084",
"0.54039884",
"0.5401975",
"0.53952515",
"0.5388034",
"0.5385503",
"0.5374626",
"0.5373688",
"0.5367188",
"0.53645694",
"0.53641045",
"0.53574914",
"0.5357391",
"0.53563833",
"0.5350813",
"0.53406435",
"0.5336769",
"0.53322756",
"0.5327491",
"0.5315012",
"0.5305405",
"0.5289153",
"0.5282605",
"0.5276609",
"0.52750057",
"0.527092",
"0.5269516",
"0.52670527",
"0.5253499",
"0.52496237",
"0.5248353",
"0.52457315",
"0.5243194",
"0.5233459",
"0.5225749",
"0.522383",
"0.5206394",
"0.5204804",
"0.520454",
"0.5188603",
"0.51885265",
"0.51835936",
"0.5181906",
"0.51789165",
"0.51773787",
"0.5176035",
"0.51727545",
"0.5170775",
"0.51684946",
"0.5168405",
"0.5167521",
"0.5167153"
] |
0.752742
|
0
|
Opens up the register form when clicked on the text link "Register here"
|
public void displayRegisterForm(View v) {
Intent intent = new Intent(getApplicationContext(), RegistrationScreenActivity.class);
startActivityForResult(intent, NEW_USER_REGISTER);
}
|
{
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
}
|
[
"public void clickRegisterLink() {\n $(registerLink).click();\n }",
"@Override\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\tnew Register();\n\t\t\t\tsetVisible(false);\n\t\t\t}",
"public void onSignUpClick() {\n\t\tString uid = regview.getUsername();\n\t\tString pw = regview.getPassword();\n\t\tString na = regview.getName();\n\t\tString em = regview.getEmail();\n\t\tString text = \"\";\n\t\tif(uid.equals(\"\") || pw.equals(\"\") || na.equals(\"\")|| em.equals(\"\")){\n\t\t\ttext = \"Please fill out all fields!\";\n\t\t} else if(regview.findUser(uid)!=User.NULL_USER){\n\t\t\ttext = \"The username already exsit, please try another one!\";\n\t\t} else {\n\t\t\tregview.addUser(new User(uid,pw,na,em));\n\t\t\tregview.goLoginPage();\n\t\t}\n\t\tregview.setRegisterText(text);\n\t}",
"public void clickRegister(View view) {\n \t\tIntent i = new Intent(this, Register.class);\n \t\tstartActivity(i);\n \t}",
"private void goToRegisterScreen()\n {\n Intent intent = new Intent(this, Register.class);\n startActivity(intent);\n }",
"public void handleRegister() {\n\t\tmainApp.showRegistrationPage();\n\t}",
"void register() {\n if (registerView.getFirstName().length() == 0 || registerView.getLastName().length() == 0 || registerView.getUsername().length() == 0 || registerView.getPassword().length() == 0) {\n IDialog invalidRegistrationDialog\n = dialogFactory.createDialog(DialogFactoryOptions.dialogNames.MESSAGE, new HashMap<String, Object>() {\n {\n put(\"message\", \"Unable to register: Fields must be non-empty!\");\n put(\"title\", \"Authentication Error\");\n put(\"messageType\", DialogFactoryOptions.dialogType.ERROR);\n }\n });\n\n invalidRegistrationDialog.run();\n } else {\n if (userController.registerUser(registerView.getFirstName(), registerView.getLastName(), registerView.getUsername(), registerView.getPassword()) != null) {\n mainFrame.setPanel(panelFactory.createPanel(PanelFactoryOptions.panelNames.MAIN_MENU));\n } else {\n IDialog invalidRegistrationDialog = dialogFactory.createDialog(DialogFactoryOptions.dialogNames.MESSAGE, new HashMap<String, Object>() {\n {\n put(\"message\", \"Unable to register: Username is already taken\");\n put(\"title\", \"Authentication Error\");\n put(\"messageType\", DialogFactoryOptions.dialogType.ERROR);\n }\n });\n\n invalidRegistrationDialog.run();\n }\n }\n }",
"@Then(\"^click on the Register button$\")\r\n\tpublic void click_on_the_Register_button() throws Throwable {\n\t register.submitRegistration();\r\n\t}",
"public void clickToRegisterButton() {\n\t\twaitToElementClickable(driver,RegisterPageUI.REGISTER_BUTTON);\n\t\tclickToElement(driver,RegisterPageUI.REGISTER_BUTTON);\n\t}",
"public void Login_screen_to_Registration() {\n register_ = findViewById(R.id.register_);\n register_.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View view) {\n Intent intent = new Intent(Login_screen.this, Registration.class);\n startActivity(intent);\n }\n });\n }",
"public RegisterPage goRegisterPage () {\n return topBar.goRegisterPage();\n }",
"private void register() {\n Intent intent = new Intent(LoginActivity.this, RegisterActivity.class);\n startActivity(intent);\n }",
"public void clickOnRegisterButton() {\n Reporter.addStepLog(\" Click on register button \" + _registerBtn.toString());\n clickOnElement(_registerBtn);\n log.info(\" Click on register button \" + _registerBtn.toString());\n }",
"public void RegisterClick(View view) {\n Intent intent = new Intent(this, RegisterActivity.class);\n startActivity(intent);\n Toast.makeText(getApplicationContext(), \"Register as a new user\", Toast.LENGTH_SHORT).show();\n }",
"@SmallTest\n public void testForOpenRegisterScreen() {\n solo.clickOnButton(solo.getString(R.string.register));\n if (solo.waitForActivity(WelcomeActivity.class)) {\n // select Register button\n solo.clickOnButton(0);\n\n // add user name/password/confirmed password, then create account\n if (solo.waitForActivity(RegisterActivity.class)) {\n solo.enterText(0, \"wchoosilp\");\n solo.enterText(1, \"123\");\n solo.enterText(2, \"123\");\n solo.clickOnButton(1);\n }\n }\n }",
"@Override\n\tpublic void actionPerformed(ActionEvent e) {\n\t\tif(e.getSource()==btNewUser) {\n\t\t\tnew RegistrationFrame();\n\t\t\tthis.dispose();\n\t\t}\n\t\telse if(e.getSource() == btLogin) {\n\t\t\tSystem.out.println(\"you can successfully log in\");\n\t\t}\n\t\telse {\n\t\t\tSystem.out.println(\"clear\");\n\t\t}\n\t}",
"public void showRegister() {\n try {\n start(primaryStage);\n } catch (Exception e) {\n e.printStackTrace();\n }\n }",
"public signup() {\n initComponents();\n }",
"@Override\n\t\t\tpublic void onClick(View v) {\n\t\t\t\tEditText emailText = (EditText)findViewById(R.id.reg_email);\n\t\t\t\tEditText firstNameText = (EditText)findViewById(R.id.reg_first_name);\n\t\t\t\tEditText lastNameText = (EditText)findViewById(R.id.reg_last_name);\n\t\t\t\tEditText userNameText = (EditText)findViewById(R.id.reg_username);\n\t\t\t\tEditText passwordText = (EditText)findViewById(R.id.reg_password);\n\t\t\t\tEditText phoneNumberText = (EditText)findViewById(R.id.reg_phone);\n\t\t\t\t\n\t\t\t\tregister(firstNameText.getText().toString(), lastNameText.getText().toString(), userNameText.getText().toString(), passwordText.getText().toString(), emailText.getText().toString(), phoneNumberText.getText().toString());\n\t\t\t\t\n\t\t\t\t\n\t\t\t\t\n\t\t\t}",
"@Test\n public void openRegisterScreen() {\n //TODO 1,2,3\n onView(ViewMatchers.withId(pl.lizardproject.qe2017.R.id.registerButton)).perform(click());\n onView(ViewMatchers.withId(pl.lizardproject.qe2017.R.id.newUsernameEditText)).check(matches(isDisplayed()));\n\n //TODO 4,5\n Espresso.closeSoftKeyboard();\n Espresso.pressBack();\n onView(ViewMatchers.withId(pl.lizardproject.qe2017.R.id.usernameEditText)).check(matches(isDisplayed()));\n }",
"public void signup(){\n\t\tboolean result = SignUpForm.display(\"Chocolate Chiptunes - Sign Up\", \"Sign-Up Form\");\n\t\tSystem.out.println(result);\n\t}",
"@Override\n public void actionPerformed(ActionEvent e) {\n frame.setVisible(false);\n new Register();\n }",
"private void Register()\n {\n Intent registerIntent = new Intent (LoginActivity.this, RegisterActivity.class);\n startActivity(registerIntent);\n finish();\n }",
"@When(\"^the user opens the registration webpage$\")\r\n\tpublic void the_user_opens_the_registration_webpage() throws Throwable {\n\t r.Reg();\r\n\t}",
"public Registration() {\n initComponents();\n managerpassword_label.setVisible(false);\n managerpassword_passfield.setVisible(false);\n \n }",
"@Override\n\t\t\tpublic void onClick(View v) {\n\t\t\t\tattempt_register();\n\t\t\t}",
"private void submitForm() {\n Toast.makeText(this, \"Registering...\", Toast.LENGTH_LONG).show();\n }",
"@Override\n public void onClick(View v) {\n Intent intent = new Intent(getApplication(), RegisterActivity.class);\n startActivity(intent);\n }",
"@Override\n public void onClick(View view) {\n Intent registerIntent = new Intent(MainActivity.this, RegisterActivity.class);\n startActivity(registerIntent);\n }",
"public void Navigate_to_Registration_Page(){\n\n waitForVisibilityOfElement(RegistrationPageLocator.Registration_Tab_Home_Screen_Link_Text);\n Assert.assertTrue(getRegistrationTab_InHomeScreen().getText().equals(StringUtils.Registration_Tab_Text));\n getRegistrationTab_InHomeScreen().click();\n waitForVisibilityOfElement(RegistrationPageLocator.Registration_Form_Submit_Button);\n\n }",
"public void processRegistration() {\n try {\n System.out.println(\"Processing Registration\");\n FacesContext c = FacesContext.getCurrentInstance();\n c.getApplication().getNavigationHandler().handleNavigation(c, null, \"register.xhtml\");\n } catch (Exception ex) {\n System.out.println(ex.getMessage());\n }\n }",
"public Register() {\n setTitle(\"Register\"); //sets its title name which appears on top the frame\n setDefaultCloseOperation(JFrame.DO_NOTHING_ON_CLOSE); //optional, what happens when the frame closes\n addWindowListener(new WindowAdapter() {\n public void windowClosing(WindowEvent e) {\n windowListener.handleClosing();\n }\n });\n\n setBounds(150, 150, 400, 200); //Explicitly defining the frame size and also frame location\n contentPane = new JPanel(); // Creating a new jpanel\n contentPane.setBorder(new EmptyBorder(5, 5, 5, 5)); // specifies added component's position within the panel\n setContentPane(contentPane); //Adding components to the Content Pane\n contentPane.setLayout(null); //sets the layout manager as null\n\n JLabel lblUsername = new JLabel(\"Username\"); // Creates a label with default value Username\n lblUsername.setBounds(91, 14, 66, 14); // sets the label size and location\n contentPane.add(lblUsername); // Adds the label to the content pane\n\n JLabel lblEmail = new JLabel(\"Email\"); // Creates a label with default value Email\n lblEmail.setBounds(91, 39, 66, 14); // sets the label size and location\n contentPane.add(lblEmail); // Adds the label to the content pane\n\n JLabel lblPassword = new JLabel(\"Password\"); // Creates a label with default value Password\n lblPassword.setBounds(91, 64, 66, 14); // sets the label size and location\n contentPane.add(lblPassword); // Adds the label to the content pane\n\n txtLogin = new JTextField(); // creates empty Login text field\n txtLogin.setBounds(179, 11, 120, 20); //Defines the text field size and location\n contentPane.add(txtLogin); // Adds the dreated email text field to the contentpane\n txtLogin.setColumns(10); // creates JTextField with default number of columns\n\n txtEmail = new JTextField();// creates empty email text field \n txtEmail.setBounds(179, 36, 120, 20); //Defines the text field size and location\n contentPane.add(txtEmail); // Adds the dreated email text field to the contentpane\n txtLogin.setColumns(10); // creates JTextField with default number of columns\n\n passwordField = new JPasswordField(); // create empty password field\n passwordField.setToolTipText(\"\"); // shows nothing when you hover curser over the password field\n passwordField.setBounds(179, 61, 120, 20); // Defines the password field size and location\n contentPane.add(passwordField); // Adds the password field to the Content Pane\n\n JLabel lblConfirmPassword = new JLabel(\"Confirm Password\"); // Creates a label with default value Confirm Password\n lblConfirmPassword.setBounds(65, 95, 108, 14); // sets the label size and location\n contentPane.add(lblConfirmPassword); // Adds the label to the content pane\n\n // add new user and password to txt file \n JButton btnSignUp = new JButton(\"Sign Up\"); // Creates Sign Up button and gives it default name Sign Up\n btnSignUp.addActionListener(new ActionListener() {//Adds onClick listener to the button\n public void actionPerformed(ActionEvent arg0) { // method called when the button is clicked\n\n FileWriter fw; // create variable for the FileWriter which writes to the file\n //catch for empty unfilled textfields\n if (!txtLogin.getText().isEmpty() || !passwordField.getText().isEmpty() || !confirmPasswordField.getText().isEmpty() || !txtEmail.getText().isEmpty()) {\n if (passwordField.getText().equals(confirmPasswordField.getText())) {\n Pattern p = Pattern.compile(\"^[_A-Za-z0-9-\\\\+]+(\\\\.[_A-Za-z0-9-]+)*@\"\n + \"[A-Za-z0-9-]+(\\\\.[A-Za-z0-9]+)*(\\\\.[A-Za-z]{2,})$\"); // Rejex which checks for a valid email address\n Matcher m = p.matcher(txtEmail.getText()); //Tries to match the input email to check whether it is a valid email coapturing all required aspects\n\n if (m.find()) { // when mathcer finds the email valid proceed below\n try {\n fw = new FileWriter(\"src//SandwichShop//users.txt\", true); // Assign the FileWriter fw to a file\n fw.write(txtLogin.getText() + \" \" + passwordField.getText() + \" \" + txtEmail.getText() + \" \\r\\n\"); // Write user details to the file\n fw.close(); //close the FileWriter\n } catch (IOException e1) {\n e1.printStackTrace();\n }\n JOptionPane.showMessageDialog(null, \"Registration completed successfully!\");\n } else {\n JOptionPane.showMessageDialog(null, \"Enter correct E-mail, please.\");\n }\n } else {\n JOptionPane.showMessageDialog(null, \"\\\"Password\\\" field and \\\"Confirm Password\\\" field not match\");\n }\n } else {\n JOptionPane.showMessageDialog(null, \"One or more fields are empty!\");\n }\n }\n });\n btnSignUp.setBounds(16, 125, 350, 23); // set size and location of the Sign Up button\n contentPane.add(btnSignUp); // Add the button to the content pane\n\n confirmPasswordField = new JPasswordField(); // create confirmPassword field\n confirmPasswordField.setToolTipText(\"\"); // shows nothing when you hover curser over the password field\n confirmPasswordField.setBounds(179, 92, 120, 20); // set size and location of the password field\n contentPane.add(confirmPasswordField); // add the confirm password field to the content pane\n }",
"private void initRegisterUserFlowFlow(){\n TextView register = (TextView)findViewById(R.id.lnkRegister);\n register.setMovementMethod(LinkMovementMethod.getInstance());\n register.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View v) {\n Intent intent = new Intent(MainActivity.this, RegistrationActivity.class);\n startActivity(intent);\n }\n });\n }",
"@RequestMapping(\"/showForm\")\n\tpublic String showForm(Model theModel) {\n\t\tRegister theRegister = new Register();\n\t\t\n\t // add register object to the model\n\t\ttheModel.addAttribute(\"register\", theRegister);\n\t\t\n\t\treturn \"register-form\";\n\t}",
"public void openRegister() {\n\n }",
"@FXML\n private void handleRegistration() {\n app.showRegistrationPage();\n }",
"@Override\n\tpublic void gotoSignUp() {\n\t\tgetFragmentManager().beginTransaction()\n\t\t\t\t.replace(R.id.container, new SignUpFragment(), \"signup\")\n\t\t\t\t.commit();\n\n\t}",
"@Override\n\t\t\tpublic void onClick(View v) {\n\t\t\t\tString nameS = name.getText().toString();\n\t\t\t\tif (nameS.equals(\"\")) {\n\t\t\t\t\tToast.makeText(RegisterActivity.this, \"用户名不可为空\",\n\t\t\t\t\t\t\tToast.LENGTH_SHORT).show();\n\t\t\t\t\treturn;\n\t\t\t\t}\n\n\t\t\t\tString passOne = password.getText().toString();\n\t\t\t\tString passTwo = surePassword.getText().toString();\n\t\t\t\tif (!passOne.equals(passTwo)) {\n\t\t\t\t\tToast.makeText(RegisterActivity.this, \"密码不一致\",\n\t\t\t\t\t\t\tToast.LENGTH_SHORT).show();\n\t\t\t\t\treturn;\n\t\t\t\t}\n\t\t\t\tMap<String, String> xml = new HashMap<String, String>();\n\t\t\t\txml.put(\"head\", \"register\");\n\t\t\t\txml.put(\"username\", nameS);\n\t\t\t\txml.put(\"password\", passOne);\n\t\t\t\tUserRegister reg = new UserRegister(getApplicationContext(),\n\t\t\t\t\t\thandler);\n\t\t\t\treg.register(xml);\n\t\t\t}",
"public void register(View view) {\n Intent intent = new Intent(this, RegisterScreen.class);\n startActivity(intent);\n }",
"@Override\n public void onRegisterClick() {\n FragmentManager fm = getSupportFragmentManager();\n FragmentTransaction ft = fm.beginTransaction();\n if (fm.findFragmentByTag(TAG_FRG_REG_1) != null)\n ft.hide(fm.findFragmentByTag(TAG_FRG_REG_1));\n ft.add(site.getId(), new ControladorRegistro(),TAG_FRG_REG_12);\n ft.addToBackStack(TAG_FRG_REG_12);\n ft.commit();\n\n }",
"private void btn_Login_RegisterActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_btn_Login_RegisterActionPerformed\n new frm_PlayerRegistration().setVisible(true);\n this.dispose();\n }",
"public void onSignupClick(MouseEvent e){signup();}",
"@Override\n\t\t\tpublic void onClick(View view) {\n\t\t\t\tstartActivity(new Intent(getActivity(),RegActivity.class));\n\t\t\t\tToast.makeText(getActivity(), \"a sec .. to register\",Toast.LENGTH_LONG)\n\t\t\t\t.show();\n\t\t\t}",
"@Override\r\n\t\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\t\tregisterJf.setVisible(false);\r\n\t\t\t\t\tuser.opening();\r\n\t\t\t\t\tempty();\r\n\t\t\t\t}",
"@Override\n public void onClick(View v) {\n Intent i = new Intent(Login.this, register.class);\n Login.this.startActivity(i);\n }",
"@Override\n\tpublic void actionPerformed(ActionEvent e) {\n\t\tif(e.getSource() == buttonRegister) {\n\t\t\tthis.dispose();\n\t\t\tnew Register(userVec, db);\n\t\t\t\n\t\t}else if(e.getSource() == buttonLogin) {\n\t\t\tString name = texNama.getText();\n\t\t\tString password = String.valueOf(texPass.getPassword());\n\t\t\t\n\t\t\tif(passwordValidator(name, password) != -1) {\n\t\t\t\tJOptionPane.showMessageDialog(this, name+\" berhasil login!\");\n\t\t\t\tthis.dispose();\n\t\t\t\tnew Home(userVec, userVec.get(passwordValidator(name, password)), db);\n\t\t\t}\n\t\t\t\n\t\t}\n\t\t\n\t}",
"public void register(View view) {\n Intent intent;\n intent = new Intent(this, RegisterActivity.class);\n startActivity(intent);\n }",
"public sign_up_page() {\n initComponents();\n }",
"@Override\n public void onClick(DialogInterface dialog, int which) {\n startActivity(new Intent(getApplicationContext(), home_page_register.class));\n\n }",
"private void goRegisterActivity() {\n Intent i = new Intent(this, RegisterActivity.class);\n startActivity(i);\n finish();\n }",
"public void onClick(View v)\n\t {\n\t Intent i = new Intent(getApplicationContext(), Register.class);\n\t startActivity(i);\n\t }",
"@RequestMapping(value = \"/register\",method = RequestMethod.GET)\r\n\tpublic String viewRegistration(Model model) { \r\n\t\tmodel.addAttribute(\"userForm\", uservalue);\r\n\t\t//UserForm Name of the model attribute under which the form object is exposed. Defaults to 'command'.\r\n\t\treturn \"Registration\";\r\n\t}",
"public static void showRegister() throws IOException {\n Main.FxmlLoader(REGISTERPAGE_PATH);\n }",
"@Override\r\n public void onClick(View v) {\n Intent nxt = new Intent(Login.this,Register.class);\r\n startActivity(nxt);\r\n }",
"@Override\n\t\t\tpublic void onClick(View v) {\n\t\t\t\ttoRegister();\n\t\t\t}",
"public LandingPage registerNewAccount(){\n\t\taction.WaitForWebElement(linkRegisterNewAccount)\n\t\t\t .Click(linkRegisterNewAccount);\n\t\treturn this;\n\t}",
"public void register(View view){\n Intent i = new Intent(this, RegisterActivity.class);\n startActivity(i);\n }",
"@Override\n\tpublic void actionPerformed(ActionEvent e) {\n\t\tFont font = new Font(\"Arial\", Font.PLAIN, 12);\n\t\tdesk = new JDesktopPane();\n\t\tuserTextField = new JTextField();\n\t\tpassTextField = new JPasswordField();\n\n\t\tsetTitle(\"Register\");\n\t\tsetResizable(false);\n\t\tsetVisible(true);\n\t\tsetSize(350, 250);\n\t\tsetAlwaysOnTop(true);\n\t\tsetDefaultCloseOperation(JFrame.DISPOSE_ON_CLOSE);\n\t\tsetLocationRelativeTo(null);\n\t\tsetContentPane(desk);\n\t\tdesk.setBackground(Color.white);\n\n\t\tuserLabel = new JLabel(\"USERNAME\");\n\t\tpassLabel = new JLabel(\"PASSWORD\");\n\n\t\tuserTextField\n\t\t\t\t.setToolTipText(\"The username is limited to 10 characters.\");\n\t\tpassTextField.setToolTipText(\"The password must be 4 characters.\");\n\n\t\tuserLabel.setFont(font);\n\t\tpassLabel.setFont(font);\n\n\t\tregister = new JButton(\"register\");\n\t\tregister.setFont(new Font(\"Arial\", Font.PLAIN, 12));\n\n\t\tregister.addActionListener(new ActionListener() {\n\t\t\tprivate boolean uniqueUser;\n\t\t\tprivate boolean invalidUserOrPass;\n\n\t\t\t@Override\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\tString userTemp = userTextField.getText();\n\t\t\t\tchar[] passTemp = passTextField.getPassword();\n\n\t\t\t\tuserTextField.setText(null);\n\t\t\t\tpassTextField.setText(null);\n\n\t\t\t\tString username = \"\";\n\t\t\t\tString password = \"\";\n\t\t\t\tint length = userTemp.length();\n\t\t\t\tfor (int i = 0; i < length; i++) {\n\t\t\t\t\tif (!(userTemp.charAt(i) == ' '))\n\t\t\t\t\t\tusername += userTemp.charAt(i);\n\t\t\t\t}\n\t\t\t\tfor (char i : passTemp) {\n\t\t\t\t\tif (!(i == ' '))\n\t\t\t\t\t\tpassword += Character.valueOf(i);\n\t\t\t\t}\n\t\t\t\tfile = new RegisterManager();\n\t\t\t\ttry {\n\t\t\t\t\tfile.createFile();\n\t\t\t\t\tuniqueUser = file.compare(username, password);\n\t\t\t\t\tif (uniqueUser)\n\t\t\t\t\t\tinvalidUserOrPass = file.writeFile(username, password);\n\t\t\t\t} catch (IOException 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\tif (!uniqueUser) {\n\t\t\t\t\tsetAlwaysOnTop(false);\n\t\t\t\t\tint error = JOptionPane.ERROR_MESSAGE;\n\t\t\t\t\tString title = \"Message error\";\n\t\t\t\t\tString message = \"The username already exist.\";\n\t\t\t\t\tJOptionPane.showMessageDialog(null, message, title, error);\n\t\t\t\t} else if (!invalidUserOrPass) {\n\t\t\t\t\tsetAlwaysOnTop(false);\n\t\t\t\t\tint error = JOptionPane.ERROR_MESSAGE;\n\t\t\t\t\tString title = \"Invalid username or password.\\n\\n\";\n\t\t\t\t\tString message = \"The username is limited to 10 characters.\\n\"\n\t\t\t\t\t\t\t+ \"The password must be 4 characters.\";\n\t\t\t\t\tJOptionPane.showMessageDialog(null, message, title, error);\n\t\t\t\t} else {\n\t\t\t\t\tdispose();\n\t\t\t\t\tString message = \"Player is created.\";\n\t\t\t\t\tJOptionPane.showMessageDialog(null, message, \"\",\n\t\t\t\t\t\t\tJOptionPane.PLAIN_MESSAGE);\n\t\t\t\t}\n\t\t\t\tsetAlwaysOnTop(true);\n\t\t\t}\n\t\t});\n\n\t\tContainer content = getContentPane();\n\t\tcontent.add(userLabel);\n\t\tcontent.add(passLabel);\n\t\tcontent.add(userTextField);\n\t\tcontent.add(passTextField);\n\t\tcontent.add(register);\n\n\t\tinsets = content.getInsets();\n\t\tuserLabel.setBounds(insets.left + 80, insets.top + 51, 80, 20);\n\t\tpassLabel.setBounds(insets.left + 80, insets.top + 91, 80, 20);\n\t\tuserTextField.setBounds(insets.left + 160, insets.top + 50, 100, 25);\n\t\tpassTextField.setBounds(insets.left + 160, insets.top + 90, 100, 25);\n\t\tregister.setBounds(insets.left + 135, insets.top + 140, 85, 25);\n\n\t}",
"@Override\n\tpublic void actionPerformed(ActionEvent a) {\n\t\tif (a.getSource() == registerButton) {\n\t\t\tif (validateInput()) {\n\t\t\t\tcon.insertIntoUsers(id, fullName, email, phone, password, gender, address, role);\n\t\t\t\tJOptionPane.showMessageDialog(null, \"Register Success!\");\n\t\t\t\tredirectToLogin();\n\t\t\t}\n\t\t}\n\t}",
"@Override\n public void onClick(View v) {\n Intent intent = new Intent(MainActivity.this, UserRegister.class);\n startActivity(intent);\n }",
"private void fullNameRegisterActionPerformed(java.awt.event.ActionEvent evt) {\n }",
"public RegisterForm() {\n initComponents();\n }",
"public RegisterForm() {\n initComponents();\n }",
"public RegisterForm() {\n initComponents();\n }",
"public void actionPerformed(ActionEvent e) {\n\t\tif (Data.linkTest()) {\r\n\t\t String btnstring = e.getActionCommand();\r\n\t if (btnstring.equals(\"注册\")) {\r\n\r\n\t String nameString=textField.getText().trim();\r\n\t String pass=String.valueOf(passwordField.getPassword());\r\n\t String repass=String.valueOf(passwordField_1.getPassword());\r\n\t String mailString=textField_5.getText().trim(); \r\n\t \t \r\n\t String query;\t \r\n\t \r\n\t if (!nameString.equals(\"\") && !pass.equals(\"\") && pass.equals(repass) && !mailString.equals(\"\")&&isEmail(mailString)) {\r\n\t System.out.println(\"注册\");\r\n\t if(UserCheck.CheckUsername(nameString)){\r\n\t query=\r\n\t \"insert into user values(\"+\r\n\t \t\t \"null,\"+\r\n\t \"'\"+nameString+\"',\"+\r\n\t \"'\"+pass+\"',\"+\r\n\t \"'\"+mailString+\"',\"+\r\n\t \"''\"+\r\n\t \")\";\r\n\t \r\n\t System.out.println(query);\r\n\t if(Data.modify(query))\t \r\n\t \t JOptionPane.showMessageDialog(null,\"注册成功\",\"提示\",JOptionPane.INFORMATION_MESSAGE);\r\n\t else\r\n\t \t JOptionPane.showMessageDialog(null,\"注册失败请检查网络连接\",\"提示\",JOptionPane.INFORMATION_MESSAGE);\r\n\t\t\t\t\r\n\t frame.setVisible(false);\r\n\r\n\t } \r\n\t }else \r\n\t {\r\n\t \t JOptionPane.showMessageDialog(null,\"用户名重复\",\"注册失败\",JOptionPane.INFORMATION_MESSAGE);\r\n\t }\r\n\t }\r\n\t\t}else{\r\n\t\t\tJOptionPane.showMessageDialog(null,\"连接服务器失败,请检查网络连接\",\"提示\",JOptionPane.INFORMATION_MESSAGE);\r\n\t\t}\r\n\t}",
"public void openLoginRegister() {\n\t\tcontroller.intializeDatabaseConnection();\n\t\tif (controller.isConnected()) {\n\t\t\ttry {\n\t\t\t\tFXMLLoader fxmlLoader = new FXMLLoader(getClass().getResource(\"/RegisterLoginView.fxml\"));\n\t\t\t\tfxmlLoader.setResources(bundle);\n\t\t\t\tParent root1 = (Parent) fxmlLoader.load();\n\t\t\t\tStage stage = new Stage();\n\t\t\t\tRegisterLoginController rlc = fxmlLoader.getController();\n\t\t\t\trlc.setMainController(this);\n\t\t\t\tstage.initModality(Modality.APPLICATION_MODAL);\n\t\t\t\t// stage.initStyle(StageStyle.UNDECORATED);\n\t\t\t\tstage.setTitle(bundle.getString(\"rLPleaseLabel\"));\n\t\t\t\tstage.setScene(new Scene(root1));\n\t\t\t\tstage.show();\n\t\t\t} catch (Exception e) {\n\t\t\t\te.printStackTrace();\n\t\t\t}\n\t\t} else {\n\t\t\tAlert alert1 = new Alert(AlertType.ERROR);\n\t\t\talert1.setTitle(bundle.getString(\"mVDataConAlertTitle\"));\n\t\t\talert1.setHeaderText(bundle.getString(\"mVDataConAlertHeader\"));\n\t\t\talert1.setContentText(bundle.getString(\"mVDataConAlertContent\"));\n\t\t\talert1.showAndWait();\n\t\t}\n\n\t}",
"private void displayUserDelegation() {\r\n userDelegationForm = new UserDelegationForm(mdiForm,true);\r\n userDelegationForm.display();\r\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 jLabel1 = new javax.swing.JLabel();\n jLabel2 = new javax.swing.JLabel();\n jLabel3 = new javax.swing.JLabel();\n nametxt = new javax.swing.JTextField();\n register = new javax.swing.JButton();\n cancel = new javax.swing.JButton();\n jLabel4 = new javax.swing.JLabel();\n passwordtxt = new javax.swing.JPasswordField();\n cPasswordtxt = new javax.swing.JPasswordField();\n\n setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE);\n setTitle(\"Register\");\n setPreferredSize(new java.awt.Dimension(800, 600));\n setResizable(false);\n\n jPanel1.setBackground(new java.awt.Color(0, 0, 51));\n\n jLabel1.setFont(new java.awt.Font(\"Tahoma\", 0, 24)); // NOI18N\n jLabel1.setForeground(new java.awt.Color(255, 255, 0));\n jLabel1.setHorizontalAlignment(javax.swing.SwingConstants.CENTER);\n jLabel1.setText(\"Register\");\n\n jLabel2.setFont(new java.awt.Font(\"Tahoma\", 0, 18)); // NOI18N\n jLabel2.setForeground(new java.awt.Color(255, 255, 255));\n jLabel2.setText(\"Name\");\n\n jLabel3.setFont(new java.awt.Font(\"Tahoma\", 0, 18)); // NOI18N\n jLabel3.setForeground(new java.awt.Color(255, 255, 255));\n jLabel3.setText(\"Password\");\n\n nametxt.setFont(new java.awt.Font(\"Tahoma\", 0, 18)); // NOI18N\n nametxt.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n nametxtActionPerformed(evt);\n }\n });\n\n register.setFont(new java.awt.Font(\"Tahoma\", 0, 18)); // NOI18N\n register.setText(\"Register\");\n register.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n registerActionPerformed(evt);\n }\n });\n\n cancel.setFont(new java.awt.Font(\"Tahoma\", 0, 18)); // NOI18N\n cancel.setText(\"Cancel\");\n cancel.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n cancelActionPerformed(evt);\n }\n });\n\n jLabel4.setFont(new java.awt.Font(\"Tahoma\", 0, 18)); // NOI18N\n jLabel4.setForeground(new java.awt.Color(255, 255, 255));\n jLabel4.setText(\"Confirm Password\");\n\n passwordtxt.setFont(new java.awt.Font(\"Tahoma\", 0, 18)); // NOI18N\n\n cPasswordtxt.setFont(new java.awt.Font(\"Tahoma\", 0, 18)); // NOI18N\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 .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jPanel1Layout.createSequentialGroup()\n .addGap(274, 274, 274)\n .addComponent(jLabel1, javax.swing.GroupLayout.PREFERRED_SIZE, 211, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGroup(jPanel1Layout.createSequentialGroup()\n .addGap(167, 167, 167)\n .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(jLabel3)\n .addComponent(jLabel4)\n .addComponent(jLabel2, javax.swing.GroupLayout.PREFERRED_SIZE, 139, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGap(27, 27, 27)\n .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)\n .addComponent(nametxt)\n .addComponent(passwordtxt, javax.swing.GroupLayout.DEFAULT_SIZE, 272, Short.MAX_VALUE)\n .addComponent(cPasswordtxt)))\n .addGroup(jPanel1Layout.createSequentialGroup()\n .addGap(224, 224, 224)\n .addComponent(register, javax.swing.GroupLayout.PREFERRED_SIZE, 137, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGap(42, 42, 42)\n .addComponent(cancel, javax.swing.GroupLayout.PREFERRED_SIZE, 148, javax.swing.GroupLayout.PREFERRED_SIZE)))\n .addContainerGap(146, Short.MAX_VALUE))\n );\n jPanel1Layout.setVerticalGroup(\n jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jPanel1Layout.createSequentialGroup()\n .addGap(19, 19, 19)\n .addComponent(jLabel1)\n .addGap(59, 59, 59)\n .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(jLabel2, javax.swing.GroupLayout.PREFERRED_SIZE, 35, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(nametxt, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGap(34, 34, 34)\n .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(jLabel3)\n .addComponent(passwordtxt, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGap(42, 42, 42)\n .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)\n .addComponent(jLabel4)\n .addComponent(cPasswordtxt, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, 49, Short.MAX_VALUE)\n .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(register)\n .addComponent(cancel))\n .addGap(40, 40, 40))\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 setLocationRelativeTo(null);\n }",
"private void jForgottenPasswordMouseClicked(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_jForgottenPasswordMouseClicked\n new ForgottenPassword().setVisible(true);\n dispose();\n }",
"@Override\n\t\t\tpublic void onClick(View v) {\n\t\t\t\tIntent gotodaftar=new Intent(LogonActivity.this,RegisterActivity.class);\n\t\t\t\tstartActivity(gotodaftar);\n\t\t\t\t\n\t\t\t}",
"@Override\r\n public void onClick(View view) {\r\n switch (view.getId()){\r\n case R.id.Signup:\r\n\r\n registerUser();\r\n\r\n break;\r\n }\r\n }",
"@Override\r\n\tpublic void actionPerformed(ActionEvent e) {\n\t\tif (e.getSource() == btnNewButton) {\r\n\t\t\tString name = textField.getText();\r\n\t\t\tString password = passwordField.getText();\r\n\t\t\t\r\n\t\t\tif(connect(name, password)) {\r\n\t\t\t\tJOptionPane.showMessageDialog(btnNewButton, \"로그인 성공\");\r\n\t\t\t\tSelectUI selectUI = new SelectUI();\r\n\t\t\t\tselectUI.setVisible(true);\r\n\t\t\t\tsetVisible(false);\r\n\t\t\t}else {\r\n\t\t\t\tJOptionPane.showMessageDialog(btnNewButton, \"로그인 실패\");\r\n\t\t\t}\t\t\t\r\n\t\t} \r\n\t\t\r\n\t\tif (e.getSource() == btnNewButton_1) {\r\n\t\t\tWorkerUI workerUI = new WorkerUI();\r\n\t\t\tworkerUI.setVisible(true);\r\n\t\t}\r\n\t}",
"NewAccountPage openNewAccountPage();",
"@Override\r\n\t\t\tpublic void onClick(ClickEvent event) {\n\t\t\t\tString resetUrl = \"#activateacc;uid=\" + user.getRefId();\r\n\t\t\t\tWindow.open(resetUrl, \"Password Reset\", \"\");\r\n\t\t\t}",
"public void register(View v)\n {\n\n Intent loginPage = new Intent(RegisterPage.this, Login.class);\n loginPage.putExtra(\"username\",username.getText().toString());\n loginPage.putExtra(\"password\",password.getText().toString());\n loginPage.putExtra(\"firstname\",firstName.getText().toString());\n loginPage.putExtra(\"lastname\",lastName.getText().toString());\n startActivity(loginPage);\n }",
"public RegistrationForm() {\n initComponents();\n this.setLocationRelativeTo(null);\n }",
"public String registration() {\n if (name != null) {\n int createdUsers = DBUtils.addUser(name, password, email);\n if (createdUsers > 0) {\n try {\n HttpServletRequest request = (HttpServletRequest) FacesContext.getCurrentInstance().getExternalContext().getRequest();\n request.login(name, password);\n initUser();\n request.getSession().setAttribute(\"current_user\", this);\n } catch (ServletException e) {\n FacesContext context = FacesContext.getCurrentInstance();\n FacesMessage message = new FacesMessage(\"Wrong login or password\");\n message.setSeverity(FacesMessage.SEVERITY_ERROR);\n context.addMessage(\"login\", message);\n }\n return \"/index?faces-redirect=true\";\n }\n }\n return \"/pages/register.xhtml?faces-redirect=true\";\n }",
"@Override\n public void onClick(View view) {\n regUser();\n }",
"public void register_func(View v) {\n Intent ii = new Intent(Main.this, Register.class);\n startActivity(ii);\n finish();\n }",
"public\n RegisterView()\n {\n super(ViewKeys.REGISTER);\n\n setAccount(null);\n setAccountChooser(new ElementComboBoxChooser(getAccounts()));\n setFilter(new TransactionFilter());\n setPanel(new Panel());\n setSearchWidget(new SearchWidget(createPopupMenu()));\n\n // Build panel.\n setFill(GridBagConstraints.BOTH);\n add(createToolsPanel(), 0, 0, 1, 1, 0, 0);\n add(getPanel(), 0, 1, 1, 1, 100, 100);\n\n getAccountChooser().setAllowInactiveAccounts(false);\n\n // Add listeners.\n getAccountChooser().addActionListener(new ActionHandler());\n getSearchWidget().addActionListener(new ActionHandler());\n }",
"public Signup() {\n initComponents();\n }",
"private void signUpLblMouseClicked(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_signUpLblMouseClicked\n String[] options = {\n \"Trainer\", \"Member\"\n };\n userNameTF.setText(\"\");\n passwordTF.setText(\"\");\n int opt = JOptionPane.showOptionDialog(this,\n \"What would you wish to sign up as? \",\n \"Trainer or Member?\",\n JOptionPane.DEFAULT_OPTION,\n JOptionPane.QUESTION_MESSAGE,\n null,\n options,\n options[1]);\n this.setVisible(false);\n if(opt == 0){\n SignUpDialogTrainer tDialog = new SignUpDialogTrainer(this, true);\n tDialog.setVisible(true);\n }\n else if(opt == 1){\n SignUpDialogMember mDialog = new SignUpDialogMember(this, true);\n mDialog.setVisible(true);\n }\n this.setVisible(true);\n }",
"@Override\n public void onClick(View view) {\n startActivityForResult(new Intent(getContext(),RegistrarNotas.class),REGISTER_FORM_REQUEST);\n }",
"@Override\r\n\t\t\tpublic void onClick(View arg0) {\n\t\t\t\t\r\n\t\t\t\tIntent i=new Intent(getApplicationContext(),REGISTER.class);\r\n\t\t\t\tstartActivity(i);\r\n\t\t\t\tPregistermenu.this.finish();\r\n\t\t\t\t\r\n\t\t\t\t\r\n\t\t\t}",
"@Override\n public void onClick(View view) {\n registerUser();\n }",
"public void onClick(View view) {\n startActivity(new Intent(getApplicationContext(), RegisterActivity.class));\n }",
"private void goToRegisterActivity() {\n Intent intent = new Intent(LoginActivity.this, RegisterAccountActivity.class);\n startActivityForResult(intent, 0);\n }",
"private void showLogin() {\n \t\tLogin.actionHandleLogin(this);\n \t}",
"public void launchSignUpPage() {\n Intent intent = new Intent(LoginActivity.this, SignupActivity.class);\n startActivity(intent);\n }",
"public Successful_Registration() {\n initComponents();\n }",
"public Read_userregister() {\n initComponents();\n }",
"@Override\n\t\t\tpublic void onClick(View v) {\n\t\t\t\tIntent intent = new Intent();\n\t\t\t\tintent.setClass(Login_Register.this, Register.class);\n\t\t\t\tstartActivity(intent);\n\t\t\t\tLogin_Register.this.finish();\n\t\t\t}",
"@Override\r\n public void onClick(View view) {\n switch (view.getId()){\r\n case R.id.register:\r\n Intent i = new Intent(this, RegistrationActivity.class);\r\n startActivity(i);\r\n break;\r\n }\r\n }",
"private void passwordRegisterActionPerformed(java.awt.event.ActionEvent evt) {\n }",
"@Override\r\n public void onClick(View view) {\n Intent intent = new Intent(GuidePage.this, LoginOrRegister.class);\r\n startActivity(intent);\r\n }",
"@Override\r\n\t\tpublic void onClick(ClickEvent event) {\n\t\t\tRootPanel.get(\"details\").clear();\r\n\t\t\tuf = new UserForm(AktuellerAnwender.getAnwender());\r\n\t\t\tRootPanel.get(\"details\").add(uf);\r\n\t\t}",
"private void showRegistrationform(HttpServletResponse response, boolean error) throws IOException {\n\t\tresponse.setContentType(\"text/html\");\r\n\t\tPrintWriter out=response.getWriter();\r\n\t\tout.println(\"<html>\");\r\n\t\tout.println(\"<head>\");\r\n\t\tout.println(\"<title>Login</title>\");\r\n\t\tout.println(\"</head>\");\r\n\t\tout.println(\"<body>\");\r\n\t\tif(error) {\r\n\t\t\tresponse.sendRedirect(\"Unsuccessful.html\");\r\n\t\t}\r\n\t\telse {\r\n\t\t\tout.println(\"<form method=\\\"post\\\">\");\r\n\t\t\tout.println(\"UserName:<input type=\\\"text\\\" name=\\\"Username\\\"><br>\");\r\n\t\t\tout.println(\"Password:<input type=\\\"Password\\\" name=\\\"password\\\"><br>\");\r\n\t\t\tout.println(\"<input type=\\\"submit\\\" value=\\\"login\\\">\");\t\r\n\t\t\tout.println(\"<input type=\\\"reset\\\" value=\\\"cancel\\\">\");\t\r\n\t\t\tout.println(\"</form>\");\r\n\t\t\tout.println(\"</body>\");\r\n\t\t\tout.println(\"</html>\");\r\n\t\t}\r\n\t}",
"@Override\n public void onClick(View v) {\n name = txtName.getText().toString();\n username = txtUsername.getText().toString();\n password = txtPassword.getText().toString();\n try {\n if (username.trim().length() > 0 && password.trim().length() > 0 && name.trim().length() > 0) {\n dbHelper.open();\n dbHelper.Register(username, password, name);\n //jika tombol diklik akan muncul toast daftar berhasil dan langsung menuju ke halaman login\n Toast.makeText(RegisterActivity.this, \"Daftar berhasil\", Toast.LENGTH_LONG).show();\n finish();\n } else {\n //jika tombol diklik akan muncul toast daftar gagal, lengkapi form!\n Toast.makeText(RegisterActivity.this, \"Daftar gagal, lengkapi form!\", Toast.LENGTH_LONG).show();\n }\n } catch (Exception e) {\n Toast.makeText(RegisterActivity.this, e.getMessage(), Toast.LENGTH_LONG).show();\n }\n }",
"public SignUp() {\n initComponents();\n }",
"public SignUp() {\n initComponents();\n }"
] |
[
"0.7322943",
"0.70038277",
"0.6948297",
"0.6787656",
"0.67688894",
"0.67616063",
"0.6681031",
"0.665794",
"0.65836054",
"0.6580108",
"0.6566178",
"0.65501916",
"0.65469277",
"0.6546877",
"0.6530983",
"0.64111936",
"0.64037186",
"0.6390357",
"0.63850623",
"0.637392",
"0.63644606",
"0.6344842",
"0.634428",
"0.6328967",
"0.6323205",
"0.63194466",
"0.63025075",
"0.6302358",
"0.6300471",
"0.62936264",
"0.62695205",
"0.6267684",
"0.6263562",
"0.6255436",
"0.62387246",
"0.62351656",
"0.6234257",
"0.6231646",
"0.6219461",
"0.62126356",
"0.61905515",
"0.617883",
"0.6175701",
"0.61640483",
"0.61613506",
"0.61534214",
"0.6148095",
"0.61398274",
"0.6137035",
"0.6136561",
"0.6135223",
"0.6131085",
"0.6108525",
"0.61077017",
"0.6105553",
"0.6103089",
"0.60987204",
"0.6088966",
"0.6085438",
"0.6085254",
"0.60851705",
"0.60748863",
"0.60748863",
"0.60748863",
"0.60677755",
"0.60552305",
"0.60505354",
"0.60409683",
"0.60328597",
"0.60237306",
"0.6022961",
"0.6020045",
"0.6006755",
"0.59977233",
"0.5992154",
"0.59872293",
"0.5985454",
"0.5984043",
"0.59825367",
"0.59807575",
"0.59802365",
"0.59772295",
"0.59765536",
"0.5975911",
"0.59718716",
"0.5970737",
"0.59660107",
"0.5956059",
"0.5952217",
"0.5952137",
"0.59502274",
"0.59483373",
"0.59471035",
"0.5943968",
"0.5922398",
"0.59223914",
"0.592147",
"0.59104663",
"0.5910031",
"0.5910031"
] |
0.6687969
|
6
|
Displays the dialog to accept email id input from the user
|
public void displayForgotPasswordDialog(View v) {
FragmentManager fm = getSupportFragmentManager();
ForgotPasswordFragment frag = new ForgotPasswordFragment();
frag.show(fm, "fragment_forgot_password");
}
|
{
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
}
|
[
"private void openValidateDialog() {\n final ValidateEmailDialog dialog = new ValidateEmailDialog(EmailRegisterActivity.this, EmailRegisterActivity.this, editEmail.getText().toString().trim());\n }",
"public JoinNowPage enterEmailID() {\n\t\temail.sendKeys(\"afchoudhary@deloitte.com\");\n\t\treturn this;\n\t}",
"public void onClick(DialogInterface dialog, int which) {\n Toast.makeText(getApplicationContext(), \"Email Id Is InCorrect\", Toast.LENGTH_SHORT).show();\n uname.requestFocus();\n }",
"public String printNewEmailPrompt() {\n return \"Please enter new email: \";\n }",
"@Override\n\tpublic void showMailDialog() {\n\t\t\n\t}",
"public void email() {\n\t\t\t\temailGUI = new EmailGUI();\n\t\t\t\tpopUpWindow = emailGUI.getFrame();\n\t\t\t\tpopUpWindow.setVisible(true);\n\t\t\t\temailGUI.setListeners(new mailListener());\n\t\t\t}",
"public void enterRandomEmailId() {\n String email = \"test\" + Utility.getRandomString(3) + \"@gmail.com\";\n Reporter.addStepLog(\"Enter email \" + email + \" to email field \" + _emailField.toString());\n sendTextToElement(_emailField, email);\n log.info(\"Enter email \" + email + \" to email field \" + _emailField.toString());\n }",
"public void onClickShowChangeEmail(){\n //Get the alert dialog based on the resource email_change_input\n AlertDialog.Builder alertBuilder = new AlertDialog.Builder(LoginActivity.this);\n View layView = (LayoutInflater.from(LoginActivity.this)).inflate(R.layout.email_change_input, null);\n alertBuilder.setView(layView);\n\n //Get the field\n final EditText userInput = (EditText) layView.findViewById(R.id.tvContentMessage);\n\n //Build the buttons on the alertbuilder\n alertBuilder.setCancelable(true)\n .setPositiveButton(\"Ok\", new DialogInterface.OnClickListener() {\n @Override\n public void onClick(DialogInterface dialog, int which) {\n sharedpreferences = getSharedPreferences(MyPREFERENCES, Context.MODE_PRIVATE);\n //Set the email into the shared preferences\n sharedpreferences.edit().putString(\"email_to_report\", userInput.getText().toString()).commit();\n Toast.makeText(getApplicationContext(), \"Email to retrieve reports changed!\", Toast.LENGTH_SHORT).show();\n\n }\n })\n .setNegativeButton(\"Cancel\", new DialogInterface.OnClickListener() {\n @Override\n public void onClick(DialogInterface dialog, int which) {\n\n }\n })\n ;\n\n Dialog dialog = alertBuilder.create();\n dialog.show();\n\n }",
"@Override\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\t if(e.getActionCommand().equals(\"提交UID\")){\n\t\t\t\t\tif(!UserID.useruidtext.getText().equals(\"\")) {\n\t\t\t\t\t\tBILIBILIAPI.Userid=UserID.useruidtext.getText();\n\t\t\t\t\t\tsetVisible(false);\n\t\t\t\t\t}else {\n\t\t\t\t\t\tJOptionPane.showMessageDialog(null, \"不能为空\");\n\t\t\t\t\t}\n\t\t\t\t\t//System.out.println(BILIBILIAPI.Userid);\n\t\t\t\t}\n\t\t\t}",
"public void enterEmailInAboutMe(String email) throws UIAutomationException{\r\n\t\r\n\t\telementController.requireElementSmart(fileName,\"Email Text Field In About Me\",GlobalVariables.configuration.getAttrSearchList(), \"Email Address\");\r\n\t\tUIActions.click(fileName,\"Email Text Field In About Me\",GlobalVariables.configuration.getAttrSearchList(), \"Email Address\");\r\n\t\tUIActions.clearTextBox(fileName,\"Email Text Field In About Me\",GlobalVariables.configuration.getAttrSearchList(), \"Email Address\");\r\n\t\tUIActions.enterValueInTextBox(email,fileName,\"Email Text Field In About Me\",GlobalVariables.configuration.getAttrSearchList(), \"Email Address\");\r\n\t\tUIActions.enterKey(Keys.TAB);\r\n\t\r\n\t}",
"private boolean promptID() {}",
"private String getEmail(){\n System.out.println(\"Enter The Email Address\");\n return sc.next();\n }",
"public void askForEventID() {\n System.out.println(\"What is the event ID?\");\n }",
"private void showPasswordResetView(String email) {\n if (!email.isEmpty()) {\n EditText etEmail = findViewById(R.id.etResetEmail);\n etEmail.setText(email);\n }\n\n changeForm(R.id.btnResetPasswordForm);\n }",
"@Step\r\n\tpublic void enterEmail(String email) {\r\n\t\tLOGGER.info(\"Entering email: \" + email);\r\n\t\temailInput.type(email);\r\n\t}",
"@Override\r\n\t\tpublic void onClick(View view)\r\n\t\t{\n\t\t showForgotIdDialog();\r\n\t\t}",
"private void showChangeEmailDialog() {\n if(dialog != null && dialog.isShowing()) return;\n\n LayoutInflater inflater = LayoutInflater.from(this);\n View view = inflater.inflate(R.layout.dialog_change_email, null);\n\n // The dialog that will appear\n AlertDialog.Builder builder = new AlertDialog.Builder(this, R.style.CustomDialogTheme)\n .setView(view)\n .setCancelable(true);\n\n Typeface tf = ResourcesCompat.getFont(getApplicationContext(), R.font.catamaran);\n\n ImageButton closeButton = (ImageButton) view.findViewById(R.id.closeDialogButton);\n final AppCompatButton confirmChangeButton = (AppCompatButton) view.findViewById(R.id.confirmChangeEmailBtn);\n\n TextInputLayout tilPassword = view.findViewById(R.id.tilPassword);\n TextInputLayout tilEmail = view.findViewById(R.id.tilEmail);\n TextInputLayout tilNewEmail = view.findViewById(R.id.tilNewEmail);\n TextInputLayout tilReEnterNewEmail = view.findViewById(R.id.tilReEnterNewEmail);\n passwordEditText = view.findViewById(R.id.input_password);\n emailEditText = view.findViewById(R.id.input_email);\n newEmailEditText = view.findViewById(R.id.input_newEmail);\n reEnterNewEmailEditText = view.findViewById(R.id.input_reEnterNewEmail);\n\n // Setting custom font to dialog\n tilPassword.setTypeface(tf);\n tilEmail.setTypeface(tf);\n tilNewEmail.setTypeface(tf);\n tilReEnterNewEmail.setTypeface(tf);\n passwordEditText.setTypeface(tf);\n emailEditText.setTypeface(tf);\n newEmailEditText.setTypeface(tf);\n reEnterNewEmailEditText.setTypeface(tf);\n\n // Creating dialog and adjusting size\n dialog = builder.create();\n dialog.requestWindowFeature(Window.FEATURE_NO_TITLE);\n dialog.show();\n\n closeButton.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View v) {\n dialog.dismiss();\n }\n });\n\n // Override the button handler to check if data is valid\n confirmChangeButton.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View v) {\n confirmChangeButton.setEnabled(false);\n\n boolean valid = true;\n\n String password = passwordEditText.getText().toString();\n String email = emailEditText.getText().toString();\n String newEmail = newEmailEditText.getText().toString();\n String reEnterNewEmail = reEnterNewEmailEditText.getText().toString();\n\n // check email\n if (email.isEmpty() || !Patterns.EMAIL_ADDRESS.matcher(email).matches()) {\n emailEditText.setError(getString(R.string.error_email));\n valid = false;\n } else {\n emailEditText.setError(null);\n }\n\n // check email\n if (newEmail.isEmpty() || !Patterns.EMAIL_ADDRESS.matcher(newEmail).matches()) {\n newEmailEditText.setError(getString(R.string.error_email));\n valid = false;\n } else if (newEmail.equals(email)) {\n newEmailEditText.setError(getString(R.string.error_email_change_equal));\n valid = false;\n } else{\n newEmailEditText.setError(null);\n }\n\n // check email\n if (reEnterNewEmail.isEmpty() || !Patterns.EMAIL_ADDRESS.matcher(reEnterNewEmail).matches()) {\n reEnterNewEmailEditText.setError(getString(R.string.error_email));\n valid = false;\n } else if (reEnterNewEmail.equals(email)) {\n reEnterNewEmailEditText.setError(getString(R.string.error_email_change_equal));\n valid = false;\n } else if (!reEnterNewEmail.equals(newEmail)) {\n reEnterNewEmailEditText.setError(getString(R.string.error_email_match));\n valid = false;\n } else {\n reEnterNewEmailEditText.setError(null);\n }\n\n // check password\n if (password.isEmpty() || password.trim().isEmpty() || password.length() < 4 || password.length() > 10) {\n passwordEditText.setError(getString(R.string.error_password));\n valid = false;\n } else {\n passwordEditText.setError(null);\n }\n\n if(valid)\n onChangeEmail(password, email, newEmail, reEnterNewEmail);\n else\n confirmChangeButton.setEnabled(true);\n }\n });\n\n WindowManager.LayoutParams lp = new WindowManager.LayoutParams();\n lp.copyFrom(dialog.getWindow().getAttributes());\n lp.width = 900;\n if(lp.height > 1300)\n lp.height = 1300;\n else\n lp.height = WindowManager.LayoutParams.WRAP_CONTENT;\n lp.gravity = Gravity.CENTER;\n dialog.getWindow().setAttributes(lp);\n dialog.getWindow().setBackgroundDrawable(new ColorDrawable(Color.TRANSPARENT));\n TextView textView = (TextView) dialog.findViewById(android.R.id.message);\n textView.setTypeface(tf);\n }",
"public static void main(String[] args) {\n\t\tString email = JOptionPane.showInputDialog(\"Email\");\n\t\tSystem.out.println(\"Original: \" + email);\n\t\tSystem.out.println(\"Minuscula: \" + email.toLowerCase());\n\t\tSystem.out.println(\"Maiuscula: \" + email.toUpperCase());\n\t\tSystem.out.println(\"Posição do @: \" + email.indexOf(\"@\"));\n\t\tSystem.out.println(\"Existe @: \" + email.contains(\"@\"));\n\t\tSystem.out.println(\"Qtde caracteres : \" + email.length());\n\t\tSystem.out.println(\"Parte da string 3 ao 6 iniciando no 0: \" + email.substring(3,6));\n\t\tSystem.out.println(\"Exclui o primeiro caracter : \" + email.substring(1));\n\t\tSystem.out.println(\"Usuario: \" + email.substring(0,email.indexOf(\"@\")));\n\t\tSystem.out.println(\"Servidor + o @: \" + email.substring(email.indexOf(\"@\")+1));\n\t\t\n\t\tSystem.out.println(\"Servidor sem o @: \" + email.substring(email.indexOf(\"@\")+1,email.indexOf(\".com\")));\n\t\t\n\t\tSystem.out.println(\"Primeira metade: \" + email.substring(0,email.length()/2)); // nesse caso só funciona se for par a quantidade de caracter\n\t\t\n\t\tSystem.out.println(\"Comparação case sensitive: \" + email.equals(\"vncrdo@gmail.com\"));\n\t\t\n\t\tSystem.out.println(\"Comparação case sensitive: \" + email.equalsIgnoreCase(\"vncrdo@gmail.com\"));\n\t\t\n\t}",
"public void inputRandomEmailToTextbox() {\r\n\t\twaitElementVisible(driver, RegisterForm.EMAIL_TEXTBOX);\r\n\t\tString emailAddress = \"auto06\" + getTodayString(\"ddMMyyHHmmss\")+\"@lv.com\";\r\n\t\tsendKeyElement(driver,RegisterForm.EMAIL_TEXTBOX, emailAddress);\r\n\t}",
"public void onClick(DialogInterface dialog, int which) {\n Toast.makeText(getApplicationContext(), \"Re-enter Email\", Toast.LENGTH_SHORT).show();\n }",
"@Override\n\tprotected Dialog onCreateDialog(int id) {\n\n\t\tLayoutInflater factory = LayoutInflater.from(this);\n\t\tfinal View textEntryView = factory.inflate(R.layout.alert_dialog, null);\n\t\tfinal EditText MacID = (EditText) textEntryView\n\t\t\t\t.findViewById(R.id.editTextMacID);\n\t\treturn new AlertDialog.Builder(GarageOpener.this)\n\t\t\t\t// .setIconAttribute(android.R.attr.alertDialogIcon)\n\t\t\t\t.setTitle(\"Enter MAC Address of form: \\n 00:06:66:01:E3:BD\")\n\t\t\t\t.setView(textEntryView)\n\n\t\t\t\t.setPositiveButton(\"OK\", new DialogInterface.OnClickListener() {\n\t\t\t\t\tpublic void onClick(DialogInterface dialog, int whichButton) {\n\n\t\t\t\t\t\tString value = MacID.getText().toString();\n\n\t\t\t\t\t\t// prelim test for actual MacID\n\t\t\t\t\t\t// test char length\n//\t\t\t\t\t\tif (value.length() != 17) {\n//\t\t\t\t\t\t\tToast.makeText(\n//\t\t\t\t\t\t\t\t\tgetApplicationContext(),\n//\t\t\t\t\t\t\t\t\t\"MacID is wrong Length. Please include ':'\",\n//\t\t\t\t\t\t\t\t\tToast.LENGTH_LONG);\n//\t\t\t\t\t\t}\n//\t\t\t\t\t\telse {\n//\t\t\t\t\t\t\tint colonCount = 0;\n//\t\t\t\t\t\t\tchar[] a = value.toCharArray();\n//\t\t\t\t\t\t\tfor (int i = 0; i < value.length(); i++) {\n//\t\t\t\t\t\t\t\tif (a[i] == ':') {\n//\t\t\t\t\t\t\t\t\tcolonCount++;\n//\t\t\t\t\t\t\t\t}\n//\t\t\t\t\t\t\t}\n//\n//\t\t\t\t\t\t\tif (colonCount != 5) {\n//\t\t\t\t\t\t\t\tToast.makeText(\n//\t\t\t\t\t\t\t\t\t\tgetApplicationContext(),\n//\t\t\t\t\t\t\t\t\t\t\"MacID is incorrect. Did you include ':' characters? \",\n//\t\t\t\t\t\t\t\t\t\tToast.LENGTH_LONG);\n//\t\t\t\t\t\t\t}\n//\n//\t\t\t\t\t\t}\n\n\t\t\t\t\t\tLog.e(TAG, \"******ENTERED DATA: \" + whichButton + \" \"\n\t\t\t\t\t\t\t\t+ value);\n\t\t\t\t\t\t\n\t\t\t\t\t\t//set macaddress to connect with\n\t\t\t\t\t\tMAC_ADDRESS = value;\n\t\t\t\t\t\t\n\t\t\t\t\t\t/* User clicked OK so do some stuff */\n\t\t\t\t\t\treturn;\n\t\t\t\t\t}\n\t\t\t\t})\n\t\t\t\t.setNegativeButton(\"CANCEL\",\n\t\t\t\t\t\tnew DialogInterface.OnClickListener() {\n\t\t\t\t\t\t\tpublic void onClick(DialogInterface dialog,\n\t\t\t\t\t\t\t\t\tint whichButton) {\n\t\t\t\t\t\t\t\treturn;\n\t\t\t\t\t\t\t\t/* User clicked cancel so do some stuff */\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t})\n\t\t\t\t.create();\n\t\t// }\n\n\t}",
"public void enterEmail(String emailId) {\r\n\t\tdriver.findElement(this.email).sendKeys(emailId);\r\n\t}",
"public void ensureIsDisplayedEmail() {\n (new WebDriverWait(driver, 30)).until(ExpectedConditions.elementToBeClickable(By.id(\"emailField\")));\n }",
"public void inputToEmailTextbox(String email) {\n\t\twaitToElementVisible(driver,RegisterPageUI.EMAIL_TEXTBOX);\n\t\tsendkeyToElement(driver, RegisterPageUI.EMAIL_TEXTBOX, email);\n\t}",
"public void enterEmail() throws IOException {\n\t\tLoginSignupCompanyPage sp = new LoginSignupCompanyPage(driver);\n\t\tlog.info(\"Verifying the Email is available or not\");\n\t\tAssert.assertTrue(enterEmail.isDisplayed());\n\t\tenterEmail.sendKeys(BasePage.getCellData(xlsxName, sheetName, 10, 0));\n\n\t}",
"private void showAlert() {\n AlertDialog.Builder builder = new AlertDialog.Builder(this);\r\n builder.setTitle(\"Info..\");\r\n builder.setMessage(\"Your password reset email has been sent!\\n\" +\r\n \"\\n\" +\r\n \"We have sent a password reset email to your email address:\\n\" +\r\n \"\\n\" +\r\n input_email.getText().toString()+\"\\n\" +\r\n \"\\n\" +\r\n \"Please check your inbox to continue.\");\r\n\r\n builder.setPositiveButton(\"Ok\", new DialogInterface.OnClickListener() {\r\n @Override\r\n public void onClick(DialogInterface dialog, int which) {\r\n dialog.dismiss();\r\n finish();\r\n }\r\n });\r\n /* builder.setNegativeButton(\"cancel\", new DialogInterface.OnClickListener() {\r\n @Override\r\n public void onClick(DialogInterface dialog, int which) {\r\n dialog.dismiss();\r\n }\r\n });*/\r\n // create and show the alert dialog\r\n AlertDialog dialog = builder.create();\r\n dialog.show();\r\n }",
"private void showInputDialog() {\n AlertDialog.Builder builder = new AlertDialog.Builder(this);\n builder.setTitle(\"App info\");\n builder.setMessage(message);\n builder.setPositiveButton(\" Done \", new DialogInterface.OnClickListener() {\n public void onClick(DialogInterface dialog, int id) {\n dialog.dismiss();\n }\n });\n builder.show();\n }",
"private void jbuttonAddGuestActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jbuttonAddGuestActionPerformed\n String fnGuest = JTextFirstNameGuest.getText().toLowerCase();\n String lnGuest = JTextLastNameGuest.getText().toLowerCase();\n String emGuest = JTextEmailGuest.getText().toLowerCase(); //??\n boolean succes = false;\n int phoneNr = 0;\n \n try{\n phoneNr = Integer.parseInt(JTextPhoneGuest.getText());\n }\n catch(java.lang.NullPointerException ex){\n jLabelAddGuestStatus.setText(\"Missing phone number\");\n }\n if(fnGuest.isEmpty()){\n jLabelAddGuestStatus.setText(\"Missing Firstname\");\n }\n if(lnGuest.isEmpty()){\n jLabelAddGuestStatus.setText(\"Missing Lastname\");\n }\n if(emGuest.isEmpty()){\n jLabelAddGuestStatus.setText(\"Missing Email\");\n }\n \n if(!fnGuest.isEmpty() && !lnGuest.isEmpty() && phoneNr != 0 ){\n try{ \n succes = conIf.addGuestEmail(fnGuest, lnGuest, phoneNr, emGuest); //emguest? \n }catch(Exception ex){\n succes = false;\n }\n }\n if(succes == true){\n JTextFirstNameGuest.setText(\"\");\n JTextLastNameGuest.setText(\"\");\n JTextPhoneGuest.setText(\"\");\n JTextEmailGuest.setText(\"\");\n \n int reply = JOptionPane.showConfirmDialog(\n fr1,\n \"Would you like to add another guest?\",\n \"Guest added successfully\",\n JOptionPane.YES_NO_OPTION);\n \n if(reply == JOptionPane.NO_OPTION){\n fr1.setVisible(true);\n this.setVisible(false);\n }\n \n \n \n }else{\n jLabelAddGuestStatus.setText(\"guest not added\");\n }\n }",
"public void onClick(DialogInterface dialog,int id) {\n db = dbHelper.getWritableDatabase();\n String s=userInput.getText().toString();\n Cursor eee = db.query(DatabaseContract.Customer.TABLE_CUSTNAME, null, DatabaseContract.Customer.COL_CUSTMAIL\n + \" = ? \", new String[]{s}, null, null, null, null);\n if(eee.getCount()>0)\n {\n dialog.dismiss();\n newdialog(s);\n\n\n }\n else {\n Toast.makeText(getApplicationContext(), \" This user email does not exist \", Toast.LENGTH_SHORT).show();\n\n }\n\n }",
"public void emailFieldTest() {\r\n\t\tif(Step.Wait.forElementVisible(QuoteForm_ComponentObject.emailFieldLocator, \"Email input field\", 5)) {\r\n\t\t\tStep.Action.typeText(QuoteForm_ComponentObject.emailFieldLocator, \"Email input field\", \"test@test.com\");\r\n\t\t}\r\n\t}",
"public void enterRgstrEmailAddress(String Email) {\n\t\trgstrEmailAddressIntbx.sendKeys(Email);\n\t\tExtentTestManager.getTest().log(LogStatus.INFO, \"Enter emailaddress as: \" +Email);\n\t}",
"private static void promptAddress() {\n\t\tSystem.out.print(\"Please enter an address: \");\n\t}",
"@When(\"I enter a valid email {string}\")\n public void i_enter_a_valid_email(String em) {\n BasePage.driverUtils.waitForPresenceOFElementLocatedBy(By.id(\"FriendEmail\"));\n BasePage.productEmailAfirendPage.getFriendEmailTextBox().sendKeys(em);\n }",
"public void showPasswordPrompt();",
"@Override\n public void onClick(View v) {\n dialog.dismiss();\n// EmailFrom = \"johndoe@privatis.com\";\n Block_Email block_email = new Block_Email(EmailFrom);\n block_email.execute();\n }",
"@Override\n\t\t\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\t\t\tuserName = (String) JOptionPane.showInputDialog(frame,\"Digite o nome:\");\n\t\t\t\t\t}",
"private void registerEmailAddr() {\r\n\t\t\t\tWindow.setTitle(Common.APPNAME);\r\n\t\t\t\tmanualRegisterBtn.setEnabled(false);\r\n\t\t\t\tfinal String emailAddrProvided = emailAddrField.getText();\r\n\t\t\t\tserverResponseLabel.setText(\"\");\r\n\t\t\t\tregisterService.manualRegister(emailAddrProvided,\r\n\t\t\t\t\tnew AsyncCallback<String>() {\r\n\t\t\t\t\t\tpublic void onFailure(Throwable caught) {\r\n\t\t\t\t\t\t\t// Show the RPC error message to the user\r\n\t\t\t\t\t\t\tdialogBox.setText(\"Email Address Registration - Failure\");\r\n\t\t\t\t\t\t\tdialogBox.center();\r\n\t\t\t\t\t\t\tcloseButton.setFocus(true);\r\n\t\t\t\t\t\t\tdialogBox.show();\r\n\t\t\t\t\t\t}\r\n\r\n\t\t\t\t\t\tpublic void onSuccess(String result) {\r\n\t\t\t\t\t\t\tif (\"Verified\".equalsIgnoreCase(result)) {\r\n\t\t\t\t\t\t\t\tString registerReturnUri = GWT.getHostPageBaseURL() + REGISTER_RETURN_URI;\r\n\t\t\t\t\t\t\t\tWindow.open(registerReturnUri, \"_self\", \"\"); \r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\telse {\r\n\t\t\t\t\t\t\t\temailAddrField.setText(\"\");\r\n\t\t\t\t\t\t\t\t/*\r\n\t\t\t\t\t\t\t\tWindow.alert(result);\r\n\t\t\t\t\t\t\t\t*/\r\n\t\t\t\t\t\t\t\tdialogBox.center();\r\n\t\t\t\t\t\t\t\tdialogBox.setAnimationEnabled(true);\r\n\t\t\t\t\t\t\t\tdialogBox.setWidth(\"320px\");\r\n\t\t\t\t\t\t\t\tdialogBox.setText(result);\r\n\t\t\t\t\t\t\t\tcloseButton.setFocus(true);\r\n\t\t\t\t\t\t\t\t/*\r\n\t\t\t\t\t\t\t\tmanualRegisterBtn.setEnabled(true);\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}\r\n\t\t\t\t);\r\n\t\t\t}",
"public void openGmail (View view) {\n TextView textView = (TextView) findViewById(R.id.emailContent);\n String emailContent = textView.getText().toString();\n Log.i(TAG, \"emailContent: \" + emailContent);\n\n /**\n * code was adapted from the information here:\n * https://javadevnotes.com/java-string-split-newline-examples\n */\n /*takes the above string object, splits it into parts seperated by\n * line breaks and puts it into an array\n */\n String[] content = emailContent.split(\"\\\\r?\\\\n\");\n\n // created string objects out of the array for each part of the email\n String emailAddress = content[0];\n String emailSubject = content[1];\n String emailBody = content [2];\n\n /***\n * following code was adapted from here:\n * https://www.javatpoint.com/how-to-send-email-in-android-using-intent\n */\n //opens an email client of users choice and prepopulates with data sent back to mainactivity\n Intent email = new Intent(Intent.ACTION_SEND);\n email.putExtra(Intent.EXTRA_EMAIL, new String[]{emailAddress});\n email.putExtra(Intent.EXTRA_SUBJECT, emailSubject);\n email.putExtra(Intent.EXTRA_TEXT, emailBody);\n\n //need this to prompts email client only\n email.setType(\"message/rfc822\");\n startActivity(Intent.createChooser(email, \"Choose an Email client :\"));\n\n }",
"private void onPersonalizeButtonPressed(View view) {\n UserIdentity userIdentity = new UserIdentity();\n String extUserId = etExtUsrId.getText().toString();\n if (isBlank(extUserId)) {\n Toast.makeText(MainActivity.this, R.string.cannot_personalize, Toast.LENGTH_SHORT).show();\n return;\n }\n userIdentity.setExternalUserId(extUserId);\n mobileMessaging.personalize(userIdentity, null, new MobileMessaging.ResultListener<User>() {\n @Override\n public void onResult(Result<User, MobileMessagingError> result) {\n externalUserId = extUserId;\n Toast.makeText(MainActivity.this, R.string.personalized_success, Toast.LENGTH_SHORT).show();\n prepareInbox();\n }\n });\n }",
"public void enterExistingAccountEmail(String email)\n\t{\n\t\tdriver.findElement(_emailTextField).sendKeys(email);\n\t\tlog.info(\"Entered Existing Email\");\n\t}",
"public boolean displayPrompt(String msg);",
"protected void dialog() {\n TextInputDialog textInput = new TextInputDialog(\"\");\n textInput.setTitle(\"Text Input Dialog\");\n textInput.getDialogPane().setContentText(\"Nyt bord nr: \");\n textInput.showAndWait()\n .ifPresent(response -> {\n if (!response.isEmpty()) {\n newOrderbutton(response.toUpperCase());\n }\n });\n }",
"@Override\n public void onClick(View view) {\n final View textEntryView = factory.inflate(R.layout.email_text_entry, null);\n // text_entry is an Layout XML file containing two text field to display in alert dialog\n final EditText input_email_subject = (EditText) textEntryView.findViewById(R.id.et_emailsubject);\n final EditText input_email_body = (EditText) textEntryView.findViewById(R.id.et_emailbody);\n final AlertDialog.Builder alert = new AlertDialog.Builder(getContext());\n\n alert.setIcon(R.drawable.sendemail)\n .setTitle(\"Draft Your Email\")\n .setView(textEntryView)\n .setPositiveButton(\"Send\",\n new DialogInterface.OnClickListener() {\n public void onClick(DialogInterface dialog, int whichButton) {\n Log.i(\"AlertDialog\",\"TextEntry 1 Entered \"+input_email_subject.getText().toString());\n Log.i(\"AlertDialog\",\"TextEntry 2 Entered \"+input_email_body.getText().toString());\n\n\n\n /* User clicked OK so do some stuff */\n final Intent emailIntent = new Intent(android.content.Intent.ACTION_SEND);\n emailIntent.setData(Uri.parse(\"mailto:\"));\n emailIntent.setType(\"plain/text\");\n\n// emailIntent.putExtra(Intent.EXTRA_EMAIL, new String[] { \"riddhi@appsecco.com\" });\n// emailIntent.putExtra(Intent.EXTRA_EMAIL, new String[] { selected_email });\n emailIntent.putExtra(Intent.EXTRA_EMAIL, new String[] { selected_email });\n\n String email_subject = input_email_subject.getText().toString();\n String email_body = input_email_body.getText().toString();\n\n// // Encrypt email subject and email body\n// try {\n// encrypted_email_subject = encrypt(email_subject);\n// encrypted_email_body = encrypt(email_body);\n// } catch (InvalidKeyException e) {\n// e.printStackTrace();\n// }\n//\n// emailIntent.putExtra(Intent.EXTRA_SUBJECT, encrypted_email_subject);\n// emailIntent.putExtra(Intent.EXTRA_TEXT,encrypted_email_body);\n\n emailIntent.putExtra(Intent.EXTRA_SUBJECT, email_subject);\n emailIntent.putExtra(Intent.EXTRA_TEXT, email_body);\n try{\n startActivity(Intent.createChooser(emailIntent,\"Sending email...\"));\n Log.i(\"SMS sent to \" + selected_email, \"\");\n }catch (Exception e){\n Toast.makeText(getActivity(), \"There is no email client installed.\", Toast.LENGTH_SHORT).show();\n }\n }\n })\n .setNegativeButton(\"Cancel\",\n new DialogInterface.OnClickListener() {\n public void onClick(DialogInterface dialog,\n int whichButton) {\n }\n });\n alert.show();\n }",
"public void twoStageAuthentication() throws IOException, ClassNotFoundException {\r\n int confirmationCode = 1234;\r\n Scanner input = new Scanner(System.in);\r\n System.out.print(\"Enter Your Confirmation code: \");\r\n\r\n for(int confirmCode = input.nextInt(); confirmationCode != confirmCode; confirmCode = input.nextInt()) {\r\n System.out.println(\"The code entered is Incorrect,Please try again!\");\r\n System.out.print(\"Enter confirmation code: \");\r\n }\r\n\r\n this.showMenu(); // Calling the Mentioned Function\r\n }",
"private void show_input() {\n clear();\n\n AlertDialog.Builder builder = new AlertDialog.Builder(this);\n builder.setTitle(\"ادخل رقم البطاقة\");\n\n// Set up the input\n final EditText input = new EditText(this);\n// Specify the type of input expected; this, for example, sets the input as a password, and will mask the text\n input.setInputType(InputType.TYPE_CLASS_NUMBER | InputType.TYPE_TEXT_VARIATION_PASSWORD);\n builder.setView(input);\n\n// Set up the buttons\n builder.setPositiveButton(\"تم\", new DialogInterface.OnClickListener() {\n @Override\n public void onClick(DialogInterface dialog, int which) {\n\n String Customer_id = input.getText().toString();\n getMenuID_Card(getCardURL, Customer_id);\n Log.d(\"karrar\", \"getMenuID_Card func \" + Customer_id);\n session.setScanfor(\"0\");\n\n }\n });\n// builder.setNegativeButton(\"الغاء\", new DialogInterface.OnClickListener() {\n// @Override\n// public void onClick(DialogInterface dialog, int which) {\n// dialog.cancel();\n// }\n// });\n\n builder.show();\n }",
"public String openShowUnconfirmed(){\r\n\t\treturn SUCCESS;\r\n\t}",
"public void emailCollisionError(){\n String[] options = {\"Proceed with Login\",\"Stay Here\"};\n AlertDialog.Builder builder = new AlertDialog.Builder(LoginActivity.this)\n .setTitle(\"You are a registered user, try logging in!\")\n .setItems(options, new DialogInterface.OnClickListener() {\n @Override\n public void onClick(DialogInterface dialog, int which) {\n if(which == 0){\n\n startActivity(new Intent(LoginActivity.this, RegisteredUserLogin.class));\n LoginActivity.this.finish();\n\n }\n }\n });\n builder.show();\n\n }",
"private void showEmailVerificationView(String email) {\n ConstraintLayout lytSignIn = findViewById(R.id.lytSignIn);\n ConstraintLayout lytSignUp = findViewById(R.id.lytSignUp);\n ConstraintLayout lytEmailVerification = findViewById(R.id.lytEmailVerification);\n TextView tvInfo = findViewById(R.id.tvInfo);\n\n lytSignIn.setVisibility(View.GONE);\n lytSignUp.setVisibility(View.GONE);\n\n String info = \"We've sent an email to \" + email + \".\\nPlease check your inbox.\";\n tvInfo.setText(info);\n\n lytEmailVerification.setVisibility(View.VISIBLE);\n }",
"private void showOtpDialog() {\n AlertDialog.Builder builder = new AlertDialog.Builder(this);\n builder.setTitle(\"Enter OTP:\");\n\n // set the custom layout\n final View customLayout = getLayoutInflater().inflate(R.layout.pno_otp_alert_dialog, null);\n builder.setView(customLayout);\n\n // add a button\n builder.setPositiveButton(\"OK\", new DialogInterface.OnClickListener() {\n @Override\n public void onClick(DialogInterface dialog, int which) {\n EditText otp1 = customLayout.findViewById(R.id.et_verificationCode);\n String otp2 = otp1.getText().toString();\n verifyCode(otp2);\n }\n });\n\n // create and show\n // the alert dialog\n AlertDialog dialog = builder.create();\n dialog.show();\n\n }",
"@Override\n public void onClick(View v) {\n final Dialog MyDialog = new Dialog(Login.this);\n MyDialog.requestWindowFeature(Window.FEATURE_NO_TITLE);\n MyDialog.setContentView(R.layout.activity_email_popup);\n\n hello = (Button)MyDialog.findViewById(R.id.hello);\n close = (Button)MyDialog.findViewById(R.id.close);\n\n hello.setEnabled(true);\n close.setEnabled(true);\n\n hello.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View v) {\n\n EditText resetmail=MyDialog.findViewById(R.id.edittext);\n firebaseAuth=FirebaseAuth.getInstance();\n if(resetmail.getText().toString().isEmpty())\n\n Toast.makeText(getApplicationContext(),\"Enter the mail\",Toast.LENGTH_LONG).show();\n else{\n firebaseAuth.sendPasswordResetEmail(resetmail.getText().toString().trim()).addOnCompleteListener(new OnCompleteListener<Void>() {\n @Override\n public void onComplete(@NonNull Task<Void> task) {\n if(task.isSuccessful()){\n Toast.makeText(getApplicationContext(),\"link sent to mail\",Toast.LENGTH_LONG).show();\n\n MyDialog.dismiss();\n }\n else Toast.makeText(getApplicationContext(),\"Invalid email\",Toast.LENGTH_LONG).show();\n }\n });\n }\n }\n });\n\n\n\n\n close.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View v) {\n MyDialog.cancel();\n }\n });\n\n MyDialog.show();\n\n }",
"private void showbadgedialog() {\n final LayoutInflater li = LayoutInflater.from(mContext);\n //Creating a view to get the dialog box\n View confirmDialog = li.inflate(R.layout.dialog_badges, null);\n // number=session.getMobileNumber();\n //Initizliaing confirm button fo dialog box and edittext of dialog box\n final Button buttonconfirm = (Button) confirmDialog.findViewById(R.id.buttonConfirm);\n\n\n AlertDialog.Builder alert = new AlertDialog.Builder(mContext);\n\n alert.setView(confirmDialog);\n\n final AlertDialog alertDialog = alert.create();\n alertDialog.getWindow().setBackgroundDrawable(new ColorDrawable(Color.TRANSPARENT));\n alertDialog.getWindow().setSoftInputMode(WindowManager.LayoutParams.SOFT_INPUT_STATE_ALWAYS_VISIBLE);\n\n alertDialog.show();\n\n //On the click of the confirm button from alert dialog\n buttonconfirm.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View v) {\n alertDialog.dismiss();\n }\n });\n\n }",
"@Click public void aboutEmailButton() {\n\n Intent emailIntent = new Intent(\n Intent.ACTION_SENDTO, Uri.parse(\"mailto:\" + Uri.encode(EMAIL))\n );\n //emailIntent.putExtra(Intent.EXTRA_SUBJECT, subject);\n //emailIntent.putExtra(Intent.EXTRA_TEXT, body);\n\n //startActivity(emailIntent);\n //startActivity(Intent.createChooser(emailIntent, \"Send an email\"));\n\n try {\n startActivity(emailIntent);\n } catch (ActivityNotFoundException e) {\n app.toasty(R.string.error_no_email_client);\n e.printStackTrace();\n }\n }",
"@When(\"enter customer email\")\n\tpublic void enter_customer_email() {\n\t\tsearchCust = new searchCustomerPage(driver);\n\t\tsearchCust.setEmail(\"victoria_victoria@nopCommerce.com\");\n\t\t\n\t}",
"public void enterLoginID() throws Exception {\n\t\tLoginSignupCompanyPage sp = new LoginSignupCompanyPage(driver);\n\n\t\tlog.info(\"Verifying the Login ID is available or not\");\n\t\tAssert.assertTrue(enterLoginID.isDisplayed());\n\t\tenterLoginID.sendKeys(BasePage.getCellData(xlsxName, sheetName, 0, 0));\n\t}",
"public void onClick(DialogInterface dialog,int id) {\n\t\t \t\r\n\t\t \tif(code==Integer.parseInt(userInput.getText()+\"\")){\t \t \r\n\t\t \tIntent i = new Intent(getApplicationContext(), profilemainpage.class);\r\n startActivity(i);\r\n\r\n // closing this screen\r\n finish();\r\n\t\t \t}\r\n\t\t \telse{\r\n\t\t \t\tuserInput.setVisibility(View.GONE);\r\n\t\t \t\ttextV.setText(\"Entered code is incorrect\");\r\n\t\t \t}\r\n\t\t\t\r\n \t\t \r\n \t\r\n\t\t }",
"@Override\r\n\tpublic void actionPerformed(ActionEvent e) {\n\t\tif(EmailSender.fr.getText().equals(\"\"))\r\n\t\t{\r\n\t\t\tJOptionPane.showMessageDialog(EmailSender.ES,\"Please Enter A Valid Email Address To Send From!\");\r\n\t\t\treturn;\r\n\t\t}\r\n\t\t\r\n\t\tif(EmailSender.t.getText().equals(\"\"))\r\n\t\t{\r\n\t\t\tJOptionPane.showMessageDialog(EmailSender.ES, \"Please Enter A Valid Email Address To Send To!\");\r\n\t\t\treturn;\r\n\t\t}\r\n\t\t\r\n\t\tif(EmailSender.subj.getText().contentEquals(\"\"))\r\n\t\t{\r\n\t\t\tint b = JOptionPane.showConfirmDialog(EmailSender.ES, \"Are you sure you want to send this without a subject?\");\r\n\t\t\t\r\n\t\t\tif(b==0)\r\n\t\t\t\tJOptionPane.showMessageDialog(EmailSender.ES, \"Email Sent\");\r\n\t\t}\r\n\t\t\r\n\t\t\r\n\t\tint a = JOptionPane.showConfirmDialog(EmailSender.ES, \"Are you sure you want to send?\");\r\n\t\tif(a==0)// If yes button is pressed a is 0\r\n\t\tJOptionPane.showMessageDialog(EmailSender.ES, \"Email Sent\");\r\n\t\t\r\n\t\t\r\n\t}",
"public void onClick(View arg0) {\n\t\t\t\tString emailAddress = \"achan17@appeyroad.org\";\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}",
"public void promptUser(String string) {\n\t\tJOptionPane.showMessageDialog(frame,string);\n\t\t\n\t}",
"public void onClick(DialogInterface dialog, int id) {\n String groupName = groupNameInput.getText().toString();\n String groupMcptt = mcpttIdInput.getText().toString();\n try {\n MCOPServiceManager.AddressBook.addGroup(new Group(groupMcptt, groupName));\n } catch (IOException e) {\n e.printStackTrace();\n }\n InputMethodManager inputMethodManager = (InputMethodManager) context.getSystemService(Activity.INPUT_METHOD_SERVICE);\n inputMethodManager.hideSoftInputFromWindow(promptsView.getWindowToken(), InputMethodManager.HIDE_NOT_ALWAYS);\n }",
"@Override\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\tSystem.out.println(\"am in Validate click\");\n\t\t\t\t\n\t\t\t\tString u=user.getText();\n\t\t\t\n\t\t\t\tString p=pwd.getText();\n\t\t\t\tif(u.equals(\"seed\")&&p.equals(\"infotech\"))\n\t\t\t\t{\n\t\t\t\t\n\t\t\t\t\tSystem.out.println(\"You are a Valid user\");\n\t\t\t\t}\n\t\t\t\telse\n\t\t\t\t\tSystem.out.println(\"You are a InValid user\");\n\t\t\t\n\t\t\t\t\n\t\t\t}",
"private static void showInputDialog(Context c, int titleID, int messageID, EntryType type, final IInputCallback listener){\n\t\t// Create a textview for the entry\n\t\tfinal EditText et = new EditText(c);\n\t\tswitch(type){\n\t\tcase Number:\n\t\t\tet.setInputType(EditorInfo.TYPE_CLASS_NUMBER);\n\t\t\tbreak;\n\t\tcase String:\n\t\t\tet.setInputType(EditorInfo.TYPE_CLASS_TEXT);\n\t\t\tbreak;\n\t\tdefault:\n\t\t\tthrow new IllegalArgumentException(\"Must supply an EntryType for the input\");\n\t\t}\n\t\t\n\t\tAlertDialog.Builder builder = new AlertDialog.Builder(c);\n\t\t\n\t\tbuilder.setTitle(titleID);\n\t\tif(messageID > -1){\n\t\t\tbuilder.setMessage(messageID);\n\t\t}\n\t\tbuilder.setView(et)\n\t\t.setPositiveButton(R.string.okay, new OnClickListener() {\n\t\t\t\n\t\t\t@Override\n\t\t\tpublic void onClick(DialogInterface dialog, int which) {\n\t\t\t\tlistener.onInput(et.getText().toString());\n\t\t\t}\n\t\t})\n\t\t.setNegativeButton(R.string.close, null);\n\t\t\n\t\tbuilder.create().show();\n\t}",
"@Override\n public void run() {\n\n intent = new Intent(getApplicationContext(), UserMenuActivity.class);\n intent.putExtra(\"EMAIL_ID\", txtloginEmail.getText().toString());\n intent.putExtra(\"CLIENT_ID\", clientId.toString());\n startActivity(intent);\n dialogObject.dismiss();\n }",
"@Override\n\tvoid email() {\n\t\tSystem.out.println(\"email id jdfjdfh@gmail.com\");\n\t\t\n\t}",
"public void onClick(DialogInterface dialog, int id) {\n promptName = (userInput.getText()).toString();\n if(promptName==null || promptName.equals(\"\"))\n {\n starterPrompt();\n }\n }",
"public void onPressValidate(View view) {\n final String validEmail = txtValidEmail.getText().toString();\n if (validEmail.length() == 0) {\n txtValidEmail.requestFocus();\n txtValidEmail.setError(\"Please enter an email address\");\n }\n else if (!validEmail.matches(\"^(.+)@(.+)$\")) {\n txtValidEmail.requestFocus();\n txtValidEmail.setError(\"Invalid email address\");\n }\n else {\n InputMethodManager imm = (InputMethodManager) getSystemService(Context.INPUT_METHOD_SERVICE);\n imm.hideSoftInputFromWindow(view.getWindowToken(),0);\n authenticateUserEmail(validEmail);\n }\n }",
"private void signInEvt() {\n // Retrieve Details\n String email = this.view.getWelcomePanel().getSignInPanel().getEmailText().getText().trim();\n String password = new String(this.view.getWelcomePanel().getSignInPanel().getPasswordText().getPassword()).trim();\n if (!email.equals(\"\") && !password.equals(\"\")) {\n if (model.getSudokuDB().checkLogin(email, password)) {\n // Set Player\n Player player = model.getSudokuDB().loadPlayer(email, password);\n if (player != null) {\n model.setPlayer(model.getSudokuDB().loadPlayer(email, password));\n // Clear Fields\n view.getWelcomePanel().getSignInPanel().clear();\n // Show Home Screen\n refreshHomePanel();\n view.getCardLayoutManager().show(view.getContent(), \"home\");\n } else {\n Object[] options = {\"OK\"};\n JOptionPane.showOptionDialog(this, \"An error occured during sign in, please try again.\", \"Sign In Error\", JOptionPane.OK_OPTION, JOptionPane.ERROR_MESSAGE, null, options, null);\n }\n } else {\n Object[] options = {\"Let me try again\"};\n JOptionPane.showOptionDialog(this, \"The credentials you have provided are invalid, please enter them correctly or create a new account.\", \"Invalid Credentials\", JOptionPane.OK_OPTION, JOptionPane.INFORMATION_MESSAGE, null, options, null);\n }\n } else {\n Object[] options = {\"Alright\"};\n JOptionPane.showOptionDialog(this, \"In order to sign in, all fields must be filled out.\", \"Empty Fields\", JOptionPane.OK_OPTION, JOptionPane.INFORMATION_MESSAGE, null, options, null);\n }\n }",
"public void enterUserId(String userId) {\n\t\tutil.enterTextIntoTextBox(this.loginPageLocators.getUserIdInputBoxElement(), userId, true);\n\t}",
"public void loginMenu(){\n\t\tstate = ATM_State.LOGINID;\n\t\tgui.setDisplay(\"Enter your account ID: \\n\");\n\t}",
"private void showForgotPasswordDialog() {\n LayoutInflater inflater = LayoutInflater.from(this);\n View dialogView = inflater.inflate(R.layout.dialog_forgot_password, null);\n final TextInputEditText emailEditText = dialogView.findViewById(R.id.dialog_forgot_password_value_email);\n //endregion\n\n //region Building the dialog\n AlertDialog.Builder builder = new AlertDialog.Builder(this);\n builder.setTitle(R.string.password_reset);\n\n builder.setPositiveButton(R.string.reset, new DialogInterface.OnClickListener() {\n public void onClick(DialogInterface dialog, int id) {\n\n String email = emailEditText.getText().toString();\n\n mFirebaseAuth.sendPasswordResetEmail(email)\n .addOnCompleteListener(new OnCompleteListener<Void>() {\n @Override\n public void onComplete(@NonNull Task<Void> task) {\n if (task.isSuccessful()) {\n Toast.makeText(SignInActivity.this, R.string.sent_reset_password_email, Toast.LENGTH_SHORT).show();\n } else {\n Toast.makeText(SignInActivity.this, R.string.failed_to_reset_email, Toast.LENGTH_SHORT).show();\n }\n }\n });\n dialog.dismiss();\n }\n });\n builder.setNegativeButton(R.string.cancel, new DialogInterface.OnClickListener() {\n public void onClick(DialogInterface dialog, int id) {\n dialog.dismiss();\n }\n });\n //endregion\n\n builder.setView(dialogView);\n\n AlertDialog dialog = builder.create();\n dialog.show();\n }",
"public void enterEmail(String umail) {\n driver.findElement(Email).sendKeys(umail);\n }",
"@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 emailResult(View view) {\n // Getting username only\n Intent myIntent = getIntent();\n String nameOfUser = myIntent.getStringExtra(\"EditTextValue\");\n\n String result = \"Name: \" + nameOfUser;\n result += \"\\nMy score: \" + score;\n\n // Create a new intent to send information to any mailing app\n Intent myResult = new Intent(Intent.ACTION_SENDTO);\n myResult.setData(Uri.parse(\"mailto:\"));\n myResult.putExtra(Intent.EXTRA_SUBJECT, \"Quiz result for \" + nameOfUser);\n myResult.putExtra(Intent.EXTRA_TEXT, result);\n if (myResult.resolveActivity(getPackageManager()) != null) {\n startActivity(myResult);\n }\n }",
"public void enterAgentEmailAddressInYopmail(String aEmail) throws Exception {\n\t\twdriver.findElement(By.id(\"login\")).click();\n\t\twdriver.findElement(By.id(\"login\")).clear();\n\t\twdriver.findElement(By.id(\"login\")).sendKeys(aEmail);\n\t\twdriver.findElement(By.cssSelector(\"input.sbut\")).click();\n\n\t}",
"public void exportSubject() {\n @SuppressLint(\"InflateParams\") TextInputLayout inputText = (TextInputLayout) fragment.getLayoutInflater()\n .inflate(R.layout.popup_edittext, null);\n if (inputText.getEditText() != null) inputText.getEditText().setInputType(\n InputType.TYPE_CLASS_TEXT | InputType.TYPE_TEXT_VARIATION_PASSWORD);\n inputText.setEndIconMode(TextInputLayout.END_ICON_PASSWORD_TOGGLE);\n inputText.setHint(fragment.getString(R.string.set_blank_password));\n\n // Display the dialog\n DismissibleDialogFragment dismissibleFragment = new DismissibleDialogFragment(\n new AlertDialog.Builder(fragment.requireContext())\n .setTitle(R.string.n2_password_export)\n .setView(inputText)\n .create());\n dismissibleFragment.setPositiveButton(fragment.getString(android.R.string.ok), view -> {\n // Check if password is too short, must be 8 characters in length\n String responseText = \"\";\n if (inputText.getEditText() != null) responseText = inputText.getEditText().getText().toString();\n checkPasswordRequirement(dismissibleFragment, responseText, inputText);\n });\n dismissibleFragment.setNegativeButton(fragment.getString(android.R.string.cancel), view ->\n dismissibleFragment.dismiss());\n dismissibleFragment.show(fragment.getParentFragmentManager(), \"NotesSubjectFragment.6\");\n }",
"public int askId(){\n int id = askInt(\"Id of an element:\");\n return id;\n }",
"@Override\n public void onClick(View arg0) {\n Intent email = new Intent(Intent.ACTION_SEND);\n // Put essentials like email address, subject & body text\n email.putExtra(Intent.EXTRA_EMAIL,\n new String[]{\"jason_lim@rp.edu.sg\"});\n email.putExtra(Intent.EXTRA_SUBJECT,\n \"Daily Grades\");\n //email.putExtra(Intent.EXTRA_TEXT, mydb.getDailyGrade().toString());\n // This MIME type indicates email\n email.setType(\"message/rfc822\");\n // createChooser shows user a list of app that can handle\n // this MIME type, which is, email\n startActivity(Intent.createChooser(email,\n \"Choose an Email client :\"));\n\n }",
"@SuppressLint(\"InflateParams\")\r\n\tprivate void showDialog() {\n\t\tLayoutInflater layoutInflater = LayoutInflater.from(getActivity());\r\n\t\tviewAddEmployee = layoutInflater\r\n\t\t\t\t.inflate(R.layout.activity_dialog, null);\r\n\t\teditText = (EditText) viewAddEmployee.findViewById(R.id.editText1);\r\n\t\ttv_phone = (TextView) viewAddEmployee.findViewById(R.id.tv_phone);\r\n\t\tbt_setting = (Button) viewAddEmployee.findViewById(R.id.bt_setting);\r\n\t\tbt_cancel = (Button) viewAddEmployee.findViewById(R.id.bt_cancel);\r\n\t\tString tel = SharePreferenceUtil.getInstance(\r\n\t\t\t\tgetActivity().getApplicationContext()).getUserTel();\r\n\t\ttv_phone.setText(StringUtils.getTelNum(tel));\r\n\r\n\t\tshowPop();\r\n\r\n\t\tbt_setting.setOnClickListener(new OnClickListener() {\r\n\r\n\t\t\t@Override\r\n\t\t\tpublic void onClick(View v) {\r\n\t\t\t\t// TODO Auto-generated method stub\r\n\t\t\t\tString psd = SharePreferenceUtil.getInstance(\r\n\t\t\t\t\t\tgetActivity().getApplicationContext()).getUserPsd();\r\n\t\t\t\tString password = editText.getText().toString().trim();\r\n\t\t\t\tif (TextUtils.isEmpty(password)) {\r\n\t\t\t\t\tShowToast(\"密码不能为空!\");\r\n\t\t\t\t\treturn;\r\n\t\t\t\t}\r\n\t\t\t\tif (password.equals(psd)) {\r\n\t\t\t\t\tavatorPop.dismiss();\r\n\t\t\t\t\tintentAction(getActivity(), GesturePsdActivity.class);\r\n\r\n\t\t\t\t} else {\r\n\t\t\t\t\tShowToast(\"输入密码错误!\");\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t});\r\n\r\n\t\tbt_cancel.setOnClickListener(new OnClickListener() {\r\n\r\n\t\t\t@Override\r\n\t\t\tpublic void onClick(View v) {\r\n\t\t\t\t// TODO Auto-generated method stub\r\n\t\t\t\tavatorPop.dismiss();\r\n\t\t\t}\r\n\t\t});\r\n\t}",
"public void actionPerformed(ActionEvent arg0) {\n\t\t\t\tLong employeeID = (Long) employeeTable.getValueAt(employeeTable.getSelectedRow(), 6);\n\t\t\t\taddUserDialog.setEmployeeID(employeeID);\n\t\t\t\taddUserDialog.setVisible(true);\n\t\t\t}",
"@Override\n\t\tpublic void onLoginNeedEmailActive(String email, String mailHostUrl) {\n\t\t\tmLoginPending = false;\n\t\t\tcloseLoginDialog();\n\t\t\tif(TextUtils.isEmpty(mailHostUrl)){\n\t\t\t\tString mailUrl=mAccountEdit.getText().toString();\n\t\t\t\tint seperatorPosition = mailUrl.indexOf(\"@\");\n\t\t\t\tmailHostUrl=AddAccountsUtils.MAIL_HEAD+mailUrl.substring(seperatorPosition+1,mailUrl.length());\n\t\t\t}\n\t\t\tAddAccountsUtils.setEmailUrl(mContext, mailHostUrl);// 打开激活邮箱页面\n\t\t\tAddAccountsUtils.setEmailName(mContext, email);\n\t\t\tmLoginErrorDialog=AddAccountsUtils.showErrorDialog(mContext,LoginView.this,AddAccountsUtils.VALUE_DIALOG_LOGIN,ErrorCode.ERR_TYPE_APP_ERROR,ErrorCode.ERR_CODE_EAMIL_NEED_ACTIVE, \"\");\n\t\t}",
"@Override\n public void onClick(View view) {\n final String emailSubject = mEmailSubjectEditText.getText().toString().trim();\n final String emailBody = mEmailBodyEditText.getText().toString().trim();\n\n // Clear errors\n mEmailSubjectTextInputLayout.setError(null);\n mEmailBodyTextInputLayout.setError(null);\n\n // Check user input\n if (TextUtils.isEmpty(emailSubject)) {\n mEmailSubjectTextInputLayout.setError(getString(R.string.email_subject_required_error));\n mEmailSubjectEditText.requestFocus();\n } else if (TextUtils.isEmpty(emailBody)) {\n mEmailBodyTextInputLayout.setError(getString(R.string.email_body_required_error));\n mEmailBodyEditText.requestFocus();\n } else {\n mProgressBar.setVisibility(View.VISIBLE);\n\n Intent intent = new Intent(Intent.ACTION_SEND);\n intent.setType(\"message/rfc822\");\n intent.putExtra(Intent.EXTRA_EMAIL, new String[]{mGovSystem.getEmail()}); // TODO\n intent.putExtra(Intent.EXTRA_SUBJECT, emailSubject);\n intent.putExtra(Intent.EXTRA_TEXT, emailBody);\n try {\n startActivityForResult(Intent.createChooser(intent, getString(R.string.sending_email)), GOV_SYSTEM_REQUEST);\n } catch (android.content.ActivityNotFoundException ex) {\n Toast.makeText(getApplicationContext(), getString(R.string.email_client_error), Toast.LENGTH_SHORT).show();\n }\n }\n }",
"@Override\n public void onClick(DialogInterface dialog, int id) {\n FirebaseAuth auth = FirebaseAuth.getInstance();\n EditText editTextMail = getDialog().findViewById(R.id.editTextPasswordMail);\n String mail = editTextMail.getText().toString();\n\n // Senden der ResetMail durch Firebase\n auth.sendPasswordResetEmail(mail)\n .addOnCompleteListener(new OnCompleteListener<Void>() {\n @Override\n public void onComplete(@NonNull Task<Void> task) {\n if (task.isSuccessful()) {\n // Bei Erfolg Dialog wird geschlossen\n dismiss();\n }\n }\n });\n }",
"public void enterEmail(String email)\n\t{\n\t\tdriver.findElement(_emailTextField).sendKeys(email);\n\t\tlog.info(\"Entered New Email\");\n\t}",
"public void input_details_log()\r\n {\r\n System.out.print(\"\\n Enter your email id: \");\r\n Email=sc.nextLine();\r\n\r\n System.out.print(\" Enter your password: \");\r\n check_passwrd=sc.nextLine();\r\n }",
"@Override\n public void onClick(DialogInterface dialogInterface, int i) {\n\n userphone=editText_phone.getText().toString();\n useremail=editText_email.getText().toString();\n\n if (validate(userphone,useremail)){\n editProfile(user_id,userphone,useremail);\n dialogInterface.dismiss();\n }\n else {\n Toast.makeText(getActivity(), \"Updation Failed\", Toast.LENGTH_SHORT).show();\n }\n\n }",
"@Override\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\tif(name_field.getText().equals(\"\")) {\n\t\t\t\t\tJOptionPane.showMessageDialog(null, \"사용자 이름을 설정해 주세요.\", \"warning\",JOptionPane.WARNING_MESSAGE);\n\t\t\t\t}else {\n\t\t\t\t\tid = name_field.getText();\n\t\t\t\t\t\n\t\t\t\t\tJOptionPane.showMessageDialog(null, \"설정되었습니다.\", \"success\",JOptionPane.INFORMATION_MESSAGE);\n\t\t\t\t\tsetting.setEnabled(false);\n\t\t\t\t\tname_field.setEnabled(false);\n\t\t\t\t\twt.sendMsg();\n\t\t\t\t\t// who_area.append(id + \"\\n\");\n\t\t\t\t}\t\n\t\t\t}",
"private void emailLFEActionPerformed(java.awt.event.ActionEvent evt) {\n }",
"private void btnancSaveMouseClicked(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_btnancSaveMouseClicked\n // TODO add your handling code here:\n if (txtsenderEmail.getText().isEmpty()) {\n JOptionPane.showMessageDialog(this, \n \"Please provide the email address...\", \"Error\", \n JOptionPane.ERROR_MESSAGE);\n\n } else {\n String status = \"\";\n\n for (User user : searchUsers) {\n if (user.getUsername().equals(txtsenderEmail.getText())) {\n status = \"true\";\n break;\n } else {\n status = \"false\";\n }\n }\n\n if (status == \"true\") {\n String stat = sendMessage(txtsenderEmail.getText());\n if (stat == \"success\") {\n JOptionPane.showMessageDialog(this, \n \"Varification Code has been send to your email...\\n\"\n + \" Please type the code below to reset your password \", \n \"Next Step\", JOptionPane.INFORMATION_MESSAGE);\n searchCode.removeAll(searchCode);\n try {\n for (randomCode code : Serialization.\n deserializeRandomCode()) {\n searchCode.addCode(code);\n code.print();\n }\n } catch (IOException | ClassNotFoundException ex) {\n Logger.getLogger(ForgetPassword.class.getName()).\n log(Level.SEVERE, null, ex);\n }\n\n } else {\n JOptionPane.showMessageDialog(this, \n \"Seems to be a internet connection error.. \"\n + \"try again later... \", \"Error\", \n JOptionPane.ERROR_MESSAGE);\n\n }\n\n } else {\n JOptionPane.showMessageDialog(this, \n \"Please Register to the system...\", \"Error\", \n JOptionPane.ERROR_MESSAGE);\n }\n\n }\n \n \n }",
"public void Name_Setter() {\n Dialog<Pair<String, String>> dialog = new Dialog<>();\n dialog.setTitle(\"Developer Login\");\n FontAwesomeIconView icon = new FontAwesomeIconView(FontAwesomeIcon.EXPEDITEDSSL);\n icon.setGlyphSize(40);\n icon.setGlyphStyle(\"-fx-fill:green;\");\n\n dialog.setGraphic(icon);\n dialog.setHeaderText(\"Only Developers Authorised..\");\n\n //set Button types\n ButtonType lbutton = new ButtonType(\"Open\", ButtonData.NO);\n dialog.getDialogPane().getButtonTypes().addAll(lbutton, ButtonType.CANCEL);\n\n //create the username and password labels and fields\n GridPane grid = new GridPane();\n grid.setHgap(10);\n grid.setVgap(10);\n grid.setPadding(new Insets(0, 20, 10, 10));\n\n JFXTextField fld = new JFXTextField();\n fld.setPromptText(\"Developer email\");\n fld.setMinWidth(200);\n\n JFXPasswordField pfld = new JFXPasswordField();\n pfld.setPromptText(\"Developer Password\");\n\n Label infor = new Label(\"Enter Email and Password\");\n\n grid.add(fld, 2, 2);\n grid.add(pfld, 2, 5);\n grid.add(infor, 4, 8);\n\n dialog.getDialogPane().setContent(grid);\n\n Optional<Pair<String, String>> result = dialog.showAndWait();\n\n String pass = pfld.getText();\n String uname = fld.getText();\n\n if (pass.equals(\"erickerickyaah\") && uname.equals(\"erickerickmlz@gmail.com\")) {\n\n reportgenthree.ReportGenThree.NameSetter();\n\n } else {\n\n infor.setText(\"Wrong Password..\");\n }\n\n }",
"public void onClick(DialogInterface dialogBox, int id) {\n String user = userInputDialogEditText.getText().toString();\n if (Util.ONLINE) {\n if (user.equalsIgnoreCase(name)) {\n\n completeBatch();\n\n } else {\n dialogBox.cancel();\n showMessage(\"VALIDATION ERROR\", \"TAGID DOES NOT MATCH\");\n }\n } else {\n boolean b = db.checkUserdropdown(user, user);\n if (b == true) {\n completeBatch();\n } else {\n dialogBox.cancel();\n showMessage(\"VALIDATION ERROR\", \"TAGID DOES NOT MATCH\");\n }\n }\n }",
"private void displayEmailFields() {\n FieldRelatedLabel emailLabel = new FieldRelatedLabel(\"Email\", 750, 270);\n\n invalidEmailLabel = new InvalidFormEntryLabel(\"Email must follow the format:\\nexample@domain.tld\", 910, 290, false);\n\n emailTF = new TextField();\n emailTF.relocate(750, 300);\n emailTF.textProperty().addListener(e->{FormValidatorPokeMongo.handleEmail(emailTF, invalidEmailLabel); });\n\n sceneNodes.getChildren().addAll(emailLabel, invalidEmailLabel, emailTF);\n }",
"@Override\r\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\tEnviarMailVisMed mail = new EnviarMailVisMed();\r\n\t\t\t\tmail.setVisible(true);\r\n\t\t\t}",
"private void usernameTakenDialog() {\n Dialog dialog = new Dialog(\"Username taken\", cloudSkin, \"dialog\") {\n public void result(Object obj) {\n System.out.println(\"result \" + obj);\n }\n };\n dialog.text(\"This username has already been taken, try a new one.\");\n dialog.button(\"OK\", true);\n dialog.show(stage);\n }",
"public boolean onOptionsItemSelected(MenuItem item) {\n\n\t\tIntent intent;\n\n\t\tswitch (item.getItemId()) {\n\t\tcase R.id.idd_new_id:\n\t\t\tAlertDialog.Builder alert = new AlertDialog.Builder(this);\n\t\t\talert.setTitle(\"New Identity Value\");\n\t\t\talert.setMessage(\"Value\");\n\n\t\t\t// Set an EditText view to get user Input\n\t\t\tfinal EditText edtName = new EditText(this);\n\t\t\talert.setView(edtName);\n\n\t\t\talert.setPositiveButton(\"Ok\",\n\t\t\t\t\tnew DialogInterface.OnClickListener() {\n\n\t\t\t\t@Override\n\t\t\t\tpublic void onClick(DialogInterface dialog, int button) {\n\t\t\t\t\t// TODO Auto-generated method stub\n\t\t\t\t\tString newIdentityValue = edtName.getText()\n\t\t\t\t\t.toString().trim();\n\t\t\t\t\tif (newIdentityValue.length() > 0) {\n\t\t\t\t\t\ttry {\n\t\t\t\t\t\t\tFileInputStream fis = openFileInput(\"s\"\t+ encryptedIdName);\n\t\t\t\t\t\t\tProperties properties = new Properties();\n\t\t\t\t\t\t\tproperties.load(fis);\n\t\t\t\t\t\t\tfis.close();\n\n\t\t\t\t\t\t\tnumberOfId = Integer.parseInt(properties.getProperty(\"n\"));\n\t\t\t\t\t\t\tproperties.setProperty(\"n\", String.valueOf(++numberOfId));\n\t\t\t\t\t\t\tproperties.setProperty(\"i\" + numberOfId, StaticBox.keyCrypto.encrypt(newIdentityValue));\n\t\t\t\t\t\t\tproperties.setProperty(\"t\" + numberOfId, StaticBox.keyCrypto.encrypt(\"\"));\n\t\t\t\t\t\t\tproperties.setProperty(\"w\" + numberOfId, StaticBox.keyCrypto.encrypt(\"\"));\n\n\t\t\t\t\t\t\tFileOutputStream fos = openFileOutput(\"s\"+ encryptedIdName, Context.MODE_PRIVATE);\n\t\t\t\t\t\t\tproperties.store(fos, null);\n\t\t\t\t\t\t\tfos.flush();\n\t\t\t\t\t\t\tfos.close();\n\t\t\t\t\t\t\tToast.makeText(getBaseContext(), \"Identity created\", Toast.LENGTH_SHORT).show();\n\t\t\t\t\t\t\trefreshIdentityList();\n\t\t\t\t\t\t} catch (FileNotFoundException e) {\n\t\t\t\t\t\t} catch (IOException e) {\n\t\t\t\t\t\t\te.printStackTrace();\n\t\t\t\t\t\t}\n\t\t\t\t\t} else {\n\t\t\t\t\t\tToast.makeText(getBaseContext(),\n\t\t\t\t\t\t\t\t\"Fail create identity\",\n\t\t\t\t\t\t\t\tToast.LENGTH_SHORT).show();\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t});\n\n\t\t\talert.setNegativeButton(\"Cancel\",\n\t\t\t\t\tnew DialogInterface.OnClickListener() {\n\n\t\t\t\t@Override\n\t\t\t\tpublic void onClick(DialogInterface dialog, int button) {\n\t\t\t\t\t// TODO Auto-generated method stub\n\t\t\t\t}\n\t\t\t});\n\t\t\talert.show();\n\t\t\tbreak;\n\n\t\t\t/*\n\t\t\t * Go to Tag Activity\n\t\t\t */\n\t\tcase R.id.idd_change_tag:\n\n\t\t\tintent = new Intent(IdentityListView.this, TagListView.class);\n\t\t\tstartActivity(intent);\n\t\t\tbreak;\n\n\t\t\t/*\n\t\t\t * Go to Tag Activity\n\t\t\t */\t\t\n\t\tcase R.id.idd_change_ws:\n\t\t\tintent = new Intent(IdentityListView.this, WorkspaceListView.class);\n\t\t\tstartActivity(intent);\n\t\t\tbreak;\n\t\t}\n\n\t\treturn true;\n\t}",
"public void actionPerformed(ActionEvent arg0) {\n\t\t\t\tuser = txt_usr.getText();\n\t\t\t\tpass = txt_pass.getText();\n\t\t\t\t//check password or id is correct or not\n\t\t\t\tif(user.equals(\"test\") && pass.equals(\"12345\")) {\n\t\t\t\t\t//if both are correct user will be loged in\n\t\t\t\t\tAccountHome reg = new AccountHome();\n\t\t\t\t\treg.setVisible(true);\n\t\t\t\t\tdispose();\n\t\t\t\t}\n\t\t\t\telse {\n\t\t\t\t\t//if user input incorrect details he will get alert message to input correct details\n\t\t\t\t\tJOptionPane.showMessageDialog(null,\"Wrong Password / Username\");\n\t\t\t\t\ttxt_usr.setText(\"\");\n\t\t\t\t\ttxt_pass.setText(\"\");\n\t\t\t\t\ttxt_usr.requestFocus();\n\t\t\t\t}\n\t\t\t}",
"@Override\n\tpublic void hideMailDialog() {\n\t\t\n\t}",
"public void promptSubmitReview() {\n ZenDialog.builder().withBodyText(C0880R.string.prompt_submit_review).withDualButton(C0880R.string.cancel, 0, C0880R.string.submit, DIALOG_REQ_SUBMIT).create().show(getFragmentManager(), (String) null);\n }",
"private void composeEmail() {\n Intent intent = new Intent(Intent.ACTION_SENDTO);\n intent.setData(Uri.parse(\"mailto:martinjthorne@gmail.com\"));\n if (intent.resolveActivity(getActivity().getPackageManager()) != null) {\n startActivity(intent);\n }\n }",
"public void onClick(DialogInterface dialog,int id) {\n\t\t\t\t\t\t\n\t\t\t\t\t String input_text = userInput.getText().toString();\n\t\t\t\t\t \n\t\t\t\t\t if (!input_text.isEmpty()){\n\t\t\t\t\t \t\n\t\t\t\t\t\t\t\tToast.makeText(\n\t\t\t\t\t\t\t\t\t\tgetActivity(),\n\t\t \"You've entered: \"+userInput.getText()+\"\\nas your response.\\nPress next button to continue.\",\n\t\t Toast.LENGTH_SHORT).show();\n\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t//hash the number before set as response\n\t\t\t\t\t\t\t\tinput_text = Encoder.hashPhoneNumber(input_text);\n\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t//setting the response for that survey question\n\t\t\t\t\t\t\t\teventbean.setTieResponse(input_text);\n\t\t\t\t\t\n\t\t\t\t\t\t\t\tresponse_tv.setVisibility(View.VISIBLE);\n\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t// show user input as question answer\n\t\t\t\t\t\t\t\tString response = userInput.getText().toString();\n\t\t\t\t\t\t\t\tresponse_tv.setText(response);\n\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t// notify the activity to enable going next\n\t\t\t\t\t\t\t\tresponseCallBack.onEventResponded(eventbean.getIndex(),eventbean.getQid(),\"X\",\"0\");\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}else{\n\t\t\t\t\t \t\t\n\t\t\t\t\t \t\tToast.makeText(\n\t\t\t\t\t \t\t\t\tgetActivity(),\n\t\t \"You have NOT entered your response.\",\n\t\t Toast.LENGTH_SHORT).show();\n\t\t\t\t\t \t\t\n\t\t\t\t\t \t}\n\t\t\t\t\t\t\n\t\t\t\t\t }",
"public static String inputBox(String promptMsg) {\n return JOptionPane.showInputDialog(promptMsg);\n }",
"@When (\"^Enter email and password$\")\t\t\t\t\t\n public void Enter_email_and_password() throws Throwable \t\t\t\t\t\t\t\n { \t\t\n driver.findElement(By.id(\"identifierId\")).sendKeys(\"halamohamed86757556\");\n driver.findElement(By.xpath(\"//*[@id='identifierNext']/content/span\")).click();\n driver.findElement(By.name(\"password\")).sendKeys(\"halamohamed12345\");\t\t\t\t\n }",
"public void setEmailID(String emailID) {\n this.emailID = emailID;\n }"
] |
[
"0.65931374",
"0.65840226",
"0.6536549",
"0.648942",
"0.64448404",
"0.63257843",
"0.6268225",
"0.6132105",
"0.61081696",
"0.60949856",
"0.5973427",
"0.59635895",
"0.58999634",
"0.58852094",
"0.58841896",
"0.5882737",
"0.5873745",
"0.5798977",
"0.57931894",
"0.5782095",
"0.57406694",
"0.5739098",
"0.5727373",
"0.5708968",
"0.5672974",
"0.5668102",
"0.5659776",
"0.5636489",
"0.56026083",
"0.56003606",
"0.55945647",
"0.5582708",
"0.55748284",
"0.5566444",
"0.55603397",
"0.5554893",
"0.5543628",
"0.5534113",
"0.5525355",
"0.5522826",
"0.5522293",
"0.5491515",
"0.5485283",
"0.5482185",
"0.54786354",
"0.5478243",
"0.54720837",
"0.5468265",
"0.5462126",
"0.5460431",
"0.5458848",
"0.5440444",
"0.54264665",
"0.5426338",
"0.54062724",
"0.5403983",
"0.5388599",
"0.5386487",
"0.538397",
"0.53834224",
"0.53767014",
"0.53756654",
"0.536587",
"0.5365633",
"0.5363725",
"0.5360725",
"0.53456366",
"0.53449064",
"0.53424734",
"0.534074",
"0.5333813",
"0.533302",
"0.53276545",
"0.53145313",
"0.53068745",
"0.52960175",
"0.5290842",
"0.52907866",
"0.52903444",
"0.5289141",
"0.5286191",
"0.5276214",
"0.52746135",
"0.5273848",
"0.52736384",
"0.5272532",
"0.52710754",
"0.5265745",
"0.5259061",
"0.52535075",
"0.5252621",
"0.52465796",
"0.5242457",
"0.52412796",
"0.5237302",
"0.5229817",
"0.52273494",
"0.5227313",
"0.5226906",
"0.52235776",
"0.5216423"
] |
0.0
|
-1
|
Validate the user inputs and check for format errors and minimum requirement errors
|
private boolean validateInputs() {
boolean bValid = true;
// Extract the inputs entered by the user and verify them
String strEmail = m_tfUserEmailID.getText().toString();
String strPassword = m_tfUserPassword.getText().toString();
// Check if the e-mail format is right
if (strEmail.isEmpty() || !android.util.Patterns.EMAIL_ADDRESS.matcher(strEmail).matches()) {
m_tfUserEmailID.setError("Enter a valid email address");
bValid = false;
} else {
m_tfUserEmailID.setError(null);
}
// Check if the password is at least 6 characters long and within 12 characters
if (strPassword.isEmpty() || strPassword.length() < 6 || strPassword.length() > 12) {
m_tfUserPassword.setError("Must be between 6-12 alphanumeric characters");
bValid = false;
} else {
m_tfUserPassword.setError(null);
}
return bValid;
}
|
{
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
}
|
[
"private boolean checkInputFields(){\r\n\t\tString allertMsg = \"Invalid input: \" + System.getProperty(\"line.separator\");\r\n\t\t\r\n\t\t//Check input for MCS text field\r\n\t\ttry{\r\n\t\t\tFloat testValue = Float.parseFloat(m_MCSTf.getText());\r\n\t\t\tif(testValue < 0 || testValue > 1)\r\n\t\t\t\tthrow new NumberFormatException();\r\n\t\t}catch (NumberFormatException e){\r\n\t\t\tallertMsg += \"Please enter a number between 0 and 1 as a MCS score.\" + System.getProperty(\"line.separator\");\r\n\t\t}\r\n\t\t//Check input for relevance score weight and coherence score weight text fields\r\n\t\ttry{\r\n\t\t\tFloat relScoreW = Float.parseFloat(m_RelScoreTf.getText());\r\n\t\t\tFloat cohScoreW = Float.parseFloat(m_CohScoreTf.getText());\r\n\t\t\tif(relScoreW < 0 || relScoreW > 1)\r\n\t\t\t\tthrow new NumberFormatException();\r\n\t\t\tif(cohScoreW < 0 || cohScoreW > 1)\r\n\t\t\t\tthrow new NumberFormatException();\r\n\t\t\tif((relScoreW + cohScoreW) != 1)\r\n\t\t\t\tthrow new NumberFormatException();\r\n\t\t}catch (NumberFormatException e){\r\n\t\t\tallertMsg += \"Please enter a number between 0 and 1 as a weight for relevance and coherence score.\" + System.getProperty(\"line.separator\");\r\n\t\t\tallertMsg += \"Sum of the weights for relevance and coherence score must be 1.\" + System.getProperty(\"line.separator\");\r\n\t\t}\r\n\t\t//Check input for MCS text field\r\n\t\ttry{\r\n\t\t\tFloat testValue = Float.parseFloat(m_KeyTf.getText());\r\n\t\t\tif(testValue < 0)\r\n\t\t\t\tthrow new NumberFormatException();\r\n\t\t}catch (NumberFormatException e){\r\n\t\t\tallertMsg += \"Please enter a positive number as multiplier for keyword concepts.\" + System.getProperty(\"line.separator\");\r\n\t\t}\r\n\t\t//Check input for category confidence weight\r\n\t\ttry{\r\n\t\t\tFloat testValue = Float.parseFloat(m_CatConfTf.getText());\r\n\t\t\tif(testValue < 0)\r\n\t\t\t\tthrow new NumberFormatException();\r\n\t\t}catch (NumberFormatException e){\r\n\t\t\tallertMsg += \"Please enter a positive number as a weight for the weight of the category confidence of concepts.\" + System.getProperty(\"line.separator\");\r\n\t\t}\r\n\t\t//Check input for weight of repeated concepts\r\n\t\ttry{\r\n\t\t\tFloat testValue = Float.parseFloat(m_RepeatTf.getText());\r\n\t\t\tif(testValue < 0)\r\n\t\t\t\tthrow new NumberFormatException();\r\n\t\t}catch (NumberFormatException e){\r\n\t\t\tallertMsg += \"Please enter a positive number as a weight for repeated concepts.\" + System.getProperty(\"line.separator\");\r\n\t\t}\r\n\t\t//Check input for number of output categories\r\n\t\ttry{\r\n\t\t\tInteger testValue = Integer.parseInt(m_MaxCatsTf.getText());\r\n\t\t\tif(testValue < 1)\r\n\t\t\t\tthrow new NumberFormatException();\r\n\t\t}catch (NumberFormatException e){\r\n\t\t\tallertMsg += \"Please enter a positive number for the maximum number of output categories.\" + System.getProperty(\"line.separator\");\r\n\t\t}\r\n\t\ttry{\r\n\t\t\tInteger testValue = Integer.parseInt(m_MinCatsTf.getText());\r\n\t\t\tif(testValue < 1)\r\n\t\t\t\tthrow new NumberFormatException();\r\n\t\t}catch (NumberFormatException e){\r\n\t\t\tallertMsg += \"Please enter a positive number for the minimum number of output categories.\" + System.getProperty(\"line.separator\");\r\n\t\t}\r\n\t\ttry{\r\n\t\t\tFloat testValue = Float.parseFloat(m_MinCatScoreTf.getText());\r\n\t\t\tif(testValue < 0.0f || testValue > 1.0f)\r\n\t\t\t\tthrow new NumberFormatException();\r\n\t\t}catch (NumberFormatException e){\r\n\t\t\tallertMsg += \"Please enter a positive number between 0 and 1 as minimum category score.\" + System.getProperty(\"line.separator\");\r\n\t\t}\r\n\t\tif(allertMsg.length() > 18){\r\n\t\t\tAlert alert = new Alert(AlertType.ERROR);\r\n\t\t\talert.setContentText(allertMsg);\r\n\t\t\talert.showAndWait();\r\n\t\t\treturn false;\r\n\t\t}\r\n\t\treturn true;\r\n\t}",
"public boolean validateForm() {\r\n\t\tint validNum;\r\n\t\tdouble validDouble;\r\n\t\tString lengthVal = lengthInput.getText();\r\n\t\tString widthVal = widthInput.getText();\r\n\t\tString minDurationVal = minDurationInput.getText();\r\n\t\tString maxDurationVal = maxDurationInput.getText();\r\n\t\tString evPercentVal = evPercentInput.getText();\r\n\t\tString disabilityPercentVal = disabilityPercentInput.getText();\r\n\t\t\r\n\t\t/**\r\n\t\t * Step.1 - Ensure all inputs are numbers\r\n\t\t */\r\n\t\t\r\n\t\t// Try to parse length as int\r\n\t\ttry {\r\n\t\t\tvalidNum = Integer.parseInt(lengthVal);\r\n\t } catch (NumberFormatException e) {\r\n\t \tsetErrorMessage(\"Length must be an integer\");\r\n\t return false;\r\n\t }\r\n\t\t\r\n\t\t// Try to parse width as int\r\n\t\ttry {\r\n\t\t\tvalidNum = Integer.parseInt(widthVal);\r\n\t } catch (NumberFormatException e) {\r\n\t \tsetErrorMessage(\"Width must be an integer\");\r\n\t return false;\r\n\t }\r\n\t\t\r\n\t\t// Try to parse width as int\r\n\t\ttry {\r\n\t\t\tvalidNum = Integer.parseInt(minDurationVal);\r\n\t } catch (NumberFormatException e) {\r\n\t \tsetErrorMessage(\"Min Duration must be an integer\");\r\n\t return false;\r\n\t }\r\n\t\t\r\n\t\t// Try to parse width as int\r\n\t\ttry {\r\n\t\t\tvalidNum = Integer.parseInt(maxDurationVal);\r\n\t } catch (NumberFormatException e) {\r\n\t \tsetErrorMessage(\"Max Duration must be an integer\");\r\n\t return false;\r\n\t }\r\n\t\t\r\n\t\t// Try to parse width as int\r\n\t\ttry {\r\n\t\t\tvalidDouble = Double.parseDouble(evPercentVal);\r\n\t } catch (NumberFormatException e) {\r\n\t \tsetErrorMessage(\"EV % must be a number\");\r\n\t return false;\r\n\t }\r\n\t\t\r\n\t\t// Try to parse width as int\r\n\t\ttry {\r\n\t\t\tvalidDouble = Double.parseDouble(disabilityPercentVal);\r\n\t } catch (NumberFormatException e) {\r\n\t \tsetErrorMessage(\"Disability % must be a number\");\r\n\t return false;\r\n\t }\r\n\t\t\r\n\t\t/**\r\n\t\t * Step.2 - Ensure all needed inputs are non-zero\r\n\t\t */\r\n\t\t\r\n\t\tvalidNum = Integer.parseInt(lengthVal);\r\n\t\tif (validNum <= 0) {\r\n\t\t\tsetErrorMessage(\"Length must be greater than 0\");\r\n\t\t\treturn false;\r\n\t\t}\r\n\t\t\r\n\t\tvalidNum = Integer.parseInt(widthVal);\r\n\t\tif (validNum <= 0) {\r\n\t\t\tsetErrorMessage(\"Width must be greater than 0\");\r\n\t\t\treturn false;\r\n\t\t}\r\n\t\t\r\n\t\tvalidNum = Integer.parseInt(minDurationVal);\r\n\t\tif (validNum < 10) {\r\n\t\t\tsetErrorMessage(\"Min Duration must be at least 10\");\r\n\t\t\treturn false;\r\n\t\t}\r\n\t\t\r\n\t\tvalidNum = Integer.parseInt(maxDurationVal);\r\n\t\tif (validNum < 10) {\r\n\t\t\tsetErrorMessage(\"Max Duration must be at least 10\");\r\n\t\t\treturn false;\r\n\t\t}\r\n\t\t\r\n\t\tvalidDouble = Double.parseDouble(evPercentVal);\r\n\t\tif (validDouble < 0) {\r\n\t\t\tsetErrorMessage(\"EV % can't be less than 0\");\r\n\t\t\treturn false;\r\n\t\t}\r\n\t\t\r\n\t\tvalidDouble = Double.parseDouble(disabilityPercentVal);\r\n\t\tif (validDouble < 0) {\r\n\t\t\tsetErrorMessage(\"Disability % can't be less than 0\");\r\n\t\t\treturn false;\r\n\t\t}\r\n\t\t\r\n\t\t/**\r\n\t\t * Step.3 - Ensure Max Duration can't be smaller than Min Duration\r\n\t\t */\r\n\t\t\r\n\t\tif (Integer.parseInt(minDurationVal) > Integer.parseInt(maxDurationVal)) {\r\n\t\t\tsetErrorMessage(\"Max Duration can't be less than Min Duration\");\r\n\t\t\treturn false;\r\n\t\t}\r\n\t\t\r\n\t\t/**\r\n\t\t * Step.4 - Ensure values aren't too large for the system to handle\r\n\t\t */\r\n\t\t\r\n\t\tif (Integer.parseInt(lengthVal) > 15) {\r\n\t\t\tsetErrorMessage(\"Carpark length can't be greater than 15 spaces\");\r\n\t\t\treturn false;\r\n\t\t}\r\n\r\n\t\tif (Integer.parseInt(widthVal) > 25) {\r\n\t\t\tsetErrorMessage(\"Carpark width can't be greater than 25 spaces\");\r\n\t\t\treturn false;\r\n\t\t}\r\n\t\tif (Integer.parseInt(minDurationVal) > 150) {\r\n\t\t\tsetErrorMessage(\"Min Duration can't be greater than 150\");\r\n\t\t\treturn false;\r\n\t\t}\r\n\t\t\r\n\t\tif (Integer.parseInt(maxDurationVal) > 300) {\r\n\t\t\tsetErrorMessage(\"Max Duration can't be greater than 300\");\r\n\t\t\treturn false;\r\n\t\t}\r\n\t\t\r\n\t\tif (Double.parseDouble(evPercentVal) > 100) {\r\n\t\t\tsetErrorMessage(\"EV % can't be greater than 100\");\r\n\t\t\treturn false;\r\n\t\t}\r\n\t\t\r\n\t\tif (Double.parseDouble(disabilityPercentVal) > 100) {\r\n\t\t\tsetErrorMessage(\"Disability % can't be greater than 100\");\r\n\t\t\treturn false;\r\n\t\t}\r\n\t\t\r\n\t\tif (Integer.parseInt(minDurationVal) > 150) {\r\n\t\t\tsetErrorMessage(\"Min Duration can't be greater than 150\");\r\n\t\t\treturn false;\r\n\t\t}\r\n\t\t\r\n\t\treturn true;\r\n\t}",
"public String checkFormat() {\r\n\t\t\r\n\t\tString msg = null;\r\n\t\t\r\n\t\ttry {\t\t\t\t\t\t\t\t\t\t\t//input is not a number\r\n\t\t\t\r\n\t\t\tDouble.parseDouble(price.getText());\r\n\t\t\tInteger.parseInt(quantity.getText());\r\n\t\t\t \r\n\t\t}\r\n\t\t\r\n\t\tcatch(Exception e) {\r\n\t\t\t\r\n\t\t\treturn msg = \"Data format is invalid\";\r\n\t\t\t\r\n\t\t}\r\n\t\t\r\n\t\tif(name.getText().isEmpty() \t\t\t\t\t//wine name is empty\r\n\t\t\t\t|| name.getText().length() > 30\t\t\t//wine name is more than 30 letters\r\n\t\t\t\t\t|| quantity.getText().isEmpty()\t\t//quantity is empty\r\n\t\t\t\t\t\t||price.getText().isEmpty()\t\t//price is empty\r\n\t\t\t\t\t\t\t||((!(price.getText().length() - price.getText().indexOf('.') == 3))\t//price is not two decimal spaces \r\n\t\t\t\t\t\t\t\t\t&& price.getText().indexOf('.') != -1))\r\n\t\t{\r\n\t\t\t\r\n\t\t\tmsg = \"Data format is invalid\";\t\r\n\t\t\t\r\n\t\t}\r\n\t\t\r\n\t\telse {\r\n\t\t\t\r\n\t\t\tmsg = null;\r\n\t\t\t\r\n\t\t}\r\n\t\t\r\n\t\treturn msg;\r\n\t\t\r\n\t}",
"public void validateInputs(ActionEvent actionEvent) {\n //retrieve the inputs\n try {\n productNameInput = productNameField.getText();\n if (productNameInput.equals(\"\")) {\n throw new myExceptions(\"Product Name: Enter a string.\\n\");\n }\n }\n catch (myExceptions ex) {\n errorMessageContainer += ex.getMessage();\n isInputValid = false;\n }\n\n try {\n productPriceInput = Double.parseDouble(productPriceField.getText());\n if (productPriceField.getText().equals(\"\")) {\n throw new myExceptions(\"Price field: enter a value..\\n\");\n }\n if (productPriceInput <= 0) {\n throw new myExceptions(\"Price field: enter a value greater than 0.\\n\");\n }\n }\n catch (myExceptions priceValidation) {\n errorMessageContainer += priceValidation.getMessage();\n isInputValid = false;\n\n }\n catch (NumberFormatException ex) {\n errorMessageContainer += \"Price field: enter a positive number. Your input can contain decimals. \\n\";\n isInputValid = false;\n\n }\n\n try {\n maxInventoryLevelInput = Integer.parseInt(maxInventoryField.getText());\n minInventoryLevelInput = Integer.parseInt(minInventoryField.getText());\n if (maxInventoryField.getText().equals(\"\") || minInventoryField.getText().equals(\"\") || maxInventoryLevelInput <= 0 || minInventoryLevelInput <= 0) {\n throw new myExceptions(\"Min and Max fields: enter values for the minimum and maximum inventory fields.\\n\");\n }\n if (maxInventoryLevelInput < minInventoryLevelInput) {\n throw new myExceptions(\"Max inventory MUST be larger than the minimum inventory.\\n\");\n }\n\n }\n catch (NumberFormatException ex) {\n errorMessageContainer += \"Min and Max fields: enter a positive whole number.\\n\";\n isInputValid = false;\n\n }\n catch (myExceptions minMaxValidation) {\n errorMessageContainer += minMaxValidation.getMessage();\n isInputValid = false;\n\n }\n\n try {\n productInventoryLevel = Integer.parseInt(inventoryLevelField.getText());\n if (inventoryLevelField.getText().equals(\"\")) {\n throw new myExceptions(\"Inventory level: enter a number greater than 0.\\n\");\n }\n if (productInventoryLevel <= 0) {\n throw new myExceptions(\"Inventory level: enter a number greater than 0.\\n\");\n }\n if (productInventoryLevel > maxInventoryLevelInput || productInventoryLevel < minInventoryLevelInput) {\n throw new myExceptions(\"Inventory level: value must be between max and min.\\n\");\n }\n }\n catch (NumberFormatException ex) {\n errorMessageContainer += \"Inventory level: enter a positive whole number.\\n\";\n isInputValid = false;\n\n }\n catch (myExceptions stockValidation) {\n errorMessageContainer += stockValidation.getMessage();\n isInputValid = false;\n\n }\n\n errorMessageLabel.setText(errorMessageContainer);\n errorMessageContainer = \"\";\n\n }",
"public void printValidateInformation() {\n\n if(!validateFirstName()){\n System.out.println(\"The first name must be filled in\");\n }\n if(!validateFirstNameLength()){\n System.out.println(\"The first name must be at least 2 characters long.\");\n }\n if(!validateLastName()){\n System.out.println(\"The last name must be filled in\");\n }\n if(!validateLastNameLength()){\n System.out.println(\"The last name must be at least 2 characters long.\");\n }\n if(!validateZipcode()){\n System.out.println(\"The zipcode must be a 5 digit number.\");\n }\n if (!validateEmployeeID()){\n System.out.println(\"The employee ID must be in the format of AA-1234.\");\n }\n\n if(validateFirstName() && validateFirstNameLength() && validateLastName() && validateLastNameLength()\n && validateZipcode() && validateEmployeeID()){\n System.out.println(\"There were no errors found.\");\n }\n }",
"public void validate(){\r\n\t\ttry{\r\n\t\t\t//First name, last name, date of birth and email are compulsory.\r\n\t\tif(FirstName==null||LastName==null||Dob==null||Email==null) \r\n\t\t\tthrow new Exception(\"One of the field is Empty :\\n(First name / last name / dob / email )\");\r\n\t\tif(TelephoneNumber!=0||MobileNumber!=0)\r\n\t\t\tthrow new Exception(\"Enter Contact Number\");\r\n\t\t\r\n\t\t}\r\n\t\tcatch(Exception e){\r\n\t\t\tSystem.out.println(e);\r\n\t\t}\r\n\t\t\r\n\t\t/*finally{\r\n\t\t\tSystem.out.println(\"Program Executed\");\r\n\t\t}*/\r\n\t}",
"private void validateInputParameters(){\n\n }",
"private void checkFields() {\n if (month.getText().toString().isEmpty()) {\n month.setError(\"enter a month\");\n month.requestFocus();\n return;\n }\n if (day.getText().toString().isEmpty()) {\n day.setError(\"enter a day\");\n day.requestFocus();\n return;\n }\n if (year.getText().toString().isEmpty()) {\n year.setError(\"enter a year\");\n year.requestFocus();\n return;\n }\n if (hour.getText().toString().isEmpty()) {\n hour.setError(\"enter an hour\");\n hour.requestFocus();\n return;\n }\n if (minute.getText().toString().isEmpty()) {\n minute.setError(\"enter the minute\");\n minute.requestFocus();\n return;\n }\n if (AMorPM.getText().toString().isEmpty()) {\n AMorPM.setError(\"enter AM or PM\");\n AMorPM.requestFocus();\n return;\n }\n if (place.getText().toString().isEmpty()) {\n place.setError(\"enter the place\");\n place.requestFocus();\n return;\n }\n }",
"private boolean isInputValid() {\n return true;\n }",
"public void validate() {\n transportStats.validate(this);\n\n for (String unitName : produces) {\n Args.validate(!UnitFactory.hasUnitForName(unitName), \"Illegal unit name \" + unitName + \" in build unit stats\");\n }\n\n for (Map.Entry<String, String> entry : buildCities.entrySet()) {\n String terrainName = entry.getKey();\n String cityName = entry.getValue();\n Args.validate(!TerrainFactory.hasTerrainForName(terrainName), \"Illegal terrain \" + terrainName + \" in build cities stats\");\n Args.validate(!CityFactory.hasCityForName(cityName), \"Illegal city \" + cityName + \" in build cities stats\");\n }\n\n for (String unitName : supplyUnits) {\n Args.validate(!UnitFactory.hasUnitForName(unitName), \"Illegal unit \" + unitName + \" in supply units stats\");\n }\n\n for (String unitName : supplyUnitsInTransport) {\n Args.validate(!UnitFactory.hasUnitForName(unitName), \"Illegal unit \" + unitName + \" in supply units in transport stats\");\n }\n\n Args.validate(StringUtil.hasContent(primaryWeaponName) && !WeaponFactory.hasWeapon(primaryWeaponName),\n \"Illegal primary weapon \" + primaryWeaponName + \" for unit \" + name);\n Args.validate(StringUtil.hasContent(secondaryWeaponName) && !WeaponFactory.hasWeapon(secondaryWeaponName),\n \"Illegal secondary weapon \" + secondaryWeaponName + \" for unit \" + name);\n }",
"private boolean isValidInput() {\n\t\treturn true;\n\t}",
"public void validateInput(String fName, String lName, String zipCode, String employID){\n boolean firstname = firstNameTwoCharactersLong(fName);\n //boolean firstFilled = firstNameFilled\n boolean firstFilled = firstNameFilled(fName);\n //boolean lastname = lastNameTwoCharactersLong\n boolean lastname = lastNameTwoCharactersLong(lName);\n //boolean lastFilled = lastNameFilled\n boolean lastFilled = lastNameFilled(lName);\n //boolean the rest\n boolean employeeID = employeeIDValid(employID);\n boolean zCode = zipCodeValid(zipCode);\n\n //if all of them are valid=true then error prints \"there are no errors found\n if (firstname && firstFilled && lastname && lastFilled && employeeID && zCode){\n errorMessage = \"There were no errors found\";\n }\n //Display error message\n System.out.println(errorMessage);\n\n }",
"private boolean checkInputValidity() {\n // if any of the input field is empty, return false directly\n if (name.getText().equals(\"\") || id.getText().equals(\"\") || fiber.getText().equals(\"\")\n || protein.getText().equals(\"\") || fat.getText().equals(\"\") || calories.getText().equals(\"\")\n || carbohydrate.getText().equals(\"\")) {\n String message = \"Make sure enter the value of all nutrient components, please try again!\";\n // display the warning windows with the assigned warning message\n Alert alert = new Alert(AlertType.INFORMATION, message);\n alert.getDialogPane().setMinHeight(Region.USE_PREF_SIZE);\n this.close();// close the add food stage\n alert.showAndWait().filter(response -> response == ButtonType.OK);\n return false;\n }\n // if any nutrition info input is not a number value or is negative, return false directly\n try {\n Double fibervalue = null;\n Double proteinvalue = null;\n Double fatvalue = null;\n Double caloriesvalue = null;\n Double carbohydratevalue = null;\n // trim the input to exact numeric value\n fibervalue = Double.valueOf(fiber.getText().trim());\n proteinvalue = Double.valueOf(protein.getText().trim());\n fatvalue = Double.valueOf(fat.getText().trim());\n caloriesvalue = Double.valueOf(calories.getText().trim());\n carbohydratevalue = Double.valueOf(carbohydrate.getText().trim());\n // nutrition input is suppose to be positive numbers\n // if any of the numbers is negative, return false diretcly\n if (fibervalue < 0.0 || proteinvalue < 0.0 || fatvalue < 0.0 || caloriesvalue < 0.0\n || carbohydratevalue < 0.0) {\n String message = \"The input of the nutrient can not be negative, please try again!\";\n Alert alert = new Alert(AlertType.INFORMATION, message);\n alert.getDialogPane().setMinHeight(Region.USE_PREF_SIZE);\n this.close();\n alert.showAndWait().filter(response -> response == ButtonType.OK);\n return false;\n }\n // if any input of the nutrition info is not a double value, catch the exception and return\n // false\n } catch (Exception e) {\n String message =\n \"At least one nutrition value input is invalid, please type a number in nutrient textbox!\";\n // display the warning windows with the assigned warning message\n Alert alert = new Alert(AlertType.INFORMATION, message);\n alert.getDialogPane().setMinHeight(Region.USE_PREF_SIZE);\n this.close(); // close the addfood stage\n // wait for response from ok button\n alert.showAndWait().filter(response -> response == ButtonType.OK);\n return false;\n }\n return true;\n }",
"private void validate() {\n\t\t// just in case;\n\t\tfor (int i=0;i<NR_OF_FIELDS; i++) {\n\t\t\tvalid[i] = \"0\";\n\t\t}\n\t\t//\n\t\t// Validate name and surname:\n\t\t//\n\t\tif ( ! this.isUpperAlpha(nume)) {\n\t\t\tfields[0] = \"1\";\n\t\t}\n\t\t\n\t\tif ( ! this.isUpperAlphaWithSpace(nume)) {\n\t\t\tfields[1] = \"1\";\n\t\t}\n\t\t//\n\t\t// validate seria\n\t\t//\n\t\tvalid[2] = \"1\";\t\t\t\t\t\t\t// presupun ca seria este invalida, si incerc sa o validez\n\t\tfor (int i=0; i<seriiBuletin.length; i++) {\n\t\t\tif (seriiBuletin[i].equals(seria)) {\n\t\t\t\tvalid[2] = \"0\";\n\t\t\t}\n\t\t}\n\t\t//\n\t\t// validate numarul\n\t\t//\n\t\ttry {\n\t\t\tvalid[3] = \"1\";\n\t\t\tint nr = Integer.valueOf(numarul);\n\t\t\tif ( nr >= 100000 && nr <= 999999 ) {\n\t\t\t\tvalid[3] = \"0\";\n\t\t\t}\n\t\t} catch (Exception e) {\n\t\t\tLog.d(TAG, \"Error validating seria.\");\n\t\t}\n\n\t\t//\n\t\t// validate sex\n\t\t//\n\t\tif ( ! (sex == 'M' || sex == 'F')) {\n\t\t\tvalid[6] = \"1\";\n\t\t}\n\t\t//\n\t\t// Validate valabilitate\n\t\t//\n\t\tif ( ! isNumber(this.valabilitate)) {\n\t\t\tvalid[7] = \"1\";\n\t\t}\n\t\t//\n\t\t// validate CNP\n\t\t//\n\t\tif ( ! (isNumber(CNP) && isValidCNP(CNP))) {\n\t\t\tvalid[8] = \"1\";\n\t\t}\n\t\t\n\t}",
"private boolean validateInputs() {\n if (Constants.NULL.equals(review)) {\n reviewET.setError(\"Must type a review!\");\n reviewET.requestFocus();\n return false;\n }\n if (Constants.NULL.equals(heading)) {\n headingET.setError(\"Heading cannot be empty\");\n headingET.requestFocus();\n return false;\n }\n return true;\n }",
"private void inputValidation(String[] args) {\r\n\t\t// Must have two argument inputs - grammar and sample input\r\n\t\tif (args.length != 2) {\r\n\t\t\tSystem.out.println(\"Invalid parameters. Try:\\njava Main <path/to/grammar> <path/to/input>\");\r\n\t\t\tSystem.exit(-1);\r\n\t\t}\r\n\t}",
"public String validate() {\n\n // validate input source\n int inputCounts = 0;\n if (!inputFiles.isEmpty())\n inputCounts++;\n if (inputDescriptor != null)\n inputCounts++;\n if (stdin)\n inputCounts++;\n if (stdinDescriptor)\n inputCounts++;\n if (customInputStream != null)\n inputCounts++;\n\n if (inputCounts == 0)\n return \"Must specify at least one input source.\";\n if (inputCounts > 1)\n return \"Please specify only one type of input source.\";\n\n\n // validate output target\n int outputCounts = 0;\n if (outputDir != null)\n outputCounts++;\n if (outputFile != null)\n outputCounts++;\n if (stdout)\n outputCounts++;\n\n if (outputCounts == 0)\n return \"Must specify an output target.\";\n if (outputCounts > 1)\n return \"Please specify only one output target.\";\n\n if (outputLang != null) {\n if (outputFile != null)\n return \"Native java/python compilation cannot be used with the --outputFile option\";\n if (stdout)\n return \"Native java/python compilation cannot be used with the --stdout option\";\n }\n\n return null;\n }",
"private boolean validateUserInputs() {\n ArrayList<String> errors = new ArrayList();\n \n if (this.view.getContent().equals(\"\")) {\n errors.add(\"\\t - Enter a comment\");\n }\n \n if (errors.size() > 0) {\n String errorMsg = \"Unable to save new Asset.\\nDetails:\";\n for (String error : errors) {\n errorMsg += \"\\n\" + error;\n }\n JOptionPane.showMessageDialog(this.view, errorMsg, \"Unable to Save\", JOptionPane.INFORMATION_MESSAGE);\n return false;\n }\n return true;\n }",
"private boolean validateInput(){\n boolean operationOK = true;\n //perform input validation on the double values in the form\n String integrationTime = this.integrationTimeText.getText();\n String integrationFrequency = this.integrationFrequencyText.getText();\n \n if(!integrationTime.equals(\"\")){\n try {\n Double itime = Double.parseDouble(integrationTime);\n integrationTimeText.setBackground(Color.WHITE);\n integrationTimeText.setToolTipText(\"Time in seconds (s)\");\n } catch (NumberFormatException ex) {\n integrationTimeText.setBackground(Color.RED);\n operationOK=false;\n integrationTimeText.setToolTipText(\"This field has to be a valid double (eg. 1.5)\");\n }\n }\n if(!integrationFrequency.equals(\"\")){\n try {\n Double itime = Double.parseDouble(integrationFrequency);\n integrationFrequencyText.setBackground(Color.WHITE);\n integrationFrequencyText.setToolTipText(\"Frequency in Hertz (Hz)\");\n \n } catch (NumberFormatException ex) {\n operationOK=false;\n integrationFrequencyText.setBackground(Color.RED);\n integrationFrequencyText.setToolTipText(\"This field has to be a valid double (eg. 1.5)\");\n }\n }\n if(currentStepOperationsPanel!=null){\n operationOK = this.currentStepOperationsPanel.validateInput();\n \n }\n return operationOK;\n }",
"private boolean isInputValid(){\n\t\tString errorMessage = \"\";\n\t\tif((nameField.getText() == null) || (nameField.getText().length() == 0)){\n\t\t\terrorMessage += \"No valid product name!\\n\";\n\t\t}\n\t\tif((amountAvailableField.getText() == null) || (amountAvailableField.getText().length() == 0)){\n\t\t\terrorMessage += \"No valid amount available value!\\n\";\n\t\t}\n\t\tif((amountSoldField.getText() == null) || (amountSoldField.getText().length() == 0)){\n\t\t\terrorMessage += \"No valid amount sold value!\\n\";\n\t\t}\n\t\tif((priceEachField.getText() == null) || (priceEachField.getText().length() == 0)){\n\t\t\terrorMessage += \"No valid price for each!\\n\";\n\t\t}\n\t\tif((priceMakeField.getText() == null) || (priceMakeField.getText().length() == 0)){\n\t\t\terrorMessage += \"No valid price to make the product!\\n\";\n\t\t}\n\t\tif(errorMessage.length() == 0){\n\t\t\treturn true;\n\t\t}\n\t\telse{\n\t\t\treturn false;\n\t\t}\n\t}",
"public boolean checkEntryInputs() {\n\t\tboolean isValid = true;\n\t\tif(sampleNumberTF.getText().equals(\"\")) {\n\t\t\tisValid = false;\n\t\t}\n\t\t\n\t\tif(materialDescriptionTF.getText().equals(\"\")) {\n\t\t\tisValid = false;\n\t\t}\n\t\t\n\t\tif(Double.valueOf(bacteroidesConcentrationTF.getText())==null) {\n\t\t\tisValid = false;\n\t\t}\n\t\treturn isValid;\n\t}",
"private void performSanityCheckForInput(NumericChoice[] correctNumericChoices)\n throws IllegalArgumentException {\n\n if (correctNumericChoices.length != 1) {\n throw new IllegalArgumentException(\"cannot have more than 1 correct option\");\n }\n }",
"protected abstract boolean isInputValid();",
"private boolean validEditInput() throws SQLException {\n // Checks if any of the fields is empty\n if(teamNameEditField.getText().equals(\"\") || abbrevationEditField.getText().equals(\"\")\n || chooseCityBox.getValue() == null || chooseLeagueBox.getValue() == null\n || chooseLeagueTeamBox.getValue() == null) {\n displayMessage(messagePane,\"Please fill all the fields\",true);\n return false;\n }\n // Checks the abbrevation length\n else if(abbrevationEditField.getText().length() > 3)\n {\n displayMessage(messagePane,\"Abbrevations must be at most 3 characters\",true);\n return false;\n }\n // Checks team name length\n else if (teamNameEditField.getText().length() > 30){\n displayMessage(messagePane,\"Team Names must be smaller than 30 characters\",true);\n return false;\n }\n return true;\n }",
"private ErrorCode checkParameters() {\n\t\t\n\t\t// Check Batch Size\n\t\ttry {\n\t\t\tInteger.parseInt(batchSizeField.getText());\n\t\t\t\n\t\t} catch (NumberFormatException e) {\n\t\t\treturn ErrorCode.BatchSize;\n\t\t}\n\t\t\n\t\t// Check confidenceFactor\n\t\ttry {\n\t\t\tDouble.parseDouble(confidenceFactorField.getText());\n\t\t\t\n\t\t} catch (NumberFormatException e) {\n\t\t\treturn ErrorCode.ConfidenceFactor;\n\t\t}\n\t\t\n\t\t// Check minNumObj\n\t\ttry {\n\t\t\tInteger.parseInt(minNumObjField.getText());\n\t\t\t\n\t\t} catch (NumberFormatException e) {\n\t\t\treturn ErrorCode.MinNumObj;\n\t\t}\n\t\t\n\t\t// Check numDecimalPlaces\n\t\ttry {\n\t\t\tInteger.parseInt(numDecimalPlacesField.getText());\n\t\t\t\n\t\t} catch (NumberFormatException e) {\n\t\t\treturn ErrorCode.NumDecimalPlaces;\n\t\t}\n\t\t\n\t\t// Check numFolds\n\t\ttry {\n\t\t\tInteger.parseInt(numFoldsField.getText());\n\t\t\t\n\t\t} catch (NumberFormatException e) {\n\t\t\treturn ErrorCode.NumFolds;\n\t\t}\n\t\t\n\t\t// Check seed\n\t\ttry {\n\t\t\tInteger.parseInt(seedField.getText());\n\t\t\t\n\t\t} catch (NumberFormatException e) {\n\t\t\treturn ErrorCode.Seed;\n\t\t}\n\t\t\n\t\treturn ErrorCode.Fine;\n\t\t\n\t}",
"private static void verifyArgs()\r\n\t{\r\n\t\tif(goFile == null)\r\n\t\t{\r\n\t\t\tSystem.err.println(\"Error: you must specify an input GO file.\");\r\n\t\t\texitError();\r\n\t\t}\r\n\t\tif(annotFile == null)\r\n\t\t{\r\n\t\t\tSystem.err.println(\"Error: you must specify an input annotation file.\");\r\n\t\t\texitError();\r\n\t\t}\r\n\t\tif(goSlimFile == null)\r\n\t\t{\r\n\t\t\tSystem.err.println(\"Error: you must specify an input GOslim file.\");\r\n\t\t\texitError();\r\n\t\t}\r\n\t\tif(slimAnnotFile == null)\r\n\t\t{\r\n\t\t\tSystem.err.println(\"Error: you must specify an output file.\");\r\n\t\t\texitError();\r\n\t\t}\r\n\t}",
"public boolean validateInput(boolean showMessage) {\n\n boolean valid = true;\n\n valid = GuiUtilities.validateIntegerInput(this, peptideLengthLabel, minPepLengthTxt, \"minimum peptide length\", \"Peptide Length Error\", true, showMessage, valid);\n valid = GuiUtilities.validateIntegerInput(this, peptideLengthLabel, maxPepLengthTxt, \"minimum peptide length\", \"Peptide Length Error\", true, showMessage, valid);\n valid = GuiUtilities.validateDoubleInput(this, precursorMassLabel, minPrecursorMassTxt, \"minimum precursor mass\", \"Precursor Mass Error\", true, showMessage, valid);\n valid = GuiUtilities.validateDoubleInput(this, precursorMassLabel, maxPrecursorMassTxt, \"maximum precursor mass\", \"Precursor Mass Error\", true, showMessage, valid);\n\n if (!minPtmsPerPeptideTxt.getText().trim().isEmpty()) {\n valid = GuiUtilities.validateIntegerInput(this, variablePtmsPerPeptideLabel, minPtmsPerPeptideTxt, \"minimum number of variable PTMs\", \"Variable PTMs Error\", true, showMessage, valid);\n }\n \n if (!maxPtmsPerPeptideTxt.getText().trim().isEmpty()) {\n valid = GuiUtilities.validateIntegerInput(this, variablePtmsPerPeptideLabel, maxPtmsPerPeptideTxt, \"maximum number of variable PTMs\", \"Variable PTMs Error\", true, showMessage, valid);\n }\n\n valid = GuiUtilities.validateIntegerInput(this, maxVariablePtmsPerTypeLabel, maxVariablePtmsPerTypeTxt, \"maximum number of variable PTMs per type\", \"Variable PTMs Error\", true, showMessage, valid);\n valid = GuiUtilities.validateIntegerInput(this, decoySeedLabel, decoySeedTxt, \"decoy seed\", \"Decoy Seed Error\", true, showMessage, valid);\n valid = GuiUtilities.validateDoubleInput(this, spectrumMzLabel, minSpectrumMzTxt, \"minimum spectrum mz\", \"Spectrum Mz Error\", true, showMessage, valid);\n if (!maxSpectrumMzTxt.getText().trim().isEmpty()) {\n valid = GuiUtilities.validateDoubleInput(this, spectrumMzLabel, maxSpectrumMzTxt, \"maximum spectrum mz\", \"Spectrum Mz Error\", true, showMessage, valid);\n }\n valid = GuiUtilities.validateIntegerInput(this, minPeaksLbl, minPeaksTxt, \"minimum number of peaks\", \"Spectrum Peaks Error\", true, showMessage, valid);\n valid = GuiUtilities.validateDoubleInput(this, removePrecursorPeakLabel, removePrecursorPeakToleranceTxt, \"remove precursor peak tolerance\", \"Precursor Peak Error\", true, showMessage, valid);\n valid = GuiUtilities.validateDoubleInput(this, mzBinWidthLabel, mzBinWidthTxt, \"mz bin width\", \"Mz Bin Width Error\", true, showMessage, valid);\n valid = GuiUtilities.validateDoubleInput(this, mzBinOffsetLabel, mzBinOffsetTxt, \"mz bin offset\", \"Mz Bin Offset Error\", true, showMessage, valid);\n valid = GuiUtilities.validateIntegerInput(this, numberMatchesLabel, numberMatchesTxt, \"number of spectrum matches\", \"Number of Spectrum Matches Error\", true, showMessage, valid);\n\n // peptide length: the low value should be lower than the high value\n try {\n double lowValue = Double.parseDouble(minPepLengthTxt.getText().trim());\n double highValue = Double.parseDouble(maxPepLengthTxt.getText().trim());\n\n if (lowValue > highValue) {\n if (showMessage && valid) {\n JOptionPane.showMessageDialog(this, \"The lower range value has to be smaller than the upper range value.\",\n \"Peptide Length Error\", JOptionPane.WARNING_MESSAGE);\n }\n valid = false;\n peptideLengthLabel.setForeground(Color.RED);\n peptideLengthLabel.setToolTipText(\"Please select a valid range (upper <= higher)\");\n }\n } catch (NumberFormatException e) {\n // ignore, handled above\n }\n\n // precursor mass range: the low value should be lower than the high value\n try {\n double lowValue = Double.parseDouble(minPrecursorMassTxt.getText().trim());\n double highValue = Double.parseDouble(maxPrecursorMassTxt.getText().trim());\n\n if (lowValue > highValue) {\n if (showMessage && valid) {\n JOptionPane.showMessageDialog(this, \"The lower range value has to be smaller than the upper range value.\",\n \"Precursor Mass Range Error\", JOptionPane.WARNING_MESSAGE);\n }\n valid = false;\n precursorMassLabel.setForeground(Color.RED);\n precursorMassLabel.setToolTipText(\"Please select a valid range (upper <= higher)\");\n }\n } catch (NumberFormatException e) {\n // ignore, handled above\n }\n\n // spectrum mz range: the low value should be lower than the high value\n try {\n double lowValue = Double.parseDouble(minSpectrumMzTxt.getText().trim());\n double highValue = Double.parseDouble(maxSpectrumMzTxt.getText().trim());\n\n if (lowValue > highValue) {\n if (showMessage && valid) {\n JOptionPane.showMessageDialog(this, \"The lower range value has to be smaller than the upper range value.\",\n \"Spectrum Mz Range Error\", JOptionPane.WARNING_MESSAGE);\n }\n valid = false;\n spectrumMzLabel.setForeground(Color.RED);\n spectrumMzLabel.setToolTipText(\"Please select a valid range (upper <= higher)\");\n }\n } catch (NumberFormatException e) {\n // ignore, handled above\n }\n\n okButton.setEnabled(valid);\n return valid;\n }",
"protected void validateInput()\r\n\t{\r\n\t\tString errorMessage = null;\r\n\t\tif ( validator != null ) {\r\n\t\t\terrorMessage = validator.isValid(text.getText());\r\n\t\t}\r\n\t\t// Bug 16256: important not to treat \"\" (blank error) the same as null\r\n\t\t// (no error)\r\n\t\tsetErrorMessage(errorMessage);\r\n\t}",
"private boolean isInputValid() {\n\t\tString errorMessage = \"\";\n\t\t\n\t\tif (dateField.getText() == null || dateField.getText().length() == 0) {\n\t\t\terrorMessage += \"Kein gültiges Datum!\\n\";\n\t\t} else {\n\t\t\tif (!DateUtil.validDate(dateField.getText())) {\n\t\t\t\terrorMessage += \"Kein gültiges Datum. Benutze das dd.mm.yyy Format!\\n\";\n\t\t\t}\n\t\t}\n\t\tString categoryFieldSelection = categoryField.getSelectionModel().getSelectedItem();\n\t\tif (categoryFieldSelection.isEmpty() || categoryFieldSelection.length() == 0) {\n\t\t\terrorMessage += \"Keine gültige Kategorie!\\n\";\n\t\t}\n\t\tif (useField.getText() == null || useField.getText().length() == 0) {\n\t\t\terrorMessage += \"Kein gültiger Verwendungszweck!\\n\";\n\t\t}\n\t\tif (amountField.getText() == null || amountField.getText().length() == 0) {\n\t\t\terrorMessage += \"Kein gültiger Betrag!\\n\";\n\t\t} \n\t\t/**else {\n\t\t\t// try to parse the amount into a double\n\t\t\ttry {\n\t\t\t\tDouble.parseDouble(amountField.getText());\n\t\t\t} catch (NumberFormatException e) {\n\t\t\t\terrorMessage += \"Kein zulässiger Betrag! (Nur Dezimalzahlen erlaubt)\\n\";\n\t\t\t}\n\t\t}**/\n\t\tif (distributionKindField.getText() == null || distributionKindField.getText().length() == 0) {\n\t\t\terrorMessage += \"Keine gültige Ausgabeart!\\n\";\n\t\t}\n\n\t\tif (errorMessage.length() == 0) {\n\t\t\treturn true;\n\t\t} else {\n\t\t\t// Show the error message.\n\t\t\tAlert alert = new Alert(AlertType.ERROR);\n\t\t\talert.initOwner(dialogStage);\n\t\t\talert.setTitle(\"Ungültige Eingaben\");\n\t\t\talert.setHeaderText(\"Bitte korrigieren Sie die Fehler in den Feldern.\");\n\t\t\talert.setContentText(errorMessage);\n\t\t\talert.showAndWait();\n\t\t\treturn false;\n\t\t}\n\t}",
"private boolean validateInput(){\n Window owner=root.getScene().getWindow();\n inputFileds.addAll(txtfn,txtln,txtsurname,txtDOB,txtResidence,txtMobile,txtID,username);\n for (TextField textField : inputFileds) {\n if(textField.getText().isEmpty()){\n //set css stroke\n Dialog.showMessageDialog(owner,\"Missing Details\",\"Invalid Input\",DialogIcon.WARNING);\n textField.requestFocus();\n return false;\n }\n }\n inputFileds.removeAll(txtDOB,txtMobile,username);\n for (TextField textField : inputFileds) {\n if(textField.getText().length()>30){\n //set css stroke\n Dialog.showMessageDialog(owner,\"Sorry the text you entered can not be greater that 30 characters\",\"Text too Long\",DialogIcon.WARNING);\n textField.requestFocus();\n return false;\n }\n }\n if(username.getText().length()>20 || username.getText().length()<4){\n Dialog.showMessageDialog(owner, \"Sorry your Username has to be More than 3 Characters and can not Exceed 20 Charchaters\", \"Invalid input\",DialogIcon.WARNING);\n username.requestFocus();\n return false;\n }\n if(pass.getText().isEmpty()){\n Dialog.showMessageDialog(owner,\"Missing Details\",\"Invalid Input\",DialogIcon.WARNING);\n pass.requestFocus();\n return false;\n }\n if(pass.getText().length()>20 || pass.getText().length()<4){\n Dialog.showMessageDialog(owner, \"Sorry your Password has to be More than 3 Characters and can not Exceed 20 Charchaters\", \"Invalid Input\",DialogIcon.WARNING);\n pass.requestFocus();\n return false;\n }\n SimpleDateFormat dateFormat = new SimpleDateFormat(\"dd/MM/yyyy\");\n SimpleDateFormat yearFormat = new SimpleDateFormat(\"yyyy\");\n try {\n date = dateFormat.parse(txtDOB.getText());\n Calendar cal=Calendar.getInstance();\n int year=Integer.parseInt(yearFormat.format(date));\n if (year <= 1900 || year>cal.get(Calendar.YEAR)) {\n Dialog.showMessageDialog(owner,\"Invalid Date of Birth\", \"Invalid Input\",DialogIcon.WARNING);\n txtDOB.requestFocus();\n return false;\n }\n String initialEntry=txtDOB.getText();\n String parsedValue=dateFormat.format(date);\n if(!initialEntry.equals(parsedValue)){\n Dialog.showMessageDialog(owner, \"Note your Date of Birth has been corrected\", \"Date Corrected\",DialogIcon.INFORMATION);\n }\n txtDOB.setText(dateFormat.format(date));\n } catch (ParseException ex) {\n Dialog.showMessageDialog(owner,\"Invalid Date of Birth\", \"Invalid Input\",DialogIcon.WARNING);\n txtDOB.requestFocus();\n return false;\n }\n try {\n int mobile=Integer.parseInt(txtMobile.getText());\n } catch (NumberFormatException e) {\n Dialog.showMessageDialog(owner, \"Invalid Mobile Number\", \"Invalid data\",DialogIcon.WARNING);\n txtMobile.requestFocus();\n return false;\n }\n if(txtMobile.getText().length() != 10){\n Dialog.showMessageDialog(owner, \"Sorry your Mobile Number is invalid\", \"Invalid input\",DialogIcon.WARNING);\n txtMobile.requestFocus();\n return false;\n }\n String sql=\"select Username,Password from users where Username=?\";\n try(PreparedStatement prstmt=con.prepareStatement(sql)) {\n prstmt.setString(1, username.getText());\n ResultSet rs=prstmt.executeQuery();\n if(rs.next()){\n Dialog.showMessageDialog(owner, \"Sorry Username already exists\\n Please change to different Username\", \"Username Exists\",DialogIcon.WARNING);\n username.requestFocus();\n return false;\n }\n rs.close();\n } catch (SQLException e) {\n System.err.println(e);\n }\n return true;\n }",
"@Override\n\tpublic boolean checkInput() {\n\t\treturn true;\n\t}",
"private boolean checkUserInputValidity() {\n // Extract Student information from the edit text views\n String studentName = mStudentNameEditText.getText().toString().trim();\n String studentGradeString = mStudentGradeEditText.getText().toString();\n\n // Check for valid student name\n if (TextUtils.isEmpty(studentName)) {\n Toast.makeText(this, R.string.please_enter_valid_name, Toast.LENGTH_SHORT).show();\n mStudentNameEditText.requestFocus();\n return false;\n }\n\n // Check for valid student birthdate\n if (mStudentBirthdate == 0) {\n Toast.makeText(this, R.string.please_enter_valid_birthdate,\n Toast.LENGTH_SHORT).show();\n return false;\n }\n if (DateUtils.isChosenDateAfterToday(mStudentBirthdate)) {\n Toast.makeText(this, R.string.please_enter_valid_birthdate,\n Toast.LENGTH_SHORT).show();\n return false;\n }\n\n // Check for valid student grade\n if (TextUtils.isEmpty(studentGradeString)) {\n Toast.makeText(this, R.string.please_enter_valid_grade, Toast.LENGTH_SHORT).show();\n mStudentGradeEditText.requestFocus();\n return false;\n } else {\n int studentGrade = Integer.parseInt(studentGradeString);\n if (studentGrade <= 0) {\n Toast.makeText(this, R.string.please_enter_valid_grade, Toast.LENGTH_SHORT).show();\n mStudentGradeEditText.requestFocus();\n return false;\n }\n }\n\n return true;\n }",
"private boolean isInputValid() {\n String errorMessage = \"\";\n\n if (gemNameField.getText() == null || gemNameField.getText().length() == 0) {\n errorMessage += \"No valid gem name!\\n\";\n }\n if (gemValueField.getText() == null || gemValueField.getText().length() == 0) {\n errorMessage += \"No valid gem value!\\n\";\n } else {\n // try to parse the gem value into an int.\n try {\n Integer.parseInt(gemValueField.getText());\n } catch (NumberFormatException e) {\n errorMessage += \"No valid gem value (must be an integer)!\\n\";\n }\n }\n if (gemDescripField.getText() == null || gemDescripField.getText().length() == 0) {\n errorMessage += \"No valid gem description!\\n\";\n }\n\n if (errorMessage.length() == 0) {\n return true;\n } else {\n // Show the error message.\n Alert alert = new Alert(Alert.AlertType.ERROR);\n alert.initOwner(dialogStage);\n alert.setTitle(\"Invalid Fields\");\n alert.setHeaderText(\"Please correct invalid fields\");\n alert.setContentText(errorMessage);\n\n alert.showAndWait();\n\n return false;\n }\n }",
"private boolean validateInput(EditText titleInput, EditText descriptionInput, EditText priceInput) {\n String title = titleInput.getText().toString();\n String description = descriptionInput.getText().toString();\n int price = (TextUtils.isEmpty(priceInput.getText().toString()))? -1 : Integer.parseInt(priceInput.getText().toString());\n if (TextUtils.isEmpty(title) || TextUtils.isEmpty(description) || price < 0) {\n Toast.makeText(this.getActivity(),\n \"Please, fill in all fields.\",\n Toast.LENGTH_LONG).show();\n return false;\n }\n if (photoURI == null) {\n Toast.makeText(this.getActivity(),\n \"Please, add a picture to this item before submitting it.\",\n Toast.LENGTH_LONG).show();\n return false;\n }\n return true;\n }",
"private boolean validCreateInput() throws SQLException {\n // Checks if any of the fields is empty\n if(teamNameCreateField.getText().equals(\"\") || abbrevationCreateField.getText().equals(\"\")\n || chooseCityBoxCreate.getValue() == null || chooseLeagueBoxCreate.getValue() == null\n || chooseAgeGroupCreate.getValue() == null || chooseLeagueTeamBoxCreate.getValue() == null){\n displayMessage(messagePane,\"Please fill all the fields\",true);\n return false;\n }\n // Checks the abbrevation length\n else if(abbrevationCreateField.getText().length() > 3)\n {\n displayMessage(messagePane,\"Abbrevations must be at most 3 characters\",true);\n return false;\n }\n // Checks team name length\n else if (teamNameCreateField.getText().length() > 30){\n displayMessage(messagePane,\"Team Names must be smaller than 30 characters\",true);\n return false;\n }\n return true;\n }",
"@Value.Check\n default void checkPreconditions()\n {\n RangeCheck.checkIncludedInInteger(\n this.feedback(),\n \"Feedback\",\n RangeInclusiveI.of(0, 7),\n \"Valid feedback values\");\n\n RangeCheck.checkIncludedInInteger(\n this.transpose(),\n \"Transpose\",\n RangeInclusiveI.of(-24, 24),\n \"Valid transpose values\");\n\n RangeCheck.checkIncludedInInteger(\n this.pitchEnvelopeR1Level(),\n \"Pitch R1 Level\",\n RangeInclusiveI.of(0, 99),\n \"Valid levels\");\n\n RangeCheck.checkIncludedInInteger(\n this.pitchEnvelopeR1Rate(),\n \"Pitch R1 Rate\",\n RangeInclusiveI.of(0, 99),\n \"Valid rates\");\n\n RangeCheck.checkIncludedInInteger(\n this.pitchEnvelopeR2Level(),\n \"Pitch R2 Level\",\n RangeInclusiveI.of(0, 99),\n \"Valid levels\");\n\n RangeCheck.checkIncludedInInteger(\n this.pitchEnvelopeR2Rate(),\n \"Pitch R2 Rate\",\n RangeInclusiveI.of(0, 99),\n \"Valid rates\");\n\n RangeCheck.checkIncludedInInteger(\n this.pitchEnvelopeR3Level(),\n \"Pitch R3 Level\",\n RangeInclusiveI.of(0, 99),\n \"Valid levels\");\n\n RangeCheck.checkIncludedInInteger(\n this.pitchEnvelopeR3Rate(),\n \"Pitch R3 Rate\",\n RangeInclusiveI.of(0, 99),\n \"Valid rates\");\n\n RangeCheck.checkIncludedInInteger(\n this.pitchEnvelopeR4Level(),\n \"Pitch R4 Level\",\n RangeInclusiveI.of(0, 99),\n \"Valid levels\");\n\n RangeCheck.checkIncludedInInteger(\n this.pitchEnvelopeR4Rate(),\n \"Pitch R4 Rate\",\n RangeInclusiveI.of(0, 99),\n \"Valid rates\");\n\n RangeCheck.checkIncludedInInteger(\n this.lfoPitchModulationDepth(),\n \"LFO Pitch Modulation Depth\",\n RangeInclusiveI.of(0, 99),\n \"Valid pitch modulation depth values\");\n\n RangeCheck.checkIncludedInInteger(\n this.lfoPitchModulationSensitivity(),\n \"LFO Pitch Modulation Sensitivity\",\n RangeInclusiveI.of(0, 7),\n \"Valid pitch modulation sensitivity values\");\n\n RangeCheck.checkIncludedInInteger(\n this.lfoAmplitudeModulationDepth(),\n \"LFO Amplitude Modulation Depth\",\n RangeInclusiveI.of(0, 99),\n \"Valid amplitude modulation depth values\");\n\n RangeCheck.checkIncludedInInteger(\n this.lfoSpeed(),\n \"LFO Speed\",\n RangeInclusiveI.of(0, 99),\n \"Valid LFO speed values\");\n\n RangeCheck.checkIncludedInInteger(\n this.lfoDelay(),\n \"LFO Delay\",\n RangeInclusiveI.of(0, 99),\n \"Valid LFO delay values\");\n }",
"private boolean validFormInputs() {\n String email = etEmail.getText().toString();\n String password = etPassword.getText().toString();\n String institutionName = etInstitutionName.getText().toString();\n String addressFirst = etInstitutionAddressFirst.getText().toString();\n String addressSecond = etInstitutionAddressSecond.getText().toString();\n String CIF = etCIF.getText().toString();\n\n String[] allInputs = {email, password, institutionName, addressFirst, addressSecond, CIF};\n for (String currentInput : allInputs) {\n if (currentInput.matches(\"/s+\")) // Regex pt cazul cand stringul e gol sau contine doar spatii\n return false; // formular invalid - toate inputurile trebuie sa fie completate\n }\n String[] stringsAddressFirst = addressFirst.split(\",\");\n String[] stringsAddressSecond = addressSecond.split(\",\");\n if (stringsAddressFirst.length != 4 ||\n stringsAddressSecond.length != 3)\n return false;\n\n //<editor-fold desc=\"Checking if NUMBER and APARTMENT are numbers\">\n try {\n Integer.parseInt(stringsAddressSecond[0]);\n Integer.parseInt(stringsAddressSecond[2]);\n return true; // parsed successfully without throwing any parsing exception from string to int\n }catch (Exception e) {\n Log.v(LOG_TAG, \"Error on converting input to number : \" + e);\n return false; // parsed unsuccessfully - given strings can not be converted to int\n }\n //</editor-fold>\n }",
"private boolean validateInputInfo(){\n\n //Get user input\n String firstName = newContactFirstName.getText().toString();\n String lastName = newContactLastName.getText().toString();\n String email = newContactEmailAddress.getText().toString();\n String phone = newContactPhoneNumber.getText().toString();\n\n //Check to make sure no boxes were left empty\n if(firstName.isEmpty() || lastName.isEmpty() || email.isEmpty() || phone.isEmpty()){\n Toast.makeText(this, \"You must fill all fields before continuing!\", Toast.LENGTH_LONG).show();\n return false;\n }\n //Check to see if phone number is valid\n else if(!(phone.length() >= 10)){\n Toast.makeText(this, \"Make sure to input a valid 10 digit phone number!\", Toast.LENGTH_LONG).show();\n return false;\n }\n\n return true;\n }",
"void validate();",
"void validate();",
"public void validateInput(Information information) {\n information.validateFirstName();\n information.validateLastName();\n information.validateZipcode();\n information.validateEmployeeID();\n }",
"private boolean validateInputs() {\n question = txtQuestion.getText().trim();\n option1 = txtOption1.getText().trim();\n option2 = txtOption2.getText().trim();\n option3 = txtOption3.getText().trim();\n option4 = txtOption4.getText().trim();\n correctOption = jcCorrectAns.getSelectedItem().toString();\n //System.out.println(correctOption);\n if(question.isEmpty() || option1.isEmpty() || option2.isEmpty() || \n option3.isEmpty() || option4.isEmpty() || correctOption.isEmpty()){\n return false;\n }\n return true;\n }",
"public void validate() {\n\t\terrors.clear();\n\t\t\n\t\tif(!this.id.isEmpty()) {\n\t\t\ttry {\n\t\t\t\tLong.parseLong(this.id);\n\t\t\t} catch(NumberFormatException ex) {\n\t\t\t\terrors.put(\"id\", \"Id is not valid.\");\n\t\t\t}\n\t\t}\n\t\t\n\t\tif(this.firstName.isEmpty()) {\n\t\t\terrors.put(\"firstName\", \"First name is obligatory!\");\n\t\t}\n\t\t\n\t\tif(this.lastName.isEmpty()) {\n\t\t\terrors.put(\"lastName\", \"Last name is obligatory!\");\n\t\t}\n\t\t\n\t\tif(this.nick.isEmpty()) {\n\t\t\terrors.put(\"nick\", \"Nick is obligatory!\");\n\t\t}\n\t\t\n\t\tif(DAOProvider.getDAO().doesNickAlreadyExist(nick)) {\n\t\t\terrors.put(\"nick\", \"Nick already exist!\");\n\t\t}\n\n\t\tif(this.email.isEmpty()) {\n\t\t\terrors.put(\"email\", \"EMail is obligatory!\");\n\t\t} else {\n\t\t\tint l = email.length();\n\t\t\tint p = email.indexOf('@');\n\t\t\tif(l<3 || p==-1 || p==0 || p==l-1) {\n\t\t\t\terrors.put(\"email\", \"EMail is not valid.\");\n\t\t\t}\n\t\t}\n\t\t\n\t\tif(this.password.isEmpty()) {\n\t\t\terrors.put(\"password\", \"Password is obligatory!\");\n\t\t}\n\t}",
"private boolean isInputValid() {\r\n String errorMessage = \"\";\r\n\r\n if (idLabel.getText() == null || idLabel.getText().length() == 0) {\r\n errorMessage += \"No valid ID number!\\n\"; \r\n } else {\r\n // try to parse the postal code into an int.\r\n try {\r\n Integer.parseInt(idLabel.getText());\r\n } catch (NumberFormatException e) {\r\n errorMessage += \"No valid ID number (must be an integer)!\\n\"; \r\n }\r\n }\r\n \r\n if (firstNameField.getText() == null || firstNameField.getText().length() == 0) {\r\n errorMessage += \"No valid first name!\\n\"; \r\n }\r\n if (lastNameField.getText() == null || lastNameField.getText().length() == 0) {\r\n errorMessage += \"No valid last name!\\n\"; \r\n }\r\n if (industryField.getText() == null || industryField.getText().length() == 0) {\r\n errorMessage += \"No valid industry!\\n\"; \r\n }\r\n\r\n if (workTypeField.getText() == null || workTypeField.getText().length() == 0) {\r\n errorMessage += \"No valid work type!\\n\"; \r\n }\r\n\r\n if (addressField.getText() == null || addressField.getText().length() == 0) {\r\n errorMessage += \"No valid address!\\n\";\r\n }\r\n\r\n if (errorMessage.length() == 0) {\r\n return true;\r\n } else {\r\n // Show the error message.\r\n Alert alert = new Alert(AlertType.ERROR);\r\n alert.initOwner(dialogStage);\r\n alert.setTitle(\"Invalid Fields\");\r\n alert.setHeaderText(\"Please correct invalid fields\");\r\n alert.setContentText(errorMessage);\r\n\r\n alert.showAndWait();\r\n\r\n return false;\r\n }\r\n }",
"public boolean validateInputFields(){\n if(titleText.getText().isEmpty() || descriptionText.getText().isEmpty()){\n showError(true, \"All fields are required. Please complete.\");\n return false;\n }\n if(locationCombo.getSelectionModel().isEmpty()){\n showError(true, \"Please select a location.\");\n return false;\n }\n if(contactCombo.getSelectionModel().isEmpty()){\n showError(true, \"Please select a contact.\");\n return false;\n }\n if(typeCombo.getSelectionModel().isEmpty()){\n showError(true, \"Please select the type.\");\n return false;\n }\n if(customerCombo.getSelectionModel().isEmpty()){\n showError(true, \"Please select a customer.\");\n return false;\n }\n if(userCombo.getSelectionModel().isEmpty()){\n showError(true, \"Please select a user.\");\n return false;\n }\n return true;\n }",
"public boolean checkValidity() {\n String sep = DECIMAL_FORMAT.getDecimalFormatSymbols().getDecimalSeparator() + \"\";\n String name = nameField.getText().trim();\n String priceText = valueField.getText().trim();\n if (name.equals(\"\") || priceText.equals(\"\")) {\n Utils.showWarningMessage(getRootPane(), \"The fields can not be empty!\");\n return false;\n }\n String price = priceText.replace(sep, \"\");\n if (!price.matches(\"^[0-9]+$\")) {\n Utils.showWarningMessage(getRootPane(), \"Please enter a valid price!\");\n return false;\n }\n int priceInt = Integer.parseInt(price);\n if (priceInt == 0) {\n Utils.showWarningMessage(getRootPane(), \"The price can not be 0.\");\n return false;\n }\n return true;\n }",
"private boolean validateInputs() {\n return !proID.getText().isEmpty() || \n !proName.getText().isEmpty() ||\n !proPrice.getText().isEmpty();\n }",
"public boolean Validate() {\n String[] testArr = {titleTxf.getText(), fNameTxf.getText(), sNameTxf.getText(),\n initialTxf.getText(), hNumTxf.getText(), cNumTxf.getText(), emailTxf.getText(), idNumTxf.getText(),\n (String) maritalCbx.getSelectedItem(), \n resTxf1.getText() + \"\" + resTxf2.getText(), zipResTxf.getText(),postTxf1.getText() + \"\" + postTxf2.getText(),\n zipPostTxf.getText() };\n\n // verify user has entered data into required fields\n String inputTest = \"\";\n\n for (int i = 0; i < testArr.length; i++) {\n if (testArr[i].equals(inputTest)) {\n\n JOptionPane.showMessageDialog(rootPane, \"please fill in all required fields\", \"ERROR\", ERROR_MESSAGE);\n \n return false;\n \n\n }\n \n \n }\n //verify Home number\n if(hNumTxf.getText().length()!=10){\n \n JOptionPane.showMessageDialog(rootPane, \"Invaild Home number\", \"ERROR\", ERROR_MESSAGE);\n errHNum.setText(\"!\");\n \n return false;\n }\n else{\n errHNum.setText(\"\");\n }\n //verify CellNo\n if(cNumTxf.getText().length()!=10){\n \n JOptionPane.showMessageDialog(rootPane, \"Invaild Cellphone number\", \"ERROR\", ERROR_MESSAGE);\n errCNum.setText(\"!\");\n \n return false;\n \n }\n else{\n errCNum.setText(\"\");\n }\n //verify email\n String email =emailTxf.getText(); \n if(!email.contains(\"@\")|| !email.contains(\".\")){\n \n JOptionPane.showMessageDialog(rootPane, \"Invaild email address\", \"ERROR\", ERROR_MESSAGE);\n errEmail.setText(\"!\");\n return false;\n }\n else{\n errEmail.setText(\"\");\n }\n \n //verify ID No. (Local)\n String ID = idNumTxf.getText();\n if(ID.length()!=13){\n \n JOptionPane.showMessageDialog(rootPane, \"Invaild ID number\", \"ERROR\", ERROR_MESSAGE);\n errID.setText(\"!\");\n return false;\n }\n else{\n errID.setText(\"\");\n }\n \n if(zipResTxf.getText().length()!=4){\n JOptionPane.showMessageDialog(rootPane, \"Invaild Zip Code\", \"ERROR\", ERROR_MESSAGE);\n errZipRes.setText(\"!\");\n return false;\n \n }\n else{\n \n errZipRes.setText(\"\");\n }\n if(zipPostTxf.getText().length()!=4){\n JOptionPane.showMessageDialog(rootPane, \"Invaild Zip Code\", \"ERROR\", ERROR_MESSAGE);\n errZipPost.setText(\"!\");\n return false;\n \n }\n else{\n \n errZipPost.setText(\"\");\n }\n \n \n return true;\n\n }",
"private boolean validateInputs(String iStart, String iEnd, String country, String type) {\n \thideErrors();\n \tint validStart;\n \tint validEnd;\n boolean valid = true;\n// \t//will not occur due to UI interface\n// if (isComboBoxEmpty(type)) {\n// \tvalid = false;\n// \tT3_type_error_Text.setVisible(true);\n// }\n if (isComboBoxEmpty(country)) {\n \tvalid = false;\n \tT3_country_error_Text.setVisible(true);\n }\n \t//checking if start year and end year are set\n if (isComboBoxEmpty(iStart)){\n //start is empty\n T3_start_year_error_Text.setVisible(true);\n valid = false;\n }\n if (isComboBoxEmpty(iEnd)){\n //end is empty\n T3_end_year_error_Text.setVisible(true);\n valid = false;\n }\n \tif (valid){\n //if years are not empty and valid perform further testing\n \t\t//fetch valid data range\n \tPair<String,String> validRange = DatasetHandler.getValidRange(type, country);\n \tvalidStart = Integer.parseInt(validRange.getKey());\n \tvalidEnd = Integer.parseInt(validRange.getValue());\n //check year range validity\n \t\tint start = Integer.parseInt(iStart);\n \t\tint end = Integer.parseInt(iEnd);\n \tif (start>=end) {\n \t\tT3_range_error_Text.setText(\"Start year should be < end year\");\n \t\tT3_range_error_Text.setVisible(true);\n \t\tvalid=false;\n \t}\n// \t//will not occur due to UI interface\n// \telse if (start<validStart) {\n// \t\tT3_range_error_Text.setText(\"Start year should be >= \" + Integer.toString(validStart));\n// \t\tT3_range_error_Text.setVisible(true);\n// \t\tvalid=false;\n// \t}else if (end>validEnd) {\n// \t\tT3_range_error_Text.setText(\"End year should be <= \" + Integer.toString(validEnd));\n// \t\tT3_range_error_Text.setVisible(true);\n// \t\tvalid=false;\n// \t}\n \t}\n// \t//will not occur due to UI interface\n// \tif(isComboBoxEmpty(type)) {\n// \t\t//if type is not set\n// T3_type_error_Text.setVisible(true);\n// \t}\n \t\n if(isComboBoxEmpty(country)) {\n //if country is not set\n T3_country_error_Text.setVisible(true);\n }\n \treturn valid;\n }",
"private boolean validInput()\n {\n boolean completeForm = true; //all textfields have been filled in\n boolean noExceptions = true; //all textfields (except name) have int\n boolean selectionMade = true; //user has selected a ship type\n\n if (shipNameInput.getText()==\"Ship name\" ||\n xcoordInput.getText()==\"Starting x coordinate\" ||\n ycoordInput.getText()==\"Starting y coordinate\")\n {\n System.out.println(\"ERROR: Please fill in all text fields before \"+\n \"adding your ship.\");\n completeForm = false;\n }\n try\n {\n xcoord = Integer.parseInt(xcoordInput.getText());\n ycoord = Integer.parseInt(ycoordInput.getText());\n }\n catch (NumberFormatException except)\n {\n System.out.println(\"ERROR: Ship coordinates and speed need to be \"+\n \"entered as integers.\");\n noExceptions = false;\n }\n if (directionInput.getResponse() == \"none\")\n {\n System.out.println(\"ERROR: Please choose a direction.\");\n selectionMade = false;\n }\n else\n {\n String d = directionInput.getResponse();\n if (d == \"N\") direction = 0;\n else if (d == \"NE\") direction = Ship.NE;\n else if (d == \"E\") direction = Ship.E;\n else if (d == \"SE\") direction = Ship.SE;\n else if (d == \"S\") direction = Ship.S;\n else if (d == \"SW\") direction = Ship.SW;\n else if (d == \"W\") direction = Ship.W;\n else if (d == \"NW\") direction = Ship.NW;\n }\n shipName = shipNameInput.getText();\n speed = speedSlider.getValue();\n\n return (completeForm && noExceptions && selectionMade);\n }",
"private boolean validateInput() {\n\tboolean valid = false;\n\ttry {\n\t if (paymentText == null | paymentText.getValue() == \"\") {\n\t\tpaymentText.focus();\n\t\tthrow new NullPointerException(\"paymentText fehlt\");\n\t }\n\t if (paymentBetrag == null | paymentBetrag.getValue() == \"\") {\n\t\tpaymentBetrag.focus();\n\t\tthrow new NullPointerException(\"paymentBetrag fehlt\");\n\t }\n\t if (!paymentBetrag.isEmpty()) {\n\t\t@SuppressWarnings(\"unused\")\n\t\tdouble d = Double.parseDouble(paymentBetrag.getValue());\n\t }\n\t // seems that everything was OK\n\t valid = true;\n\t} catch (NullPointerException e) {\n\t System.out.println(\"PaymentWindow - \" + e);\n\t} catch (NumberFormatException e) {\n\t // entered value is no number\n\t paymentBetrag.focus();\n\t}\n\treturn valid;\n }",
"private boolean isInputValid() {\n String errorMessage = \"\";\n\n if (ServiceName.getText() == null || ServiceName.getText().length() == 0) {\n errorMessage += \"No valid name!\\n\";\n }\n if (Serviceemail.getText() == null || Serviceemail.getText().length() == 0) {\n Pattern p = Pattern.compile(\"[_A-Za-z0-9][A-Za-z0-9._]*?@[_A-Za-z0-9]+([.][_A-Za-z]+)+\");\n Matcher m = p.matcher(Serviceemail.getText());\n if (m.find() && m.group().equals(Serviceemail.getText())) {\n errorMessage += \"No valid Mail Forment!\\n\";\n }\n }\n if (servicedescrip.getText() == null || servicedescrip.getText().length() == 0) {\n errorMessage += \"No valid description !\\n\";\n }\n if (f == null && s.getImage() == null) {\n errorMessage += \"No valid photo ( please upload a photo !)\\n\";\n }\n if (Serviceprice.getText() == null || Serviceprice.getText().length() == 0) {\n errorMessage += \"No valid prix !\\n\";\n } else {\n // try to parse the postal code into an int.\n try {\n Float.parseFloat(Serviceprice.getText());\n } catch (NumberFormatException e) {\n errorMessage += \"No valid prix (must be a Float)!\\n\";\n }\n }\n if ( !Weekly.isSelected() && !Daily.isSelected() && !Monthly.isSelected()) {\n errorMessage += \"No valid Etat ( select an item !)\\n\";\n }\n if (Servicesatet.getSelectionModel().getSelectedIndex() == -1) {\n errorMessage += \"No valid etat ( select an item !)\\n\";\n }\n if (ServiceCity.getSelectionModel().getSelectedIndex() == -1) {\n errorMessage += \"No valid City ( select an item !)\\n\";\n }\n if (servicetype.getSelectionModel().getSelectedIndex() == -1) {\n errorMessage += \"No valid Type ( select an item !)\\n\";\n }\n if (errorMessage.length() == 0) {\n return true;\n } else {\n // Show the error message.\n Alert alert = new Alert(Alert.AlertType.ERROR);\n alert.setTitle(\"Invalid Fields\");\n alert.setHeaderText(\"Please correct invalid fields\");\n alert.setContentText(errorMessage);\n alert.showAndWait();\n return false;\n }\n }",
"public void invalid() {\r\n\t\tSystem.out.println(\"Please enter a valid input\");\r\n\t}",
"protected void validate()\r\n\t{\r\n\t\tif( this.mapper==null )\r\n\t\t\tthrow new IllegalStateException(\"Please specify the Mapper of this dataset.\");\r\n\t\tif( this.input_format==null )\r\n\t\t\tthrow new IllegalStateException(\"Please specify the InputFormat of this dataset.\");\r\n\t\tif( this.inputs==null || this.inputs.size()==0 )\r\n\t\t\tthrow new IllegalStateException(\"Please specify the input path(s) of this dataset\");\r\n\t\tif ( this.getSchema()==null || this.getSchema().size()==0 )\r\n\t\t\tthrow new IllegalStateException(\"Please specify the schema of this dataset first\");\r\n\t}",
"private static String dateAddAndValidation() {\n Scanner scan = new Scanner(System.in);\r\n String date;\r\n while (true) {\r\n System.out.println(\"Please add task due date(YYYY-MM-DD)\");\r\n date = scan.nextLine().trim();\r\n String[] dateArray = date.split(\"-\");\r\n if (dateArray.length != 3 || date.length() != 10) {\r\n System.out.println(RED + \"Date format is incorrect. \" + RESET);\r\n continue;\r\n }\r\n if (dateArray[0].length() != 4 || !StringUtils.isNumeric(dateArray[0])) {\r\n System.out.println(RED + \"You have typed incorrect Year format (not all of the data are numbers or there are too many/ too few signs). \" + RESET);\r\n continue;\r\n }\r\n if (dateArray[1].length() != 2 || !NumberUtils.isDigits(dateArray[1])) {\r\n System.out.println(RED + \"You have given incorrect Month format (not all of the signs are numbers or there are too many/ too few signs). \" + RESET);\r\n continue;\r\n }\r\n if (Integer.parseInt(dateArray[1]) < 1 || Integer.parseInt(dateArray[1]) > 12) {\r\n System.out.println(RED + \"You have given incorrect Month date (Month date shouldn't be greater than 12 or less than 1). \" + RESET);\r\n continue;\r\n }\r\n if (dateArray[2].length() != 2 || !NumberUtils.isDigits(dateArray[2])) {\r\n System.out.println(RED + \"You have given incorrect Day format (not all of the signs are numbers or there are too many/ too few signs). \" + RESET);\r\n continue;\r\n }\r\n if (Integer.parseInt(dateArray[2]) < 1 || Integer.parseInt(dateArray[2]) > 31) {\r\n System.out.println(RED + \"You have typed incorrect Day date (Day date shouldn't be greater than 31 or less than 1). \" + RESET);\r\n continue;\r\n }\r\n break;\r\n }\r\n return date;\r\n }",
"public String validate() {\n\t\tString msg=\"\";\n\t\t// for name..\n\t\tif(name==null||name.equals(\"\"))\n\t\t{\n\t\t\tmsg=\"Task name should not be blank or null\";\n\t\t}\n\t\tif(name.split(\" \").length>1)\n\t\t{\n\t\t\tmsg=\"multiple words are not allowed\";\n\t\t}\n\t\telse\n\t\t{\n\t\t for(int i=0;i<name.length();i++)\n\t\t {\n\t\t\t char c=name.charAt(i);\n\t\t\t\tif(!(Character.isDigit(c)||Character.isLetter(c)))\n\t\t\t\t{\n\t\t\t\t\tmsg=\"special characters are not allowed\";\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t }\n\t\t}\n\t\t\t\n\t\t\n\t\t\t// for Description...\n\t\t\tif(desc==null||desc.equals(\"\"))\n\t\t\t{\n\t\t\t\tmsg=\"Task descrshould not be blank or null\";\n\t\t\t}\n\t\t\t\n\t\t\t\n\t\t\t // for tag...\n\t\t\t \n\t\t\t if(tag==null||tag.equals(\"\"))\n\t\t\t\t{\n\t\t\t\t\tmsg=\"Task tags not be blank or null\";\n\t\t\t\t}\n\t\t\t\t\n\t\t\t // for date { imp here}\n\t\t\t if(tarik!=null)\n\t\t\t {\n\t\t\t SimpleDateFormat sdf=new SimpleDateFormat(\"dd/MM/yyyy\");\n\t\t\t sdf.setLenient(false); // very imp here..\n\t\t\t try {\n\t\t\t\tDate d=sdf.parse(tarik);\n\t\t\t} catch (ParseException e) {\n\t\t\t\t\n\t\t\t//\tmsg=\"date should be correct foramat\";\n\t\t\t\tmsg=e.getMessage();\n\t\t\t}\n\t\t\t }\n\t\t\t// for prority..\n\t\t\t if(prio<1&&prio>10)\n\t\t\t {\n\t\t\t\t msg=\"prority range is 1 to 10 oly pa\";\n\t\t\t }\n\t\t\t\t\n\t\t\t\tif(msg.equals(\"\"))\n\t\t\t\t{\n\t\t\t\t\treturn Constant.SUCCESS;\n\t\t\t\t}\n\t\t\t\telse\n\t\t\treturn msg;\n\t}",
"private void checkUserInput() {\n }",
"public void partValidation () throws ValidationException {\n\n // checks for a name to be entered\n if (getPartName().isEmpty() || !getPartName().matches(\"^[a-zA-Z0-9_ ]*$\")){\n throw new ValidationException(\"Name field is invalid. Can't be blank. Must be alphanumeric\");\n\n // checks that minimum stock isn't less than 0\n }else if (getPartStockMin() < 0) {\n throw new ValidationException(\"Inventory minimum can't be less than 0\");\n\n } else if (getPartStockMax() < 0) {\n throw new ValidationException(\"Inventory max must be greater than 0\");\n\n // checks to make sure max stock is not less than the minimum\n }else if (getPartStockMax() < getPartStockMin()) {\n throw new ValidationException(\"Max inventory can't be less than the minimum\");\n\n // checks that stock on hadn is not less than the minimum\n } else if (getPartStock() < getPartStockMin()){\n throw new ValidationException(\"Part inventory can't be less than the minimum\");\n\n // part price can't be 0 or less\n }else if (getPartPrice() < 0){\n throw new ValidationException(\"Price has to be a positive number\");\n\n // max stock can't be less than what you already have\n }else if (getPartStockMax() < getPartStock()){\n throw new ValidationException(\"Max inventory can't be less than what you have on hand\");\n\n // check stock is between min and max\n } else if (getPartStock() < getPartStockMin() || getPartStock() > getPartStockMax()){\n throw new ValidationException(\"Inventory level must be between min and max\");\n\n }\n }",
"private void check()\n {\n Preconditions.checkArgument(name != null, \"Property name missing\");\n Preconditions.checkArgument(valueOptions != null || valueMethod != null, \"Value method missing\");\n Preconditions.checkArgument(\n !(this.validationRegex != null && this.valueOptions != null && this.valueOptionsMustMatch),\n \"Cant have regexp validator and matching options at the same time\");\n\n if (required == null)\n {\n /*\n If a property has a default value, the common case is that it's required.\n However, we need to allow for redundant calls of required(): defaultOf(x).required();\n and for unusual cases where a property has a default value but it's optional: defaultOf(x).required(false).\n */\n required = this.defaultValue != null;\n }\n\n if (description == null)\n description = \"Property name: \" + name + \", required = \" + required;\n\n if (valueOptions != null && defaultValue != null)\n {\n for (PropertySpec.Value v : valueOptions)\n {\n if (v.value.equals(defaultValue.value))\n v.isDefault = true;\n }\n }\n\n if (dependsOn != null)\n {\n if (category == null)\n throw new IllegalArgumentException(\"category required when dependsOn is set \" + name);\n\n if (!dependsOn.isOptionsOnly())\n throw new IllegalArgumentException(\n \"Invalid dependsOn propertySpec (must be optionsOnly) \" + dependsOn.name());\n }\n }",
"public boolean isInputValid()\n {\n String[] values = getFieldValues();\n if(values[0].length() > 0 || values[1].length() > 0 || values[2].length() > 0)\n return true;\n else\n return false;\n }",
"private boolean isInputValid() {\n String errorMessage = \"\";\n\n if (commentField.getText() == null || commentField.getText().length() == 0) {\n errorMessage += \"Не введен комментарий!\\n\";\n }\n if (timeField.getText() == null || timeField.getText().length() == 0) {\n errorMessage += \"Не введено время выполнения задачи!\\n\";\n }\n if (errorMessage.length() == 0) {\n return true;\n } if (errorMessage.length() == 0) {\n return true;\n } else {\n // Show the error message.\n Alert alert = new Alert(Alert.AlertType.INFORMATION);\n alert.setTitle(\"Не введены все данные!\");\n alert.setHeaderText(null);\n alert.setContentText(\"Пожалуйста, введите все данные!\");\n alert.showAndWait();\n return false;\n }\n }",
"private boolean validateRequiredFields(StringBuffer b){\n boolean result = true;\n\n if (!TextFieldHelper.isNumericFieldValid(this.goalValue, \" Цель: \", b) ||\n !TextFieldHelper.isNumericFieldValid(this.startWeightValue, \" Исходный вес: \", b) ||\n !TextFieldHelper.isNumericFieldValid(this.heightValue, \" Рост: \", b) ||\n !CalendarHelper.isFieldValid(startProgramDateValue, \" Старт программы: \", b) ||\n !new ComboBoxFieldHelper<Client>().isFieldValid(clientFIOValue, \" Клиент: \", b))\n {\n result = false;\n }\n\n return result;\n }",
"public void validateSchedular() {\n boolean startDateCheck = false, cronTimeCheck = false, dateFormatCheck = false;\n /*\n Schedular Properties\n */\n\n System.out.println(\"Date: \" + startDate.getValue());\n if (startDate.getValue() != null) {\n System.out.println(\"Date: \" + startDate.getValue());\n startDateCheck = true;\n } else {\n execptionData.append((++exceptionCount) + \". Start Date should not be empty.\\n\");\n }\n\n if (!cronTime.getText().isEmpty()) {\n cronTimeCheck = true;\n } else {\n execptionData.append((++exceptionCount) + \". Cron Time should not be empty.\\n\");\n }\n// if (!dateFormat.getText().isEmpty()) {\n// dateFormatCheck = true;\n// } else {\n// execptionData.append((++exceptionCount) + \". Date Format should not be empty.\\n\");\n// }\n\n if (startDateCheck == true && cronTimeCheck == true) {\n schedularCheck = true;\n } else {\n schedularCheck = false;\n startDateCheck = false;\n cronTimeCheck = false;\n dateFormatCheck = false;\n }\n\n }",
"private static boolean isBadInput(String s) {\n\t\tString[] split = s.split(\"\\\\s+\");\n\t\tif (split.length != 3) {\n\t\t\tSystem.err.printf(\"Unknow length: %d\\n\", split.length);\n\t\t\treturn true;\n\t\t}\n\t\ttry {\n\t\t\tInteger.parseInt(split[0]);\n\t\t\tInteger.parseInt(split[2]);\n\t\t} catch (NumberFormatException e) {\n\t\t\tSystem.err.printf(\"Input numbers only.\\n\");\n\t\t\treturn true;\n\t\t}\n\t\t\n\t\tif (split[1].length() != 1) {\n\t\t\tSystem.err.printf(\"Operator should be one character.\\n\");\n\t\t\treturn true;\n\t\t}\n\t\treturn false;\n\t}",
"private boolean isInputValid() {\r\n String errorMessage = \"\";\r\n\r\n if (errorMessage.length() == 0) {\r\n return true;\r\n } else {\r\n// Show the error message.\r\n Dialogs.create()\r\n .title(\"Invalid Fields\")\r\n .masthead(\"Please correct invalid fields\")\r\n .message(errorMessage)\r\n .showError();\r\n return false;\r\n }\r\n }",
"private void setupRequiredValidation() {\n requiredMafExpressions.put(FIELD_HUGO_SYMBOL, Pattern.compile(\"\\\\S+\"));\r\n requiredFieldDescriptions.put(FIELD_HUGO_SYMBOL, \"may not be blank\");\r\n requiredMafExpressions.put(FIELD_ENTREZ_GENE_ID, Pattern.compile(\"\\\\d+\")); // number\r\n requiredFieldDescriptions.put(FIELD_ENTREZ_GENE_ID, \"must be an integer number\");\r\n requiredMafExpressions.put(FIELD_MATCHED_NORM_SAMPLE_BARCODE, QcLiveBarcodeAndUUIDValidatorImpl.ALIQUOT_BARCODE_PATTERN);\r\n requiredFieldDescriptions.put(FIELD_MATCHED_NORM_SAMPLE_BARCODE, \"must be a full aliquot barcode\");\r\n requiredMafExpressions.put(FIELD_TUMOR_SAMPLE_BARCODE, QcLiveBarcodeAndUUIDValidatorImpl.ALIQUOT_BARCODE_PATTERN);\r\n requiredFieldDescriptions.put(FIELD_TUMOR_SAMPLE_BARCODE, \"must be a full aliquot barcode\");\r\n requiredMafExpressions.put(FIELD_VALIDATION_STATUS, Pattern.compile(\"Valid|Wildtype|Unknown|\\\\S?\"));\r\n requiredFieldDescriptions.put(FIELD_VALIDATION_STATUS, \"must be Valid, Wildtype, Unknown, or blank\");\r\n requiredMafExpressions.put(FIELD_CHROMOSOME, Pattern.compile(\"\\\\S+\"));\r\n requiredFieldDescriptions.put(FIELD_CHROMOSOME, \"must be one of: X, Y, M, 1-22, or full name of unassigned fragment\");\r\n setupMafSpecificChecks();\r\n }",
"private void validateInput () throws IOException, Exception {\n\t\t\n\t\t// Check that the properties file exists\n\t\tFile propFile = new File(propertiesFile);\n\t\tif (!propFile.exists()) { \n\t\t\tthrow new IOException(\"Unable to open properties file \" + propertiesFile);\t\n\t\t}\n\t\t\n\t\t// Check that the list of register files is not empty\n\t\tif (inputFiles == null || inputFiles.isEmpty()) {\n\t\t\tthrow new Exception(\"No files to process\");\n\t\t}\n\t}",
"boolean validateInput() {\n if (etFullname.getText().toString().equals(\"\")) {\n etFullname.setError(\"Please Enter Full Name\");\n return false;\n }\n if (etId.getText().toString().equals(\"\")) {\n etId.setError(\"Please Enter ID\");\n return false;\n }\n if (etEmail.getText().toString().equals(\"\")) {\n etEmail.setError(\"Please Enter Email\");\n return false;\n }\n if (etHall.getText().toString().equals(\"\")) {\n etHall.setError(\"Please Enter Hall Name\");\n return false;\n }\n if (etAge.getText().toString().equals(\"\")) {\n etAge.setError(\"Please Enter Age\");\n return false;\n }\n if (etPhone.getText().toString().equals(\"\")) {\n etPhone.setError(\"Please Enter Contact Number\");\n return false;\n }\n if (etPassword.getText().toString().equals(\"\")) {\n etPassword.setError(\"Please Enter Password\");\n return false;\n }\n\n // checking the proper email format\n if (!isEmailValid(etEmail.getText().toString())) {\n etEmail.setError(\"Please Enter Valid Email\");\n return false;\n }\n\n // checking minimum password Length\n if (etPassword.getText().length() < MIN_PASSWORD_LENGTH) {\n etPassword.setError(\"Password Length must be more than \" + MIN_PASSWORD_LENGTH + \"characters\");\n return false;\n }\n\n\n return true;\n }",
"private void validateData(String input) {\n String[] inputStringArray = input.split(\" \");\n\n for (String s : inputStringArray) {\n try {\n Integer.parseInt(s);\n } catch (NumberFormatException e) {\n throw new NumberFormatException(\n \"Looks like your input - \" + s + \", is not a number. Try again\");\n }\n }\n }",
"public void validate() {}",
"public String isGoodNumberInput(String s, String g) {\n boolean isBadInput = true;\n while (isBadInput) {\n g = scanner.nextLine();\n if (s.equals(\"changePhone\") || s.equals(\"phoneNumber\")) {\n if (!isNumeric(g)) {\n System.out.println(\"That is not a number, please enter a number\");\n } else if (g.length() >= 11) {\n System.out.println(\"I'm sorry that number is too large, place try again.\");\n } else if (g.length() < 10) {\n System.out.println(\"I'm sorry, that is too small please use 10 digits\");\n } else {\n isBadInput = false;\n }\n } else if (s.equals(\"changeStreet\") || s.equals(\"streetNumber\")) {\n if (!isNumeric(g)) {\n System.out.println(\"That is not a number, please enter a number\");\n } else if (g.length() < 0) {\n System.out.println(\"It seems you have not entered an address number. Please try again .\");\n } else if (g.length() > 10) {\n System.out.println(\"It seems like that is a little too long for an address number. Why don't you try again.\");\n } else {\n isBadInput = false;\n }\n } else if (s.equals(\"changeAptNum\") || s.equals(\"aptNum\")) {\n if (g.equalsIgnoreCase(\"n/a\")) {\n isBadInput = false;\n } else if (!isNumeric(g)) {\n System.out.println(\"That is not a number, please try again\");\n } else if (g.length() >= 6) {\n System.out.println(\"It seems like that is a little too long for an apartment number. Why don't you try again.\");\n } else {\n isBadInput = false;\n }\n } else if (s.equals(\"changeZip\") || s.equals(\"zip\")) {\n if (!isNumeric(g)) {\n System.out.println(\"That is not a number, please enter a number.\");\n } else if (g.length() < 0) {\n System.out.println(\"You have not entered a zip code, please try again.\");\n } else if (g.length() > 6) {\n System.out.println(\"That is too long for a zip code, please try again.\");\n } else {\n isBadInput = false;\n }\n\n } else {\n System.out.println(\"There is no option for that, please try again\");\n }\n }\n\n return g;\n }",
"public void InvalidFormat();",
"private long validateInput() {\n\t\tdouble[] inputs = getUserInputFromUIControls();\n\t\tif (inputs == null) {\n\t\t\treturn 9;\n\t\t}\n\t\tif (inputs[8] != 0.0) {\n\t\t\treturn (long) inputs[8];\n\t\t}\n\t\tif (inputs[0] > 90.0 || inputs[0] < -90.0) {\n\t\t\treturn 1;\n\t\t}\n\t\tif (inputs[1] > 180.0 || inputs[1] < -180.0) {\n\t\t\treturn 2;\n\t\t}\n\t\t// Year can be any number that can be fit within an integer.\n\t\tif (inputs[2] > Integer.MAX_VALUE || inputs[2] < Integer.MIN_VALUE) {\n\t\t\treturn 3;\n\t\t}\n\t\tif (inputs[3] > 12.0 || inputs[3] < 1.0) {\n\t\t\treturn 4;\n\t\t}\n\t\tif (inputs[4] > 31.0 || inputs[4] < 1.0) {\n\t\t\treturn 5;\n\t\t}\n\t\tif (inputs[5] > 23.0 || inputs[5] < 0.0) {\n\t\t\treturn 6;\n\t\t}\n\t\tif (inputs[6] > 59.0 || inputs[6] < 0.0) {\n\t\t\treturn 7;\n\t\t}\n\t\tif (inputs[7] > 59.0 || inputs[7] < 0.0) {\n\t\t\treturn 8;\n\t\t}\n\t\treturn 0;\n\t}",
"private void validateData() {\n }",
"@Override\n\t@FXML\n\tpublic boolean validate() {\n\t\t\n\t\tboolean isDataEntered = true;\n\t\tLocalDate startDate = Database.getInstance().getStartingDate();\n\t\tSystem.out.println();\n\t\tif(amountField.getText() == null || amountField.getText().trim().isEmpty())\n\t\t\tisDataEntered = setErrorTxt(\"You left the amount field empty.\");\n\t\telse if(!(Validation.validateAmount(amountField.getText())))\n\t\t\tisDataEntered = setErrorTxt(\"Please enter a valid amount\");\n\t\telse if(creditTextField.getText() == null || creditTextField.getText().trim().isEmpty())\n\t\t\tisDataEntered = setErrorTxt(\"You left the credit text field empty.\");\n\t\telse if(!(Validation.validateChars(creditTextField.getText())))\n\t\t\tisDataEntered = setErrorTxt(\"Please only enter valid characters\");\n\t\telse if(dateField.getValue() == null) {\n\t\t\tisDataEntered = setErrorTxt(\"You left the date field empty.\");\t\t\t\n\t\t}\n\t\telse if(dateField.getValue().isBefore(startDate))\n\t\t\tisDataEntered = setErrorTxt(\"Sorry, the date you entered is before the starting date.\");\n\t\treturn isDataEntered;\n\t}",
"@Override\n protected boolean validater(String[] line) {\n if (line.length != 9) {\n errorCounter(0);\n return false;\n }\n\n changeNulls(line);\n\n if (!isAirlineValid(line[airline])) {\n errorCounter(1);\n return false;\n }\n\n if (!isAirlineIDValid(line[airlineID])) {\n errorCounter(2);\n return false;\n }\n\n if (!isAirportValid(line[sourceAirport])) {\n errorCounter(3);\n return false;\n }\n\n if (!isAirportIDValid(line[sourceAirportID])) {\n errorCounter(4);\n return false;\n }\n\n if (!isAirportValid(line[destinationAirport])) {\n errorCounter(5);\n return false;\n }\n\n if (!isAirportIDValid(line[destinationAirportID])) {\n errorCounter(6);\n return false;\n }\n\n if (!isCodeshareValid(line[codeshare])) {\n errorCounter(7);\n return false;\n }\n\n if (!isStopsValid(line[stops])) {\n errorCounter(8);\n return false;\n }\n\n if (!isEquipmentValid(line[equipment])) {\n errorCounter(9);\n return false;\n }\n\n return true;\n }",
"private boolean Validate() {\n EditText titleText = findViewById(R.id.register_movie_title_txt);\n EditText yearText = findViewById(R.id.register_movie_year_txt);\n EditText ratingText = findViewById(R.id.register_movie_rating_txt);\n\n\n boolean is_filled_required_fields = false;\n is_filled_required_fields = titleText.getText().toString().length() > 0\n && yearText.getText().toString().length() > 0\n && ratingText.getText().toString().length() > 0;\n\n if (!is_filled_required_fields) {\n Snackbar mySnackbar = Snackbar.make(findViewById(R.id.activity_register_base_layout), \"Please fill required fields\", BaseTransientBottomBar.LENGTH_SHORT);\n mySnackbar.show();\n }\n return is_filled_required_fields;\n }",
"public void validate() {\n Validate.notEmpty(filePath, \"Configuration file path not specified\");\n Validate.notEmpty(fileEncoding, \"Configuration file encoding not specified\");\n Validate.notEmpty(syntaxCheckCommand, \"Syntax check command not specified\");\n Validate.notEmpty(restartCommand, \"Restart command not specified\");\n Validate.notNull(hostName, \"Host name not specified\");\n Validate.isTrue(port > 0, \"Port must be greater than zero\");\n Validate.isTrue(checkInterval > 0, \"Health check interval must be greater than zero\");\n Validate.isTrue(checkTimeout > 0, \"Health check timeout must be greater than zero\");\n }",
"private static void checkFormat(String str) {\n if (str.length() != 8)\n throw new IllegalArgumentException(\"length has too be 8\");\n try {\n Integer.parseInt(str.substring(0,2)); //Hours\n Integer.parseInt(str.substring(3,5)); //Minutes\n } catch (NumberFormatException e) {\n throw new IllegalArgumentException(\"These numbers are wrong\");\n }\n if (str.charAt(2) != ':') {\n throw new IllegalArgumentException(\"requires colon between times\");\n }\n if (str.charAt(5) != ' ') {\n throw new IllegalArgumentException(\"requires space between time and period\");\n }\n String mStr = str.substring(6);\n if (!mStr.equals(\"PM\") && !mStr.equals(\"AM\")) {\n throw new IllegalArgumentException(\"Must be AM or PM\");\n }\n }",
"private boolean validateInput() {\n boolean isValid = true;\n Alert errMsg = Util.getAlert(Alert.AlertType.ERROR);\n if (connectionsCB.getEditor().getText() == null || !Util.isValidAddress(connectionsCB.getEditor().getText())) {\n errMsg.setContentText(\"Invalid TRex Host Name or IP address\");\n isValid = false;\n } else if (!Util.isValidPort(rpcPort.getText())) {\n errMsg.setContentText(\"Invalid TRex Sync Port Number(\" + rpcPort.getText() + \")\");\n isValid = false;\n } else if (!Util.isValidPort(asyncPort.getText())) {\n errMsg.setContentText(\"Invalid Async Port Number(\" + asyncPort.getText() + \")\");\n isValid = false;\n } else if (Util.isNullOrEmpty(nameTF.getText())) {\n errMsg.setContentText(\"Name should not be empty\");\n isValid = false;\n }\n\n if (!isValid) {\n errMsg.show();\n }\n return isValid;\n }",
"private boolean validInput() throws SQLException {\n if (userNameField.getText().length() == 0) {\n displayMessage(messagePane, \"Name cannot be empty\", true);\n return false;\n }\n else if (userNameField.getText().length() == 1) {\n displayMessage(messagePane, \"Name cannot be empty\", true);\n return false;\n }\n else if (!isAllLetters(userNameField.getText())) {\n displayMessage(messagePane, \"Names must be all letters\", true);\n return false;\n }\n else if (!(userNameField.getText().contains(\" \")) || userNameField.getText().charAt(0) == ' ') {\n displayMessage(messagePane, \"Name must consist of two words\", true);\n return false;\n }\n else if (!(emailField.getText().contains(\"@\"))) {\n displayMessage(messagePane, \"Invalid email\", true);\n return false;\n }\n else if (DatabaseManager.isEmailTaken(user.getDatabaseConnection(), emailField.getText()) && !(emailField.getText().equals(user.getUser().getEmail()))){\n displayMessage(messagePane, \"Email is used before\", true);\n return false;\n }\n else {\n displayMessage(messagePane,\"Changes are saved\", false);\n return true;\n }\n }",
"private boolean validateFields() {\n\t\tList<String> errorMsg = new ArrayList<>();\n\n\t\tif (aliasField.getText().equals(\"\"))\n\t\t\terrorMsg.add(\"Alias cannot be left empty.\\n\");\n\n\t\tif (carComboBox.getValue() == null)\n\t\t\terrorMsg.add(\"A car should be assigned to the trip.\\n\");\n\n\t\tif (routeComboBox.getValue() == null)\n\t\t\terrorMsg.add(\"A route should be assigned to the trip.\\n\");\n\n\t\tfor (StopPoint stopPoint : stopPoints) {\n\t\t\tif (stopPoint.getTime() == null || stopPoint.getTime().equals(\"\"))\n\t\t\t\terrorMsg.add(\"You need to set an arriving time for '\" + stopPoint.toString() + \"'.\\n\");\n\t\t}\n\n\t\tif (endDatePicker.getValue() != null && startDatePicker.getValue() != null)\n\t\t{\n\t\t\tif (startDatePicker.getValue().isBefore(LocalDate.now())) {\n\t\t\t\terrorMsg.add(\"Trip start date should be after current date.\\n\");\n\t\t\t} else if (endDatePicker.getValue().isBefore(startDatePicker.getValue())) {\n\t\t\t\terrorMsg.add(\"Trip end date should be after start date.\\n\");\n\t\t\t} else {\n\t\t\t\tSet<DayOfWeek> recurrence = RecurrenceUtility.parseBitmaskToSet(getRecurrence());\n\t\t\t\tboolean isValidRecurrence = false;\n\t\t\t\tfor (LocalDate now = startDatePicker.getValue(); !now.isAfter(endDatePicker.getValue()); now = now.plusDays(1)) {\n\t\t\t\t\tif (recurrence.contains(now.getDayOfWeek()))\n\t\t\t\t\t\tisValidRecurrence = true;\n\t\t\t\t}\n\t\t\t\tif (!isValidRecurrence) {\n\t\t\t\t\terrorMsg.add(\"No recurrent day exists between trip start date and end date.\\n\");\n\t\t\t\t}\n\t\t\t}\n\t\t} else {\n\t\t\terrorMsg.add(\"Trip starts date or/and end date is invalid.\\n\");\n\t\t}\n\n\t\t// consistency check\n\t\t// WOF & registration cannot be expired before the end date of recurring trip\n\t\tCar car = carComboBox.getValue();\n\t\tif (endDatePicker.getValue() != null && startDatePicker.getValue() != null && car != null) {\n\t\t\tif (LocalDate.parse(car.getWof()).isBefore(endDatePicker.getValue()) ||\n\t\t\tLocalDate.parse(car.getRegistration()).isBefore(endDatePicker.getValue())) {\n\t\t\t\terrorMsg.add(String.format(\"The expiration date of a recurring trip cannot occur after the expiry date of car's WOF and registration.\\n\" +\n\t\t\t\t\t\t\t\t\"------------------------------------------------\\n\" +\n\t\t\t\t\t\t\t\t\"Details for car [%s]:\\n\" +\n\t\t\t\t\t\t\t\t\" a. WOF expire date is %s.\\n\" +\n\t\t\t\t\t\t\t\t\" b. Registration expire date is %s.\\n\" +\n\t\t\t\t\t\t\t\t\"------------------------------------------------\\n\",\n\t\t\t\t\t\tcar.getPlate(), car.getWof(), car.getRegistration()));\n\t\t\t}\n\t\t}\n\n\t\t// handle and show error message in dialog\n\t\tif (errorMsg.size() != 0) {\n\t\t\tStringBuilder errorString = new StringBuilder(\"Operation failed is caused by: \\n\");\n\t\t\tfor (Integer i = 1; i <= errorMsg.size(); i++) {\n\t\t\t\terrorString.append(i.toString());\n\t\t\t\terrorString.append(\". \");\n\t\t\t\terrorString.append(errorMsg.get(i - 1));\n\t\t\t}\n\t\t\tString headMsg = mode == Mode.ADD_MODE ? \"Failed to add the trip.\" : \"Failed to update the trip.\";\n\t\t\trss.showErrorDialog(headMsg, errorString.toString());\n\t\t\treturn false;\n\t\t}\n\t\treturn true;\n\t}",
"public void validate() throws org.apache.thrift.TException {\n if (version == null) {\n throw new org.apache.thrift.protocol.TProtocolException(\"Required field 'version' was not present! Struct: \" + toString());\n }\n if (am_handle == null) {\n throw new org.apache.thrift.protocol.TProtocolException(\"Required field 'am_handle' was not present! Struct: \" + toString());\n }\n if (user == null) {\n throw new org.apache.thrift.protocol.TProtocolException(\"Required field 'user' was not present! Struct: \" + toString());\n }\n if (resources == null) {\n throw new org.apache.thrift.protocol.TProtocolException(\"Required field 'resources' was not present! Struct: \" + toString());\n }\n // alas, we cannot check 'gang' because it's a primitive and you chose the non-beans generator.\n // check for sub-struct validity\n if (am_handle != null) {\n am_handle.validate();\n }\n if (reservation_id != null) {\n reservation_id.validate();\n }\n }",
"private boolean validateInput() {\n String departmentInput = mDepartmentField.getText().toString();\n String emailInput = mEmailField.getText().toString();\n String passwordInput = mPasswordField.getText().toString();\n\n if (departmentInput.isEmpty()) {\n mDepartmentField.setError(\"Please enter your department number\");\n mDepartmentField.requestFocus();\n return false;\n } else {\n mPasswordField.setError(null);\n }\n\n\n if (emailInput.isEmpty() || !Patterns.EMAIL_ADDRESS.matcher(emailInput).matches()) {\n mEmailField.setError(\"Please enter a valid email address\");\n mEmailField.requestFocus();\n return false;\n } else {\n mEmailField.setError(null);\n }\n\n if (passwordInput.isEmpty()) {\n mPasswordField.setError(\"Please enter your password\");\n mPasswordField.requestFocus();\n return false;\n } else {\n mPasswordField.setError(null);\n }\n\n return true;\n }",
"@Test(priority=6)\n\tpublic void validatePleaseEnterTheValueErrorMsg2()\n\t{\n\t\tc.enterNiftyPriceField.sendKeys(\"gvd&$vdh\");\n\t\tc.addButton.click();\n\t\tAssert.assertTrue(c.msg.getText().equalsIgnoreCase(\"Please Enter A Value.\"));\n\t}",
"protected boolean validateInputs() {\n if (KEY_EMPTY.equals(firstName)) {\n etFirstName.setError(\"First Name cannot be empty\");\n etFirstName.requestFocus();\n return false;\n }\n if (KEY_EMPTY.equals(lastName)) {\n etLastName.setError(\"Last Name cannot be empty\");\n etLastName.requestFocus();\n return false;\n }\n if (KEY_EMPTY.equals(username)) {\n etUsername.setError(\"Username cannot be empty\");\n etUsername.requestFocus();\n return false;\n }\n if (KEY_EMPTY.equals(email)) {\n etEmail.setError(\"Email cannot be empty\");\n etEmail.requestFocus();\n return false;\n }\n if (KEY_EMPTY.equals(password)) {\n etPassword.setError(\"Password cannot be empty\");\n etPassword.requestFocus();\n return false;\n }\n if (KEY_EMPTY.equals(confirmPassword)) {\n etConfirmPassword.setError(\"Confirm Password cannot be empty\");\n etConfirmPassword.requestFocus();\n return false;\n }\n if (!password.equals(confirmPassword)) {\n etConfirmPassword.setError(\"Password and Confirm Password does not match\");\n etConfirmPassword.requestFocus();\n return false;\n }\n if (KEY_EMPTY.equals(major)) {\n etMajor.setError(\"Major cannot be empty\");\n etMajor.requestFocus();\n return false;\n }\n if (KEY_EMPTY.equals(university)) {\n etUniversity.setError(\"university cannot be empty\");\n etUniversity.requestFocus();\n return false;\n }\n\n\n\n if(!isStudent && !isTutor){\n //Show a toast or some kind of error\n Toast toast = Toast.makeText(this, \"message\", Toast.LENGTH_SHORT);\n toast.setText(\"please check the account type\");\n toast.setGravity(Gravity.CENTER, 0, 0);\n //other setters\n toast.show();\n return false;\n }\n\n\n return true;\n }",
"private static void validateInputArguments(String args[]) {\n\n\t\tif (args == null || args.length != 2) {\n\t\t\tthrow new InvalidParameterException(\"invalid Parameters\");\n\t\t}\n\n\t\tString dfaFileName = args[DFA_FILE_ARGS_INDEX];\n\t\tif (dfaFileName == null || dfaFileName.trim().isEmpty()) {\n\t\t\tthrow new InvalidParameterException(\"Invalid file name\");\n\t\t}\n\n\t\tString delimiter = args[DELIMITER_SYMBOL_ARGS_INDEX];\n\t\tif (delimiter == null || delimiter.trim().isEmpty()) {\n\t\t\tthrow new InvalidParameterException(\"Invalid delimiter symbol\");\n\t\t}\n\t}",
"public boolean inputIsValid() {\n return nameIsValid() &&\n descriptionIsValid() &&\n priceIsValid() &&\n streetIsValid() &&\n zipcodeIsValid() &&\n cityIsValid() &&\n imageIsSelected();\n }",
"protected void check() throws IOException, ServletException {\n if(value.length()==0)\n error(\"please specify at least one component\");\n else {\n \t\t//TODO add more checks\n \t\tok();\n }\n }",
"private boolean validateData() {\r\n TASKAggInfo agg = null;\r\n int index = aggList.getSelectedIndex();\r\n if (index != 0) {\r\n agg = (TASKAggInfo)aggregators.elementAt(aggList.getSelectedIndex()-1);\r\n }\r\n\r\n if (getArgument1() == BAD_ARGUMENT) {\r\n JOptionPane.showMessageDialog(this, \"Argument 1 must be of type: \"+TASKTypes.TypeName[agg.getArgType()], \"Error\", JOptionPane.ERROR_MESSAGE);\r\n return false;\r\n }\r\n else if (getArgument2() == BAD_ARGUMENT) {\r\n JOptionPane.showMessageDialog(this, \"Argument 2 must be of type: \"+TASKTypes.TypeName[agg.getArgType()], \"Error\", JOptionPane.ERROR_MESSAGE);\r\n return false;\r\n }\r\n else if (getOperand() == BAD_ARGUMENT) {\r\n JOptionPane.showMessageDialog(this, \"Filter value must be of type integer\", \"Error\", JOptionPane.ERROR_MESSAGE);\r\n return false;\r\n }\r\n return true;\r\n }",
"private void checkValid() {\n getSimType();\n getInitialConfig();\n getIsOutlined();\n getEdgePolicy();\n getNeighborPolicy();\n getCellShape();\n }",
"public boolean isValidPart() {\n boolean result = false;\n boolean isComplete = !partPrice.getText().equals(\"\")\n && !partName.getText().equals(\"\")\n && !inventoryCount.getText().equals(\"\")\n && !partId.getText().equals(\"\")\n && !maximumInventory.getText().equals(\"\")\n && !minimumInventory.getText().equals(\"\")\n && !variableTextField.getText().equals(\"\");\n boolean isValidPrice = isDoubleValid(partPrice);\n boolean isValidName = isCSVTextValid(partName);\n boolean isValidId = isIntegerValid(partId);\n boolean isValidMax = isIntegerValid(maximumInventory);\n boolean isValidMin = isIntegerValid(minimumInventory);\n boolean isMinLessThanMax = false;\n if (isComplete)\n isMinLessThanMax = Integer.parseInt(maximumInventory.getText()) > Integer.parseInt(minimumInventory.getText());\n\n if (!isComplete) {\n Alert errorMessage = new Alert(Alert.AlertType.INFORMATION);\n errorMessage.setTitle(\"Missing Information\");\n errorMessage.setHeaderText(\"You didn't enter required information!\");\n errorMessage.setContentText(\"All fields are required! Your part has not been saved. Press \\\"OK\\\" and try again.\");\n errorMessage.show();\n } else if (!isMinLessThanMax) {\n Alert errorMessage = new Alert(Alert.AlertType.INFORMATION);\n errorMessage.setTitle(\"Invalid Entry\");\n errorMessage.setHeaderText(\"Min must be less than Max!\");\n errorMessage.setContentText(\"Re-enter your data! Your part has not been saved.Press \\\"OK\\\" and try again.\");\n errorMessage.show();\n } else if (!isValidPrice) {\n Alert errorMessage = new Alert(Alert.AlertType.INFORMATION);\n errorMessage.setTitle(\"Price is not valid\");\n errorMessage.setHeaderText(\"The value you entered for price is not valid\");\n errorMessage.setContentText(\"Please ensure that the value you have entered does\" +\n \" not include more than one decimal point (.), does not contain any letters, and does not \" +\n \"have more than two digits after the decimal. \");\n errorMessage.show();\n } else if (!isValidName) {\n Alert errorMessage = new Alert(Alert.AlertType.INFORMATION);\n errorMessage.setTitle(\"Invalid Name\");\n errorMessage.setHeaderText(\"The value you entered for name is not valid.\");\n errorMessage.setContentText(\"Please ensure that the text you enter does not\" +\n \" include any quotation marks,\" +\n \"(\\\"), or commas (,).\");\n errorMessage.show();\n } else if (!isValidId) {\n Alert errorMessage = new Alert(Alert.AlertType.INFORMATION);\n errorMessage.setTitle(\"Incorrect ID\");\n errorMessage.setHeaderText(\"The value you entered for ID is not valid\");\n errorMessage.setContentText(\"Please ensure that the value you have entered\" +\n \" is a whole number, with no letters, symbols or decimal points. \");\n errorMessage.show();\n } else if (!isValidMax) {\n Alert errorMessage = new Alert(Alert.AlertType.INFORMATION);\n errorMessage.setTitle(\"Incorrect Max Inventory\");\n errorMessage.setHeaderText(\"The value you entered for Max is not valid\");\n errorMessage.setContentText(\"Please ensure that the value you have entered\" +\n \" is a whole number, with no letters, symbols or decimal points. \");\n errorMessage.show();\n } else if (!isValidMin) {\n Alert errorMessage = new Alert(Alert.AlertType.INFORMATION);\n errorMessage.setTitle(\"Incorrect Min Inventory\");\n errorMessage.setHeaderText(\"The value you entered for Min is not valid\");\n errorMessage.setContentText(\"Please ensure that the value you have entered\" +\n \" is a whole number, with no letters, symbols or decimal points. \");\n errorMessage.show();\n } else {\n result = true;\n }\n\n return result;\n }",
"public void validate(String[] argsIn) {\n\n\t\tif (argsIn.length > 1 || null == argsIn) {\n\t\t\tSystem.err.println(\"Arguments passed were either less/more than expected!\\nThe program can accepts 1 arguments.\");\n\t\t\tSystem.exit(0);\n\t\t}\n\t\tif(argsIn.length != 1 || argsIn[0].equals(\"${arg0}\") || (Integer.parseInt(argsIn[0]) > 2)) {\n\t\t\tSystem.err.println(\"Debug arguments can take values from 0-2\");\n\t\t\tSystem.exit(0);\n\t\t}\n\t\tbuildInput(argsIn);\n\t\tif (argsIn.length == 1) {\n\t\t\tint debugValue = 0;\n\t\t\ttry {\n\t\t\t\tdebugValue = Integer.parseInt(argsIn[0]);\n\t\t\t\tMyLogger.setDebugValue(debugValue);\n\n\t\t\t} catch (NumberFormatException e) {\n\t\t\t\tSystem.out.println(\"Error while parsing debug level value\");\n\t\t\t\te.printStackTrace();\n\t\t\t\tSystem.exit(0);\n\t\t\t}\n\t\t}\n\t}",
"protected void validate() {\n Validator mandatoryValidator = validateMandatoryOptions();\n Validator exclusionsValidator = validateOptionExclusions();\n Validator inapplicableOptionValidator = validateInapplicableOptions();\n Validator optionalValidator = validateOptionalParameters();\n\n List<String> validationMessages = new LinkedList<>();\n\n validationMessages.addAll(mandatoryValidator.getValidationMessages());\n validationMessages.addAll(exclusionsValidator.getValidationMessages());\n validationMessages.addAll(optionalValidator.getValidationMessages());\n validationMessages.addAll(inapplicableOptionValidator.getValidationMessages());\n\n if (!validationMessages.isEmpty()) {\n String tablePathString =\n (tablePath != null) ? SourceUtils.pathToString(tablePath) : \"null\";\n throw new DeltaOptionValidationException(tablePathString, validationMessages);\n }\n }",
"private boolean validate() {\n if(edtMobileNumber.getText().toString().length() <= 0){\n edtMobileNumber.setFocusable(true);\n edtMobileNumber.setError(Constants.ERR_MSG_MOBILE);\n return false;\n }else if(edtFirstName.getText().toString().length() <= 0){\n edtFirstName.setFocusable(true);\n edtFirstName.setError(Constants.ERR_MSG_FIRST_NAME);\n return false;\n }else if(edtLastName.getText().toString().length() <= 0){\n edtLastName.setFocusable(true);\n edtLastName.setError(Constants.ERR_MSG_LAST_NAME);\n return false;\n }else if(edtDateOfBirth.getText().toString().length() <= 0){\n edtDateOfBirth.setFocusable(true);\n edtDateOfBirth.setError(Constants.ERR_MSG_DATE_OF_BIRTH);\n return false;\n }else if(edtEnterPin.getText().toString().length() <= 0){\n edtEnterPin.setFocusable(true);\n edtEnterPin.setError(Constants.ERR_MSG_PIN);\n return false;\n }else if(edtConfirmPin.getText().toString().length() <= 0){\n edtConfirmPin.setFocusable(true);\n edtConfirmPin.setError(Constants.ERR_MSG_CONFIRM_PIN);\n return false;\n }else if(spnStatus.getSelectedItemPosition() == 0){\n Toast.makeText(context, Constants.ERR_MSG_STATUS, Toast.LENGTH_SHORT).show();\n return false;\n }else if(spnBloodGroup.getSelectedItemPosition() == 0){\n Toast.makeText(context, Constants.ERR_MSG_BLOOD_GROUP, Toast.LENGTH_SHORT).show();\n return false;\n }else if(rgGender.getCheckedRadioButtonId() == -1){\n Toast.makeText(context,Constants.ERR_MSG_GENDER,Toast.LENGTH_SHORT).show();\n return false;\n }\n return true;\n }",
"@Override\n public void validate(MessageContainer messages) {\n // Verify that they user entered a title\n if (StringUtils.isBlank(madlib.getTitle())) {\n messages.addError(INPUT_NAME_MADLIB, \"error.validation.title.missing\");\n }\n // Verify that they user entered all the nouns\n if (StringUtils.isBlank(madlib.getNoun1()) || StringUtils.isBlank(madlib.getNoun2()) ||\n StringUtils.isBlank(madlib.getNoun3())) {\n messages.addError(INPUT_NAME_MADLIB, \"error.validation.noun.missing\");\n }\n // Verify that they user entered all the adjectives\n if (StringUtils.isBlank(madlib.getAdjective1()) || StringUtils.isBlank(madlib.getAdjective2()) ||\n StringUtils.isBlank(madlib.getAdjective3())) {\n messages.addError(INPUT_NAME_MADLIB, \"error.validation.adjective.missing\");\n }\n }",
"private void performSanityCheck()\n\t{\n\t\tif (variableNames != null && domainSizes != null\n\t\t\t\t&& propositionNames != null)\n\t\t{\n\t\t\tcheckStateSizes();\n\t\t\tcheckDomainSizes();\n\t\t}\n\t}",
"private boolean isInputValid() {\n boolean isValidInput = true;\n\n if (TextUtils.isEmpty(studentID)) {\n Validator.setEmptyError(studentIDLayout);\n isValidInput = false;\n } else {\n studentIDLayout.setError(null);\n studentIDLayout.setErrorEnabled(false);\n }\n\n if (TextUtils.isEmpty(studentName)) {\n Validator.setEmptyError(studentNameLayout);\n isValidInput = false;\n } else {\n studentNameLayout.setError(null);\n studentNameLayout.setErrorEnabled(false);\n }\n\n if (TextUtils.isEmpty(fatherName)) {\n Validator.setEmptyError(fatherNameLayout);\n isValidInput = false;\n } else {\n fatherNameLayout.setError(null);\n fatherNameLayout.setErrorEnabled(false);\n }\n\n if (TextUtils.isEmpty(gender)) {\n genderErrorText.setVisibility(View.VISIBLE);\n isValidInput = false;\n } else {\n genderErrorText.setVisibility(View.GONE);\n }\n\n if (TextUtils.isEmpty(phone)) {\n Validator.setEmptyError(phoneLayout);\n isValidInput = false;\n } else if (!Validator.isValidMobile(phone)) {\n isValidInput = false;\n phoneLayout.setError(\"This phone is not valid\");\n } else {\n phoneLayout.setError(null);\n phoneLayout.setErrorEnabled(false);\n }\n\n if (TextUtils.isEmpty(email)) {\n Validator.setEmptyError(emailLayout);\n isValidInput = false;\n } else if (!Validator.isValidEmail(email)) {\n isValidInput = false;\n emailLayout.setError(\"This email is not valid\");\n } else {\n emailLayout.setError(null);\n emailLayout.setErrorEnabled(false);\n }\n\n return isValidInput;\n }",
"private void validate() {\n\n if (this.clsname == null)\n throw new IllegalArgumentException();\n if (this.dimension < 0)\n throw new IllegalArgumentException();\n if (this.generics == null)\n throw new IllegalArgumentException();\n }",
"public boolean validation(){\n String Venuename= venuename.getText().toString();\n String Address= address.getText().toString();\n String Details= details.getText().toString();\n String Venueimage= venueimage.getText().toString();\n if(Venuename.isEmpty()){\n venuename.setError(\"Please enter the item name\");\n venuename.requestFocus();\n return false;\n }\n if(Address.isEmpty()){\n address.setError(\"Please enter the item name\");\n address.requestFocus();\n return false;\n }\n if(Details.isEmpty()){\n details.setError(\"Please enter the item name\");\n details.requestFocus();\n return false;\n }\n if(Venueimage.isEmpty()){\n venueimage.setError(\"Please Select the image first\");\n return false;\n }\n\n\n return true;\n }"
] |
[
"0.75146705",
"0.7265723",
"0.72547",
"0.70188713",
"0.7010859",
"0.6986153",
"0.6973848",
"0.69002277",
"0.68920785",
"0.68381095",
"0.681394",
"0.6776213",
"0.6765056",
"0.6725828",
"0.6724363",
"0.67155635",
"0.6674295",
"0.665545",
"0.6649459",
"0.6635753",
"0.66149867",
"0.66111845",
"0.65913254",
"0.65823764",
"0.6561784",
"0.6560262",
"0.6543939",
"0.6532899",
"0.65216297",
"0.64959395",
"0.6492044",
"0.64888257",
"0.6486104",
"0.64820445",
"0.64691055",
"0.6453707",
"0.6453251",
"0.64466786",
"0.6443757",
"0.6443757",
"0.6438345",
"0.6437262",
"0.64280486",
"0.64241076",
"0.6420068",
"0.6414437",
"0.641234",
"0.63995355",
"0.6390818",
"0.63883865",
"0.63842946",
"0.637878",
"0.63751584",
"0.63679016",
"0.6352297",
"0.6350433",
"0.6327182",
"0.631463",
"0.6301486",
"0.6276341",
"0.6273732",
"0.6270359",
"0.6268923",
"0.6268761",
"0.6248841",
"0.62472695",
"0.6232115",
"0.6228948",
"0.62287587",
"0.6225244",
"0.6223061",
"0.6206485",
"0.6198428",
"0.61964923",
"0.61811304",
"0.6177823",
"0.6169907",
"0.61650956",
"0.6158184",
"0.6155992",
"0.6152526",
"0.61443603",
"0.6142825",
"0.61214316",
"0.6116878",
"0.61103725",
"0.6107233",
"0.61061996",
"0.6101263",
"0.60916513",
"0.6090909",
"0.6086634",
"0.6085338",
"0.6082764",
"0.60755527",
"0.6072386",
"0.6071067",
"0.60682344",
"0.6064532",
"0.6054773"
] |
0.6183972
|
74
|
Verify the user credentials by comparing it with the data store
|
private boolean verifyCredentials() {
boolean bCredentialsValid = false;
strUserMailID = strUserName = "";
// Get the account information, if existing
DatabaseHandler dbHandler = new DatabaseHandler(getApplicationContext());
AccountInformation accInfo = dbHandler.getAccountInfo(m_tfUserEmailID.getText().toString());
if(accInfo != null) {
// Compute the hash for the user entered password
OperationsHelper helper = new OperationsHelper();
String strHashPwd = helper.getHashedPassword(m_tfUserPassword.getText().toString(), accInfo.getSaltValue());
if(strHashPwd.equals(accInfo.getPassword())) {
bCredentialsValid = true;
strUserMailID = accInfo.getEmail();
strUserName = accInfo.getName();
// If Always login option is checked, update the value in the database
if( ! (m_cbAutoLogon.isChecked() == accInfo.getIfAlwaysSignIn()) ) {
accInfo.setAlwaysSignIn(m_cbAutoLogon.isChecked());
dbHandler.updateAlwaysSignOnOption(accInfo);
}
} else {
Toast.makeText(getApplicationContext(), "Incorrect Password", Toast.LENGTH_LONG).show();
}
} else {
Toast.makeText(getApplicationContext(), "No such account exists. \n" +
" Create one to login", Toast.LENGTH_LONG).show();
}
return bCredentialsValid;
}
|
{
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
}
|
[
"public boolean ValidCredentials() { \n\t\tif(!isEmptyFieldData()){\n\t\t\tSystemUserQuery sq = new SystemUserQuery();\n\t\t\tUser user = sq.loginQuery(getUsername(), getPassword());\n\t\t\t\n\t\t\tif(user != null){\n\t\t\t\tMain.setCurrentUser(user);\n\t\t\t\treturn true;\n\t\t\t}\n\t\t} else {\n\t\t\treturn false;\n\t\t}\n\t\treturn false;\n\t}",
"private void verifyUser(){\n getValues();\n boolean validate;\n\n validate = db.authenticateUser(username, password);\n\n if (validate) {\n\n Cursor cursor = db.fetchData(username,password);\n cursor.moveToFirst();\n\n String contact = cursor.getString(3);\n\n session.createLoginSession(username, password, contact);\n\n Toast.makeText(this, \"[SYSTEM]: Login Successful! \", Toast.LENGTH_SHORT).show();\n\n Intent i = new Intent(this, MainActivity.class);\n startActivity(i);\n finish();\n } else {\n Toast.makeText(this, \"FAIL!\", Toast.LENGTH_SHORT).show();\n }\n }",
"public abstract boolean checkCredentials (String username, String password);",
"@Override\n public boolean verifyCredentials(int userId, String password){\n logger.info(\"Verifying Credentials...\");\n try{\n return userDaoInterface.verifyCredentials(userId,password);\n }catch (UserNotFoundException ex){\n System.out.println(ConsoleColors.RED+ex.getMessage()+ConsoleColors.RESET);\n return false;\n }\n\n// return DummyDB.userList.containsKey(userId) && DummyDB.userList.get(userId).getPassword().equals(password);\n }",
"Boolean checkCredentials(String username, String password) throws\n SQLException, UserNotFoundException;",
"public boolean validateUserCredentials(String login, String password) throws SQLException;",
"Boolean checkCredentials(ClientCredentialsData clientData) throws AuthenticationException;",
"@Test\n public void existingUserOK_PW() {\n boolean result = auth.authenticateUser(\"Ole\", \"secret\", 0); \n //Then\n assertThat(result, is(true));\n }",
"boolean checkUserCorrispondenceLogin(String emailLogin, String passwordLogin);",
"User checkUser(String username, String password);",
"@Override\n protected void checkCredential(CredentialChecker checker) {\n checker.check(UserPasswordCredential.class, credential -> {\n return memberBhv.selectCount(cb -> arrangeLoginByCredential(cb, credential)) > 0;\n });\n }",
"@Override\n\tpublic boolean verifyUser(String username,String password )\n\t{\n\t\tboolean b;\n\t\tString sql = \"select username,password from f_loginTable where username=? and password=?\";\n\t\tint noOfRows=template.update(sql, new Object[] {username,password});\n\t\tif(noOfRows==1)\n\t\t{b=true;}\n\t\telse \n\t\t{b=false;}\n\t\treturn b;\t\t\n\t}",
"@Test\n public void existingUserNOT_OK_PW() {\n boolean result = auth.authenticateUser(\"Ole\", \"fido\", 0); \n //Then\n assertThat(result, is(false));\n }",
"boolean verifyUser(User user, char[] password);",
"private boolean checkUser(String username, String password){\n MongoCursor<Document> cursor = mongoAdapter.getUserCollection().find().iterator();\n\n while(cursor.hasNext()){\n Document document = cursor.next();\n System.out.println(document.get(\"_id\"));\n System.out.println(document.get(\"username\"));\n System.out.println(document.get(\"password\"));\n\n String dbusername = document.get(\"username\").toString();\n String dbpassword = document.get(\"password\").toString();\n\n if(dbusername.equals(username) && dbpassword.equals(password))\n return true;\n }\n return false;\n }",
"@Before(unless = { \"signin\", \"doLogin\" })\n\tprivate static void checkAuthentification() {\n\t\t// get ID from secure social plugin\n\t\tString uid = session.get(PLAYUSER_ID);\n\t\tif (uid == null) {\n\t\t\tsignin(null);\n\t\t}\n\n\t\t// get the user from the store. TODO Can also get it from the cache...\n\t\tUser user = null;\n\t\tif (Cache.get(uid) == null) {\n\t\t\ttry {\n\t\t\t\tuser = UserClient.getUserFromID(uid);\n\t\t\t\tCache.set(uid, user);\n\t\t\t} catch (ApplicationException e) {\n\t\t\t\te.printStackTrace();\n\t\t\t\tflash.error(\"Problem while getting user from store...\");\n\t\t\t}\n\t\t} else {\n\t\t\tuser = (User) Cache.get(uid);\n\t\t}\n\n\t\tif (user == null) {\n\t\t\tflash.error(\"Problem while getting user from store...\");\n\t\t\tAuthentifier.logout();\n\t\t}\n\n\t\tif (user.avatarURL == null) {\n\t\t\tuser.avatarURL = Gravatar.get(user.email, 100);\n\t\t}\n\n\t\t// push the user object in the request arguments for later display...\n\t\trenderArgs.put(PLAYUSER, user);\n\t}",
"private boolean checkCredentials(final String userid, final String password)\n {\n if(userid == null || password == null || userid.trim().length() < 1 || password.trim().length() < 1)\n {\n return false;\n }\n this.loadPasswordFile();\n if(LoginServlet.passwords.containsKey(userid))\n {\n final String expectedPassword = LoginServlet.passwords.getProperty(userid);\n if(expectedPassword.equals(password))\n {\n return true;\n }\n }\n \n return false;\n }",
"private boolean checkPass(String enterPass) {\n JdbcConnection connection = JdbcConnection.getInstance();\n DaoFactory daoFactory = new RealDaoFactory(connection);\n List<User> users = daoFactory.createUserDao().findAll();\n for (User user : users) {\n if (user.getPasswordHash() == enterPass.hashCode()) {\n return true;\n }\n }\n return false;\n }",
"private boolean checkCredentials(String userName, String password)\n {\n int count = 0;\n for(String user : userNames)\n {\n if(user.contentEquals(userName))\n {\n if(passwords[count].contentEquals(password))\n {\n return true;\n }\n }\n count++;\n }\n\n return false;\n }",
"private boolean authenticate(String _uid, String _pwd) {\n\n Connection dbCon = null;\n ResultSet rs = null;\n try {\n dbCon = ds.getConnection();\n Statement s = dbCon.createStatement();\n rs = s.executeQuery(\"select * from user where id = '\"\n + _uid + \"' and pwd = '\" + _pwd + \"'\");\n return (rs.next());\n }\n catch (java.sql.SQLException e) {\n System.out.println(\"A problem occurred while accessing the database.\");\n System.out.println(e.toString());\n }\n finally {\n try {\n dbCon.close();\n }\n catch (SQLException e) {\n System.out.println(\"A problem occurred while closing the database.\");\n System.out.println(e.toString());\n }\n }\n \n return false;\n\n }",
"@Test\n\tpublic void loginWithValidCredentials(){\n\t\tapp.loginScreen().waitUntilLoaded();\n\t\tapp.loginScreen().logIn(Credentials.USER_VALID.username, Credentials.USER_VALID.password);\n\t\tassertTrue(app.userDashboardScreen().isActive());\n\t}",
"boolean isAuthenticate(String username, String password) throws UserDaoException;",
"public boolean checkLoginCredential(GuruModel model) {\n\t\tquery = \"select id from guru where email=? and pwd=?\";\n\t\tList<GuruModel> list = this.jdbcTemplate.query(query,new Object[]{model.getEmail(),this.edutility.getSHA256(model.getPwd())},\n\t\t\t\tBeanPropertyRowMapper.newInstance(GuruModel.class));\n\t\t\n\t\tif(list.size() == 0)\n\t\t\t\treturn false;\n\t\telse\n\t\t\treturn true;\n\t}",
"boolean validateUserAndPassword(String username, String password);",
"public boolean passwordCheck() {\n\t\tSystem.out.println(\"Password is: \"+LoggedUser.getPassword());\n\t\tMapSqlParameterSource params = new MapSqlParameterSource();\n\t\tparams.addValue(\"username\", LoggedUser.getUsername());\n\t\tparams.addValue(\"password\", LoggedUser.getPassword());\n\t\treturn jdbc.queryForObject(\"select count(*) from authors where username=:username and password=:password\", \n\t\t\t\tparams, Integer.class) > 0;\n\t}",
"private void checkUser() {\n\t\tloginUser = mySessionInfo.getCurrentUser();\n\t}",
"public boolean validateLogin(String email, final String pw){\n\n this.db.collection(\"Users\")\n .whereEqualTo(\"email\", email)\n .get()\n .addOnCompleteListener(new OnCompleteListener<QuerySnapshot>() {\n @Override\n public void onComplete(@NonNull Task<QuerySnapshot> task) {\n if (task.isSuccessful()) {\n\n if(task.getResult().isEmpty()){\n //Case user not present\n Toast.makeText(getApplicationContext(), \"This user does not exists!\", Toast.LENGTH_SHORT).show();\n } else {\n\n //Case user present\n for (QueryDocumentSnapshot document : task.getResult()) {\n Log.d(TAG, document.getId() + \" => \" + document.getData().get(\"pw\"));\n\n\n if(pw.equals(document.getData().get(\"pw\"))){\n\n //Correct password\n Intent i = new Intent(LoginActivity.this, MainActivity.class);\n\n //Send to the main activity the root element of the DB -> User ID\n i.putExtra(\"userID\", document.getId());\n startActivity(i);\n finish();\n } else {\n //Wrong password\n Toast.makeText(getApplicationContext(), \"Wrong password, try again!\", Toast.LENGTH_SHORT).show();\n }\n\n }\n }\n\n\n } else {\n Log.d(TAG, \"Error getting documents: \", task.getException());\n }\n }\n });\n\n return true;\n\n }",
"boolean checkLoginDetails(String email,String password){\n boolean isValidUser = false;\n dbConnection();\n try{\n stmt = con.prepareStatement(\"SELECT * FROM users ORDER BY email\");\n rs = stmt.executeQuery();\n while(rs.next()){\n String checkEmail = rs.getString(\"email\");\n String checkpassword = rs.getString(\"password\");\n if(checkEmail.equals(email) && checkpassword.equals(password)){\n isValidUser = true;\n }\n }\n }\n catch(Exception e){\n e.printStackTrace();\n }\n return isValidUser;\n }",
"public boolean verifyUser(String username, String password) throws SQLException {\n\n // update sql\n String pwGot = getPassword(username);\n\n if (pwGot.equals(password)) {\n return true;\n }\n\n return false;\n }",
"public static boolean checkUser(User dto){\n\t\t//Filters by first name\n\t\tFilter firstNameFilter = new FilterPredicate(\n\t\t\t\t\"firstName\", FilterOperator.EQUAL, dto.getFirstName()\n\t\t\t\t);\n\t\t//Filters by last name\n\t\tFilter lastNameFilter = new FilterPredicate(\n\t\t\t\t\"lastName\", FilterOperator.EQUAL, dto.getLastName()\n\t\t\t\t);\n\t\t//Combines the filters into one so that it checks against ALL 3\n\t\tFilter combinedFilter = CompositeFilterOperator.and(firstNameFilter, lastNameFilter);\n\t\t\n\t\t//Prepare the Query\n\t\tQuery q = new Query(\"User\").setFilter(combinedFilter);\n\t\tlog.warning(\"Query = \" + q.toString());\n\t\tDatastoreService datastore = DatastoreServiceFactory.getDatastoreService();\n\t\t\n\t\t//Create the username/ pw structure like we did when we created it\n\t\tString username = dto.getFirstName() + \" \" + dto.getLastName();\n\t\tusername = username.toLowerCase();\n\t\t\n\t\t//Passwords, we will maintain their caps\n\t\tString superUsernamePassword = username + dto.getPassword();\n\t\t\n\t\t// Use PreparedQuery interface to retrieve results\n\t\tPreparedQuery pq = datastore.prepare(q);\n\t\t//Loops through all results. In our case, we are going to just use the first one\n\t\tfor (Entity result : pq.asIterable()) {\n\t\t\tlog.warning(\"Entity returned, found user\");\n\t\t\t/*\n\t\t\tNow that we have the user, loop through the result(s) and check if the pw\n\t\t\tmatches via a special method call. Note, generally we would want to write\n\t\t\tsome code when a user is entered to check for duplicates, but for now, \n\t\t\tlet's stick with the simple stuff. Keep in mind that this will only check\n\t\t\tfor the FIRST result, so if you enter your name twice, you won't be able \n\t\t\tto pass validation without deleting one first. \n\t\t\t */\n\t\t\tString storedPassword = (String) result.getProperty(\"password\");\n\t\t\t\n\t\t\t//Now, compare the passed and stored passwords\n\t\t\tif(BCrypt.checkpw(superUsernamePassword, storedPassword)){\n\t\t\t\treturn true;\n\t\t\t} else {\n\t\t\t\treturn false;\n\t\t\t}\t\n\t\t}\n\t\t//Nothing was returned, return false\n\t\tlog.warning(\"Entity not returned, found nothing\");\n\t\treturn false;\n\t}",
"private boolean checkAuthentication(String login, String passwd) {\n Connection connect;\n boolean result = false;\n try {\n // connect db\n Class.forName(DRIVER_NAME);\n connect = DriverManager.getConnection(SQLITE_DB);\n // looking for login && passwd in db\n Statement stmt = connect.createStatement();\n ResultSet rs = stmt.executeQuery(SQL_SELECT.replace(\"?\", login));\n while (rs.next())\n result = rs.getString(PASSWD_COL).equals(passwd);\n // close all\n rs.close();\n stmt.close();\n connect.close();\n } catch (Exception ex) {\n ex.printStackTrace();\n return false;\n }\n return result;\n }",
"boolean isValidCredential(String username, String password);",
"@Test\n public void testCheckAuth() throws Exception {\n SettingsManager manager = new SettingsManager();\n //manager.username = \"testUsername\";\n //manager.password = \"testPassword\";\n Assert.assertTrue(\"Correct credentials should return true\", manager.checkAuth(\"testUsername\", \"testPassword\"));\n Assert.assertFalse(\"Bad username should return false\", manager.checkAuth(\"badUsername\", \"testPassword\"));\n Assert.assertFalse(\"Bad password should return false\", manager.checkAuth(\"testUsername\", \"wrongPassword\"));\n }",
"public boolean isCorrectLoginDetails(String username, String password) {\n boolean isExistingLogin = false; \n \n //Retrieve all existing user objects from the db. \n List<User> retrievedUsersList = new LinkedList<User>(); \n retrievedUsersList = repo.returnAllUsers(); \n \n User aUser = null; \n //For each object in the array, check if there is a match for the user inputs and the object properties. \n for(var user : retrievedUsersList) {\n aUser = (User)user; \n \n if(aUser.username.equals(username) && aUser.password.equals(password)) {\n isExistingLogin = true; \n }\n }\n return isExistingLogin; \n }",
"boolean authenticate(String userName, String password);",
"public boolean loginCheck() {\n\t\tif(allParametersGiven==true) {\n\t\t\treturn dtb.checkLoginDetais(username,password);\n\t\t}\n\t\treturn false;\n\t}",
"public boolean checkCredentials(String inputLogin, String inputPassword) {\n //creates boolean variable flag and defines it as True\n boolean flag = false;\n //defines Connection con as null\n Connection con = MainWindow.dbConnection();\n try {\n //tries to create a SQL statement to retrieve values of a User object from the database\n String query = \"SELECT * FROM User WHERE userID = '\" + inputLogin + \"' AND password = '\" + inputPassword + \"';\";\n Statement statement = con.createStatement();\n ResultSet result = statement.executeQuery(query);\n /*\n if statement compares data entered by user with data in the database. If there is such data in the database\n users credentials are put into MainWindow variables and defines flag variable as True\n */\n if(result.getString(\"userID\").equals(inputLogin) && result.getString(\"password\").equals(inputPassword)) {\n flag = true;\n MainWindow.userLastName = result.getString(\"lastName\");\n MainWindow.userFirstName = result.getString(\"firstName\");\n MainWindow.userID = inputLogin;\n MainWindow.userPassword = inputPassword;\n }//end if statement\n } catch (Exception e) {\n //catches exceptions and show message about them\n System.out.println(e.getMessage());\n }//end try/catch\n //checks if Connection con is equaled null or not and closes it.\n MainWindow.closeConnection(con);\n return flag;\n }",
"public boolean validateUser (String username, String password){\n Cursor cursor = dbHelper.getReadableDatabase().rawQuery(\n \"SELECT * FROM \" + dbHelper.TABLE_USERS + \" WHERE \" + dbHelper.COLUMN_USERNAME\n + \"='\" + username + \"' AND \" + dbHelper.COLUMN_PASSWORD + \"='\" + password + \"'\",null);\n if (cursor.getCount()>0){\n return true;\n }else {\n return false;\n }\n }",
"private void verifyAuthWithServer() {\n mRegisterModel.connect(binding.personFirstName.getText().toString(),\n binding.personLastName.getText().toString(),\n binding.registerEmail.getText().toString(),\n binding.registerPassword.getText().toString());\n //this is an Asynchronous call no statements after should rely on the result of connect\n }",
"boolean hasLogin();",
"boolean hasLogin();",
"public boolean authenticate(Connection con, String userid, String password)\n throws SQLException, NoSuchAlgorithmException{\n PreparedStatement ps = null;\n ResultSet rs = null;\n try {\n boolean userExist = true;\n // INPUT VALIDATION\n if (userid==null||password==null){\n // TIME RESISTANT ATTACK\n // Computation time is equal to the time needed by a legitimate user\n userExist = false;\n userid=\"\";\n password=\"\";\n }\n\n ps = con.prepareStatement(\"select password, extra FROM login where User_ID = ?\");\n ps.setString(1, userid);\n rs = ps.executeQuery();\n String digest, extra;\n if (rs.next()) {\n digest = rs.getString(\"password\");\n extra = rs.getString(\"extra\");\n // DATABASE VALIDATION\n if (digest == null || extra == null) {\n throw new SQLException(\"Database inconsistant Salt or Digested Password altered\");\n }\n if (rs.next()) { // Should not append, because login is the primary key\n throw new SQLException(\"Database inconsistent two CREDENTIALS with the same LOGIN\");\n }\n } else { // TIME RESISTANT ATTACK (Even if the user does not exist the\n // Computation time is equal to the time needed for a legitimate user\n digest = \"000000000000000000000000000=\";\n extra = \"00000000000=\";\n userExist = false;\n }\n\n byte[] bDigest = base64ToByte(digest);\n byte[] bExtra = base64ToByte(extra);\n\n // Compute the new DIGEST\n byte[] proposedDigest = getHash(ITERATION_NUMBER, password, bExtra);\n\n return Arrays.equals(proposedDigest, bDigest) && userExist;\n } catch (IOException ex){\n throw new SQLException(\"Database inconsistant Salt or Digested Password altered\");\n }\n finally{\n close(rs);\n close(ps);\n }\n }",
"@Override\r\n\tpublic boolean verifyLogin(String userId, String password) {\n\t\tif (conn == null) {\r\n\t\t\treturn false;\r\n\t\t}\r\n\t\ttry {\r\n\t\t\tString sql = \"SELECT user_id FROM users WHERE user_id = ? AND password = ?\";\r\n\t\t\tPreparedStatement statement = conn.prepareStatement(sql);\r\n\t\t\tstatement.setString(1, userId);\r\n\t\t\tstatement.setString(2, password);\r\n\t\t\tResultSet rs = statement.executeQuery();\r\n\t\t\tif (rs.next()) {\r\n\t\t\t\treturn true;\r\n\t\t\t}\r\n\t\t} catch (SQLException e) {\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t\treturn false;\r\n\t}",
"public static boolean checkPassword()\n {\n String pw = SmartDashboard.getString(\"Password\");\n SmartDashboard.putString(\"Password\", \"\"); //Clear the password field so that it must be reentered\n\n if(pw.equals(ADMIN_PASSWORD))\n return true;\n else\n {\n log(\"Password invalid\"); //The user gave an incorrect password, inform them.\n return false;\n }\n }",
"private Boolean authorize() {\n\n return Session.getInstance().login(user.getText(), password.getText());\n }",
"public void verify() {\n lblTheDatabaseNameIsEmpty();\n lblDatabaseName();\n lblUserName();\n lblPassword();\n lblDatabaseLocation();\n txtPassword();\n txtUserName();\n txtDatabaseLocation();\n btSettings();\n txtDatabaseName();\n btCancel();\n btOK();\n }",
"public boolean login() throws Exception {\n\n\t\tif (LoginDataBase.getInstance().constainsUsername(username)) {\n\t\t\t// local memory has records of that\n\t\t\tif (hashedPassword == LoginDataBase.getInstance()\n\t\t\t\t\t.getHashedPassword(password)) {\n\t\t\t\tsessionID = UUID.randomUUID().toString();\n\t\t\t\treturn true;\n\t\t\t} else {\n\t\t\t\tPassExceptionToUI.passToUI(new PasswordMismatchError());\n\t\t\t\treturn false;\n\t\t\t}\n\t\t} else {\n\t\t\t// check with web server\n\t\t\tCertificateValidation.invalidate();\n\t\t\tURL url = new URL(\n\t\t\t\t\t\"https://mlite-demo.musoni.eu:8443/mifosng-provider/api/v1/authentication?username=\"\n\t\t\t\t\t\t\t+ username\n\t\t\t\t\t\t\t+ \"&password=\"\n\t\t\t\t\t\t\t+ password\n\t\t\t\t\t\t\t+ \"&tenantIdentifier=code4good\");\n\n\t\t\tHttpsURLConnection con = (HttpsURLConnection) url.openConnection();\n\t\t\tcon.setRequestMethod(\"POST\");\n\n\t\t\tif (con.getResponseCode() == HttpURLConnection.HTTP_OK) {\n\t\t\t\t// if the account is found in web server\n\t\t\t\tLoginDataBase.getInstance().updateDataBase(username, hashedPassword);\n\t\t\t\treturn true;\n\t\t\t} else {\n\t\t\t\t// if web server does not have match\n\t\t\t\tPassExceptionToUI.passToUI(new UsernameMismatchError(username));\n\t\t\t\treturn false;\n\t\t\t}\n\t\t}\n\t}",
"public boolean loginUser();",
"public boolean checkUser(String username, String password) {\n String[] columns = {COL_1};\n SQLiteDatabase db = getReadableDatabase();\n String selection = COL_2 + \"=?\" + \" and \" + COL_3 + \"=?\";\n String[] selectionArgs = {username, password};\n Cursor cursor = db.query(USER_TABLE_NAME, columns, selection, selectionArgs, null, null, null);\n int count = cursor.getCount();\n cursor.close();\n db.close();\n\n if (count > 0)\n return true;\n else\n return false;\n }",
"String checkTrueDetails() throws JSONException \n {\n String result;\n DataBaseConnection db= new DataBaseConnection();\n db.connectToDB();\n try {\n if (db.checkIfExist(db.checkUser,usernameJsn ))\n {\n String userPassword= db.findValue(usernameJsn, \"USERNAME\",\"PASSWORD\",\"PLAYERS\");\n if (userPassword.equals(passwordJsn))\n result= \"Success\";\n else\n result= \"WRONG PASSWORD\";\n }\n \n else result= \"user doesn't exist\";\n } catch (SQLException ex) {\n Logger.getLogger(LoginUser.class.getName()).log(Level.SEVERE, null, ex);\n result=\"error\";\n }\n db.closeDBConnection();\n return result;\n }",
"public boolean isUserExist(String email, String Password);",
"boolean authNeeded();",
"private boolean checkLogin(String username, String passwordMD5) {\n try {\n Statement stmt = GUITracker.conn.createStatement();\n ResultSet rs = stmt.executeQuery(\"SELECT * from account where username='\" + username + \"' and password='\" + passwordMD5 + \"'\");\n if (rs.next()) {\n //iduser = rs.getInt(\"Id\");\n return true;\n } else {\n return false;\n } \n \n// if ((username.equals(usernamePeer)) && (passwordMD5.equals(passwordPeer))) {\n// return true;\n// } else {\n// return false;\n// }\n } catch (Exception e) {\n e.printStackTrace();\n return false;\n }\n }",
"private void verifyFromSQLite(){\n textInputLayoutUsername.setErrorEnabled(false);\n textInputLayoutPassword.setErrorEnabled(false);\n User user = new User();\n boolean _isnorekexist = false;\n\n for (int i=0;i<User.users.size();i++) {\n if (User.users.get(i).username.equals(textInputEditTextUsername.getText().toString())) {\n _isnorekexist = true;\n user = User.users.get(i);\n break;\n }\n }\n if (!inputValidation.isInputEditTextFilled(textInputEditTextUsername, textInputLayoutUsername, getString(R.string.error_message_username))) {\n return;\n }\n if (!inputValidation.isInputEditTextFilled(textInputEditTextPassword, textInputLayoutPassword,getString(R.string.error_message_password))) {\n return;\n }\n if (!inputValidation.isInputEditTextNoRekExist(textInputEditTextUsername, textInputLayoutUsername,_isnorekexist,getString(R.string.error_username_not_exists))){\n return;\n }\n if (databaseHelper.checkUsername(textInputEditTextUsername.getText().toString().trim()\n , textInputEditTextPassword.getText().toString().trim())) {\n\n SessionManager sessionManager = SessionManager.with(this);\n sessionManager.createsession(user);\n progress = new ProgressDialog(this);\n progress.setMessage(\"Loading...\");\n progress.show();\n Thread _thread = new Thread() {\n @Override\n public void run() {\n try {\n Thread.sleep(2000);\n progress.dismiss();\n } catch (InterruptedException e) {\n e.printStackTrace();\n }\n runOnUiThread(new Runnable() {\n @Override\n public void run() {\n masuk();\n }\n });\n\n }\n };\n _thread.start();\n }\n else {\n // Snack Bar to show success message that record is wrong\n Snackbar.make(nestedScrollView, getString(R.string.error_valid_username_pin), Snackbar.LENGTH_LONG).show();\n }\n }",
"boolean hasAuth();",
"public String isValidAgentLogin(String userName, String password);",
"EmployeeMaster authenticateUser(int employeeId, String password);",
"private boolean validatePassword() throws NoSuchAlgorithmException, NoSuchProviderException \n {\n String passwordToHash = Password.getText(); \n\t\t\n \tString securePassword = null;\n \tString testPass;\n \tBoolean success=false;\n \tbyte[] salt = null;\n\n\t \n\t \n\t \n try{ \n \t\tmycon=connect.getConnect();\n \t\t \n \t\t \n String query;\n\t query =\"select password, salt\\n\" + \n\t \t\t\"from employee\\n\" + \n\t \t\t\"where userName= ?;\";\n\t \n\t PreparedStatement pstm= mycon.prepareStatement(query);\n\t pstm.setString(1, Username.getText());\n\t ResultSet rs = pstm.executeQuery();\n\t \n\t if(rs.next()) {\n\t \tsecurePassword =rs.getString(1);\n\t \t\n\t \tBlob blob = rs.getBlob(2);\n\t \t int bloblen= (int) blob.length();\n\t \t salt = blob.getBytes(1, bloblen);\n\t \t blob.free();\n\t \t\n\t \t\n\t \n\t }\n\t \n\t \n\t testPass=SecurePass.getSecurePassword(passwordToHash, salt);\n \n \t if(securePassword.equals(testPass)) {\n \t success=true;\n \t this.ActiveUser=Username.getText();\n \t }\n \t\n \t\t\n \t\t\n \t\t\n \t\t} catch (SQLException e ) {\n \t\t\te.printStackTrace(); \t\n \t\t\t\n \t\t}\n\t\treturn success;\n \n\t \t \n \n \n\t\t\n \n }",
"@Override\n\tpublic int checkLogin(User user) {\n\t\tint msg=0;\n\t\ttry{\n\t\t\tUser user2=uDao.loginUser(user.getUsername().toString());\n\t\t\tString pwd=getEncodTool.decodeHexTest(user2.getPassword());\n\t\t\tif(pwd.equals(user.getPassword())){\n\t\t\tmsg=1;\n\t\t\t}else{\n\t\t\t\tmsg=3;\t\n\t\t\t}\n\t\t}catch(NullPointerException e){\n\t\t\tmsg=2;\n\t\t}\t\n\t\treturn msg;\n\t}",
"public boolean checkLogin() {\r\n try {\r\n String select = \"SELECT * FROM LOGIN\";\r\n ResultSet rs = model.ConnectToSql.select(select);\r\n while (rs.next()) {\r\n if (this.username.equals(rs.getString(1)) && new MD5().md5(this.password).equals(rs.getString(2))) {\r\n this.fullname = rs.getString(4);\r\n this.codeID = rs.getString(3);\r\n model.ConnectToSql.con.close();\r\n return true;\r\n }\r\n }\r\n\r\n } catch (Exception e) {\r\n //e.printStackTrace();\r\n\r\n }\r\n return false;\r\n }",
"@Override\n public boolean check() {\n return GlobalParams.isLogin();\n }",
"public boolean validateLogin(String email, String password) {\n\t\tLog.i(TAG, \"validate current user whether is valid in db\");\n\t\tSQLiteDatabase db = this.getReadableDatabase();\n\t\tString val = \"select * from \" + TABLE_USER\n\t\t\t\t+ \" where email='\" + email + \"' and password='\" + password + \"'\";\n\t\tCursor cursor = db.rawQuery(val, null);\n\t\tcursor.moveToFirst();\n\t\tif (cursor.isAfterLast()) return false;\n\t\treturn true;\n\t}",
"public static Boolean verifyAuthentification(UserBean user, JdbcConnectionSource jdbc) throws SQLException {\n Map<String, Object> infos = new HashMap<String, Object>();\n infos.put(\"pseudo\", user.getPseudo());\n infos.put(\"password\", user.getPassword());\n List<UserBean> listSameInfos = getDaoUser(jdbc).queryForFieldValues(infos);\n\n if (listSameInfos.isEmpty()) {\n return false;\n }\n user.setId(listSameInfos.get(0).getId());\n return true; //user+pass sont OK\n }",
"private boolean checkLogin() {\n firebaseAuth = FirebaseAuth.getInstance();\n currentUser = firebaseAuth.getCurrentUser();\n if(currentUser == null) {\n //show login activity\n Intent intent = new Intent(this, LoginActivity.class);\n startActivity(intent);\n return false;\n } else {\n verifyUserPII(currentUser);\n return true;\n }\n }",
"List<String> authenticateUser(String userName, String password);",
"public boolean login(){\r\n try{\r\n DbManager0 db = DbManager0.getInstance();\r\n Query q = db.createQuery(\"SELECT * FROM user WHERE username = '\"+this.login+\"' and password = '\"+this.pwd+\"';\");\r\n QueryResult rs = db.execute(q);\r\n rs.next();\r\n if(rs.wasNull()) return false;\r\n this.id = rs.getInt(\"id\")+\"\";\r\n return true;\r\n }\r\n catch(SQLException ex){\r\n throw new RuntimeException( ex.getMessage(), ex );\r\n }\r\n }",
"abstract public boolean checkAuth(String userId) throws IOException;",
"public static synchronized int checkVerification(String userName){\n\t\t\tConnection connection;\n\t\t \tint valid = 1;\n\t\t \tPreparedStatement statement=null;\n\t\t\tString preparedSQL = \"SELECT Validated FROM Credential WHERE Email = ?\";\n\t\t\t\n\t\t try{\n\t\t \tconnection=DBConnector.getConnection();\n\t\t \tstatement = connection.prepareStatement(preparedSQL);\n\t\t \tstatement.setString(1, userName);\n\t\t\t\tResultSet rs = statement.executeQuery();\n\t\t\t\tif(rs.next()){\n\t\t\t\t\tvalid = rs.getInt(1);\n\t\t\t\t}\t\n\t\t\t\trs.close();\t\t\n\t\t\t\tstatement.close();\n\t\t\t\tconnection.close();\n\t\t\t\t\n\t\t\t}catch (SQLException ex){\n\t\t\t\t\tSystem.out.println(\"Error: \" + ex);\n\t\t\t\t\tSystem.out.println(\"Query: \" + statement.toString());\n\t\t\t\t\tvalid = 1;\n\t\t\t\t}\t\n\t\t\treturn valid;\n\t}",
"protected boolean authenticate() {\n \tif (mConfig == null) {\n \t\tmConfig = getConfig();\n \t}\n \tString keys[] = getKeys();\n \tif (keys != null) {\n\t mConfig = api.authenticateToken(keys[0], keys[1], mConfig);\n\t if (mConfig != null) {\n\t return true;\n\t }\n \t}\n \tshowToast(\"Failed user authentication for stored login tokens.\");\n \tclearKeys();\n \tsetLoggedIn(false);\n \treturn false;\n }",
"boolean login(String userName, String password) {\n RatAppModel.checkInitialization();\n String getUsersText = \"SELECT * FROM users WHERE username=?\";\n ResultSet results;\n boolean loginStatus;\n try {\n PreparedStatement statement = db.getStatement(getUsersText);\n statement.setString(1, userName);\n results = db.query(statement);\n if (!results.next()) {\n // No entries in DB for passed in username\n results.close();\n loginStatus = false;\n } else {\n String dbPass = results.getString(\"password\");\n int salt = results.getInt(\"salt\");\n String hashPass = hasher.getSecurePassword(Integer.toString(salt),\n password);\n if (dbPass.equals(hashPass)) {\n //Log.i(\"login\", \"auth success\");\n loginStatus = true;\n String profileName = results.getString(\"profileName\");\n String address = results.getString(\"homeLocation\");\n boolean isAdmin = results.getBoolean(\"isAdmin\");\n currentUser = new User(userName, profileName, address, isAdmin);\n } else {\n //Log.i(\"login\", \"auth failed\");\n loginStatus = false;\n }\n results.close();\n }\n return loginStatus;\n } catch (SQLException e) {\n Log.e(\"login\", e.getMessage());\n return false;\n }\n }",
"private boolean checkUser(String user_name, String passwordd) throws SQLException {\n boolean sucss = false;\n DBConnection db = new DBConnection();\n Connection connection = db.getConnection();\n String sql = \"SELECT * FROM USER WHERE NAME = ? AND PASSWORD = ?\";\n try (PreparedStatement preparedStatement = connection.prepareStatement(sql);) {\n preparedStatement.setString(1, user_name);\n preparedStatement.setString(2, passwordd);\n ResultSet rs = preparedStatement.executeQuery();\n if (rs.next()) {\n System.out.println(rs.getString(\"name\"));\n System.out.println(rs.getString(\"password\"));\n sucss = true;\n }\n } catch (SQLException e) {\n System.out.println(\"User Is Not Insert\" + e);\n } finally {\n connection.close();\n return sucss;\n }\n }",
"private boolean validate(String username, String password) {\n\t\tif(username.equals(\"Venkat\") && password.equals(\"kumar\")) {\r\n\t\t\treturn true;\r\n\t\t}\r\n\t\telse {\r\n\t\t\treturn false;\r\n\t\t}\r\n\t}",
"public int verifyAuthentication(String uname,String pswd){\n\t\tStatement stmt = null;\n\t\tif(this.getConnHndlr() == null)\n\t\t\tthis.connHndlr = new ConnectionHandler();\n\t\tConnection conn = connHndlr.getConnection();\n\t\tuname = uname.toLowerCase();\n\t\tthis.setUsername(uname);\n\t\tString vfnQuery = \"select l.user_role from LoginDetails l where l.username = '\" + uname + \"' AND l.password = '\" + pswd + \"'\";\n\t\ttry{\n\t\t\tstmt = conn.createStatement();\n\t\t\tResultSet rs = stmt.executeQuery(vfnQuery);\n\t\t\tif(!rs.next()){\n\t\t\t\tSystem.out.println(\"User doesnt exist\");\n\t\t\t\tthis.setUserStatus(-1);\n\t\t\t}\n\t\t\telse{\n\t\t\t\tString userrole = rs.getString(1);\n\t\t\t\tif(userrole.equals(\"admin\")){\n\t\t\t\t\tthis.setUserStatus(0);\n\t\t\t\t}\n\t\t\t\telse{\n\t\t\t\t\tthis.setUserStatus(1);\n\t\t\t\t}\n\t\t\t}\t\t\t\n\t\t}\n\t\tcatch(SQLException se){\n\t\t\tSystem.out.println(\"SQL Exception \" + se.getMessage());\n\t\t}\n\t\tcatch(Exception e){\n\t\t\tSystem.out.println(\"Exception \" + e.getMessage());\n\t\t}\n\t\tfinally{\n\t\t}\n\t\treturn this.getUserStatus(); \n\t}",
"public boolean authenticateUser(String userName,String password) throws ToDoListDAOException{\r\n\t\t\r\n\t\t User user = getUserByUserName(userName); \r\n\t\t System.out.println(userName + \" \" + password);\r\n\t if(user!=null && user.getUserName().equals(userName) && user.getPassword().equals(password)){\r\n\t return true;\r\n\t }else{\r\n\t return false;\r\n\t }\r\n\t\t\r\n\t}",
"public boolean validateUserToken(String login, String token) throws SQLException;",
"private boolean login()\n {\n System.out.print(\"Enter your username: \");\n String userName = keyboard.nextLine().toLowerCase();\n currentUser = fs.getUser(userName);\n System.out.println();\n\n return currentUser != null;\n }",
"private void login()\r\n\t{\r\n\t\ttry\r\n\t\t{\r\n\t\t\t//Get the connection to the database\r\n\t\t\tDatabase db = new Database();\r\n\r\n\t\t\t//Get the data and format it correctly\r\n\t\t\tString username = txtUsername.getText().trim().toLowerCase();\r\n\t\t\tString password = new String(txtPassword.getPassword()).trim();\r\n\r\n\t\t\t//Verify that user information has been inserted into the username/password fields\r\n\t\t\tif (username.length() == 0)\r\n\t\t\t{\r\n\t\t\t\tJOptionPane.showMessageDialog(\r\n\t\t\t\t\tthis,\r\n\t\t\t\t\t\"Please enter your username.\",\r\n\t\t\t\t\tApplication.NAME,\r\n\t\t\t\t\tJOptionPane.WARNING_MESSAGE\r\n\t\t\t\t);\r\n\r\n\t\t\t\ttxtUsername.requestFocus();\r\n\t\t\t}//End of if\r\n\t\t\telse if (password.length() == 0)\r\n\t\t\t{\r\n\t\t\t\tJOptionPane.showMessageDialog(\r\n\t\t\t\t\tthis,\r\n\t\t\t\t\t\"Please enter your password.\",\r\n\t\t\t\t\tApplication.NAME,\r\n\t\t\t\t\tJOptionPane.WARNING_MESSAGE\r\n\t\t\t\t);\r\n\r\n\t\t\t\ttxtPassword.requestFocus();\r\n\t\t\t}//End of else if\r\n\t\t\telse\r\n\t\t\t{\r\n\t\t\t\tif (!db.usernameExists(username))\r\n\t\t\t\t{\r\n\t\t\t\t\tJOptionPane.showMessageDialog(\r\n\t\t\t\t\t\tthis,\r\n\t\t\t\t\t\t\"The username/password combination you provided does not exist.\",\r\n\t\t\t\t\t\tApplication.NAME,\r\n\t\t\t\t\t\tJOptionPane.WARNING_MESSAGE\r\n\t\t\t\t\t);\r\n\r\n\t\t\t\t\ttxtPassword.setText(\"\");\r\n\t\t\t\t\ttxtPassword.requestFocus();\r\n\t\t\t\t}//End of if\r\n\t\t\t\telse\r\n\t\t\t\t{\r\n\t\t\t\t\tUser user = db.loadUser(username);\r\n\t\t\t\t\tbyte [] bPassword = PasswordEncryption.hashPassword(username, password);\r\n\r\n\t\t\t\t\tif (bPassword.length != user.getPassword().length)\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\t\tJOptionPane.showMessageDialog(\r\n\t\t\t\t\t\t\t\tthis,\r\n\t\t\t\t\t\t\t\t\"The username/password combination you provided does not exist.\",\r\n\t\t\t\t\t\t\t\tApplication.NAME,\r\n\t\t\t\t\t\t\t\tJOptionPane.WARNING_MESSAGE\r\n\t\t\t\t\t\t\t);\r\n\r\n\t\t\t\t\t\t\ttxtPassword.setText(\"\");\r\n\t\t\t\t\t\t\ttxtPassword.requestFocus();\r\n\t\t\t\t\t}//End of if\r\n\t\t\t\t\telse\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\tboolean same = true;\r\n\r\n\t\t\t\t\t\t//Check the passwords for equality\r\n\t\t\t\t\t\tfor (int x = 0; x < bPassword.length; x++)\r\n\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\tif (bPassword[x] != user.getPassword()[x])\r\n\t\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t\tsame = false;\r\n\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t}//End of if\r\n\t\t\t\t\t\t}//End of for\r\n\r\n\t\t\t\t\t\tif (same)\r\n\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\tif (user.getAccountLevel() < 10)\r\n\t\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t\tJOptionPane.showMessageDialog(\r\n\t\t\t\t\t\t\t\t\tthis,\r\n\t\t\t\t\t\t\t\t\t\"You do not have sufficient rights to access this application.\",\r\n\t\t\t\t\t\t\t\t\tApplication.NAME,\r\n\t\t\t\t\t\t\t\t\tJOptionPane.WARNING_MESSAGE\r\n\t\t\t\t\t\t\t\t);\r\n\r\n\t\t\t\t\t\t\t\ttxtPassword.setText(\"\");\r\n\t\t\t\t\t\t\t\ttxtPassword.requestFocus();\r\n\t\t\t\t\t\t\t}//End of if\r\n\t\t\t\t\t\t\telse\r\n\t\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t\t//Login the user\r\n\t\t\t\t\t\t\t\tSession.login(user);\r\n\r\n\t\t\t\t\t\t\t\t//Open the dashbard\r\n\t\t\t\t\t\t\t\tSession.openWindow(new Dashboard());\r\n\r\n\t\t\t\t\t\t\t\t//Close this window\r\n\t\t\t\t\t\t\t\tthis.dispose();\r\n\t\t\t\t\t\t\t}//End of else\r\n\t\t\t\t\t\t}//End of if\r\n\t\t\t\t\t\telse\r\n\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\tJOptionPane.showMessageDialog(\r\n\t\t\t\t\t\t\t\tthis,\r\n\t\t\t\t\t\t\t\t\"The username/password combination your provided does not exist.\",\r\n\t\t\t\t\t\t\t\tApplication.NAME,\r\n\t\t\t\t\t\t\t\tJOptionPane.WARNING_MESSAGE\r\n\t\t\t\t\t\t\t);\r\n\r\n\t\t\t\t\t\t\ttxtPassword.setText(\"\");\r\n\t\t\t\t\t\t\ttxtPassword.requestFocus();\r\n\t\t\t\t\t\t}//End of else\r\n\t\t\t\t\t}//End of else\r\n\t\t\t\t}//End of else\r\n\t\t\t}//End of else\r\n\t\t}//End of try\r\n\t\tcatch (Exception e)\r\n\t\t{\r\n\t\t\t//Inform the user that the application was unable to connect to the database.\r\n\t\t\tJOptionPane.showMessageDialog(\r\n\t\t\t\tthis,\r\n\t\t\t\t\"An error occured connecting to the database.\\n\\nIf this problem continues, please contact your system administrator.\",\r\n\t\t\t\tApplication.NAME,\r\n\t\t\t\tJOptionPane.ERROR_MESSAGE\r\n\t\t\t);\r\n\t\t}//End of catch\r\n\t}",
"@Override\n\tpublic boolean isUserAuthenticate(String username, String password) {\n\t\t// validate username and pwd with predefined credentials\n\t\tif (username.equals(Utility.USERNAME) && password.equals(Utility.PASSWORD)) {\n\t\t\treturn true;\n\n\t\t} else {\n\t\t\treturn false;\n\t\t}\n\t}",
"boolean isMatchPassword(Password toCheck) throws NoUserSelectedException;",
"@Then(\"assert user credentials are stored in local storage\")\n public void assertUserCredentialsAreStoredInLocalStorage(){\n LocalStorage local = ((WebStorage) profilePage.getWebDriver()).getLocalStorage();\n assertFalse(local.getItem(\"C_C_M\").isEmpty());\n }",
"protected void validateToken() {\n\n authToken = preferences.getString(getString(R.string.auth_token), \"\");\n saplynService = new SaplynService(preferences.getInt(debugLvl, -1), authToken);\n\n // Check if user already authenticated\n if (authToken.equals(\"\")) {\n Intent intent = new Intent(HomeActivity.this, AuthenticationActivity.class);\n startActivityForResult(intent, 0);\n }\n else {\n populateUser();\n }\n }",
"public boolean validateLogin(String username, String password, String person){\n\n\t\t boolean verify = false;\n\t\t try{\n\t\t\t //Read from the customer list if the radio button checked was customer\n\t\t\t if(person.equals(\"customer\")){\n\t\t\t\t readFile = new Scanner(new FileInputStream(\"./customer.txt\"));\n\t\t\t }\n\t\t\t //Read from the manager list if the radio button checked was manager\n\t\t \t else if(person.equals(\"manager\")){\n\t\t \t\t readFile = new Scanner(new FileInputStream(\"./manager.txt\"));\n\t\t \t }\n\t\t\t String user, pass, u1, p1;\n\t\t\t user = username;\n\t\t\t pass = password;\n\t\t\t //continue to read each line \n\t\t\t while(readFile.hasNextLine()){\n\t\t\t\t u1 = readFile.next();\n\t\t\t\t p1 = readFile.next();\n\t\t\t\t if(u1.equals(user)&& p1.equals(pass)){\n\t\t\t\t\t verify = true;\n\t\t\t\t\t break;\n\t\t\t\t }\n\t\t\t }\n\t\t\t return verify;\n\t\t } catch (FileNotFoundException f){\n\t\t\t System.out.println(\"File not found\");\n\t\t }\n\t\t return verify;\n\t }",
"private static boolean authenticateUser(String username_input, String password_input){\n\t\tif(!username_input.equals(USERNAME) || !password_input.equals(PASSWORD)){\n\t\t\tSystem.out.println(\"Invalid Credentials Entered!\");\n\t\t\treturn false;\n\t\t}\n\t\telse //username and password entered were correct\n\t\t\tSystem.out.println(\"User Credentials Authenticated! Please wait while books and students are being loaded.\");\n\t\treturn true;\n\t}",
"private static boolean authenticate(String username, String password) {\r\n\t\tFile file = new File(\"auth.txt\");\r\n\t\tScanner scanner;\r\n\t\tString user = null;\r\n\t\tString pwd = null;\r\n\t\ttry {\r\n\t\t\tscanner = new Scanner(file);\r\n\t\t\tString nextLine = scanner.nextLine();\r\n\t\t\tString[] parts = nextLine.split(\"=\");\r\n\t\t\tuser = parts[0];\r\n\t\t\tpwd = parts[1];\r\n\t\t\tscanner.close();\r\n\t\t} catch (FileNotFoundException e) {\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t\t\r\n\t\t\r\n\t\treturn (username.equals(user) && password.equals(pwd));\r\n\t\t\r\n\t}",
"private boolean authenticatedUser(String uName, String pass) {\n\t\treturn true;\n\t}",
"@Test\r\n\tpublic void testCheckLogininDB() {\r\n\t\tt1.checkLogininDB(\"one\", \"two\");\r\n\t\tt1.checkLogininDB(\"user\", \"two\");\r\n\t}",
"public boolean logOn(String username, String password) {\n ArrayList<String> listOfUsernames = database.returnAllUsernames();\n for (int rowBeingChecked = 0; rowBeingChecked < listOfUsernames.size(); rowBeingChecked++) {\n if (listOfUsernames.get(rowBeingChecked).equals(username)) {\n byte[] saltAndHash = pullSaltAndHashFromDatabase(username);\n byte[] saltPulled = new byte[16];\n byte[] hashPulled = new byte[16];\n\n //Splitting 'saltAndHash' into separate bytes:\n for (int byteCounter = 0; byteCounter < 16; byteCounter++) {\n saltPulled[byteCounter] = saltAndHash[byteCounter];\n }\n for (int byteCounter = 0; byteCounter < 16; byteCounter++) {\n hashPulled[byteCounter] = saltAndHash[byteCounter + 16];\n }\n\n //Creating the hash again, and returning boolean if they're equal.\n KeySpec spec = new PBEKeySpec(password.toCharArray(), saltPulled, 66536, 128);\n try {\n SecretKeyFactory factory = SecretKeyFactory.getInstance(\"PBKDF2WithHmacSHA1\");\n byte[] hashGenerated = factory.generateSecret(spec).getEncoded();\n return Arrays.equals(hashGenerated, hashPulled);\n\n } catch (NoSuchAlgorithmException e) {\n e.printStackTrace();\n return false;\n } catch (InvalidKeySpecException e) {\n e.printStackTrace();\n return false;\n }\n }\n }\n //If user name not in table:\n return false;\n }",
"@Override\n public boolean checkLogin(String login, String password) {\n logger.info(\" This is checkLogin service ,Geting user from DB with login = \" + login);\n User user = userDao.get(login);\n if (user == null) {\n logger.info(\"This is checkLogin service, user was not found\");\n return false;\n }\n logger.info(\"We was got user by login : \" + login);\n logger.info(\"Checking user password...\");\n if (user.getPassword().equals(password)) {\n logger.info(\"Password is ok\");\n }\n return user.getPassword().equals(password);\n\n }",
"@Test\n public void nonExistingUser() {\n boolean result = auth.authenticateUser(\"Spiderman\", \"fido\", 0); \n //Then\n assertThat(result, is(false));\n }",
"public boolean checkUser(User userobj)\n\t\t{\n\t\t\tCursor c = getUser();\n\t\t\tif(c!=null){\n\t\t\t\tc.moveToFirst();\n\t\t\t\tdo{\n\t\t\t\tif(userobj.getUserName().equalsIgnoreCase(c.getString(1))&& userobj.getPassword().equalsIgnoreCase(c.getString(2)))\n\t\t\t\t{\n\t\t\t\t\treturn true;\n\t\t\t\t}\n\t\t\t\t}while(c.moveToNext());\n\t\t\t}\n\t\t\treturn false;\n\t\t}",
"@Override\n\tpublic boolean authenticate(final String name, final String password) {\n\t\treturn StringUtils.isNotBlank(name) && StringUtils.isNotBlank(password) && findByIdNoCache(name) != null;\n\t}",
"boolean isUserExist(String username, String password);",
"private boolean checkUserData() {\n UserAccount userAccount = new UserAccount(this);\n customer = userAccount.getCustomer();\n return customer != null;\n }",
"public boolean logincheck(String user, String pass) \r\n {\n \r\n try{\r\n Connection conn = DriverManager.getConnection(url, userName, password);\r\n String Sql = \"Select * from APP.MEMBER where email=? and password=?\";\r\n PreparedStatement pst = conn.prepareStatement(Sql);\r\n pst.setString(1,user);\r\n pst.setString(2,pass);\r\n ResultSet rs = pst.executeQuery();\r\n if (rs.next())\r\n {\r\n JOptionPane.showMessageDialog(null,\"Welcome user\");\r\n createEventsUI w = new createEventsUI();\r\n w.setVisible(true);\r\n }\r\n else\r\n {\r\n JOptionPane.showMessageDialog(null,\"Invalid username or password\", \"Access Denied\",JOptionPane.ERROR_MESSAGE);\r\n }\r\n }catch(Exception e) \r\n {\r\n JOptionPane.showMessageDialog(null, e);\r\n }\r\n return false;\r\n \r\n }",
"@Override\n\tpublic UserDetails checkUser(String emailId, String password) {\n\t\tfor (UserDetails ud :Repository.USER_DETAILS) {\n\t\t\tif ((ud.getEmailId().equalsIgnoreCase(emailId)) && (ud.getPassword().equals(password))) {\n\t\t\t\treturn ud;\n\t\t\t}\n\t\t}\n\t\tthrow new AirlineException(\"Invalid Credentials\");\n\t}",
"public static boolean hasAccountSavedOnDevice() {\n if (!isLogged()) {\n SharedPreferences preferences = App.getContext()\n\t\t .getSharedPreferences(LOGIN, Context.MODE_PRIVATE);\n if (preferences.contains(EMAIL)) {\n try {\n File file = new File(App.getContext()\n\t\t .getDir(\"data\", App.MODE_PRIVATE), PERMISSIONS);\n ObjectInputStream outputStream = new ObjectInputStream(new FileInputStream(file));\n currentUser = Structure.User(new User(preferences.getString(NAME, \"\"),\n\t\t preferences.getString(EMAIL, \"\"),\n\t\t preferences.getString(PASSWORD, \"\"),\n\t\t preferences.getString(ADM, \"\"),\n\t\t (HashMap<String, Boolean>) outputStream.readObject()));\n CRUD.updateDatabase();\n updateUser();\n } catch (IOException | ClassNotFoundException e) {\n e.printStackTrace();\n }\n }\n }\n return isLogged();\n }",
"Boolean isValidUserPassword(String username, String password);",
"@Override\n\tpublic boolean checkUserForLogin(String email,String password) {\n\t\treturn userRepoImpl.checkUserForLogin(email,password);\n\t}",
"@Override\r\n\tpublic boolean checkLogin() {\n\t\treturn false;\r\n\t}",
"@Override\r\n\tpublic boolean checkLogin() {\n\t\treturn false;\r\n\t}"
] |
[
"0.7149213",
"0.7120515",
"0.69274235",
"0.68846303",
"0.68140197",
"0.6788449",
"0.6779819",
"0.6746023",
"0.67270774",
"0.6673576",
"0.6578093",
"0.65571797",
"0.6542465",
"0.6534355",
"0.65340525",
"0.65267664",
"0.65189725",
"0.65180993",
"0.6505466",
"0.6487018",
"0.64499116",
"0.6444772",
"0.642718",
"0.6425932",
"0.6411647",
"0.6403336",
"0.6380351",
"0.6379416",
"0.63589",
"0.63578516",
"0.63578224",
"0.6355377",
"0.63522655",
"0.63496095",
"0.63446265",
"0.6327264",
"0.63176477",
"0.63004786",
"0.6300198",
"0.6279252",
"0.6279252",
"0.6275292",
"0.62752753",
"0.6270872",
"0.62499243",
"0.62392825",
"0.6237645",
"0.6207368",
"0.62073106",
"0.6202005",
"0.6200958",
"0.6193527",
"0.61851585",
"0.617876",
"0.61743635",
"0.6170007",
"0.6163906",
"0.6161991",
"0.61500674",
"0.6147187",
"0.6142557",
"0.61414456",
"0.6141133",
"0.6126927",
"0.6120159",
"0.6103653",
"0.6096181",
"0.6094755",
"0.6083166",
"0.60771185",
"0.60759443",
"0.6074512",
"0.6066013",
"0.60594356",
"0.60579926",
"0.60553145",
"0.6054647",
"0.6044574",
"0.6032179",
"0.60251415",
"0.6010193",
"0.6004418",
"0.600387",
"0.6003845",
"0.5995821",
"0.5995794",
"0.5993743",
"0.5988958",
"0.5985332",
"0.59712",
"0.5968043",
"0.5963768",
"0.5962837",
"0.59522533",
"0.5932446",
"0.5929688",
"0.5928561",
"0.59271216",
"0.59257585",
"0.59257585"
] |
0.74961734
|
0
|
Responds to the Login button click event in the Login screen
|
public void login(View v) {
// Disable the login button
m_loginButton.setEnabled(false);
if (validateInputs()) {
if (verifyCredentials()) {
// Start the home screen on successful login
Intent intent = new Intent(LoginScreenActivity.this, HomeScreenActivity.class);
intent.putExtra(RegistrationScreenActivity.KEY_MAIL_ID, strUserMailID);
intent.putExtra(RegistrationScreenActivity.KEY_NAME, strUserName);
startActivity(intent);
}
} else {
// On Login failure, display error to the user
Toast.makeText(getBaseContext(), "Login failed. Check credentials", Toast.LENGTH_LONG).show();
}
// Enable the login button for use
m_loginButton.setEnabled(true);
}
|
{
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
}
|
[
"public void clickOnLoginButton(){\n\t\tthis.loginButton.click();\n\t}",
"public void LoginButton() {\n\t\t\r\n\t}",
"public void onLoginButtonClicked() {\n // Start loading the process\n loginView.setProgressBarMessage(\"Logging in...\");\n loginView.showProgressBar();\n\n // Login using a username and password\n authService.login(loginView.getUsernameText(), loginView.getPasswordText())\n .subscribe(new Observer<AuthResponse>() {\n @Override\n public void onSubscribe(Disposable d) {\n\n }\n\n @Override\n public void onNext(AuthResponse authResponse) {\n respondToLoginResponse(authResponse);\n }\n\n @Override\n public void onError(Throwable e) {\n e.printStackTrace();\n loginView.showToastShort(\"Internal Error. Failed to login.\");\n loginView.dismissProgressBar();\n }\n\n @Override\n public void onComplete() {\n\n }\n });\n }",
"@Override\n public void loginScreen() {\n logIn = new GUILogInScreen().getPanel();\n frame.setContentPane(logIn);\n ((JButton) logIn.getComponent(4)).addActionListener(e -> {\n setUsername();\n });\n }",
"@Override\n public void onLoginClicked(String username, String password) {\n loginView.showProgress();\n loginInteractor.authorize(username, password, this);\n }",
"private void setupLoginButton() {\n findViewById(R.id.loginActivityLoginButton).setOnClickListener(view -> {\n switch (\n this.loginController.verifyUserCredentials(\n ((TextView)findViewById(R.id.loginActivityEmailInput)).getText().toString().trim(),\n ((TextView)findViewById(R.id.loginActivityPasswordInput)).getText().toString().trim()\n )){\n case CORRECT_CREDENTIALS:\n Intent intent = new Intent(LoginActivity.this, MusicMatch.class);\n startActivity(intent);\n break;\n case INCORRECT_CREDENTIALS:\n Toast.makeText(getApplicationContext(), \"Error: Invalid Credentials\", Toast.LENGTH_LONG).show();\n break;\n default:\n Toast.makeText(getApplicationContext(), \"Network unavailable please try again later\", Toast.LENGTH_LONG).show();\n break;\n }\n });\n }",
"@OnClick(R.id.email_sign_in_button) public void onLoginClicked() {\n String uname = username.getText().toString();\n String pass = password.getText().toString();\n\n loginForm.clearAnimation();\n\n // Start login\n presenter.doLogin(new AuthCredentials(uname, pass));\n }",
"public void clickLoginBtn() {\r\n\t\tthis.loginBtn.click(); \r\n\t}",
"public void login() {\n presenter.login(username.getText().toString(), password.getText().toString());\n }",
"@FXML\r\n\tpublic void handleLoginButton() throws IOException{\r\n\t\tString username = tfUsernameLogin.getText();\r\n\t\tString password = pfPasswordLogin.getText();\r\n\t\tuserCred = theController.isValidUser(username, password);\r\n\t\tif(userCred.equals(\"manager\")){\r\n\t\t\tloginSuccess = true;\r\n\t\t\tconsoleScreen.setDisable(false);\r\n\t\t\tactionItemsScreen.setDisable(false);\r\n\t\t\tmemberScreen.setDisable(false);\r\n\t\t\tteamScreen.setDisable(false);\r\n\t\t\thandleConsoleButton();\r\n\t\t}\r\n\t\telse if(userCred.equals(\"employee\")){\r\n\t\t\tloginSuccess = true;\r\n\t\t\tconsoleScreen.setDisable(false);\r\n\t\t\tactionItemsScreen.setDisable(false);\r\n\t\t\tmemberScreen.setDisable(true);\r\n\t\t\tteamScreen.setDisable(true);\r\n\t\t\thandleConsoleButton();\r\n\t\t}\r\n\t\telse{\r\n\t\t\tlbAlertLogin.setTextFill(Color.RED);\r\n\t\t\tlbAlertLogin.setText(userCred);\r\n\t\t}\r\n\t}",
"public void clickLogin() {\n\t\tcontinueButton.click();\n\t}",
"public void btnLoginClicked() {\n String username = txfUsername.getText();\n String password = txfPassword.getText();\n DatabaseController database = new DatabaseController(new TuDbConnectionFactory());\n Authentication auth = new Authentication(database);\n if (auth.signIn(username, password)) {\n Player player = new Player(username, database.getPersonalTopScore(username));\n game.setScreen(new PreGameScreen(game,\"music/bensound-funkyelement.mp3\", player));\n } else {\n txfUsername.setColor(Color.RED);\n txfPassword.setColor(Color.RED);\n }\n }",
"public void ClickLogin()\n\t{\n\t\t\n\t\tbtnLogin.submit();\n\t}",
"public void clickOnLoginButton() {\n\t\tutil.clickOnElement(this.loginPageLocators.getLoginButtonElement());\n\t}",
"private void onLoginButtonClicked() {\n this.loginManager = new LoginManager(this, this);\n this.password = passwordEditText.getText().toString().trim();\n this.username = usernameEditText.getText().toString().trim();\n if (username.isEmpty() || password.isEmpty()) {\n Snackbar.make(coordinatorLayout, R.string.fill_all_fields_snackbar, Snackbar.LENGTH_LONG).show();\n } else loginManager.fetchUsersToDatabase(username, password, serverName, serverPort);\n }",
"public void loginClicked(View view) {\n setContentView(R.layout.activity_scanner);\n System.out.println(\"log in clicked\");\n }",
"@OnClick(R.id.buttonLogin)\n void login()\n {\n UtilsMethods.hideSoftKeyboard(this);\n if (from.equals(Keys.FROM_FIND_JOB))\n {\n\n Intent intent = new Intent(this, LoginSignUpSeekerActivity.class);\n intent.putExtra(Keys.CLICKED_EVENT, Keys.CLICKED_EVENT_LOGIN);\n startActivity(intent);\n overridePendingTransition(R.anim.slide_in_right, R.anim.slide_out_left);\n }\n else\n {\n Intent intent = new Intent(this, LoginSignUpRecruiterActivity.class);\n intent.putExtra(Keys.CLICKED_EVENT, Keys.CLICKED_EVENT_LOGIN);\n startActivity(intent);\n overridePendingTransition(R.anim.slide_in_right, R.anim.slide_out_left);\n }\n }",
"public abstract void onLogin();",
"private void btnLogin(ActionEvent e) {\n }",
"public void performLogin(View view) {\r\n // Do something in response to button\r\n\r\n Intent myIntent = new Intent(Intent.ACTION_VIEW, Uri.parse(\"http://dev.m.gatech.edu/login/private?url=gtclicker://loggedin&sessionTransfer=window\"));\r\n startActivity(myIntent);\r\n }",
"@OnClick(R.id.login_btn)\n void loginClick() {\n mPresenter.clickOnLogin();\n }",
"public void clickOnLogin() {\n\t\tWebElement loginBtn=driver.findElement(loginButton);\n\t\tif(loginBtn.isDisplayed())\n\t\t\tloginBtn.click();\n\t}",
"public void clickLogin() {\n\t\t driver.findElement(loginBtn).click();\n\t }",
"@Override\n public void onClick(View view) {\n attemptLogin();\n }",
"public void Login(ActionEvent event) throws Exception{\r\n Login();\r\n }",
"public void login(ActionEvent e) {\n boolean passwordCheck = jf_password.validate();\n boolean emailCheck = jf_email.validate();\n if (passwordCheck && emailCheck) {\n\n\n new LoginRequest(jf_email.getText(), jf_password.getText()) {\n @Override\n protected void success(JSONObject response) {\n Platform.runLater(fxMain::switchToDashboard);\n }\n\n @Override\n protected void fail(String error) {\n Alert alert = new Alert(Alert.AlertType.ERROR, error, ButtonType.OK);\n alert.showAndWait();\n }\n };\n\n\n }\n }",
"@Then(\"^The user clicks the login button$\")\n\tpublic void the_user_clicks_the_login_button() throws Throwable {\n\t\t\n\t lpw.click_login_button();\n\t}",
"private void showLogin() {\n \t\tLogin.actionHandleLogin(this);\n \t}",
"public void goToLoginPage()\n\t{\n\t\tclickAccountNameIcon();\n\t\tclickSignInLink();\n\t}",
"@Override\n public void onClick(View view) {\n onLoginClicked();\n }",
"public void clickGoToLogin(){\n\t\t\n\t\tgoToLoginBtn.click();\n\t\t\n\t}",
"public void onLoginClick(View view) {\n dialog = initLoadingDialog();\n etUsername = findViewById(R.id.etUsername);\n etPassword = findViewById(R.id.etPassword);\n viewModel.login(etUsername.getText().toString().toLowerCase());\n }",
"@Override\r\n\t\t\tpublic void onClick(View v) {\n\t\t\t\tlogin();\r\n\t\t\t}",
"@Override\n public void onClick(ClickEvent event) {\n String mobileNr = content.getLoginView().getMobilenrTxtBox().getText();\n String password = content.getLoginView().getPasswordTxtBox().getText();\n\n // RPC authenticating user method\n motionCBSTestService.authorizeUser(mobileNr, password, new AsyncCallback<User>() {\n\n @Override\n public void onFailure(Throwable caught) {\n Window.alert(\"Der skete en fejl\");\n }\n\n @Override\n public void onSuccess(User user) {\n\n // Failed to match input with User in database\n if (user == null) {\n Window.alert(\"Wrong password or mobile number!\");\n } else if (user.getIsApproved() != true) {\n Window.alert(\"User not approved!\");\n } else\n\n\n\n // Here we check the type and if they are type 1 we go to admin view and the other way around\n if (user.getType() == 1) {\n adminController.loadUser(user);\n content.changeView(content.getMainAdminView());\n } else if (user.getType() == 2) {\n userController.loadUser(user);\n content.changeView(content.getMainUserView());\n }\n\n // Clearing the text fields (mobileNr & password) from the login screen\n content.getLoginView().clearTextBoxFields();\n }\n });\n }",
"public void LogInOnAction(Event e) {\n\t \t\r\n\t \tif(BookGateway.getInstance().getAuthentication(this.userNameId.getText(), this.passwordId.getText())) {\r\n\t \t\tthis.whiteOutId.setVisible(false);\r\n\t \t\tthis.whiteOutId.setDisable(true);\r\n\t \t\t// TODO: Update label name in the corner.. \r\n\t \t\tthis.nameLabelId.setText(\"Hello, \" + BookGateway.currentUser.getFirstName());\r\n\t \t\r\n\t \t}else {\r\n\t \t\t// true\r\n\t \t\tmessAlert(\"Invalid\",\"Wrong Username or password\");\r\n\t \t\tthis.userNameId.setText(\"\");\r\n\t \t\tthis.passwordId.setText(\"\");\r\n\t \t\te.consume();\r\n\t \t}\r\n\t \t\r\n\t \t\r\n\t }",
"private void onLoginButtonClick() {\r\n\r\n //Validate the input\r\n Editable username = mUsernameInput.getText();\r\n Editable token = mTokenInput.getText();\r\n if (username == null) {\r\n mUsernameInput.setError(getString(R.string.text_profile_username_error));\r\n return;\r\n }\r\n if (token == null) {\r\n mTokenInput.setError(getString(R.string.text_profile_token_error));\r\n return;\r\n }\r\n mViewModel.logIn(username.toString(), token.toString());\r\n\r\n //Hide the keyboard\r\n FragmentActivity activity = getActivity();\r\n if (activity == null) {\r\n return;\r\n }\r\n InputMethodManager imm = (InputMethodManager) activity.getSystemService(Activity.INPUT_METHOD_SERVICE);\r\n View currentFocus = activity.getCurrentFocus();\r\n if (currentFocus == null) {\r\n currentFocus = new View(activity);\r\n }\r\n imm.hideSoftInputFromWindow(currentFocus.getWindowToken(), 0);\r\n }",
"public String onClick() {\n final String login = getModel().getLogin();\n final String password = getModel().getPasssword();\n\n //Call Business\n Exception ex2 = null;\n User s = null;\n try {\n s = service.login(login, password);\n } catch (Exception ex) {\n ex2 = ex;\n }\n\n //Model to View\n if (ex2 == null) {\n getModel().setCurrentUser(s);\n return \"list\";\n } else {\n return null;\n }\n }",
"@FXML\n\tprivate void handleLogin() {\n\t \n\t\t\t\ttry {\n\t\t\t\t\tmain.showHomePageOverview(username.getText(),password.getText());\n\t\t\t\t} catch (SQLException e) {\n\t\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\t\te.printStackTrace();\n\t\t\t\t}\n\t\t\n\t}",
"@Override\r\n\t\t\t\tpublic void onClick(View v) {\n\t\t\t\t\tonLogin(v);\r\n\t\t\t\t}",
"@Override\n\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\n\t\t\t\tboolean approved = showLoginScreen();\n\t\t\t\tif(approved) {\n\t\t\t\t\t\n\t\t\t\t\t\n\t\t\t\t\tGUIDriver.goToScreen(\"welcome\");\n\t\t\t\t} else {\n\t\t\t\t\tshowIncorrectMessage();\n\t\t\t\t}\n\t\t}",
"@OnClick(R.id.login_login_btn)\r\n protected void login(View view) {\n String username = StringsOperations.getTextFromEditText(mUsername);\r\n if (!GenericDialogs.isFieldValidAndShowValidMessage(username, R.string.validate_email, mContext)) {\r\n return;\r\n }\r\n\r\n String password = StringsOperations.getTextFromEditText(mPassword);\r\n if (!GenericDialogs.isFieldValidAndShowValidMessage(password, R.string.validate_password, mContext)) {\r\n return;\r\n }\r\n\r\n LoginDto loginDto = new LoginDto(username, password);\r\n mCustomProgressBar.showHideProgressBar(true, getString(R.string.loading_login));\r\n mLoginService.loginWithEmail(new ResponseCallBackHandler() {\r\n @Override\r\n public void returnResponse(ResponseHandler responseHandler) {\r\n mCustomProgressBar.showHideProgressBar(false, null);\r\n if (responseHandler.isExecuted()) {\r\n mUserSession.login((User) responseHandler.getValue());\r\n ChangeActivityHelper.changeActivityClearStack((Activity) mContext, HomeActivity.class, true);\r\n return;\r\n }\r\n\r\n // Not verified\r\n if (getString(R.string.email_not_verified).equalsIgnoreCase(responseHandler.getMessage())) {\r\n GenericDialogs.getGenericConfirmDialog(mContext, \"\", getString(R.string.login_service_failed),\r\n \"Verify Email\", GenericDialogs.OK, false, new GenericConfirmationDialogBoxCallback() {\r\n @Override\r\n public void PositiveMethod(DialogInterface dialog, int id) {\r\n Uri uri = Uri.parse(\"https://mysnsi.scubasnsi.com/verify-email\"); // missing 'http://' will cause crashed\r\n Intent intent = new Intent(Intent.ACTION_VIEW, uri);\r\n startActivity(intent);\r\n dialog.dismiss();\r\n\r\n }\r\n\r\n @Override\r\n public void NegativeMethod(DialogInterface dialog, int id) {\r\n dialog.dismiss();\r\n }\r\n });\r\n } else {\r\n //Wrong username password\r\n GenericDialogs.showInformativeDialog(responseHandler.getMessage(), mContext);\r\n }\r\n\r\n }\r\n }, loginDto);\r\n\r\n }",
"public void navLogin() {\n container.getChildren().clear();\n loginText.setText(\"Vennligst skriv inn brukernavn og passord:\");\n Label name = new Label(\"Brukernavn:\");\n Label pwd = new Label(\"Passord:\");\n TextField username = new TextField(); /* Lager tekstfelt */\n username.getStyleClass().add(\"textField\");\n PasswordField password = new PasswordField(); /* Ditto */\n password.getStyleClass().add(\"textField\");\n password.setOnAction(new EventHandler<ActionEvent>() {\n public void handle(ActionEvent args) {\n handleLogin(login.checkLogin(username.getText(), password.getText()));\n }\n });\n username.getStyleClass().add(\"inpDefault\");\n password.getStyleClass().add(\"inpDefault\");\n Button logIn = new Button(\"Logg inn\"); /* Laget knapp, Logg inn */\n Button register = new Button(\"Registrer deg\"); /* Skal sende deg til en side for registrering */\n HBox buttons = new HBox();\n buttons.getChildren().addAll(logIn, register);\n container.setPadding(new Insets(15, 12, 15, 12));\n container.setSpacing(5);\n container.getChildren().addAll(loginText, name, username, pwd, password, buttons);\n register.setOnMouseClicked(event -> navRegister());\n logIn.setOnMouseClicked(event -> handleLogin(login.checkLogin(username.getText(), password.getText())));\n }",
"@Override\n\t\t\tpublic void onClick(View v) {\n\t\t\t\tif(v==buttonlogin)\n\t\t\t\t{\n\t\t\t\t\tloginUser();\n\t\t\t\t}\n\t\t\t}",
"public void clickLogin() {\r\n\t\tdriver.findElement(SignIn).click();\r\n\t\t//SignIn.click();\r\n\t\t//SignIn.click();\r\n\t\t//return new LoginPage();\r\n\t}",
"public void loginPressed(View view) {\n startActivity(new Intent(this, Login.class));\n }",
"void onSignInButtonClicked();",
"@OnClick(R.id.btn_login)\n public void btnLoginClick(View v) {\n if (ButtonClicksHelper.canClickButton()) {\n KeyboardHelper.hideKeyboard(getDialog().getCurrentFocus());\n mPresenter.logIn();\n }\n }",
"public void loginAlert() {\n\t\tDialog<Pair<String, String>> dialog = new Dialog<>();\n\t\tdialog.setTitle(\"Login Dialog\");\n\t\tdialog.setHeaderText(\"Look, a Custom Login Dialog\");\n\n\t\t// Set the icon (must be included in the project).\n\t\tdialog.setGraphic(new ImageView(this.getClass().getResource(\"file:src/vista/img/usuario.png\").toString()));\n\n\t\t// Set the button types.\n\t\tButtonType loginButtonType = new ButtonType(\"Login\", ButtonData.OK_DONE);\n\t\tdialog.getDialogPane().getButtonTypes().addAll(loginButtonType, ButtonType.CANCEL);\n\n\t\t// Create the username and password labels and fields.\n\t\tGridPane grid = new GridPane();\n\t\tgrid.setHgap(10);\n\t\tgrid.setVgap(10);\n\t\tgrid.setPadding(new Insets(20, 150, 10, 10));\n\n\t\tTextField username = new TextField();\n\t\tusername.setPromptText(\"Username\");\n\t\tPasswordField password = new PasswordField();\n\t\tpassword.setPromptText(\"Password\");\n\n\t\tgrid.add(new Label(\"Username:\"), 0, 0);\n\t\tgrid.add(username, 1, 0);\n\t\tgrid.add(new Label(\"Password:\"), 0, 1);\n\t\tgrid.add(password, 1, 1);\n\n\t\t// Enable/Disable login button depending on whether a username was entered.\n\t\tNode loginButton = dialog.getDialogPane().lookupButton(loginButtonType);\n\t\tloginButton.setDisable(true);\n\n\t\t// Do some validation (using the Java 8 lambda syntax).\n\t\tusername.textProperty().addListener((observable, oldValue, newValue) -> {\n\t\t loginButton.setDisable(newValue.trim().isEmpty());\n\t\t});\n\n\t\tdialog.getDialogPane().setContent(grid);\n\n\t\t// Request focus on the username field by default.\n\t\tPlatform.runLater(() -> username.requestFocus());\n\n\t\t// Convert the result to a username-password-pair when the login button is clicked.\n\t\tdialog.setResultConverter(dialogButton -> {\n\t\t if (dialogButton == loginButtonType) {\n\t\t return new Pair<>(username.getText(), password.getText());\n\t\t }\n\t\t return null;\n\t\t});\n\n\t\tOptional<Pair<String, String>> result = dialog.showAndWait();\n\n\t\tresult.ifPresent(usernamePassword -> {\n\t\t System.out.println(\"Username=\" + usernamePassword.getKey() + \", Password=\" + usernamePassword.getValue());\n\t\t});\n\t}",
"@OnClick(R.id.btnLogin)\n public void doLogin(View view) {\n email.setError(null);\n password.setError(null);\n\n if(email.getText().length() == 0){\n email.setError(getString(R.string.you_must_provide_your_email));\n return;\n }\n\n if(password.getText().length() == 0){\n password.setError(getString(R.string.you_must_provide_your_password));\n return;\n }\n\n // check if user && password match\n User user = User.login(email.getText().toString(), password.getText().toString());\n if(user == null){\n Toast.makeText(this, R.string.user_and_password_do_not_match, Toast.LENGTH_LONG).show();\n return;\n }\n\n // create session and start main\n startMain(user);\n }",
"void goToLogin() {\n mainFrame.setPanel(panelFactory.createPanel(PanelFactoryOptions.panelNames.LOGIN));\n }",
"public void onLoginClick()\n {\n user.setEmail(email.getValue());\n user.setPassword(password.getValue());\n\n if(!user.isValidEmail())\n {\n Toast.makeText(context, \"Invalid Email\", Toast.LENGTH_SHORT).show();\n }\n\n else if(!user.isValidPassword())\n {\n Toast.makeText(context, \"Password Should be Minimum 6 Characters\", Toast.LENGTH_SHORT).show();\n }\n\n else if(user.isValidCredential())\n {\n getBusy().setValue(View.VISIBLE);\n\n doLogin(user.getEmail(),user.getPassword());\n new Handler().postDelayed(new Runnable() {\n\n @Override\n public void run()\n {\n getBusy().setValue(View.GONE);\n\n // Toast.makeText(context, \"Login Successful\", Toast.LENGTH_SHORT).show();\n /* Intent intent = new Intent(context, NewsActivity.class);\n intent.putExtra(\"USER_OBJ\", user);\n context.startActivity(intent);\n */\n\n\n }\n }, 500);\n }\n\n else\n {\n Toast.makeText(context, \"Invalid Credentials\", Toast.LENGTH_SHORT).show();\n }\n }",
"@When(\"user clicks on login button\")\r\n\tpublic void user_clicks_on_login_button() {\n\t\tdriver.findElement(By.name(\"Login\")).click();\r\n\t}",
"public void clickLogin(){\n\t\tdriver.findElement(login).click();\n\t}",
"@Override\r\n\t\t\tpublic void onClick(View arg0) {\n\t\t\t\tif (usernameBox.getText().toString().trim().length()>0 && passwordBox.getText().toString().trim().length()>0)\r\n\t\t\t\t{\r\n\t\t\t\t\t //Convert the username and password textfields into strings\r\n\t\t\t\t\t String username=usernameBox.getText().toString();\r\n\t\t\t\t\t String password=passwordBox.getText().toString();\r\n\t\t\t\t\t \r\n\n\t\t\t\t\t Boolean contFlag = true;\r\n\t\t\t\t\t \r\n\t\t\t\t\t//Parses the inspectors if they have not already been parsed\r\n\t\t\t\t\t try {\r\n\t\t\t\t\t\t if(LoginControl.getInstance().getInspectors().isEmpty())\r\n\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t LoginControl.getInstance().parseInspectors();\r\n\t\t\t\t\t\t }\r\n\t\t\t\t\t} catch (FileNotFoundException e) {\r\n\t\t\t\t\t\tToast.makeText(getApplicationContext(), \"The user accounts file required to run this program is missing\", Toast.LENGTH_SHORT).show();\r\n\t\t\t\t\t\tcontFlag = false;\r\n\t\t\t\t\t\te.printStackTrace();\r\n\t\t\t\t\t} catch (SAXException e) {\r\n\t\t\t\t\t\tToast.makeText(getApplicationContext(), \"An error exists in one of the files required to run this program\", Toast.LENGTH_SHORT).show();\r\n\t\t\t\t\t\tcontFlag = false;\r\n\t\t\t\t\t\te.printStackTrace();\r\n\t\t\t\t\t} catch (IOException e) {\r\n\t\t\t\t\t\tcontFlag = false;\r\n\t\t\t\t\t\te.printStackTrace();\r\n\t\t\t\t\t} catch (ParserConfigurationException e) {\r\n\t\t\t\t\t\tcontFlag = false;\r\n\t\t\t\t\t\te.printStackTrace();\r\n\t\t\t\t\t}\r\n\t\t\t\t\t //Checks if the inputs are correct for the login and sees is the user is found within the xml file\r\n\t\t\t\t\t if(contFlag == true)\r\n\t\t\t\t\t {\n\t\t\t\t\t\t if(!(LoginControl.getInstance().checkLogin(username)))\r\n\t\t\t\t\t\t\t Toast.makeText(getApplicationContext(), \"User Account Does Not Exist\", Toast.LENGTH_SHORT).show();\r\n\t\t\t\t\t\t else\r\n\t\t\t\t\t\t {\r\n\t\t\t\t\t\t\t String storedPassword = LoginControl.getInstance().getCurrentInspector().getPassword();\r\n\t\t\t\t\t\t\t //Toast.makeText(getApplicationContext(), storedPassword, Toast.LENGTH_LONG).show();\r\n\t\t\t\t\t\t\t try {\r\n\t\t\t\t\t\t\t\t \r\n\t\t\t\t\t\t\t\tif(PasswordHash.validatePassword(password, storedPassword) == true)\r\n\t\t\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t\t\tToast.makeText(getApplicationContext(), (\"Entering \"+LoginControl.getInstance().getCurrentInspector().getName()+\"'s account\"), Toast.LENGTH_SHORT).show();\r\n\t\t\t\t\t\t\t\t\t//Move into the next screen state (List of Clients) screen\r\n\t\t\t\t\t\t\t\t\tstartActivity(new Intent (LoginScreen.this, ClientScreen.class));\r\n\t\t\t\t\t\t\t\t\t//Current screen will slide to the left\r\n\t\t\t\t\t\t\t\t\toverridePendingTransition(R.anim.slide_in_left, R.anim.slide_out_left);\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\tToast.makeText(getApplicationContext(), \"Incorrect Password\", Toast.LENGTH_LONG).show();\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t} catch (NoSuchAlgorithmException e) {\r\n\t\t\t\t\t\t\t\t// TODO Auto-generated catch block\r\n\t\t\t\t\t\t\t\te.printStackTrace();\r\n\t\t\t\t\t\t\t} catch (InvalidKeySpecException e) {\r\n\t\t\t\t\t\t\t\t// TODO Auto-generated catch block\r\n\t\t\t\t\t\t\t\te.printStackTrace();\r\n\t\t\t\t\t\t\t}\t\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t }\n\t\t\t\t }\r\n\t\t\t\t else\r\n\t\t\t\t\tToast.makeText(getApplicationContext(), \"Please fill in your username and password\", Toast.LENGTH_LONG).show();\t\r\n\t\t\t\t\r\n\t\t\t}",
"@And(\"click on login button\")\n\tpublic void click_on_login_button() {\n\t\tSystem.out.println(\"click on login button\");\n\t\tdriver.findElement(By.name(\"Submit\")).click();\n\t \n\t}",
"@When(\"^user should cliks the Login Button in login page$\")\n\tpublic void user_should_cliks_the_Login_Button_in_login_page() throws Throwable {\n\t\telementClick(pa.getAp().getLoginclick());\n\t \n\t}",
"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 }",
"public void clickLogin(){\n\t\t\tdriver.findElement(login).click();\n\t}",
"public void actionPerformedLogin(ActionListener login) {\n btnLogin.addActionListener(login);\n }",
"private void signInEvt() {\n // Retrieve Details\n String email = this.view.getWelcomePanel().getSignInPanel().getEmailText().getText().trim();\n String password = new String(this.view.getWelcomePanel().getSignInPanel().getPasswordText().getPassword()).trim();\n if (!email.equals(\"\") && !password.equals(\"\")) {\n if (model.getSudokuDB().checkLogin(email, password)) {\n // Set Player\n Player player = model.getSudokuDB().loadPlayer(email, password);\n if (player != null) {\n model.setPlayer(model.getSudokuDB().loadPlayer(email, password));\n // Clear Fields\n view.getWelcomePanel().getSignInPanel().clear();\n // Show Home Screen\n refreshHomePanel();\n view.getCardLayoutManager().show(view.getContent(), \"home\");\n } else {\n Object[] options = {\"OK\"};\n JOptionPane.showOptionDialog(this, \"An error occured during sign in, please try again.\", \"Sign In Error\", JOptionPane.OK_OPTION, JOptionPane.ERROR_MESSAGE, null, options, null);\n }\n } else {\n Object[] options = {\"Let me try again\"};\n JOptionPane.showOptionDialog(this, \"The credentials you have provided are invalid, please enter them correctly or create a new account.\", \"Invalid Credentials\", JOptionPane.OK_OPTION, JOptionPane.INFORMATION_MESSAGE, null, options, null);\n }\n } else {\n Object[] options = {\"Alright\"};\n JOptionPane.showOptionDialog(this, \"In order to sign in, all fields must be filled out.\", \"Empty Fields\", JOptionPane.OK_OPTION, JOptionPane.INFORMATION_MESSAGE, null, options, null);\n }\n }",
"public void loginAsUser() {\n vinyardApp.navigateToUrl(\"http://localhost:8080\");\n vinyardApp.fillUsername(\"user\");\n vinyardApp.fillPassord(\"123\");\n vinyardApp.clickSubmitButton();\n }",
"@When(\"^click on login button$\")\n\tpublic void click_on_login_button() throws Throwable {\n\t\tdriver.findElement(By.xpath(\"//input[@name='btnLogin']\")).click();\n\t}",
"public void actionPerformed(ActionEvent e) {\n \t\t\t\tlogin();\n \t\t\t}",
"@And(\"clicks on login button\")\n\tpublic void clicks_on_login_button() {\n\t\tdriver.findElement(By.id(\"login\")).click();\n\t\t\n\n\t}",
"@Override\r\n public void onClick(View v) {\n userLogin();\r\n }",
"@Override\n public void onClick(View v) {\n loginUser(\"333333\");\n }",
"public void clickLoginButton() {\n\t\tLoginSignupCompanyPage sp = new LoginSignupCompanyPage(driver);\n\t\tlog.info(\"Verifying the login button is available or not\");\n\t\tAssert.assertTrue(clickLoginButton.isDisplayed());\n\t\tclickLoginButton.click();\n\t}",
"public void doLogin() {\n\t\tSystem.out.println(\"loginpage ----dologin\");\n\t\t\n\t}",
"public HomePage clickOnLogin() {\n// Actions action = new Actions(driver);\n// action.moveToElement(login).build().perform();\n// closeAd.click();\n login.isDisplayed();\n login.click();\n return this;\n }",
"public void onLoginClickedListener(View view) {\n startActivity(new Intent(this, LoginActivity.class));\n }",
"@FXML\n\tpublic void buttonLogIn(ActionEvent event) throws IOException {\n\t\tFXMLLoader loginScreen = new FXMLLoader(getClass().getResource(\"login.fxml\"));\n\t\tloginScreen.setController(this);\n\t\tParent changeToLogin = loginScreen.load();\n\t\tmainPaneRegister.getChildren().setAll(changeToLogin);\n\t}",
"public void onClickLogin(View v){\n //If the login was correct\n if (checkLogIn()) {\n // If the loggin is successfoul, save the user as a logged user into a shared preferences\n\n String username=etUser.getText().toString();\n SharedPreferences.Editor editor = sharedpreferences.edit();\n editor.putString(\"username\", username);\n editor.commit();\n\n //Create and launch a new activity\n Intent myIntent = new Intent(getApplicationContext(), EmMessage1.class);\n startActivity(myIntent);\n }\n //Wrong login\n else {\n //Change the retries text view\n tvFailLogin.setVisibility(View.VISIBLE);\n tvFailLogin.setBackgroundColor(Color.RED);\n retriesLogin--;\n tvFailLogin.setText(Integer.toString(retriesLogin));\n //If retries==0, set the login button to not enabled\n if (retriesLogin == 0) {\n bLogin.setEnabled(false);\n }\n }\n }",
"public void performLogin() {\n AppMethodBeat.m2504i(92640);\n LoginManager loginManager = getLoginManager();\n if (LoginAuthorizationType.PUBLISH.equals(LoginButton.this.properties.authorizationType)) {\n if (LoginButton.this.getFragment() != null) {\n loginManager.logInWithPublishPermissions(LoginButton.this.getFragment(), LoginButton.this.properties.permissions);\n AppMethodBeat.m2505o(92640);\n } else if (LoginButton.this.getNativeFragment() != null) {\n loginManager.logInWithPublishPermissions(LoginButton.this.getNativeFragment(), LoginButton.this.properties.permissions);\n AppMethodBeat.m2505o(92640);\n } else {\n loginManager.logInWithPublishPermissions(LoginButton.access$800(LoginButton.this), LoginButton.this.properties.permissions);\n AppMethodBeat.m2505o(92640);\n }\n } else if (LoginButton.this.getFragment() != null) {\n loginManager.logInWithReadPermissions(LoginButton.this.getFragment(), LoginButton.this.properties.permissions);\n AppMethodBeat.m2505o(92640);\n } else if (LoginButton.this.getNativeFragment() != null) {\n loginManager.logInWithReadPermissions(LoginButton.this.getNativeFragment(), LoginButton.this.properties.permissions);\n AppMethodBeat.m2505o(92640);\n } else {\n loginManager.logInWithReadPermissions(LoginButton.access$900(LoginButton.this), LoginButton.this.properties.permissions);\n AppMethodBeat.m2505o(92640);\n }\n }",
"public void mouseClicked(MouseEvent e) {\n\t\t\t\tlogin();\n\t\t\t}",
"@Override\n public void onClick(View v) {\n loginUser(\"111111\");\n }",
"public void actionPerformed(ActionEvent e) {\n\t\t\t\tlogin();\n\t\t\t}",
"@Override\n public void onClick(View view) {\n new ProcessLogin().execute();\n }",
"public void loginButton(View view) {\n EditText userNameInput = (EditText) findViewById(R.id.user_name);\n\n if (userNameInput.getText().toString().trim().length() != 0) {\n LinearLayout loginPage = (LinearLayout) findViewById(R.id.login_page);\n loginPage.setVisibility(View.GONE);\n TextView questionsPane = (TextView) findViewById(R.id.questions_pane);\n questionsPane.setVisibility(View.VISIBLE);\n LinearLayout nextAndSubmitButtons = (LinearLayout) findViewById(R.id.next_and_submit_buttons);\n nextAndSubmitButtons.setVisibility(View.VISIBLE);\n Button nextButton = (Button) findViewById(R.id.next_button);\n nextButton.setEnabled(false);\n userName = userNameInput.getText().toString();\n }\n\n //tells the user that he/she need to provides his/her name\n else {\n Toast userIdNeeded = Toast.makeText(getApplicationContext(), \"USERNAME REQUIRED\", Toast.LENGTH_SHORT);\n userIdNeeded.show();\n }\n }",
"@Override\n\tpublic void goToLogin() {\n\t\t\n\t}",
"public String onLogin() {\n final HttpServletRequest request = (HttpServletRequest) getFacesContext()\n .getExternalContext().getRequest();\n try {\n request.login(getModel().getUsername(), getModel().getPassword());\n } catch (final ServletException e) {\n log.debug(\"Bad authentication for login \"\n + getModel().getUsername(), e);\n getFacesMessages().warn(AppMessageKey.VIEW_LOGIN_ERROR);\n return \"\";\n }\n IView viewId;\n if (getSecurityContext().isUserInSecurityRole(SecurityRole.ADMIN)) {\n viewId = View.ADMIN_ACCESS;\n } else if (getSecurityContext()\n .isUserInSecurityRole(SecurityRole.GUEST)) {\n viewId = View.GUEST_ACCESS;\n } else {\n viewId = View.INDEX;\n }\n // Fire login event.\n event.fire(new LoginEvent(new SecurityUser(getModel()\n .getUsername())));\n // Fire render view event.\n return fireEventRenderView(viewId).getId();\n }",
"@Override\n public void onClick(View v) {\n loginUser(\"222222\");\n }",
"@Override\n public void onClick(View v) {\n username = mUsernameView.getText().toString();\n password = mPasswordView.getText().toString();\n login();\n }",
"@FXML\n void doLogin(ActionEvent event) {\n try {\n loginModel.doLogin(new Login(textFieldUsername.getText(), passwordFieldPassword.getText()));\n } catch (WrongCredentialsException e) {\n e.printStackTrace();\n Alert alert = new Alert(Alert.AlertType.WARNING, \"Wrong username or password\");\n alert.showAndWait();\n } catch (Exception e) {\n e.printStackTrace();\n Alert alert = new Alert(Alert.AlertType.WARNING, \"Cannot load application. Goodbye!\");\n alert.showAndWait();\n Platform.exit();\n } finally {\n textFieldUsername.clear();\n passwordFieldPassword.clear();\n }\n }",
"public void onLoginSuccess() {\n loginButton.setEnabled(true);\n Intent intent = new Intent(getApplicationContext(), MainActivity.class);\n intent.putExtra(\"email\", emailText.getText().toString());\n intent.putExtra(\"name\", loginDataBaseAdapter.getName(emailText.getText().toString()));\n startActivity(intent);\n //finish();\n }",
"public void gotoLogin() {\n try {\n LoginController login = (LoginController) replaceSceneContent(\"Login.fxml\");\n login.setApp(this);\n } catch (Exception ex) {\n Logger.getLogger(IndieAirwaysClient.class.getName()).log(Level.SEVERE, null, ex);\n }\n }",
"protected void login() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void login() {\n\t\t\r\n\t}",
"public void inputListenerForLoginButton() throws SQLException, ParseException {\n\t\t// when Login is pressed\n\t\tString email = textField_Email.getText().toLowerCase();\n\t\ttextField_Email.setText(\"\");\n\n\t\t@SuppressWarnings(\"deprecation\")\n\t\tString password = passwordField.getText();\n\t\tpasswordField.setText(\"\");\n\n\t\tMember m = memberRepository.passwordMatchesForLogin(email, password);\n\n\t\tif (!isEmailFormatCorrect(email) || password.equals(\"\")) {\n\t\t\tlblLabel_Invalid.setVisible(true);\n\t\t\tpanel.revalidate();\n\t\t\tpanel.repaint();\n\t\t\treturn;\n\t\t}\n\n\t\tif (m != null) {\n\t\t\tif (m.isAdmin()) {\n\t\t\t\t// view el admin Panel\n\t\t\t\tAdminGUI admin = new AdminGUI();\n\t\t\t\tfrmLibraryManagementSystem.remove(panel11);\n\t\t\t\tfrmLibraryManagementSystem.getContentPane().add(admin);\n\t\t\t\tfrmLibraryManagementSystem.revalidate();\n\t\t\t\tfrmLibraryManagementSystem.repaint();\n\t\t\t} else {\n\t\t\t\t// go to BookGUI panel\n\t\t\t\tBooksGUI p = new BooksGUI(m);\n\t\t\t\tfrmLibraryManagementSystem.remove(panel11);\n\t\t\t\tfrmLibraryManagementSystem.getContentPane().add(p);\n\t\t\t\tfrmLibraryManagementSystem.revalidate();\n\t\t\t\tfrmLibraryManagementSystem.repaint();\n\t\t\t}\n\t\t} else {\n\t\t\tlblLabel_Invalid.setVisible(true);\n\t\t\tpanel.revalidate();\n\t\t\tpanel.repaint();\n\t\t}\n\n\t}",
"@Override\n\t\t\tpublic void onClick(View arg0) {\n\t\t\t\tString username = txtUsername.getText().toString();\n\t\t\t\tString password = txtPassword.getText().toString();\n\n\t\t\t\tif (username.trim().length() > 0\n\t\t\t\t\t\t&& password.trim().length() > 0) {\n\t\t\t\t\t\n\t\t\t\t \tValidateLogin validateLogin=new ValidateLogin();\n\t\t\t\t\tURL url1;\n\t\t\t\t\t\n\t\t\t\t\ttry {\n\t\t\t\t\t\turl1 = new URL(\"http://localhost:8080/shopExperience/reading\");\n\t\t\t\t\t\tvalidateLogin.execute(url1);\n\t\t\t\t\t} catch (MalformedURLException e) {\n\t\t\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\t\t\te.printStackTrace();\n\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t \t\n\t\t\t\t\t if (username.equals(\"test\") && password.equals(\"test\")) {\n//\t\t\t\t\ttry {\n//\t\t\t\t\t\tif (httpLoginRequest()) {\n\n\t\t\t\t\t\t\t// Creating user login session\n\t\t\t\t\t\t\t// For testing i am stroing name, email as follow\n\t\t\t\t\t\t\t// Use user real data\n\t\t\t\t\t\t\tsession.createLoginSession(\"Android Hive\",\n\t\t\t\t\t\t\t\t\t\"anroidhive@gmail.com\");\n\n\t\t\t\t\t\t\t// Staring MainActivity\n\t\t\t\t\t\t\tIntent i = new Intent(getApplicationContext(),\n\t\t\t\t\t\t\t\t\tMainActivity.class);\n\t\t\t\t\t\t\tstartActivity(i);\n\t\t\t\t\t\t\tfinish();\n\n\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t// username / password doesn't match\n\t\t\t\t\t\t\talert.showAlertDialog(LoginActivity.this,\n\t\t\t\t\t\t\t\t\t\"Login failed..\",\n\t\t\t\t\t\t\t\t\t\"Username/Password is incorrect\", false);\n\t\t\t\t\t\t}\n//\t\t\t\t\t} catch (Exception e) {\n//\t\t\t\t\t\t// TODO Auto-generated catch block\n//\t\t\t\t\t\te.printStackTrace();\n//\t\t\t\t\t}\n\t\t\t\t} else {\n\t\t\t\t\t// user didn't entered username or password\n\t\t\t\t\t// Show alert asking him to enter the details\n\t\t\t\t\talert.showAlertDialog(LoginActivity.this, \"Login failed..\",\n\t\t\t\t\t\t\t\"Please enter username and password\", false);\n\t\t\t\t}\n\n\t\t\t}",
"@And(\"^clicks the 'Log in' button$\")\n public void clicksTheLogInButton() throws Throwable {\n }",
"@FXML\n private void handleButtonAction(ActionEvent event){\n try {\n HandleFormEvents events = new HandleFormEvents();\n events.checkEventType(event, (isLoginable) events);\n } catch (IOException ex) {\n System.out.println(ex.getMessage());\n }\n }",
"public void Login_screen_to_Registration() {\n register_ = findViewById(R.id.register_);\n register_.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View view) {\n Intent intent = new Intent(Login_screen.this, Registration.class);\n startActivity(intent);\n }\n });\n }",
"public DashboardPage clickLogin() {\n driver.findElement(By.id(\"login-button\")).click();\n return new DashboardPage(driver);\n }",
"public DashboardPage clickloginButton (){\n driver.findElement(loginButton).click ();\n\n return new DashboardPage (driver);\n }",
"@Override\r\n\tpublic void clickOnLoginLink() {\r\n\t\t\r\n\t\tSelenium.click(lnkLogIn());\r\n\t}",
"public void loginButtonAction() {\n String username = usernameTextField.getText();\n String pass = passwordField.getText();\n\n if(checkFields()){\n if(am.login(username, pass)){\n LoginDetails.currentAdmin = am.getAdmin();\n try {\n Dimension screenSize = Toolkit.getDefaultToolkit().getScreenSize();\n Stage stage = new Stage();\n Parent parent = FXMLLoader.load(getClass().getResource(\"/app/main/MainView.fxml\"));\n stage.setResizable(true);\n stage.setTitle(\"Admin Application\");\n stage.setScene(new Scene(parent, screenSize.getWidth() * 0.9, screenSize.getHeight() * 0.9));\n stage.show();\n\n Stage thisStage = (Stage) usernameTextField.getScene().getWindow();\n thisStage.close();\n\n stage.setOnCloseRequest(e -> {\n System.err.println(\"Main: Shutting down!\");\n });\n } catch (IOException e) {\n e.printStackTrace();\n }\n }\n else{\n setInfoMessage(\"Wrong username and/or password\", true);\n }\n }\n else{\n setInfoMessage(\"You have to enter username/password\", true);\n }\n }",
"@Override\r\n\tprotected void onLoginSuccess() {\n\t\t\r\n\t}",
"@Override\n public void onClick(View v) {\n loginUser(\"999999\");\n }",
"@Override\n\tpublic void onLoginSuccess() {\n\t\t\n\t}",
"@FXML\n\tvoid login(ActionEvent event) throws IOException {\n\t\tMessage messageToServer = new Message();\n\t\tString userName = txtUserName.getText();\n\t\tString password = txtPassword.getText();\n\t\t// check that user put details\n\t\tif (userName.trim().isEmpty() || password.trim().isEmpty())\n\t\t\tlblErr.setText(\"User Name or Password is missing\");\n\t\telse {\n\t\t\tlblErr.setText(\"\");\n\t\t\t// create new Message object with the request\n\t\t\tmessageToServer.setMsg(userName + \" \" + password);\n\t\t\tmessageToServer.setOperation(\"isUserExists\");\n\t\t\tmessageToServer.setControllerName(\"UserController\");\n\t\t\t// the result User instance\n\t\t\tuser = (User) ClientUI.client.handleMessageFromClientUI(messageToServer);\n\t\t\t// user isn't exists in DB\n\t\t\tif (user == null) { // create pop up alert\n\t\t\t\tlblErr.setText(\"User Name or Password is incorrect\");\n\t\t\t}\n\t\t\t// user already log in\n\t\t\telse if (user.isLogedIN() == true) { // create pop up alert\n\t\t\t\tlblErr.setText(\"User already logged in\");\n\t\t\t} else { // user logged in successfully\n\t\t\t\tmessageToServer.setMsg(userName);\n\t\t\t\tmessageToServer.setOperation(\"updateConnectionStatus\");\n\t\t\t\tmessageToServer.setControllerName(\"UserController\");\n\t\t\t\t// update the user's connection status\n\t\t\t\tClientUI.client.handleMessageFromClientUI(messageToServer);\n\t\t\t\t// navigate user to the right home page, by his permission\n\t\t\t\tswitch (user.getUserType()) {\n\t\t\t\tcase STUDENT:\n\t\t\t\t\tNavigator.instance().navigate(\"StudentHomeForm\");\n\t\t\t\t\tbreak;\n\t\t\t\tcase TEACHER:\n\t\t\t\t\tNavigator.instance().navigate(\"TeacherHomeForm\");\n\t\t\t\t\tbreak;\n\t\t\t\tcase PRINCIPAL:\n\t\t\t\t\tNavigator.instance().navigate(\"PrincipalHomeForm\");\n\t\t\t\t\tbreak;\n\t\t\t\t} // end switch case\n\t\t\t}\n\t\t}\n\t}"
] |
[
"0.78537434",
"0.78177553",
"0.7814914",
"0.7804252",
"0.7696836",
"0.7667992",
"0.7653028",
"0.75639427",
"0.7500713",
"0.7498822",
"0.74609745",
"0.7432396",
"0.741037",
"0.73246175",
"0.7300642",
"0.72957605",
"0.72892517",
"0.72742325",
"0.7264941",
"0.7253879",
"0.7241557",
"0.7226663",
"0.72092015",
"0.7190803",
"0.71871835",
"0.7166646",
"0.7148111",
"0.7141883",
"0.7133067",
"0.71154773",
"0.71009684",
"0.7067227",
"0.70575047",
"0.7035367",
"0.7027868",
"0.70269454",
"0.7019108",
"0.7008986",
"0.6991855",
"0.6984658",
"0.6984398",
"0.69698524",
"0.6964796",
"0.69617176",
"0.6959188",
"0.69489163",
"0.69455165",
"0.69391716",
"0.6928304",
"0.6916341",
"0.68911105",
"0.6886681",
"0.6885494",
"0.68845105",
"0.68791354",
"0.68791133",
"0.6874276",
"0.6865906",
"0.6859258",
"0.68526816",
"0.6851305",
"0.6849285",
"0.6848658",
"0.6837822",
"0.6828827",
"0.6818865",
"0.6818749",
"0.68176997",
"0.681047",
"0.680861",
"0.68053615",
"0.67981434",
"0.67967135",
"0.6796597",
"0.6794125",
"0.67878395",
"0.6785538",
"0.6777706",
"0.67771983",
"0.6774957",
"0.6774678",
"0.67609257",
"0.67536277",
"0.6726243",
"0.6723829",
"0.6718485",
"0.6710779",
"0.6708005",
"0.670757",
"0.66987586",
"0.66956794",
"0.6691644",
"0.66879195",
"0.66861886",
"0.6680409",
"0.66793543",
"0.667759",
"0.66756797",
"0.66724604",
"0.6672262"
] |
0.70810544
|
31
|
remember even thought this is a service, the init will be called. do nothing here.
|
@SuppressWarnings("rawtypes")
public void doInit(CallbackHandler callbackHandler, Session session, Map options)
throws LoginException {
}
|
{
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
}
|
[
"private void initService() {\r\n\t}",
"public void service_INIT(){\n }",
"@ServiceInit\n public void init() {\n }",
"public InitService() {\n super(\"InitService\");\n }",
"@Override\n\tpublic Service upstreamServiceInit() {\n\t\treturn null;\n\t}",
"private Service() {}",
"private void initService() {\n connection = new AppServiceConnection();\n Intent i = new Intent(this, AppService.class);\n boolean ret = bindService(i, connection, Context.BIND_AUTO_CREATE);\n Log.d(TAG, \"initService() bound with \" + ret);\n }",
"private void initService() {\n\t\tavCommentService = new AvCommentService(getApplicationContext());\n\t}",
"private void initService() {\n \tlog_d( \"initService()\" );\n\t\t// no action if debug\n if ( BT_DEBUG_SERVICE ) return;\n // Initialize the BluetoothChatService to perform bluetooth connections\n if ( mBluetoothService == null ) {\n log_d( \"new BluetoothService\" );\n \t\tmBluetoothService = new BluetoothService( mContext );\n\t }\n\t\tif ( mBluetoothService != null ) {\n log_d( \"set Handler\" );\n \t\tmBluetoothService.setHandler( sendHandler );\n\t }\t\t\n }",
"@Override\n public void autonomousInit() {\n }",
"@Override\n public void autonomousInit() {\n }",
"public Service(){\n\t\t\n\t}",
"@Override\n public void autonomousInit() {\n \n }",
"@Override\r\n\tpublic void initializeService(String input) throws Exception\r\n\t{\n\t\t\r\n\t}",
"public void service() {\n\t}",
"@Override\n\tpublic void onCreate() {\n\t\tLog.i(TAG, \"service on create\");\n\t\tsuper.onCreate();\n\t}",
"protected AbstractService() {\n this(false);\n }",
"@Override\n\tprotected void initAsService() {\n\t\tif (log.isDebugEnabled()) {\n\t\t\tlog.debug(\"Initiating service...\");\n\t\t}\n\t\trunnerFuture = activityRunner.schedule(this::scanModulesHealth, 500, TimeUnit.MILLISECONDS);\n\t}",
"private ServiceManage() {\r\n\t\tInitialThreads();\r\n\t}",
"@Override\n\tpublic Service upstreamDeliverServiceInit() {\n\t\treturn null;\n\t}",
"public void InitService() {\n\t\ttry {\r\n\t\t\tgetCommManager().register(this); \r\n\t\t} catch (CommunicationException e) {\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t}",
"private GeneralServicesImpl() {\r\n\t}",
"public void initApiService() {\n apiService = ApiUtils.getAPIService();\n }",
"public void initial(){\t\t\r\n\t\tfundRateService=new FundRateService();\r\n\t}",
"public void autonomousInit() {\n \n }",
"public InitService(String name) {\n super(\"InitService\");\n }",
"@Override\n\tpublic void loadService() {\n\t\t\n\t}",
"@Override\r\n public void onCreate() {\r\n Log.d(TAG, \"on service create\");\r\n }",
"@Override\n\tpublic void autonomousInit() {\n\t}",
"private AnagramService() {\n\t}",
"private ServiceLocator() {\r\n\t\t\r\n\t}",
"public void contextInitialized(ServletContextEvent contextEvent) {\n super.serviceInitialization(contextEvent,SERVICE_NAME);\n }",
"public void autonomousInit() {\n }",
"public void autonomousInit() {\n }",
"public void forceServiceInstantiation()\n {\n getService();\n\n _serviceModelObject.instantiateService();\n }",
"protected void _init(){}",
"private ServiceFactory() {}",
"@Override\n public void runInit() {\n }",
"public void onStart() {\n /* do nothing - stub */\n }",
"public ServiceFactoryImpl() {\n\t\tsuper();\n\t}",
"private void initializeRecallServiceManager() {\n\n }",
"@Override\r\n\tprotected void processInit() {\n\t\t\r\n\t}",
"public void onServiceRegistered() {\r\n \t// Nothing to do here\r\n }",
"private ServiceManagerFactory() throws ServiceException {\r\n initialize();\r\n\t}",
"public AutowireService() {\n\t\tSystem.out.println(\"Default constructor used\");\n\t}",
"@Override\r\n\tprotected void processInit() {\n\r\n\t}",
"public void init() {\r\n // nothing to do\r\n }",
"private ServiceGenerator() {\n }",
"@PostConstruct\n protected void init() {\n super.init();\n if (screeningService == null) {\n throw new PortalServiceConfigurationException(\"screeningService is not configured correctly.\");\n }\n if (enrollmentService == null) {\n throw new PortalServiceConfigurationException(\"enrollmentService is not configured correctly.\");\n }\n if (helpService == null) {\n throw new PortalServiceConfigurationException(\"helpService must be configured.\");\n }\n\n if (eventService == null) {\n throw new PortalServiceConfigurationException(\"eventService must be configured.\");\n }\n\n if (lookupService == null) {\n throw new PortalServiceConfigurationException(\"lookupService must be configured.\");\n }\n }",
"@Override\n protected void reconfigureService() {\n }",
"@Override\n\tpublic Service upstreamDeliverMsgPluginManagerServiceInit() {\n\t\treturn null;\n\t}",
"@Override\n protected void init() {\n }",
"private void _init() {\n }",
"@Override\n\tpublic Service upstreamResponseMsgPluginManagerServiceInit() {\n\t\treturn null;\n\t}",
"@Before\n public void setupService() {\n }",
"private RecipleazBackendService() {\n }",
"@Override\n public void init() {}",
"@Override\r\n\tpublic void init() {}",
"public void init() {\r\n\tlog.info(\"OsylManagerServiceImpl service init() \");\r\n\t// register functions\r\n\tfor (Iterator<String> i = functionsToRegister.iterator(); i.hasNext();) {\r\n\t String function = i.next();\r\n\t functionManager.registerFunction(function);\r\n\t}\r\n }",
"public static void init() {\n\n\t\tsnapshot = new SnapshotService();\n\t\tlog.info(\"App init...\");\n\t}",
"private ServiceGen() {\n }",
"@PostConstruct\n public void init() {\n }",
"protected void init() {\n }",
"private void init() {\n }",
"protected void init() {\n // to override and use this method\n }",
"@PostConstruct\n\tpublic void init() {\n\n\t}",
"@PostConstruct\n\tpublic void init() {\n\n\t}",
"@Override\n\tpublic void onCreate() {\n\t\tsuper.onCreate();\n\t\tmContext = this;\n\t\tLogUtils.i(\"tr069Service onCreate is in >>>>>\");\n\t\tLogUtils.writeSystemLog(\"tr069Service\", \"onCreate\", \"tr069\");\n\t\tinitService();\n\t\tinitData();\n\t\tregisterReceiver();\n\t\t\t\t\n\t\tif(JNILOAD){\n\t\t\tTr069ServiceInit();\n\t\t}\n\t}",
"private void init() {\n }",
"private void init() {\n }",
"private void init() {\n }",
"private void init() {\n }",
"protected void init(){\n }",
"@Override\n protected void startUp() {\n }",
"public void autonomousInit() {\n\t\t\n\t}",
"public ServiceCompte() {\n\t\tsuper();\n\t}",
"private void init() {\n\n\t}",
"public void initialize() throws Exception{\r\n\t\tfor (Constraint c:constraints){\r\n\t\t\tconstraintMap.put(c.getModel(), c);\r\n\t\t}\r\n\t\tservices.add(this);\r\n\t\t//System.out.println(\"constraints=\"+constraintMap);\r\n\t\tif (LightStr.isEmpty(dsId)){\r\n\t\t\tif (BeanFactory.getBeanFactory().getDataService(\"default\")==null) dsId=\"default\"; else dsId=LightUtil.getHashCode();\r\n\t\t}\r\n\t\tBeanFactory.getBeanFactory().addDataService(dsId, this);\r\n\t}",
"@PostConstruct\n\tpublic void init() {\n\t}",
"@PostConstruct\n\tpublic void init() {\n\t}",
"private SparkeyServiceSingleton(){}",
"@Override\n\tpublic Service duplexstreamServiceInit() {\n\t\treturn null;\n\t}",
"private FournisseurArboTraficService() {\r\n\t\tsuper();\r\n\t}",
"@Override\n void init() {\n }",
"public void init() throws ServletException {\n\t\tservice = new GoodInfoDao();\n\t}",
"@Override\r\n\tpublic void init()\r\n\t{\n\t}",
"private RadiusServiceStarter() {\n }",
"@Override\r\n\tpublic final void init() {\r\n\r\n\t}",
"@Override\n public void init() {\n }",
"@Override\n public void init(Object data)\n {\n // Rely on injection\n if (schedulerService == null)\n {\n log.error(\"You can not use the SchedulerTool unless you enable \"\n +\"the Scheduler Service!!!!\");\n }\n }",
"public StartedService() {\n super(\"StartedService\");\n }",
"private void init() {\n //set view to presenter\n presenter.setView(this, service);\n\n setupView();\n }",
"protected void init() {\n\t}",
"protected void init() {\n\t}",
"public mService() {\n super(\"fetchImageService\");\n }",
"@Override\n public void init() {\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 }"
] |
[
"0.89152014",
"0.828832",
"0.81269014",
"0.789183",
"0.7818806",
"0.74422234",
"0.7293534",
"0.72678965",
"0.72592586",
"0.7229088",
"0.7229088",
"0.72077835",
"0.7188963",
"0.7170012",
"0.7162029",
"0.71437484",
"0.7134017",
"0.7130185",
"0.7126446",
"0.7089035",
"0.70386755",
"0.701958",
"0.70118105",
"0.7011273",
"0.7002106",
"0.7001341",
"0.69926196",
"0.6985969",
"0.6979053",
"0.6965515",
"0.69288766",
"0.6914567",
"0.68936664",
"0.68936664",
"0.6891985",
"0.6880825",
"0.68702817",
"0.68676823",
"0.6857413",
"0.68503755",
"0.6834539",
"0.6816995",
"0.6802254",
"0.6793175",
"0.6766868",
"0.67524993",
"0.67380536",
"0.6730125",
"0.67291105",
"0.6726951",
"0.6723742",
"0.67114204",
"0.6709685",
"0.67059356",
"0.6694609",
"0.66911024",
"0.6684961",
"0.6678757",
"0.66774786",
"0.6672458",
"0.666823",
"0.66594213",
"0.6657559",
"0.66568",
"0.66496974",
"0.66491896",
"0.66491896",
"0.6648912",
"0.6641837",
"0.6641837",
"0.6641837",
"0.6641837",
"0.66377455",
"0.66374743",
"0.66346234",
"0.66304666",
"0.6625423",
"0.66200274",
"0.6617138",
"0.6617138",
"0.66132885",
"0.6612768",
"0.6604428",
"0.6600969",
"0.65980786",
"0.6592395",
"0.65921295",
"0.659074",
"0.658841",
"0.6586565",
"0.65819997",
"0.6579067",
"0.65766406",
"0.65766406",
"0.65764326",
"0.6572966",
"0.6569619",
"0.6569619",
"0.6569619",
"0.6569619",
"0.6569619"
] |
0.0
|
-1
|
Is this message audio data?
|
public boolean isAudio() {
return this == AUDIO;
}
|
{
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
}
|
[
"boolean hasMultimediaData();",
"boolean hasSendReading();",
"boolean hasDecodedAudioTimeoutMs();",
"boolean hasDecodedAudioTimeoutMs();",
"public boolean hasMsgData() {\n return ((bitField0_ & 0x00000002) == 0x00000002);\n }",
"public boolean hasAudio() {\n\t\treturn this.recordingProperties.hasAudio();\n\t}",
"public boolean hasMsgData() {\n return ((bitField0_ & 0x00000002) == 0x00000002);\n }",
"public boolean isAudio()\n {return false ;\n }",
"private void isAudio(MultipartFile file) {\n\t\t\n\t}",
"boolean hasChatData();",
"public boolean dataIsReady()\n {\n boolean[] status = m_receiver.getBufferStatus();\n if (status.length == 0)\n {\n return false;\n }\n for (boolean b : status)\n {\n if (!b)\n return false;\n }\n return true;\n }",
"boolean isReceiving();",
"boolean hasReceived();",
"public boolean isMessageReadFully() {\r\n\t\t\r\n\t\tCharBuffer charBuffer = byteBuffer.asCharBuffer();\r\n\t\tint limit = charBuffer.limit();\r\n\t\tString protocolMessage = null;\r\n\t\t//Check if the last char is ~ indicating the end of the message which also \r\n\t\t//indicates that the message is fully read\r\n\t\tif (charBuffer.get(limit) == '~') {\r\n\t\t\tprotocolMessage = charBuffer.toString();\r\n\t\t\tSystem.out.println(\"Protocol Message: \" + protocolMessage);\r\n\t\t\t//clear the buffer\r\n\t\t\tbyteBuffer.clear();\r\n\t\t\t//Decode the message into portions\r\n\t\t\tdecode(protocolMessage);\r\n\t\t\treturn true;\r\n\t\t} else\r\n\t\t\treturn false;\r\n\t\t\r\n\t\t\r\n\t}",
"boolean anyAudioTriggered() {\n for (final Datum d : this.datumList) {\n if (d instanceof Cell) {\n final Cell c = (Cell)d;\n if (c.isAudioTriggered())\n return true;\n }\n }\n\n return false;\n }",
"boolean hasBinaryData();",
"public boolean hasData() {\n return ((bitField0_ & 0x00000010) == 0x00000010);\n }",
"boolean hasMessage();",
"boolean hasMessage();",
"boolean hasMessage();",
"boolean hasMessage();",
"boolean hasMessage();",
"boolean hasMessage();",
"boolean hasMessage();",
"boolean hasMessage();",
"public synchronized boolean hasMessage() {\n\t while(_buffers.size() > 0) {\n ByteBuffer bytes = _buffers.remove(0);\n CharBuffer chars = CharBuffer.allocate(bytes.remaining());\n \t this._decoder.decode(bytes, chars, false); // false: more bytes may follow. Any unused bytes are kept in the decoder.\n \t chars.flip();\n \t this._stringBuf.append(chars);\n\t }\n\t return this._stringBuf.indexOf(this._messageSeparator) > -1;\n }",
"boolean hasMessageType();",
"public boolean hasData() {\n return ((bitField0_ & 0x00000001) == 0x00000001);\n }",
"public boolean hasData() {\n return ((bitField0_ & 0x00000001) == 0x00000001);\n }",
"boolean hasPostEndOfAudioTimeoutMs();",
"public boolean hasData() {\n return ((bitField0_ & 0x00000008) == 0x00000008);\n }",
"protected final boolean anyMsg() {\n\t\tDoorPulseCriterion dpc = new DoorPulseCriterion(this.getPulse() - 1);\n\t\treturn this.existMessage(dpc);\n\t}",
"private boolean isData() {\n return \"data\".equalsIgnoreCase(data.substring(tokenStart, tokenStart + 4));\n }",
"public boolean hasData() {\n return ((bitField0_ & 0x00000002) == 0x00000002);\n }",
"public boolean hasData() {\n return ((bitField0_ & 0x00000002) == 0x00000002);\n }",
"public boolean hasData() {\n return ((bitField0_ & 0x00000002) == 0x00000002);\n }",
"public boolean hasData() {\n return ((bitField0_ & 0x00000002) == 0x00000002);\n }",
"public boolean isSound() {\n\t\treturn true;\n\t}",
"@java.lang.Override\n public boolean hasDecodedAudioTimeoutMs() {\n return ((bitField0_ & 0x00000001) != 0);\n }",
"public boolean hasChatData() {\n return ((bitField0_ & 0x00000001) == 0x00000001);\n }",
"public boolean hasChatData() {\n return ((bitField0_ & 0x00000001) == 0x00000001);\n }",
"boolean hasMsg();",
"public boolean isData();",
"@java.lang.Override\n public boolean hasDecodedAudioTimeoutMs() {\n return ((bitField0_ & 0x00000002) != 0);\n }",
"public boolean hasMessageAttached()\n throws OculusException;",
"boolean hasPayload();",
"public boolean hasMessage() {\n return ((bitField0_ & 0x00000010) == 0x00000010);\n }",
"@java.lang.Override\n public boolean hasDecodedAudioTimeoutMs() {\n return ((bitField0_ & 0x00000001) != 0);\n }",
"public boolean hasMessage() {\n return ((bitField0_ & 0x00000010) == 0x00000010);\n }",
"boolean hasData();",
"boolean hasData();",
"boolean hasData();",
"boolean hasData();",
"boolean hasData();",
"boolean hasData();",
"boolean hasData();",
"@java.lang.Override\n public boolean hasDecodedAudioTimeoutMs() {\n return ((bitField0_ & 0x00000002) != 0);\n }",
"boolean hasData()\n {\n logger.info(\"server: \" + server + \" addr: \" + addr + \"text:\" + text);\n return server != null && addr != null && text != null;\n }",
"public boolean isData(){\n\t\t\tif (type == MemoryType.DATA) { return true;\n\t\t\t} return false;\n\t\t}",
"boolean checkAudioRecord() {\n try {\n audioRecord = new AudioRecord(\n audioBundle.getInt(AudioSettings.AUDIO_BUNDLE_KEYS[0]),\n audioBundle.getInt(AudioSettings.AUDIO_BUNDLE_KEYS[1]),\n audioBundle.getInt(AudioSettings.AUDIO_BUNDLE_KEYS[2]),\n audioBundle.getInt(AudioSettings.AUDIO_BUNDLE_KEYS[3]),\n audioBundle.getInt(AudioSettings.AUDIO_BUNDLE_KEYS[4]));\n MainActivity.logger(context.getString(R.string.audio_check_4));\n // need to start reading buffer to trigger an exception\n audioRecord.startRecording();\n short buffer[] = new short[audioBundle.getInt(AudioSettings.AUDIO_BUNDLE_KEYS[4])];\n int audioStatus = audioRecord.read(buffer, 0, audioBundle.getInt(AudioSettings.AUDIO_BUNDLE_KEYS[4]));\n\n // check for error on pre 6.x and 6.x API\n if(audioStatus == AudioRecord.ERROR_INVALID_OPERATION\n || audioStatus == AudioRecord.STATE_UNINITIALIZED) {\n MainActivity.logger(context.getString(R.string.audio_check_6) + audioStatus);\n // audioStatus == 0(uninitialized) is an error, does not throw exception\n MainActivity.logger(context.getString(R.string.audio_check_5));\n return false;\n }\n }\n catch(Exception e) {\n MainActivity.logger(context.getString(R.string.audio_check_7));\n MainActivity.logger(context.getString(R.string.audio_check_9));\n return false;\n }\n // no errors\n if (audioRecord != null) {\n audioRecord.stop();\n audioRecord.release();\n }\n MainActivity.logger(context.getString(R.string.audio_check_8));\n return true;\n }",
"boolean isSending();",
"boolean hasIosAppDataStream();",
"public boolean isSilent() {\n for(int iSndGrp = 0, i = 0;\n iSndGrp < XaAdpcmDecoder.ADPCM_SOUND_GROUPS_PER_SECTOR;\n iSndGrp++, i += XaAdpcmDecoder.SIZEOF_SOUND_GROUP)\n {\n // just check if all ADPCM values are 0\n for (int j = 16; j < XaAdpcmDecoder.SIZEOF_SOUND_GROUP; j++) {\n if (getCdSector().readUserDataByte(i+j) != 0)\n return false;\n }\n }\n return true;\n }",
"public boolean hasMessage() {\n return ((bitField0_ & 0x00000002) == 0x00000002);\n }",
"public boolean hasMessage() {\n return ((bitField0_ & 0x00000002) == 0x00000002);\n }",
"public boolean hasMessage() {\n return ((bitField0_ & 0x00000002) == 0x00000002);\n }",
"public boolean hasMessage() {\n return ((bitField0_ & 0x00000002) == 0x00000002);\n }",
"public boolean hasMessage() {\n return ((bitField0_ & 0x00000002) == 0x00000002);\n }",
"public boolean hasMessage() {\n return ((bitField0_ & 0x00000002) == 0x00000002);\n }",
"public boolean hasMessage(){\r\n return this.receivedMessages.size()>0;\r\n }",
"public boolean hasMessage() {\n return ((bitField0_ & 0x00000002) == 0x00000002);\n }",
"public boolean hasMessage() {\n return ((bitField0_ & 0x00000002) == 0x00000002);\n }",
"public boolean hasMessage() {\n return ((bitField0_ & 0x00000002) == 0x00000002);\n }",
"public boolean hasMessage() {\n return ((bitField0_ & 0x00000002) == 0x00000002);\n }",
"public boolean hasMessage() {\n return ((bitField0_ & 0x00000002) == 0x00000002);\n }",
"public boolean hasMessage() {\n return ((bitField0_ & 0x00000002) == 0x00000002);\n }",
"boolean hasSendMessage();",
"public boolean hasData();",
"public boolean hasMsg() {\n return ((bitField0_ & 0x00000020) == 0x00000020);\n }",
"public boolean hasSendReading() {\n return sendReading_ != null;\n }",
"public boolean hasContent() {\n return messageContent != null || messageContentBytes != null;\n }",
"public boolean hasMsg() {\n return ((bitField0_ & 0x00000020) == 0x00000020);\n }",
"public boolean isSpeaking() {\n return (mSelf.mIsSpeaking && (mSpeechQueue.size() < 1));\n }",
"public boolean hasMsgType() {\n return ((bitField0_ & 0x00000001) == 0x00000001);\n }",
"public static boolean isSound() {\n return sound;\n }",
"Boolean isMessageRead(String msgId);",
"public boolean hasMsgType() {\n return ((bitField0_ & 0x00000001) == 0x00000001);\n }",
"@java.lang.Override\n public boolean hasPostEndOfAudioTimeoutMs() {\n return ((bitField0_ & 0x00000004) != 0);\n }",
"boolean isSoundPlaying() {\n return (audioTrack.getPlayState() == AudioTrack.PLAYSTATE_PLAYING);\n }",
"public boolean getAcceptsAudio() {\n\n return m_acceptsAudio;\n }",
"public boolean hasData1() {\n return ((bitField0_ & 0x00000002) == 0x00000002);\n }",
"public boolean hasData1() {\n return ((bitField0_ & 0x00000002) == 0x00000002);\n }",
"public boolean hasData1() {\n return ((bitField0_ & 0x00000002) == 0x00000002);\n }",
"public boolean hasData1() {\n return ((bitField0_ & 0x00000002) == 0x00000002);\n }",
"private final boolean message_ready ()\n {\n \n if (msg_source == null)\n return false;\n \n in_progress = msg_source.pull_msg ();\n if (in_progress == null) {\n return false;\n }\n\n // Get the message size.\n int size = in_progress.size ();\n\n // Account for the 'flags' byte.\n size++;\n\n // For messages less than 255 bytes long, write one byte of message size.\n // For longer messages write 0xff escape character followed by 8-byte\n // message size. In both cases 'flags' field follows.\n \n if (size < 255) {\n tmpbuf[0] = (byte)size;\n tmpbuf[1] = (byte) (in_progress.flags () & Msg.more);\n next_step (tmpbuf, 2, size_ready, false);\n }\n else {\n ByteBuffer b = ByteBuffer.wrap(tmpbuf);\n b.put((byte)0xff);\n b.putLong(size);\n b.put((byte) (in_progress.flags () & Msg.more));\n next_step (tmpbuf, 10, size_ready, false);\n }\n \n return true;\n }",
"public boolean hasSpeechEventOffset() {\n return ((bitField0_ & 0x00000004) != 0);\n }",
"public boolean isData() {return true; }",
"@java.lang.Override\n public boolean hasPostEndOfAudioTimeoutMs() {\n return ((bitField0_ & 0x00000004) != 0);\n }",
"public boolean hasHeartBeatMsg() {\n return msgCase_ == 3;\n }",
"public boolean hasSendMessage() {\n return typeCase_ == 4;\n }"
] |
[
"0.72087955",
"0.6877343",
"0.6844776",
"0.6844776",
"0.67210346",
"0.67201716",
"0.66729254",
"0.66521823",
"0.66351134",
"0.6530783",
"0.6500448",
"0.6489151",
"0.6474228",
"0.6473147",
"0.6415872",
"0.63993275",
"0.63841206",
"0.63359284",
"0.63359284",
"0.63359284",
"0.63359284",
"0.63359284",
"0.63359284",
"0.63359284",
"0.63359284",
"0.63082254",
"0.63026303",
"0.630214",
"0.62962466",
"0.6277817",
"0.62768984",
"0.6275944",
"0.62750363",
"0.6259836",
"0.6258798",
"0.62509453",
"0.6250527",
"0.6244661",
"0.6213654",
"0.6205028",
"0.6202474",
"0.619833",
"0.61962366",
"0.6192189",
"0.61912876",
"0.6190287",
"0.6182182",
"0.6172303",
"0.61654437",
"0.61531353",
"0.61531353",
"0.61531353",
"0.61531353",
"0.61531353",
"0.61531353",
"0.61531353",
"0.61522937",
"0.61437243",
"0.6141022",
"0.61368275",
"0.61298263",
"0.61204565",
"0.6061074",
"0.60598075",
"0.60598075",
"0.60598075",
"0.60598075",
"0.6059753",
"0.6059753",
"0.605697",
"0.6049441",
"0.6049441",
"0.60486895",
"0.60486895",
"0.60486895",
"0.60486895",
"0.60441333",
"0.60408676",
"0.6036224",
"0.6030198",
"0.6027675",
"0.60264164",
"0.6020239",
"0.60155416",
"0.60042304",
"0.59983957",
"0.59783584",
"0.5949463",
"0.5945208",
"0.59384805",
"0.59368515",
"0.59368515",
"0.5918786",
"0.5918786",
"0.5914128",
"0.5909151",
"0.5897112",
"0.5894791",
"0.58926535",
"0.5891821"
] |
0.6696938
|
6
|
Is this message video data?
|
public boolean isVideo() {
return (this == INTERFRAME || this == KEY_FRAME || this==DISPOSABLE_INTERFRAME);
}
|
{
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
}
|
[
"boolean hasMultimediaData();",
"boolean hasVideo();",
"public boolean hasMsgData() {\n return ((bitField0_ & 0x00000002) == 0x00000002);\n }",
"public boolean hasMsgData() {\n return ((bitField0_ & 0x00000002) == 0x00000002);\n }",
"public boolean isMessageReadFully() {\r\n\t\t\r\n\t\tCharBuffer charBuffer = byteBuffer.asCharBuffer();\r\n\t\tint limit = charBuffer.limit();\r\n\t\tString protocolMessage = null;\r\n\t\t//Check if the last char is ~ indicating the end of the message which also \r\n\t\t//indicates that the message is fully read\r\n\t\tif (charBuffer.get(limit) == '~') {\r\n\t\t\tprotocolMessage = charBuffer.toString();\r\n\t\t\tSystem.out.println(\"Protocol Message: \" + protocolMessage);\r\n\t\t\t//clear the buffer\r\n\t\t\tbyteBuffer.clear();\r\n\t\t\t//Decode the message into portions\r\n\t\t\tdecode(protocolMessage);\r\n\t\t\treturn true;\r\n\t\t} else\r\n\t\t\treturn false;\r\n\t\t\r\n\t\t\r\n\t}",
"public synchronized boolean hasMessage() {\n\t while(_buffers.size() > 0) {\n ByteBuffer bytes = _buffers.remove(0);\n CharBuffer chars = CharBuffer.allocate(bytes.remaining());\n \t this._decoder.decode(bytes, chars, false); // false: more bytes may follow. Any unused bytes are kept in the decoder.\n \t chars.flip();\n \t this._stringBuf.append(chars);\n\t }\n\t return this._stringBuf.indexOf(this._messageSeparator) > -1;\n }",
"boolean hasChatData();",
"public boolean hasVideo() {\n\t\treturn this.recordingProperties.hasVideo();\n\t}",
"boolean hasMessage();",
"boolean hasMessage();",
"boolean hasMessage();",
"boolean hasMessage();",
"boolean hasMessage();",
"boolean hasMessage();",
"boolean hasMessage();",
"boolean hasMessage();",
"public boolean hasMessage() {\n return ((bitField0_ & 0x00000010) == 0x00000010);\n }",
"public boolean hasMessage() {\n return ((bitField0_ & 0x00000010) == 0x00000010);\n }",
"boolean isReceiving();",
"public boolean hasContent() {\n return messageContent != null || messageContentBytes != null;\n }",
"boolean hasMessageType();",
"public boolean hasMessage() {\n return ((bitField0_ & 0x00000002) == 0x00000002);\n }",
"public boolean hasMessage() {\n return ((bitField0_ & 0x00000002) == 0x00000002);\n }",
"public boolean hasMessage() {\n return ((bitField0_ & 0x00000002) == 0x00000002);\n }",
"public boolean hasMessage() {\n return ((bitField0_ & 0x00000002) == 0x00000002);\n }",
"public boolean hasMessage() {\n return ((bitField0_ & 0x00000002) == 0x00000002);\n }",
"public boolean hasMessage() {\n return ((bitField0_ & 0x00000002) == 0x00000002);\n }",
"public boolean isVideo()\n {return false;\n }",
"public boolean hasMessage() {\n return ((bitField0_ & 0x00000002) == 0x00000002);\n }",
"public boolean hasMessage() {\n return ((bitField0_ & 0x00000002) == 0x00000002);\n }",
"public boolean hasMessage() {\n return ((bitField0_ & 0x00000002) == 0x00000002);\n }",
"public boolean hasMessage() {\n return ((bitField0_ & 0x00000002) == 0x00000002);\n }",
"public boolean hasMessage() {\n return ((bitField0_ & 0x00000002) == 0x00000002);\n }",
"public boolean hasMessage() {\n return ((bitField0_ & 0x00000002) == 0x00000002);\n }",
"public boolean dataIsReady()\n {\n boolean[] status = m_receiver.getBufferStatus();\n if (status.length == 0)\n {\n return false;\n }\n for (boolean b : status)\n {\n if (!b)\n return false;\n }\n return true;\n }",
"boolean hasReceived();",
"public boolean hasChatData() {\n return ((bitField0_ & 0x00000001) == 0x00000001);\n }",
"public boolean hasMessage(){\r\n return this.receivedMessages.size()>0;\r\n }",
"boolean hasMsg();",
"public boolean hasChatData() {\n return ((bitField0_ & 0x00000001) == 0x00000001);\n }",
"private final boolean message_ready ()\n {\n \n if (msg_source == null)\n return false;\n \n in_progress = msg_source.pull_msg ();\n if (in_progress == null) {\n return false;\n }\n\n // Get the message size.\n int size = in_progress.size ();\n\n // Account for the 'flags' byte.\n size++;\n\n // For messages less than 255 bytes long, write one byte of message size.\n // For longer messages write 0xff escape character followed by 8-byte\n // message size. In both cases 'flags' field follows.\n \n if (size < 255) {\n tmpbuf[0] = (byte)size;\n tmpbuf[1] = (byte) (in_progress.flags () & Msg.more);\n next_step (tmpbuf, 2, size_ready, false);\n }\n else {\n ByteBuffer b = ByteBuffer.wrap(tmpbuf);\n b.put((byte)0xff);\n b.putLong(size);\n b.put((byte) (in_progress.flags () & Msg.more));\n next_step (tmpbuf, 10, size_ready, false);\n }\n \n return true;\n }",
"public boolean hasData() {\n return ((bitField0_ & 0x00000010) == 0x00000010);\n }",
"public boolean hasMsg() {\n return ((bitField0_ & 0x00000020) == 0x00000020);\n }",
"public final boolean mo86957ao() {\n Aweme aweme = this.f77546j;\n C7573i.m23582a((Object) aweme, \"mAweme\");\n Video video = aweme.getVideo();\n C7573i.m23582a((Object) video, \"mAweme.video\");\n int height = video.getHeight() * 3;\n Aweme aweme2 = this.f77546j;\n C7573i.m23582a((Object) aweme2, \"mAweme\");\n Video video2 = aweme2.getVideo();\n C7573i.m23582a((Object) video2, \"mAweme.video\");\n if (height >= video2.getWidth() * 4) {\n return true;\n }\n return false;\n }",
"boolean isServerMessage();",
"public boolean hasMsg() {\n return ((bitField0_ & 0x00000020) == 0x00000020);\n }",
"boolean hasHaveReceiveAttachment();",
"boolean hasBinaryData();",
"private boolean isBinaryMessage(Object anObject) {\n\t\tif(anObject.getClass() == this.getClass()) {\n\t\t\treturn true;\n\t\t}\n\t\telse {\n\t\t\treturn false;\n\t\t}\n\t}",
"@Override\n\tpublic boolean CheckStreamingLike(String mail) {\n\t\treturn false;\n\t}",
"public boolean hasMessageID() {\n return ((bitField0_ & 0x00000800) == 0x00000800);\n }",
"private boolean isData() {\n return \"data\".equalsIgnoreCase(data.substring(tokenStart, tokenStart + 4));\n }",
"public boolean hasMessageID() {\n return ((bitField0_ & 0x00000800) == 0x00000800);\n }",
"public boolean isValid() {\n return media.isValid();\n }",
"public boolean hasData() {\n return ((bitField0_ & 0x00000008) == 0x00000008);\n }",
"public boolean hasData() {\n return ((bitField0_ & 0x00000001) == 0x00000001);\n }",
"public boolean hasMsgType() {\n return ((bitField0_ & 0x00000001) == 0x00000001);\n }",
"public boolean hasData() {\n return ((bitField0_ & 0x00000001) == 0x00000001);\n }",
"public boolean hasData() {\n return ((bitField0_ & 0x00000002) == 0x00000002);\n }",
"public boolean hasData() {\n return ((bitField0_ & 0x00000002) == 0x00000002);\n }",
"public boolean hasData() {\n return ((bitField0_ & 0x00000002) == 0x00000002);\n }",
"public boolean hasData() {\n return ((bitField0_ & 0x00000002) == 0x00000002);\n }",
"Boolean isMessageRead(String msgId);",
"public boolean hasMsgType() {\n return ((bitField0_ & 0x00000001) == 0x00000001);\n }",
"boolean hasMediaFile();",
"public boolean isSetIsvideo() {\n return __isset_bit_vector.get(__ISVIDEO_ISSET_ID);\n }",
"public boolean isData();",
"public boolean isSetVideo() {\n return EncodingUtils.testBit(__isset_bitfield, __VIDEO_ISSET_ID);\n }",
"public boolean hasMessageAttached()\n throws OculusException;",
"boolean hasRemsg();",
"public boolean hasMessageInfoID() {\n return ((bitField0_ & 0x00000002) == 0x00000002);\n }",
"public abstract void videoMessage(Message m);",
"boolean isLocalVideoStreaming(Call call);",
"public boolean hasMessageInfoID() {\n return ((bitField0_ & 0x00000002) == 0x00000002);\n }",
"boolean hasData()\n {\n logger.info(\"server: \" + server + \" addr: \" + addr + \"text:\" + text);\n return server != null && addr != null && text != null;\n }",
"public static boolean hasMessageData(Map<String, Object> data) {\r\n\t\treturn ( null != data.get(MESSAGE) );\r\n\t}",
"public static boolean m18372c(String str) {\n return str != null && (str.startsWith(\"video/\") || \"application/octet-stream\".equals(str) || \"binary/octet-stream\".equals(str));\n }",
"boolean hasReceiveTime();",
"private boolean verifyMessagePresence(){\n boolean overallResult = true;\n \n for(int ii = 0; ii < 3; ii = ii +1){\n if(121 == getHidden(ii)){\n overallResult = true;\n }else{\n overallResult = false;\n }\n }\n \n return overallResult;\n }",
"boolean hasMessageID();",
"boolean hasSendReading();",
"boolean hasAttachment();",
"public boolean hasHeartBeatMsg() {\n return msgCase_ == 3;\n }",
"public boolean hasContent() {\n return ((bitField0_ & 0x00000010) == 0x00000010);\n }",
"public boolean hasContent() {\n return ((bitField0_ & 0x00000010) == 0x00000010);\n }",
"boolean hasMessageInfoID();",
"public boolean hasHeartBeatMsg() {\n return msgCase_ == 3;\n }",
"public boolean hasContent() {\n return ((bitField0_ & 0x00000010) == 0x00000010);\n }",
"public boolean hasContent() {\n return ((bitField0_ & 0x00000010) == 0x00000010);\n }",
"private boolean messageIsNew( byte[] messageID ){\n \tsynchronized( this.messageIDs ){\n \t\tfor (int i = 0; i < messageIDs.size(); i++) {\n if (Arrays.equals(messageIDs.get(i), messageID)) {\n Log.d(TAG, \"Message already recieved, ID: \" + messageID[0]);\n return false;\n }\n }\n \t}\n \treturn true;\n }",
"boolean hasSendMessage();",
"public boolean hasContent() {\n return ((bitField0_ & 0x00000080) != 0);\n }",
"@Override\n\tpublic Boolean esVideo() {\n\t\tBoolean bool = this instanceof Video; \n\t\treturn bool;\n\t}",
"boolean hasPayload();",
"boolean hasMsgid();",
"boolean hasData();",
"boolean hasData();",
"boolean hasData();",
"boolean hasData();",
"boolean hasData();"
] |
[
"0.70196676",
"0.6864754",
"0.66531754",
"0.6608579",
"0.6598473",
"0.6573605",
"0.65477854",
"0.648377",
"0.6415465",
"0.6415465",
"0.6415465",
"0.6415465",
"0.6415465",
"0.6415465",
"0.6415465",
"0.6415465",
"0.6398198",
"0.6386567",
"0.63304514",
"0.6319246",
"0.6316352",
"0.6266047",
"0.6266047",
"0.62651056",
"0.62651056",
"0.62651056",
"0.62651056",
"0.6262592",
"0.6260395",
"0.6260395",
"0.6259479",
"0.6259479",
"0.6259479",
"0.6259479",
"0.62534034",
"0.62164736",
"0.6187766",
"0.61795104",
"0.6176249",
"0.6174983",
"0.6147274",
"0.61159956",
"0.6105145",
"0.6102986",
"0.60989743",
"0.60892934",
"0.60890365",
"0.6088375",
"0.60364604",
"0.6034052",
"0.6016022",
"0.59969115",
"0.5995705",
"0.59852564",
"0.5981749",
"0.59768236",
"0.5972142",
"0.5970546",
"0.5968429",
"0.59668934",
"0.59590065",
"0.59576595",
"0.5942689",
"0.59354806",
"0.5932764",
"0.59258467",
"0.59237266",
"0.5910185",
"0.5910056",
"0.5903939",
"0.5900586",
"0.5889794",
"0.5889716",
"0.58878815",
"0.58797574",
"0.58746874",
"0.58738863",
"0.58607376",
"0.5851595",
"0.5847753",
"0.582388",
"0.58222234",
"0.5822162",
"0.5820775",
"0.5820775",
"0.5812078",
"0.5804584",
"0.5796397",
"0.5796397",
"0.5787424",
"0.57816",
"0.5769474",
"0.57643414",
"0.5763048",
"0.573249",
"0.57254386",
"0.57254386",
"0.57254386",
"0.57254386",
"0.57254386"
] |
0.62690985
|
21
|
Is this message other data?
|
public boolean isOther() {
return this == OTHER;
}
|
{
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
}
|
[
"public boolean hasMsgData() {\n return ((bitField0_ & 0x00000002) == 0x00000002);\n }",
"public boolean hasMsgData() {\n return ((bitField0_ & 0x00000002) == 0x00000002);\n }",
"boolean hasMessage();",
"boolean hasMessage();",
"boolean hasMessage();",
"boolean hasMessage();",
"boolean hasMessage();",
"boolean hasMessage();",
"boolean hasMessage();",
"boolean hasMessage();",
"boolean hasMsg();",
"boolean hasChatData();",
"public boolean hasMessage(){\r\n return this.receivedMessages.size()>0;\r\n }",
"boolean hasMessageType();",
"public boolean isMessageReadFully() {\r\n\t\t\r\n\t\tCharBuffer charBuffer = byteBuffer.asCharBuffer();\r\n\t\tint limit = charBuffer.limit();\r\n\t\tString protocolMessage = null;\r\n\t\t//Check if the last char is ~ indicating the end of the message which also \r\n\t\t//indicates that the message is fully read\r\n\t\tif (charBuffer.get(limit) == '~') {\r\n\t\t\tprotocolMessage = charBuffer.toString();\r\n\t\t\tSystem.out.println(\"Protocol Message: \" + protocolMessage);\r\n\t\t\t//clear the buffer\r\n\t\t\tbyteBuffer.clear();\r\n\t\t\t//Decode the message into portions\r\n\t\t\tdecode(protocolMessage);\r\n\t\t\treturn true;\r\n\t\t} else\r\n\t\t\treturn false;\r\n\t\t\r\n\t\t\r\n\t}",
"public boolean hasMsg() {\n return ((bitField0_ & 0x00000020) == 0x00000020);\n }",
"public boolean hasMsg() {\n return ((bitField0_ & 0x00000020) == 0x00000020);\n }",
"public boolean hasMessage() {\n return ((bitField0_ & 0x00000010) == 0x00000010);\n }",
"boolean hasRemsg();",
"public boolean hasMessage() {\n return ((bitField0_ & 0x00000010) == 0x00000010);\n }",
"boolean hasReceived();",
"boolean hasData()\n {\n logger.info(\"server: \" + server + \" addr: \" + addr + \"text:\" + text);\n return server != null && addr != null && text != null;\n }",
"public boolean hasMessage() {\n return ((bitField0_ & 0x00000002) == 0x00000002);\n }",
"public boolean hasMessage() {\n return ((bitField0_ & 0x00000002) == 0x00000002);\n }",
"public boolean hasMessage() {\n return ((bitField0_ & 0x00000002) == 0x00000002);\n }",
"public boolean hasMessage() {\n return ((bitField0_ & 0x00000002) == 0x00000002);\n }",
"public boolean hasMessage() {\n return ((bitField0_ & 0x00000002) == 0x00000002);\n }",
"public boolean hasMessage() {\n return ((bitField0_ & 0x00000002) == 0x00000002);\n }",
"public boolean hasMessage() {\n return ((bitField0_ & 0x00000002) == 0x00000002);\n }",
"public boolean hasMessage() {\n return ((bitField0_ & 0x00000002) == 0x00000002);\n }",
"public boolean hasMessage() {\n return ((bitField0_ & 0x00000002) == 0x00000002);\n }",
"public boolean hasMessage() {\n return ((bitField0_ & 0x00000002) == 0x00000002);\n }",
"public boolean hasMessage() {\n return ((bitField0_ & 0x00000002) == 0x00000002);\n }",
"public boolean hasMessage() {\n return ((bitField0_ & 0x00000002) == 0x00000002);\n }",
"public static boolean hasMessageData(Map<String, Object> data) {\r\n\t\treturn ( null != data.get(MESSAGE) );\r\n\t}",
"boolean isReceiving();",
"public synchronized boolean hasMessage() {\n\t while(_buffers.size() > 0) {\n ByteBuffer bytes = _buffers.remove(0);\n CharBuffer chars = CharBuffer.allocate(bytes.remaining());\n \t this._decoder.decode(bytes, chars, false); // false: more bytes may follow. Any unused bytes are kept in the decoder.\n \t chars.flip();\n \t this._stringBuf.append(chars);\n\t }\n\t return this._stringBuf.indexOf(this._messageSeparator) > -1;\n }",
"public boolean hasChatData() {\n return ((bitField0_ & 0x00000001) == 0x00000001);\n }",
"public boolean hasChatData() {\n return ((bitField0_ & 0x00000001) == 0x00000001);\n }",
"public boolean hasData() {\n return ((bitField0_ & 0x00000010) == 0x00000010);\n }",
"public boolean hasMsgType() {\n return ((bitField0_ & 0x00000001) == 0x00000001);\n }",
"public boolean hasData() {\n return ((bitField0_ & 0x00000008) == 0x00000008);\n }",
"private boolean isData() {\n return \"data\".equalsIgnoreCase(data.substring(tokenStart, tokenStart + 4));\n }",
"boolean hasUnReceived();",
"boolean isServerMessage();",
"public boolean isData();",
"protected final boolean anyMsg() {\n\t\tDoorPulseCriterion dpc = new DoorPulseCriterion(this.getPulse() - 1);\n\t\treturn this.existMessage(dpc);\n\t}",
"public boolean hasMsgType() {\n return ((bitField0_ & 0x00000001) == 0x00000001);\n }",
"boolean hasMessageInfoID();",
"public boolean hasContent() {\n return messageContent != null || messageContentBytes != null;\n }",
"public boolean hasData() {\n return ((bitField0_ & 0x00000002) == 0x00000002);\n }",
"public boolean hasData() {\n return ((bitField0_ & 0x00000002) == 0x00000002);\n }",
"boolean isSending();",
"boolean hasMsgid();",
"public boolean hasData() {\n return ((bitField0_ & 0x00000001) == 0x00000001);\n }",
"public boolean hasData() {\n return ((bitField0_ & 0x00000001) == 0x00000001);\n }",
"public boolean hasData() {\n return ((bitField0_ & 0x00000002) == 0x00000002);\n }",
"public boolean hasData() {\n return ((bitField0_ & 0x00000002) == 0x00000002);\n }",
"Boolean isMessageRead(String msgId);",
"boolean hasUserMessage();",
"boolean hasSendReading();",
"public boolean isData() {return true; }",
"public boolean is_set_msg() {\n return this.msg != null;\n }",
"boolean hasMessageID();",
"public boolean hasUserMessage() {\n return ((bitField0_ & 0x00000002) == 0x00000002);\n }",
"public boolean hasMessageInfoID() {\n return ((bitField0_ & 0x00000002) == 0x00000002);\n }",
"public boolean hasUserMessage() {\n return ((bitField0_ & 0x00000002) == 0x00000002);\n }",
"private boolean isBinaryMessage(Object anObject) {\n\t\tif(anObject.getClass() == this.getClass()) {\n\t\t\treturn true;\n\t\t}\n\t\telse {\n\t\t\treturn false;\n\t\t}\n\t}",
"public boolean hasMessageID() {\n return ((bitField0_ & 0x00000800) == 0x00000800);\n }",
"public boolean hasMessageInfoID() {\n return ((bitField0_ & 0x00000002) == 0x00000002);\n }",
"boolean hasData();",
"boolean hasData();",
"boolean hasData();",
"boolean hasData();",
"boolean hasData();",
"boolean hasData();",
"boolean hasData();",
"boolean hasMsgID();",
"boolean hasMsgID();",
"public boolean hasData2() {\n return ((bitField0_ & 0x00000004) == 0x00000004);\n }",
"public boolean hasData2() {\n return ((bitField0_ & 0x00000004) == 0x00000004);\n }",
"public boolean hasMessageID() {\n return ((bitField0_ & 0x00000800) == 0x00000800);\n }",
"public boolean hasData();",
"public boolean hasData2() {\n return ((bitField0_ & 0x00000004) == 0x00000004);\n }",
"public boolean hasData2() {\n return ((bitField0_ & 0x00000004) == 0x00000004);\n }",
"public boolean hasSendMessage() {\n return typeCase_ == 4;\n }",
"@Override\n\tpublic boolean isOwnMessage() {\n\t\ttry {\n\t\t\treturn (this.user.id == AccountManager.current_account.getUser().id);\n\t\t} catch (Exception e) {\n\t\t\treturn false;\n\t\t}\n\t}",
"public boolean hasRelatedIMEventMsg() {\n return fieldSetFlags()[8];\n }",
"public boolean hasSendMessage() {\n return typeCase_ == 4;\n }",
"public boolean getIsMessage()\n {\n return isMessage;\n }",
"public boolean hasHeartBeatMsg() {\n return msgCase_ == 3;\n }",
"boolean hasMessageAnnotation();",
"boolean hasPayload();",
"private boolean verifyMessagePresence(){\n boolean overallResult = true;\n \n for(int ii = 0; ii < 3; ii = ii +1){\n if(121 == getHidden(ii)){\n overallResult = true;\n }else{\n overallResult = false;\n }\n }\n \n return overallResult;\n }",
"public boolean hasHeartBeatMsg() {\n return msgCase_ == 3;\n }",
"public boolean hasMsgid() {\n return ((bitField0_ & 0x00000100) == 0x00000100);\n }",
"boolean hasSendMessage();",
"public boolean isSetMsg() {\n return this.msg != null;\n }",
"public boolean hasMsgID() {\n return ((bitField0_ & 0x00000001) == 0x00000001);\n }",
"public boolean hasMsgID() {\n return ((bitField0_ & 0x00000001) == 0x00000001);\n }",
"boolean hasJsonAckMsg();"
] |
[
"0.7509727",
"0.74615246",
"0.71258295",
"0.71258295",
"0.71258295",
"0.71258295",
"0.71258295",
"0.71258295",
"0.71258295",
"0.71258295",
"0.7035703",
"0.6961328",
"0.6889635",
"0.68617105",
"0.6853291",
"0.6814479",
"0.6801724",
"0.6785091",
"0.67805743",
"0.6756458",
"0.675583",
"0.671384",
"0.6675781",
"0.6675781",
"0.66755414",
"0.66755414",
"0.66755414",
"0.66755414",
"0.6653371",
"0.6653371",
"0.66518956",
"0.66518956",
"0.66518956",
"0.66518956",
"0.6641082",
"0.6620063",
"0.6602097",
"0.6592002",
"0.6573373",
"0.6567755",
"0.6545236",
"0.6544218",
"0.6534881",
"0.6530093",
"0.6526569",
"0.65109235",
"0.64965636",
"0.64944506",
"0.6490813",
"0.6484839",
"0.6479047",
"0.64776564",
"0.6474281",
"0.64742416",
"0.64721316",
"0.64717805",
"0.64708525",
"0.64704627",
"0.6466618",
"0.644732",
"0.64357203",
"0.6421778",
"0.6420295",
"0.64074993",
"0.6391273",
"0.63871294",
"0.63826215",
"0.637036",
"0.63674015",
"0.6365631",
"0.6365612",
"0.6365612",
"0.6365612",
"0.6365612",
"0.6365612",
"0.6365612",
"0.6365612",
"0.6364578",
"0.6364578",
"0.6346336",
"0.6346336",
"0.63354784",
"0.63323",
"0.6330455",
"0.6330455",
"0.62611765",
"0.625767",
"0.62424743",
"0.6239944",
"0.62132084",
"0.6204625",
"0.6197013",
"0.6186639",
"0.61842424",
"0.61839527",
"0.61784",
"0.6173615",
"0.6168289",
"0.6165019",
"0.6165019",
"0.61578774"
] |
0.0
|
-1
|
Is this an end of stream marker?
|
public boolean isEnd() {
return this == END_STREAM;
}
|
{
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
}
|
[
"public boolean endOfStream()\n {\n return false;\n }",
"@DISPID(1610940417) //= 0x60050001. The runtime will prefer the VTID if present\n @VTID(23)\n boolean atEndOfStream();",
"public boolean isEOF()\n\t{\n\t\tif (line == null || findTokenStart() == NOTOKENFOUND)\n\t\t{\n\t\t\ts.close();\n\t\t\tSystem.out.println(\"EOF\");\n\t\t\treturn true;\n\t\t}\n\t\treturn false;\n\t}",
"private boolean isAtEnd() {\n return peek().type == EOF;\n }",
"public boolean getMarker() {\n return (buffer.get(1) & 0xff & 0x80) == 0x80;\n }",
"public boolean atEOF()\r\n\t{\r\n\t\treturn (thisc == EOF);\r\n\t}",
"private final boolean isEnd()\n {\n if (m_bufferOffset_ >= 0) {\n if (m_bufferOffset_ != m_buffer_.length()) {\n return false;\n }\n else {\n // at end of buffer. check if fcd is at the end\n return m_FCDLimit_ == m_source_.getLength();\n }\n }\n return m_source_.getLength() == m_source_.getIndex();\n }",
"public boolean isEOF()\r\n {\r\n Pattern oldDelim = feed.delimiter();\r\n \r\n feed.useDelimiter( MATCH_ALL_DELIMITER );\r\n boolean moreInput = feed.hasNext();\r\n \r\n feed.useDelimiter( oldDelim );\r\n \r\n return !moreInput;\r\n }",
"public boolean isEOF() {\n return this.index >= this.input.length();\n }",
"boolean isEOF() \t\t\tthrows IOException;",
"public boolean hasEndPosition() {\n return ((bitField0_ & 0x00000010) != 0);\n }",
"public final boolean yyatEOF() {\n return zzAtEOF;\n }",
"public final boolean yyatEOF() {\n return zzAtEOF;\n }",
"public boolean eof() {\n\t\treturn eof;\n\t}",
"public boolean hasEndPosition() {\n return ((bitField0_ & 0x00000010) != 0);\n }",
"public boolean isAtEnd()\n\t{\n\t\treturn (lineNow >= lineTime);\n\t}",
"public final boolean atEndOfFile() {\n\t\treturn (m_flags & EndOfFile) != 0 ? true : false;\n\t}",
"private boolean checkNoDataAfterEnd(long pos) {\n if (!bytes.inside(pos, 4L))\n return true;\n if (pos <= bytes.writeLimit() - 4) {\n final int value = bytes.bytesStore().readVolatileInt(pos);\n if (value != 0) {\n String text;\n long pos0 = bytes.readPosition();\n try {\n bytes.readPosition(pos);\n text = bytes.toDebugString();\n } finally {\n bytes.readPosition(pos0);\n }\n throw new IllegalStateException(\"Data was written after the end of the message, zero out data before rewinding \" + text);\n }\n }\n return true;\n }",
"public boolean isEnd(T msg)\n\t{\n\t\treturn false;\n\t}",
"public boolean eof() {\n\treturn !(tokenizer.hasMoreElements());\n }",
"public boolean end() {\n\t\ttry {\n\t\t\tbyte[] buffer = \"END\".getBytes();\n\t\t\toos.writeObject(buffer);\n\t\t} catch (Exception e) {\n\t\t\te.printStackTrace();\n\t\t\treturn false;\n\t\t}\n\t\treturn true;\n\t}",
"boolean hasFinalData()\r\n/* 297: */ {\r\n/* 298:322 */ return this.tail.readIndex != this.tail.get();\r\n/* 299: */ }",
"public boolean hasEndLineNumber() {\n return ((bitField0_ & 0x00000040) != 0);\n }",
"public boolean hasEndLineNumber() {\n return ((bitField0_ & 0x00000040) != 0);\n }",
"public boolean isEndOfHeader() {\n \t\t\tint i = count;\n \t\t\treturn i > 4 && buf[i - 4] == '\\r' && buf[i - 3] == '\\n'\n \t\t\t\t\t&& buf[i - 2] == '\\r' && buf[i - 1] == '\\n';\n \t\t}",
"private boolean isEnd(String nextVal) throws java.io.IOException {\n\t\tif (Character.toString((char)PREPROCESSING).equals(nextVal)) {\n\t\t\tint pos = (int) reader.getFilePointer();\n\t\t\tthis.readUntilEndOfLine(nextVal.charAt(0));\n\t\t\tif (next.matches(\"^!end\"))\n\t\t\t\treturn true;\n\t\t\treader.seek(pos);\n\t\t}\n\t\treturn false;\n\n\t}",
"public boolean endOfInput() {\n \tif((tmpPosition<totalLength)&&(IsOk)){\n \t//\tSystem.out.println(\"Am returnat ok\");\n \t\treturn false;\n\t\t\t\n \t}\n\t\telse\n\t\t\treturn true;\n \t\n }",
"private boolean reachedEnd() {\n return current >= source.length();\n }",
"boolean isSetEnd();",
"public boolean getEnd() {\n return end_;\n }",
"public boolean endOfBlock () {\n if (index >= blockIn.length()) {\n blockEnded = true;\n }\n return blockEnded;\n }",
"boolean hasEndPosition();",
"boolean hasEndPosition();",
"public boolean getEnd(){\n\t\treturn this.isEnd;\n\t}",
"public boolean reachedEnd() {\n return reachedEnd;\n }",
"private boolean isEndOfFile(int val) {\n\t\treturn val == EOF;\n\t}",
"public boolean getEnd() {\n return end_;\n }",
"public boolean hasNextToken() {\r\n return this.stream.hasNext(); // based on the method hasNext() of the stream\r\n }",
"public boolean getHasNext() {\n\t\t\treturn !endsWithIgnoreCase(getCursor(), STARTEND);\n\t\t}",
"public synchronized boolean getEnd(){\n\treturn end;\n }",
"public boolean hasNext()\n {\n return ! eof;\n }",
"@Override\n\tpublic boolean tryAgainOnEOF()\n\t{\n\t\treturn false;\n\t}",
"boolean isLast() {\n return !hasNext();\n }",
"public boolean isEndOfChannel() {\n return endOfChannel;\n }",
"public boolean finOut() { return (flags & FIN_OUT) != 0; }",
"public boolean getStop() {\n\t\treturn end == 5;\n\t}",
"@Override\n public boolean isEnding() {\n return false;\n }",
"private boolean isEndOfCode() {\n return currentIndex >= codeLength;\n }",
"public boolean getEnd()\n\t{\n\t\treturn getBooleanIOValue(\"End\", true);\n\t}",
"public boolean end() {\n outputList.add(new ByteArrayInputStream(outputData));\n totBytes += outputData.length;\n return true;\n }",
"public boolean omitEnd() {\n return oEnd;\n }",
"private boolean alreadyStarted() {\n\t\treturn this.buffer.length() > 0;\n\t}",
"private boolean streamClosed() {\n boolean closed = false;\n if (nonNull(dataStream) && Objects.nonNull(streamLinkedOrConsumedField)) {\n try {\n closed = (boolean) streamLinkedOrConsumedField.get(dataStream);\n } catch (Exception e) {\n }\n }\n return closed;\n }",
"boolean hasOffset();",
"public static boolean isEOF(int c)\r\n\t{\r\n\t\treturn (c == EOF);\r\n\t}",
"boolean isShutdown(final int offset) {\n return flushOffset >= offset;\n }",
"public boolean eos()\n \t{\n \t\tMatcherContext ctx = (MatcherContext) getContext();\n \t\tif (ctx == null)\n \t\t{\n \t\t\treturn false;\n \t\t}\n \t\t// geting after potential spacing first\n \t\tOptionalMatcher opt=new OptionalMatcher(spacing());\n \t\topt.match(ctx);\n \n \t\t// First check if we just passed a '\\n' (in spacing)\n \t\t//System.out.println(\"EOS> checking afterNL\");\n \t\tif (isAfterNL())\n \t\t{\n \t\t\treturn true;\n \t\t}\n \t\t//System.out.println(\"EOS> checking '}'\");\n \t\t// '}' is eos too, but we should not consume it, so using a test\n \t\tSequenceMatcher seq = (SequenceMatcher) sequence(OPT_SP, test(eoi()));\n \t\tif (seq.match(ctx))\n \t\t{\n \t\t\treturn true;\n \t\t}\n \t\t// test foe end of input, that qualifies too\n \t\tseq = (SequenceMatcher) sequence(OPT_SP, test('}'));\n \t\tif (seq.match(ctx))\n \t\t{\n \t\t\treturn true;\n \t\t}\n \t\t// Otherwise look for upcoming statement ending chars: ';' or '}'\n \t\t//System.out.println(\"EOS> checking ';'\");\n \t\tseq = (SequenceMatcher) sequence(OPT_SP, ';');\n \t\tif (seq.match(ctx))\n \t\t{\n \t\t\treturn true;\n \t\t}\n \t\t//System.out.println(\"EOS> False\");\n \t\treturn false;\n \t}",
"boolean hasEndLineNumber();",
"boolean fileEnd();",
"public static boolean isEnd () {\n if (index >= inputCharArray.length) return true;\n else return false;\n }",
"private boolean isEndFound(String line) {\n\t\tif (end != null) {\n\t\t\tif (nothingAfterEnd) {\n\t\t\t\treturn line.endsWith(end);\n\t\t\t} else {\n\t\t\t\treturn line.contains(end);\n\t\t\t}\n\t\t} else {\n\t\t\treturn false;\n\t\t}\n\t}",
"boolean hasNext(){\n\t\treturn stream.hasNext();\n\t}",
"public boolean endOfText () {\n if (index >= blockIn.length()) {\n blockEnded = true;\n textEnded = true;\n }\n return textEnded;\n }",
"public boolean isEmpty( ){\r\n\t\treturn beginMarker.next==endMarker;\r\n\t}",
"public boolean hasEnded() {\n\t\treturn ended;\n\t}",
"public boolean hasMoreTokens(){\n return !ended;\n }",
"@DISPID(1610940416) //= 0x60050000. The runtime will prefer the VTID if present\n @VTID(22)\n boolean atEndOfLine();",
"public boolean hasNextEvent() throws IOException;",
"public boolean hasOffset() {\n return result.hasOffset();\n }",
"boolean hasNext() {\n return !next.isSentinel();\n }",
"public boolean hasNext() throws IOException{\n\t\t\t//if has processed all bytes read\n\t\t\tif (pos >= count){\n\t\t\t\tcount = in.read(buff);\n\t\t\t\tif (count <= 0) return false;\n\t\t\t\tpos = 0;\n\t\t\t}\n\t\t\t//assert pos < count\n\n\t\t\t//if the reader points to the start of the next sequence\n\t\t\tif (buff[pos] == 62){// 62 = '>'\n\t\t\t\treturn true;\n\t\t\t}\n\n\t\t\t//if not, looking for the next '>'\n\t\t\twhile (true){\n\t\t\t\tpos ++;\n\t\t\t\tif (pos >= count){\n\t\t\t\t\tcount = in.read(buff);\n\t\t\t\t\tif (count <= 0) return false;\n\t\t\t\t\tpos = 0;\n\t\t\t\t}\n\t\t\t\tif (buff[pos] == 62){// 62 = '>'\n\t\t\t\t\treturn true;\n\t\t\t\t}\t\t\t\t\n\t\t\t}\n\n\n\t\t}",
"public boolean isLastPosition() {\n return this.value == LAST_VALUE;\n }",
"public boolean isEmpty() { return curChunker() == null; }",
"public boolean isFull() {\n return (e+1)%buf.length == b;\n }",
"public void eof();",
"boolean getStream();",
"@java.lang.Override\n public boolean hasIsEndOfSentence() {\n return ((bitField0_ & 0x00000008) != 0);\n }",
"public boolean hasNext()\n/* */ {\n/* 73 */ return this.m_offset < this.m_limit;\n/* */ }",
"public boolean isEnded(){\n\t\treturn ended;\n\t}",
"int eof();",
"public boolean hasNext()\n/* */ {\n/* 82 */ return this.m_offset < this.m_array.length;\n/* */ }",
"public Boolean isEnd() {\n\t\t// keep running\n\t\tif (currentNo == -1) {\n\t\t\treturn false;\n\t\t}\n\t\t\n\t\t// car production for this production line is done\n\t\telse if (currentNo >= expectedNo) {\n//\t\t\tSystem.out.println(\"isEnd of car Production line is \");\n//\t\t\tSystem.out.print(currentNo >= expectedNo);\n\n\t\t\treturn true;\n\t\t} else {\n//\t\t\tSystem.out.println(\"isEnd of car Production line is \");\n//\t\t\tSystem.out.print(currentNo >= expectedNo);\n\t\t\treturn false;\n\t\t}\n\n\t}",
"@java.lang.Override\n public boolean hasIsEndOfSentence() {\n return ((bitField0_ & 0x00000008) != 0);\n }",
"public boolean hasNext() { return cursor != lastIndex; }",
"protected boolean isFinished() {\r\n if (lineHasBeenFound) {\r\n lineTrackTime = System.currentTimeMillis();\r\n }\r\n if(System.currentTimeMillis()-lineTrackTime > 4000){\r\n return true;\r\n }\r\n return false;\r\n }",
"default boolean visitEnd() {\n\t\treturn true;\n\t}",
"boolean isInBuffer()\n {\n return m_bufferOffset_ > 0;\n }",
"String getIfEnd();",
"public boolean isLast() {\n\t\treturn (next == null);\n\t}",
"public boolean isLastBatch() {\r\n\t\treturn (getTotalMatches() == getEndRange());\r\n\t}",
"public boolean isAlwaysDeadEnd() {\n return fuses.size() == 1;\n }",
"public boolean hasFinished() {\n return ((bitField0_ & 0x00000001) == 0x00000001);\n }",
"boolean isOffset();",
"boolean isOffset();",
"boolean hasMoreBytes();",
"private boolean endline() {\r\n return (CHAR('\\r') || true) && CHAR('\\n');\r\n }",
"public boolean hasStreamFailed() {\n return fieldSetFlags()[6];\n }",
"private boolean reachedEndOfReplay(String lastQuestionRefReplayed) {\n return lastQuestionRefReplayed.equals(formEntrySession.getStopRef());\n }",
"public void testIsAtEnd() {\n assertTrue(test1.isAtEnd());\n for (int i = 0; i < 10; i++) {\n test1.append(new Buffer(i, rec));\n }\n assertFalse(test1.isAtEnd());\n for (int i = 0; i < 10; i++) {\n test1.next();\n }\n assertTrue(test1.isAtEnd());\n }",
"public abstract boolean shouldEnd();"
] |
[
"0.757502",
"0.7493045",
"0.7317223",
"0.7250385",
"0.7061254",
"0.70575124",
"0.6895242",
"0.68652195",
"0.6864218",
"0.6823847",
"0.67462826",
"0.67439187",
"0.67439187",
"0.67195684",
"0.671939",
"0.6668485",
"0.6635361",
"0.6587633",
"0.6542946",
"0.6512303",
"0.65117437",
"0.650027",
"0.64232016",
"0.6420268",
"0.6391888",
"0.63377476",
"0.63366425",
"0.63345313",
"0.6331818",
"0.6304076",
"0.6294583",
"0.6280646",
"0.6280646",
"0.6254442",
"0.62435234",
"0.6228756",
"0.6227943",
"0.61803186",
"0.61783534",
"0.61704534",
"0.6158945",
"0.61452097",
"0.61245483",
"0.61131996",
"0.6113138",
"0.61128443",
"0.610557",
"0.608988",
"0.608911",
"0.6080553",
"0.60598516",
"0.6049779",
"0.604171",
"0.6005452",
"0.59764814",
"0.59697586",
"0.5947492",
"0.59277123",
"0.5921402",
"0.59189224",
"0.5917446",
"0.59063447",
"0.58917826",
"0.58833724",
"0.58653176",
"0.58594894",
"0.58554953",
"0.5848422",
"0.5839903",
"0.58308125",
"0.58187115",
"0.5791881",
"0.57760495",
"0.57734144",
"0.5770832",
"0.5770236",
"0.5758708",
"0.5746063",
"0.5740594",
"0.5739586",
"0.57390964",
"0.5735848",
"0.5725853",
"0.57205915",
"0.57156694",
"0.57146996",
"0.56928456",
"0.5681727",
"0.5681632",
"0.5678405",
"0.5673192",
"0.5672862",
"0.5660883",
"0.5660883",
"0.5660504",
"0.5651484",
"0.5650867",
"0.5650653",
"0.565009",
"0.5649411"
] |
0.74632317
|
2
|
Is this the beginning of a stream?
|
public boolean isHeader() {
return this == HEADER;
}
|
{
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
}
|
[
"private boolean alreadyStarted() {\n\t\treturn this.buffer.length() > 0;\n\t}",
"boolean getStream();",
"private boolean readingHasStarted()\n {\n return readingHasStarted;\n }",
"public boolean isFirstStart() {\n return !sp.contains(UUID_SP_KEY);\n }",
"public boolean endOfStream()\n {\n return false;\n }",
"public boolean hasFirstToken() {\n return ((bitField0_ & 0x00000008) != 0);\n }",
"public boolean hasFirstToken() {\n return ((bitField0_ & 0x00000002) != 0);\n }",
"boolean hasStarted() {\n return includedLength > 0;\n }",
"boolean next() throws IOException;",
"boolean hasFirstToken();",
"public boolean hasStartPosition() {\n return ((bitField0_ & 0x00000008) != 0);\n }",
"public boolean isFirstToConnect() throws IOException;",
"boolean isSetBegin();",
"public boolean hasStartPosition() {\n return ((bitField0_ & 0x00000008) != 0);\n }",
"public boolean isEmpty() { return curChunker() == null; }",
"public boolean isFirst() {\n return !hasPrevious();\n }",
"boolean hasStart();",
"boolean hasNext(){\n\t\treturn stream.hasNext();\n\t}",
"public boolean start() {\n return start(0);\n }",
"public boolean hasNextToken() {\r\n return this.stream.hasNext(); // based on the method hasNext() of the stream\r\n }",
"private boolean advanceToTag(final String tag) {\r\n\t\twhile (this.in.readToTag()) {\r\n\t\t\tfinal Type type = this.in.getTag().getType();\r\n\t\t\tif (type == Type.BEGIN) {\r\n\r\n\t\t\t\tif (this.in.getTag().getName().equals(tag)) {\r\n\t\t\t\t\treturn true;\r\n\t\t\t\t} else {\r\n\t\t\t\t\tskipObject();\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn false;\r\n\t}",
"boolean reachedBeginning(TopicPartition partition);",
"public boolean isEnd() {\n\t\t\treturn this == END_STREAM;\n\t\t}",
"protected boolean _isFirstTime() {\n return _firstTime;\n }",
"public boolean isChunked() {\n/* 101 */ return this.chunked;\n/* */ }",
"@DISPID(1610940417) //= 0x60050001. The runtime will prefer the VTID if present\n @VTID(23)\n boolean atEndOfStream();",
"public boolean hasStartLineNumber() {\n return ((bitField0_ & 0x00000020) != 0);\n }",
"public boolean hasStartLineNumber() {\n return ((bitField0_ & 0x00000020) != 0);\n }",
"public boolean getStream() {\n return stream_;\n }",
"public boolean first() {\n initialize();\n return next();\n }",
"public synchronized boolean next() throws IOException {\n\t\treturn next(true);\n\t}",
"public boolean next() throws IOException;",
"public boolean hasRequestStreaming()\n {\n return requestStreaming;\n }",
"@Override\n public void onReady() {\n assertTrue(stream.isReady());\n onReadyCalled = true;\n }",
"public boolean isFirst() {\n\t\treturn (prev == null);\n\t}",
"public int isStartOfFrame(IDdfDataFrame frameSoFar)\n {\n\t if ( frameSoFar.getFrameBytes()[0] == IPacket.SOH ) {\n\t\t return BDdfReceiver.YES;\n\t }\n\t \n\t return BDdfReceiver.NO;\n }",
"@SuppressWarnings(\"unused\")\n public boolean isFirstTime() {\n return firstTime;\n }",
"String getIfBegin();",
"public boolean hasFirstFrame() {\n return firstFrame_ != null;\n }",
"boolean hasRead();",
"public boolean isFirst() {\n\t\treturn first;\n\t}",
"public boolean getStream() {\n return stream_;\n }",
"public boolean isStartState() {\r\n\t\treturn flow.getStartState() == this;\r\n\t}",
"public abstract boolean isFirstLineHeader();",
"public boolean isFileStartHit() {\n return pageRequest.getStart() == 0;\n }",
"public boolean hasNext() throws IOException{\n\t\t\t//if has processed all bytes read\n\t\t\tif (pos >= count){\n\t\t\t\tcount = in.read(buff);\n\t\t\t\tif (count <= 0) return false;\n\t\t\t\tpos = 0;\n\t\t\t}\n\t\t\t//assert pos < count\n\n\t\t\t//if the reader points to the start of the next sequence\n\t\t\tif (buff[pos] == 62){// 62 = '>'\n\t\t\t\treturn true;\n\t\t\t}\n\n\t\t\t//if not, looking for the next '>'\n\t\t\twhile (true){\n\t\t\t\tpos ++;\n\t\t\t\tif (pos >= count){\n\t\t\t\t\tcount = in.read(buff);\n\t\t\t\t\tif (count <= 0) return false;\n\t\t\t\t\tpos = 0;\n\t\t\t\t}\n\t\t\t\tif (buff[pos] == 62){// 62 = '>'\n\t\t\t\t\treturn true;\n\t\t\t\t}\t\t\t\t\n\t\t\t}\n\n\n\t\t}",
"public boolean isStart() {\n\t\treturn start;\n\t}",
"boolean hasSendReading();",
"boolean isBeginInclusive();",
"private boolean pushedStream(int i) {\n if (this.protocol == Protocol.HTTP_2 && i != 0 && (i & 1) == 0) {\n return true;\n }\n return false;\n }",
"private final boolean hasBufferedInputBytes() {\n return reading && (buffer.hasRemaining() || ungotc != -1);\n }",
"public boolean isStarted(){\n \treturn started;\n }",
"@Override\n public final boolean isStreaming() {\n return false;\n }",
"public interface Stream {\n\tpublic char getNext();\t\n\tpublic boolean hasNext();\n}",
"public boolean isFirstCycle() {\n return cycle == 0;\n }",
"public synchronized boolean isStarted() {\n\t\treturn State.STARTED.equals(state);\n\t}",
"public boolean isStreamForThisThread() {\n return contexts.get(0)\n .equals(TransactionalContext.getRootContext());\n }",
"boolean isEntriesFirst();",
"boolean hasFirstFrame();",
"boolean hasChunkRequest();",
"@Override\n\tpublic boolean isEventStarted() {\n\t\treturn status>=EventStarted;\n\t}",
"boolean isInBuffer()\n {\n return m_bufferOffset_ > 0;\n }",
"protected boolean isConsumingInput() {\r\n return true;\r\n }",
"public boolean getMarker() {\n return (buffer.get(1) & 0xff & 0x80) == 0x80;\n }",
"public boolean isStarted() {\n \t\treturn isStarted;\n \t}",
"public boolean hasInitialResponse() {\n return ((bitField0_ & 0x00000001) == 0x00000001);\n }",
"public boolean isStarted() {\n\t\treturn started.get();\n\t}",
"boolean isSeekable();",
"public boolean isStreamingContent() {\n return File.class.equals(this.type) || XmlPullParser.class.equals(this.type) || InputStream.class.equals(this.type) || XmlDom.class.equals(this.type);\n }",
"public boolean hasStarted() {\n return mStarted;\n }",
"public boolean getStart(){\n\t\treturn this.isStart;\n\t}",
"public void streamRecordStart(IBroadcastStream stream);",
"private boolean setNext() throws IOException {\n final String line = mIn.readLine();\n if (line == null) {\n mCurrent = null;\n return false;\n }\n try {\n mCurrent = mParser.parseLine(line);\n if (mCurrent.getNumberOfSamples() != mNumSamples) {\n throw new VcfFormatException(\"Expected \" + mNumSamples + \" samples, but there were \" + mCurrent.getNumberOfSamples());\n }\n } catch (final VcfFormatException e) {\n throw new VcfFormatException(\"Invalid VCF record. \" + e.getMessage() + \" on line:\" + line); // Add context information\n }\n return true;\n }",
"public boolean isEmpty(){ return Objects.isNull(this.begin ); }",
"public boolean hasBeginDate() {\n return ((bitField0_ & 0x00000040) == 0x00000040);\n }",
"private boolean peek(TokenType expectedType) {\n return peek(0, expectedType);\n }",
"public boolean isStart () {\n if (this.equals(SquareType.START))\n return true;\n else\n return false;\n }",
"boolean isEOF() \t\t\tthrows IOException;",
"public boolean hasBeginDate() {\n return ((bitField0_ & 0x00000040) == 0x00000040);\n }",
"protected void checkForFirstRequest() throws IOException {\n if(firstRequest) {\n while (!connected || (serveResponse = in.readLine()).isEmpty());\n firstRequest = false;\n }\n }",
"boolean isStarted();",
"boolean isStarted();",
"public boolean isBeforeFirst() throws SQLException {\n/* 151 */ return (this.currentPositionInEntireResult < 0);\n/* */ }",
"public boolean readNextTag(final String name) {\r\n\r\n\t\twhile (this.in.readToTag()) {\r\n\t\t\tfinal Type type = this.in.getTag().getType();\r\n\t\t\tif (type == Type.BEGIN) {\r\n\t\t\t\tif (this.in.getTag().getName().equals(name)) {\r\n\t\t\t\t\treturn true;\r\n\t\t\t\t} else {\r\n\t\t\t\t\tskipObject();\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn false;\r\n\t}",
"public boolean isBeforeFirst() throws SQLException {\n\n try {\n debugCodeCall(\"isBeforeFirst\");\n checkClosed();\n return result.getRowId() < 0;\n }\n catch (Exception e) {\n throw logAndConvert(e);\n }\n }",
"@Override\r\n\tpublic boolean canSeekForward() {\n\t\treturn true;\r\n\t}",
"private boolean skipToNext() throws IOException {\r\n short p = 0;\r\n\r\n while (p < RIFF_PATTERN.length) {\r\n int bRaw = source.read();\r\n byte b = (byte) bRaw;\r\n\r\n if (bRaw == EOF) return false;\r\n\r\n if (b == RIFF_PATTERN[p]) {\r\n p++;\r\n } else {\r\n p = 0;\r\n if (b == RIFF_PATTERN[0]) p++;\r\n }\r\n }\r\n\r\n return true;\r\n }",
"public boolean isLookahead() {\n\n return this.isLookahead;\n }",
"public boolean isStarted()\n\t{\n\t\treturn isStarted;\n\t}",
"boolean hasStarted() {\n return hasStarted;\n }",
"@Override\n\tpublic boolean getStart() {\n\t\treturn true;\n\t}",
"public boolean wasRead(){\n return isRead==null || isRead;\n }",
"public String getNextStreamPosition() {\n return nextStreamPosition;\n }",
"boolean isCalledNext();",
"public boolean next() {\n\t\twhile (true)\n\t\t{\n\t\t\tif (cp.next()) {\n\t\t\t\treturn true;\n\t\t\t}\n\t\t\t\n\t\t\tif (atLaskChunk())\n\t\t\t{\n//\t\t\t\tSystem.out.println(\"AtLastChunk\");\n\t\t\t\treturn false;\n\t\t\t}\n\t\t\t\n\t\t\tmoveTo(currentChunkNum + 1);\n\t\t}\n\t}",
"public final boolean isStarted() {\n return started;\n }",
"public boolean isStarted() {\n return started;\n }",
"public boolean isFirstPlayer()\r\n\t{\r\n\t\tgetStartGameDataFromServer();\r\n\t\treturn isFirstPlayer;\r\n\t}",
"public abstract boolean isConsumed();",
"public boolean isFirst() throws SQLException {\n\n try {\n debugCodeCall(\"isFirst\");\n checkClosed();\n int row = result.getRowId();\n return row == 0 && row < result.getRowCount();\n }\n catch (Exception e) {\n throw logAndConvert(e);\n }\n }",
"synchronized boolean start() {\n\t\tif (DEBUG) Log.v(TAG, \"start:\");\n\t\tmStatredCount++;\n\t\tif ((mEncoderCount > 0) && (mStatredCount == mEncoderCount)) {\n\t\t\tmMediaMuxer.start();\n\t\t\tmIsStarted = true;\n\t\t\tnotifyAll();\n\t\t\tif (DEBUG) Log.v(TAG, \"MediaMuxer started:\");\n\t\t}\n\t\treturn mIsStarted;\n\t}"
] |
[
"0.70805764",
"0.64329714",
"0.6355792",
"0.63300395",
"0.6243182",
"0.6228139",
"0.61371607",
"0.60777056",
"0.6075529",
"0.603668",
"0.6034223",
"0.60248137",
"0.6018535",
"0.60177237",
"0.60110176",
"0.6004547",
"0.60041463",
"0.5977275",
"0.59562993",
"0.59552395",
"0.5952078",
"0.59374356",
"0.59346247",
"0.5926225",
"0.5916156",
"0.5913605",
"0.59134513",
"0.59023213",
"0.58963966",
"0.58616304",
"0.58496094",
"0.5846284",
"0.5844232",
"0.5837395",
"0.5832492",
"0.58272386",
"0.58197314",
"0.5814007",
"0.58136976",
"0.58110267",
"0.5799182",
"0.579681",
"0.5791601",
"0.57866234",
"0.578545",
"0.5784154",
"0.5765976",
"0.5756441",
"0.57457656",
"0.57250077",
"0.5707717",
"0.5685983",
"0.5676012",
"0.5673197",
"0.56588095",
"0.5657546",
"0.5648627",
"0.56386316",
"0.56375027",
"0.5634488",
"0.56311285",
"0.56169194",
"0.5612056",
"0.5609395",
"0.560383",
"0.5594567",
"0.55808765",
"0.55761135",
"0.5568065",
"0.55668235",
"0.55651146",
"0.55554473",
"0.555162",
"0.5545629",
"0.5539746",
"0.5533163",
"0.5528974",
"0.55223304",
"0.55207664",
"0.55153847",
"0.5512837",
"0.5512837",
"0.5509726",
"0.55016845",
"0.549999",
"0.54929495",
"0.54926264",
"0.5491325",
"0.5484878",
"0.5479237",
"0.54732853",
"0.54725057",
"0.54646444",
"0.5460712",
"0.5459918",
"0.545881",
"0.5444013",
"0.54438895",
"0.5442902",
"0.5439344",
"0.5436035"
] |
0.0
|
-1
|
Returns back a numeric id for this codec, that happens to correspond to the numeric identifier that FLV will use for this codec.
|
public int getId() {
return mId;
}
|
{
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
}
|
[
"String getIdNumber();",
"public int getId() {\n//\t\tif (!this.isCard())\n//\t\t\treturn 0;\n\t\treturn id;\n\t}",
"public int getID() {\n\t\tif (tone.getNoteID() < 0) {\n\t\t\treturn -1;\n\t\t}\n\n\t\treturn (tone.getNoteID() + shift.getShiftID()) + (12 * octave) + 12;\n\t}",
"@DISPID(38)\r\n\t// = 0x26. The runtime will prefer the VTID if present\r\n\t@VTID(43)\r\n\tint id();",
"@Override\r\n\tpublic int getID() {\n\t\treturn jID()*100+ID();\r\n\t}",
"public static int getFileID() {\n\t\treturn StringArray.fileID;\n\t}",
"public int getId() {\n // some code goes here\n \treturn m_f.getAbsoluteFile().hashCode();\n }",
"public int getId() {\n // some code goes here\n int id = f.getAbsoluteFile().hashCode();\n //System.out.println(id);\n return id;\n }",
"public int id() {\n return _num;\n }",
"@ZenCodeType.Method\n default byte getId() {\n \n return getInternal().getId();\n }",
"long getCaptureFestivalId();",
"public static int getIdentifier(){\n\t\tif(index > ids.size() - 1){\n\t\t\tindex = 0;\n\t\t}\n\t\t// Post increment is used here, returns index then increments index\n\t\treturn ids.get(index++);\n\t}",
"public byte getId() {\r\n\t\treturn id;\r\n\t}",
"public int genID() {\n int uid = this.hashCode();\n if (uid < 0) {\n uid = Math.abs(uid);\n uid = uid * 15551;\n }\n return uid;\n }",
"public String code() {\n\t\treturn (\"ID\"+this.hashCode()).replace(\"-\", \"M\");\n\t}",
"@NonNull\n public String getIdentifier() {\n return mProto.id;\n }",
"public byte getId() {\n return 2;\n }",
"String mo10312id();",
"@Generated\n @Selector(\"trackID\")\n public native int trackID();",
"public String getId()\r\n\t{\n\t\treturn id.substring(2, 5);\r\n\t}",
"public byte getId() {\r\n return id;\r\n }",
"@DISPID(80)\r\n\t// = 0x50. The runtime will prefer the VTID if present\r\n\t@VTID(78)\r\n\tint id();",
"@Override\n public ID getID() {\n // If it is incomplete, there's no meaningful ID that we can return.\n if (gid == null || pid == null) {\n return null;\n }\n\n try {\n String hashValue = getAdvertisementType() + gid.getUniqueValue().toString() + pid.getUniqueValue().toString();\n byte[] seed = hashValue.getBytes(\"UTF-8\");\n\n return IDFactory.newContentID(gid, seed, new ByteArrayInputStream(seed));\n } catch (Exception failed) {\n return null;\n }\n }",
"long getCodeId();",
"long getCodeId();",
"long getCodeId();",
"public int getId() {\n\t\treturn this.ordinal();\n\t}",
"@Override\r\n public final Integer getIdentifier() {\r\n return getIdent();\r\n }",
"int getPacketId();",
"Short getId();",
"public String getId() {\n\t\treturn Integer.toString(this.hashCode());\n\t}",
"public int getIdentifier();",
"@DISPID(6)\n\t// = 0x6. The runtime will prefer the VTID if present\n\t@VTID(13)\n\tint id();",
"public String getId()\n\t\t{\n\t\t\treturn mediaElement.getAttribute(ID_ATTR_NAME);\n\t\t}",
"public int getId() {\n\t\treturn config >> 8;\n\t}",
"byte[] getId();",
"public int getId(){\n if (ID != null) {\n int i = Integer.parseInt(ID);\n return i;\n }\n return 0;\n }",
"public int charNum() {\n return myId.charNum();\n }",
"public byte getId() {\n return 8;\n }",
"public int getId() {\n if (!this.registered)\n return -1;\n return id;\n }",
"public Integer getViewID()\n {\n String x = center.east() + \"_\" + center.north() + \"_\" + scale + \"_\" +\n getWidth() + \"_\" + getHeight();\n java.util.zip.CRC32 id = new java.util.zip.CRC32();\n id.update(x.getBytes());\n return new Long(id.getValue()).intValue();\n }",
"public int numericName()\n {\n return Factory.getID(this);\n }",
"java.lang.String getID();",
"public int getID() {\n\t\treturn this.data.hashCode();\n\t}",
"public int getId() {\n // some code goes here\n return f.getAbsoluteFile().hashCode();\n //throw new UnsupportedOperationException(\"implement this\");\n }",
"public long getId() {\n\t\treturn graphicFrame.getNvGraphicFramePr().getCNvPr().getId();\n\t}",
"Integer getID();",
"Integer getID();",
"@Override\r\n\tpublic String getPID() {\n\t\treturn \"NYXQYZ\"+getID();\r\n\t}",
"public int identifier();",
"java.lang.String getLegacyId();",
"public int getID() {\r\n // Bouml preserved body begin 00040D02\r\n\t System.out.println(ID);\r\n\t return ID;\r\n // Bouml preserved body end 00040D02\r\n }",
"public java.lang.String getIdentifier() {\n java.lang.Object ref = identifier_;\n if (!(ref instanceof java.lang.String)) {\n java.lang.String s = ((com.google.protobuf.ByteString) ref)\n .toStringUtf8();\n identifier_ = s;\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }",
"public byte getID()\r\n\t {\r\n\t return id;\r\n\t }",
"int getIdNum();",
"public java.lang.String getIdentifier() {\n java.lang.Object ref = identifier_;\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 identifier_ = s;\n }\n return s;\n }\n }",
"com.google.protobuf.ByteString getIdBytes();",
"com.google.protobuf.ByteString getIdBytes();",
"com.google.protobuf.ByteString getIdBytes();",
"com.google.protobuf.ByteString getIdBytes();",
"com.google.protobuf.ByteString\n\t\t\tgetIdBytes();",
"@Override\n\tpublic long getId() {\n\t\treturn _phieugiahan.getId();\n\t}",
"public int getID() {\n this.use();\n\n return ID;\n }",
"public java.lang.Integer getId () {\n\t\treturn _id;\n\t}",
"public static int getIdNumber() {\n return idNumber;\n }",
"public java.lang.String getId() {\n\t\t\t\t\tjava.lang.Object ref = id_;\n\t\t\t\t\tif (!(ref instanceof java.lang.String)) {\n\t\t\t\t\t\tcom.google.protobuf.ByteString bs =\n\t\t\t\t\t\t\t\t(com.google.protobuf.ByteString) ref;\n\t\t\t\t\t\tjava.lang.String s = bs.toStringUtf8();\n\t\t\t\t\t\tid_ = s;\n\t\t\t\t\t\treturn s;\n\t\t\t\t\t} else {\n\t\t\t\t\t\treturn (java.lang.String) ref;\n\t\t\t\t\t}\n\t\t\t\t}",
"int getIdentifier();",
"public static String id()\n {\n return _id;\n }",
"public synchronized short getID () {\n return this.id;\n }",
"@Override\n public String getNewId()throws DVDLibraryPersistenceException{\n \n int intId = 0;\n for (String key : dvds.keySet()){\n if (Integer.valueOf(key) > intId){\n intId = Integer.valueOf(key);\n }\n }\n return String.valueOf(intId + 1);\n }",
"public short getId() {\n return id;\n }",
"private static String GetNewID() {\n DBConnect db = new DBConnect(); // Create a database connection\n String id = db.SqlSelectSingle(\"SELECT vendor_id FROM vendor ORDER BY vendor_id DESC LIMIT 1\"); // First try to get the top ID.\n if (id.equals(\"\")) // This is incase there are no registered vendors in the software\n id = \"001\";\n else\n id = String.format(\"%03d\", Integer.parseInt(id) + 1); // This will increment the top ID by one then format it to have three digits \n db.Dispose(); // This will close our database connection for us\n return id;\n }",
"public int getIdentifier()\n {\n return identifier;\n }",
"public java.lang.String getId() {\n\t\t\t\tjava.lang.Object ref = id_;\n\t\t\t\tif (ref instanceof java.lang.String) {\n\t\t\t\t\treturn (java.lang.String) ref;\n\t\t\t\t} else {\n\t\t\t\t\tcom.google.protobuf.ByteString bs =\n\t\t\t\t\t\t\t(com.google.protobuf.ByteString) ref;\n\t\t\t\t\tjava.lang.String s = bs.toStringUtf8();\n\t\t\t\t\tid_ = s;\n\t\t\t\t\treturn s;\n\t\t\t\t}\n\t\t\t}",
"java.lang.String getRecognitionId();",
"public Number getID();",
"@java.lang.Override\n public java.lang.String getId() {\n java.lang.Object ref = id_;\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 id_ = s;\n return s;\n }\n }",
"@java.lang.Override\n public java.lang.String getId() {\n java.lang.Object ref = id_;\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 id_ = s;\n return s;\n }\n }",
"@java.lang.Override\n public java.lang.String getId() {\n java.lang.Object ref = id_;\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 id_ = s;\n return s;\n }\n }",
"@java.lang.Override\n public java.lang.String getId() {\n java.lang.Object ref = id_;\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 id_ = s;\n return s;\n }\n }",
"public java.lang.String getId() {\n java.lang.Object ref = id_;\n if (!(ref instanceof java.lang.String)) {\n java.lang.String s = ((com.google.protobuf.ByteString) ref)\n .toStringUtf8();\n id_ = s;\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }",
"public int getID() {\r\n\t\treturn idNumber;\r\n\t}",
"public java.lang.String getId() {\n java.lang.Object ref = id_;\n if (!(ref instanceof java.lang.String)) {\n java.lang.String s = ((com.google.protobuf.ByteString) ref)\n .toStringUtf8();\n id_ = s;\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }",
"public java.lang.String getId() {\n java.lang.Object ref = id_;\n if (!(ref instanceof java.lang.String)) {\n java.lang.String s = ((com.google.protobuf.ByteString) ref)\n .toStringUtf8();\n id_ = s;\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }",
"public final int getFileId() {\n\t\treturn m_FID;\n\t}",
"public short getId() {\n return this.id;\n }",
"public abstract long id();",
"com.google.protobuf.ByteString\n getRecognitionIdBytes();",
"public int getNumID() {\n return numID;\n }",
"@java.lang.Override\n public java.lang.String getId() {\n java.lang.Object ref = id_;\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 id_ = s;\n return s;\n }\n }",
"@java.lang.Override\n public java.lang.String getId() {\n java.lang.Object ref = id_;\n if (ref instanceof java.lang.String) {\n return (java.lang.String) ref;\n } else {\n com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;\n java.lang.String s = bs.toStringUtf8();\n id_ = s;\n return s;\n }\n }",
"@java.lang.Override\n public java.lang.String getId() {\n java.lang.Object ref = id_;\n if (ref instanceof java.lang.String) {\n return (java.lang.String) ref;\n } else {\n com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;\n java.lang.String s = bs.toStringUtf8();\n id_ = s;\n return s;\n }\n }",
"public java.lang.Integer getMetaId();",
"public String getIdNumber() {\n return idNumber;\n }",
"public long id() {\n\t\treturn message.getBaseMarketId();\n\t}",
"public byte getId(){\n return id;\n }",
"private int getMovieId() {\n\t\treturn 0;\n\t}",
"public String getNextIdentifier() {\r\n if (!vocabularyFolder.isNumericConceptIdentifiers()) {\r\n return \"\";\r\n } else {\r\n try {\r\n int identifier = vocabularyService.getNextIdentifierValue(vocabularyFolder.getId());\r\n return Integer.toString(identifier);\r\n } catch (ServiceException e) {\r\n LOGGER.error(e);\r\n return \"\";\r\n }\r\n }\r\n }",
"public String getId()\n\t{\n\t\treturn m_sID;\t\n\t}",
"public static IDataPacketID GetID() {\r\n\t\treturn DataPacketIDFactory.Singleton.makeID(ITextData.class); // DataPacketIDFactory.Singleton is an instance of an IDataPacketIDFactory\r\n\t}",
"public long getId() {\n\t\treturn Long.parseLong(_id);\n\t}"
] |
[
"0.68448657",
"0.6641798",
"0.66157264",
"0.65803146",
"0.6577481",
"0.6569427",
"0.6553163",
"0.6543619",
"0.652456",
"0.6503201",
"0.6487808",
"0.64567614",
"0.64501053",
"0.64482224",
"0.644673",
"0.6441408",
"0.6429061",
"0.6407404",
"0.640317",
"0.640161",
"0.63782907",
"0.63767135",
"0.6365408",
"0.6334178",
"0.6334178",
"0.6334178",
"0.6332314",
"0.6328808",
"0.63229",
"0.63204426",
"0.6307842",
"0.63073236",
"0.63056886",
"0.6295281",
"0.62952393",
"0.62915134",
"0.6290523",
"0.6275481",
"0.62579066",
"0.6257204",
"0.6255234",
"0.62541795",
"0.6250364",
"0.62493306",
"0.62430805",
"0.6241201",
"0.6223271",
"0.6223271",
"0.6222458",
"0.6221353",
"0.6217795",
"0.6214517",
"0.621114",
"0.6207137",
"0.62053657",
"0.61726665",
"0.6164839",
"0.6164839",
"0.6164839",
"0.6164839",
"0.6153118",
"0.61527884",
"0.6150313",
"0.61433005",
"0.6136202",
"0.612372",
"0.61177635",
"0.6103937",
"0.61032724",
"0.6094899",
"0.6091944",
"0.60854423",
"0.60798305",
"0.60728145",
"0.6064589",
"0.6060283",
"0.6058121",
"0.6058121",
"0.6058121",
"0.6058121",
"0.6058116",
"0.605522",
"0.60535705",
"0.60535705",
"0.60531074",
"0.6050513",
"0.605032",
"0.6049064",
"0.6046957",
"0.60463727",
"0.60419095",
"0.60419095",
"0.60388726",
"0.60383284",
"0.6037838",
"0.60370994",
"0.6035384",
"0.60278034",
"0.6024007",
"0.6022566",
"0.6018511"
] |
0.0
|
-1
|
Returns back a numeric id for this codec, that happens to correspond to the numeric identifier that FLV will use for this codec.
|
public int getId() {
return mId;
}
|
{
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
}
|
[
"String getIdNumber();",
"public int getId() {\n//\t\tif (!this.isCard())\n//\t\t\treturn 0;\n\t\treturn id;\n\t}",
"public int getID() {\n\t\tif (tone.getNoteID() < 0) {\n\t\t\treturn -1;\n\t\t}\n\n\t\treturn (tone.getNoteID() + shift.getShiftID()) + (12 * octave) + 12;\n\t}",
"@DISPID(38)\r\n\t// = 0x26. The runtime will prefer the VTID if present\r\n\t@VTID(43)\r\n\tint id();",
"@Override\r\n\tpublic int getID() {\n\t\treturn jID()*100+ID();\r\n\t}",
"public static int getFileID() {\n\t\treturn StringArray.fileID;\n\t}",
"public int getId() {\n // some code goes here\n \treturn m_f.getAbsoluteFile().hashCode();\n }",
"public int getId() {\n // some code goes here\n int id = f.getAbsoluteFile().hashCode();\n //System.out.println(id);\n return id;\n }",
"public int id() {\n return _num;\n }",
"@ZenCodeType.Method\n default byte getId() {\n \n return getInternal().getId();\n }",
"long getCaptureFestivalId();",
"public static int getIdentifier(){\n\t\tif(index > ids.size() - 1){\n\t\t\tindex = 0;\n\t\t}\n\t\t// Post increment is used here, returns index then increments index\n\t\treturn ids.get(index++);\n\t}",
"public byte getId() {\r\n\t\treturn id;\r\n\t}",
"public int genID() {\n int uid = this.hashCode();\n if (uid < 0) {\n uid = Math.abs(uid);\n uid = uid * 15551;\n }\n return uid;\n }",
"public String code() {\n\t\treturn (\"ID\"+this.hashCode()).replace(\"-\", \"M\");\n\t}",
"@NonNull\n public String getIdentifier() {\n return mProto.id;\n }",
"public byte getId() {\n return 2;\n }",
"String mo10312id();",
"@Generated\n @Selector(\"trackID\")\n public native int trackID();",
"public String getId()\r\n\t{\n\t\treturn id.substring(2, 5);\r\n\t}",
"public byte getId() {\r\n return id;\r\n }",
"@DISPID(80)\r\n\t// = 0x50. The runtime will prefer the VTID if present\r\n\t@VTID(78)\r\n\tint id();",
"@Override\n public ID getID() {\n // If it is incomplete, there's no meaningful ID that we can return.\n if (gid == null || pid == null) {\n return null;\n }\n\n try {\n String hashValue = getAdvertisementType() + gid.getUniqueValue().toString() + pid.getUniqueValue().toString();\n byte[] seed = hashValue.getBytes(\"UTF-8\");\n\n return IDFactory.newContentID(gid, seed, new ByteArrayInputStream(seed));\n } catch (Exception failed) {\n return null;\n }\n }",
"long getCodeId();",
"long getCodeId();",
"long getCodeId();",
"public int getId() {\n\t\treturn this.ordinal();\n\t}",
"@Override\r\n public final Integer getIdentifier() {\r\n return getIdent();\r\n }",
"int getPacketId();",
"Short getId();",
"public String getId() {\n\t\treturn Integer.toString(this.hashCode());\n\t}",
"public int getIdentifier();",
"@DISPID(6)\n\t// = 0x6. The runtime will prefer the VTID if present\n\t@VTID(13)\n\tint id();",
"public int getId() {\n\t\treturn config >> 8;\n\t}",
"public String getId()\n\t\t{\n\t\t\treturn mediaElement.getAttribute(ID_ATTR_NAME);\n\t\t}",
"byte[] getId();",
"public int getId(){\n if (ID != null) {\n int i = Integer.parseInt(ID);\n return i;\n }\n return 0;\n }",
"public int charNum() {\n return myId.charNum();\n }",
"public byte getId() {\n return 8;\n }",
"public int getId() {\n if (!this.registered)\n return -1;\n return id;\n }",
"public Integer getViewID()\n {\n String x = center.east() + \"_\" + center.north() + \"_\" + scale + \"_\" +\n getWidth() + \"_\" + getHeight();\n java.util.zip.CRC32 id = new java.util.zip.CRC32();\n id.update(x.getBytes());\n return new Long(id.getValue()).intValue();\n }",
"public int numericName()\n {\n return Factory.getID(this);\n }",
"public int getID() {\n\t\treturn this.data.hashCode();\n\t}",
"java.lang.String getID();",
"public int getId() {\n // some code goes here\n return f.getAbsoluteFile().hashCode();\n //throw new UnsupportedOperationException(\"implement this\");\n }",
"public long getId() {\n\t\treturn graphicFrame.getNvGraphicFramePr().getCNvPr().getId();\n\t}",
"Integer getID();",
"Integer getID();",
"@Override\r\n\tpublic String getPID() {\n\t\treturn \"NYXQYZ\"+getID();\r\n\t}",
"public int identifier();",
"java.lang.String getLegacyId();",
"public int getID() {\r\n // Bouml preserved body begin 00040D02\r\n\t System.out.println(ID);\r\n\t return ID;\r\n // Bouml preserved body end 00040D02\r\n }",
"public java.lang.String getIdentifier() {\n java.lang.Object ref = identifier_;\n if (!(ref instanceof java.lang.String)) {\n java.lang.String s = ((com.google.protobuf.ByteString) ref)\n .toStringUtf8();\n identifier_ = s;\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }",
"public byte getID()\r\n\t {\r\n\t return id;\r\n\t }",
"int getIdNum();",
"public java.lang.String getIdentifier() {\n java.lang.Object ref = identifier_;\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 identifier_ = s;\n }\n return s;\n }\n }",
"com.google.protobuf.ByteString getIdBytes();",
"com.google.protobuf.ByteString getIdBytes();",
"com.google.protobuf.ByteString getIdBytes();",
"com.google.protobuf.ByteString getIdBytes();",
"com.google.protobuf.ByteString\n\t\t\tgetIdBytes();",
"@Override\n\tpublic long getId() {\n\t\treturn _phieugiahan.getId();\n\t}",
"public int getID() {\n this.use();\n\n return ID;\n }",
"public java.lang.Integer getId () {\n\t\treturn _id;\n\t}",
"public static int getIdNumber() {\n return idNumber;\n }",
"public java.lang.String getId() {\n\t\t\t\t\tjava.lang.Object ref = id_;\n\t\t\t\t\tif (!(ref instanceof java.lang.String)) {\n\t\t\t\t\t\tcom.google.protobuf.ByteString bs =\n\t\t\t\t\t\t\t\t(com.google.protobuf.ByteString) ref;\n\t\t\t\t\t\tjava.lang.String s = bs.toStringUtf8();\n\t\t\t\t\t\tid_ = s;\n\t\t\t\t\t\treturn s;\n\t\t\t\t\t} else {\n\t\t\t\t\t\treturn (java.lang.String) ref;\n\t\t\t\t\t}\n\t\t\t\t}",
"int getIdentifier();",
"public synchronized short getID () {\n return this.id;\n }",
"public static String id()\n {\n return _id;\n }",
"@Override\n public String getNewId()throws DVDLibraryPersistenceException{\n \n int intId = 0;\n for (String key : dvds.keySet()){\n if (Integer.valueOf(key) > intId){\n intId = Integer.valueOf(key);\n }\n }\n return String.valueOf(intId + 1);\n }",
"public short getId() {\n return id;\n }",
"private static String GetNewID() {\n DBConnect db = new DBConnect(); // Create a database connection\n String id = db.SqlSelectSingle(\"SELECT vendor_id FROM vendor ORDER BY vendor_id DESC LIMIT 1\"); // First try to get the top ID.\n if (id.equals(\"\")) // This is incase there are no registered vendors in the software\n id = \"001\";\n else\n id = String.format(\"%03d\", Integer.parseInt(id) + 1); // This will increment the top ID by one then format it to have three digits \n db.Dispose(); // This will close our database connection for us\n return id;\n }",
"public int getIdentifier()\n {\n return identifier;\n }",
"public java.lang.String getId() {\n\t\t\t\tjava.lang.Object ref = id_;\n\t\t\t\tif (ref instanceof java.lang.String) {\n\t\t\t\t\treturn (java.lang.String) ref;\n\t\t\t\t} else {\n\t\t\t\t\tcom.google.protobuf.ByteString bs =\n\t\t\t\t\t\t\t(com.google.protobuf.ByteString) ref;\n\t\t\t\t\tjava.lang.String s = bs.toStringUtf8();\n\t\t\t\t\tid_ = s;\n\t\t\t\t\treturn s;\n\t\t\t\t}\n\t\t\t}",
"java.lang.String getRecognitionId();",
"public Number getID();",
"public java.lang.String getId() {\n java.lang.Object ref = id_;\n if (!(ref instanceof java.lang.String)) {\n java.lang.String s = ((com.google.protobuf.ByteString) ref)\n .toStringUtf8();\n id_ = s;\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }",
"@java.lang.Override\n public java.lang.String getId() {\n java.lang.Object ref = id_;\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 id_ = s;\n return s;\n }\n }",
"@java.lang.Override\n public java.lang.String getId() {\n java.lang.Object ref = id_;\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 id_ = s;\n return s;\n }\n }",
"@java.lang.Override\n public java.lang.String getId() {\n java.lang.Object ref = id_;\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 id_ = s;\n return s;\n }\n }",
"@java.lang.Override\n public java.lang.String getId() {\n java.lang.Object ref = id_;\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 id_ = s;\n return s;\n }\n }",
"public int getID() {\r\n\t\treturn idNumber;\r\n\t}",
"public final int getFileId() {\n\t\treturn m_FID;\n\t}",
"public java.lang.String getId() {\n java.lang.Object ref = id_;\n if (!(ref instanceof java.lang.String)) {\n java.lang.String s = ((com.google.protobuf.ByteString) ref)\n .toStringUtf8();\n id_ = s;\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }",
"public java.lang.String getId() {\n java.lang.Object ref = id_;\n if (!(ref instanceof java.lang.String)) {\n java.lang.String s = ((com.google.protobuf.ByteString) ref)\n .toStringUtf8();\n id_ = s;\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }",
"public short getId() {\n return this.id;\n }",
"public abstract long id();",
"com.google.protobuf.ByteString\n getRecognitionIdBytes();",
"public int getNumID() {\n return numID;\n }",
"@java.lang.Override\n public java.lang.String getId() {\n java.lang.Object ref = id_;\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 id_ = s;\n return s;\n }\n }",
"@java.lang.Override\n public java.lang.String getId() {\n java.lang.Object ref = id_;\n if (ref instanceof java.lang.String) {\n return (java.lang.String) ref;\n } else {\n com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;\n java.lang.String s = bs.toStringUtf8();\n id_ = s;\n return s;\n }\n }",
"@java.lang.Override\n public java.lang.String getId() {\n java.lang.Object ref = id_;\n if (ref instanceof java.lang.String) {\n return (java.lang.String) ref;\n } else {\n com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;\n java.lang.String s = bs.toStringUtf8();\n id_ = s;\n return s;\n }\n }",
"public java.lang.Integer getMetaId();",
"public String getIdNumber() {\n return idNumber;\n }",
"public long id() {\n\t\treturn message.getBaseMarketId();\n\t}",
"public byte getId(){\n return id;\n }",
"private int getMovieId() {\n\t\treturn 0;\n\t}",
"public String getNextIdentifier() {\r\n if (!vocabularyFolder.isNumericConceptIdentifiers()) {\r\n return \"\";\r\n } else {\r\n try {\r\n int identifier = vocabularyService.getNextIdentifierValue(vocabularyFolder.getId());\r\n return Integer.toString(identifier);\r\n } catch (ServiceException e) {\r\n LOGGER.error(e);\r\n return \"\";\r\n }\r\n }\r\n }",
"public String getId()\n\t{\n\t\treturn m_sID;\t\n\t}",
"public static IDataPacketID GetID() {\r\n\t\treturn DataPacketIDFactory.Singleton.makeID(ITextData.class); // DataPacketIDFactory.Singleton is an instance of an IDataPacketIDFactory\r\n\t}",
"public long getId() {\n\t\treturn Long.parseLong(_id);\n\t}"
] |
[
"0.68440455",
"0.66415614",
"0.6615458",
"0.65790766",
"0.65768343",
"0.65689635",
"0.65525657",
"0.65429366",
"0.652491",
"0.65028536",
"0.64882827",
"0.64562935",
"0.6450006",
"0.6447757",
"0.6445298",
"0.64409924",
"0.6429158",
"0.6405612",
"0.64028156",
"0.6400293",
"0.6378385",
"0.63754743",
"0.63655466",
"0.63333064",
"0.63333064",
"0.63333064",
"0.6332298",
"0.63288194",
"0.6322768",
"0.6319476",
"0.6307253",
"0.63066286",
"0.63043034",
"0.629491",
"0.6294483",
"0.6291202",
"0.6290265",
"0.6275625",
"0.62577033",
"0.62572414",
"0.6255615",
"0.6254196",
"0.6249309",
"0.624908",
"0.6242648",
"0.62415516",
"0.62229294",
"0.62229294",
"0.62221134",
"0.62204874",
"0.62173533",
"0.6213881",
"0.6210484",
"0.6206976",
"0.6204769",
"0.6171869",
"0.6164558",
"0.6164558",
"0.6164558",
"0.6164558",
"0.6152895",
"0.61521477",
"0.61505157",
"0.6143271",
"0.61362714",
"0.6122743",
"0.61167264",
"0.6103259",
"0.6103118",
"0.609514",
"0.60920036",
"0.60848755",
"0.6079643",
"0.6071898",
"0.60637206",
"0.60600686",
"0.60572225",
"0.60571986",
"0.60571986",
"0.60571986",
"0.60571986",
"0.60552573",
"0.60540646",
"0.6052773",
"0.6052773",
"0.6050715",
"0.6050205",
"0.60490406",
"0.6047667",
"0.60454553",
"0.60409653",
"0.60409653",
"0.6038875",
"0.60385364",
"0.60383457",
"0.60370374",
"0.6035176",
"0.60271525",
"0.6023256",
"0.60221577",
"0.60184866"
] |
0.0
|
-1
|
Crate a new message
|
public Red5Message(Type aType, IRTMPEvent aData) {
mType = aType;
mData = aData;
int dataSize = -1;
VideoCodec vidCodec=null;
AudioCodec audCodec=null;
int sampleRate = 0;
int sampleSize = 0;
boolean isStereo=false;
try {
if (mData != null) {
// Retain so we can cross a thread boundary
mData.retain();
}
if (aType.isAudio()) {
if (aData == null) {
throw new IllegalArgumentException("cannot pass null audio data");
}
if (!(aData instanceof AudioData)) {
throw new IllegalArgumentException("cannot pass non AudioData for audio");
}
IoBuffer data = ((AudioData)aData).getData();
if (data == null) {
throw new IllegalArgumentException("cannot pass empty audio data for audio");
}
data.rewind();
dataSize = data.remaining();
if (dataSize == 0) {
throw new IllegalArgumentException("cannot pass empty audio data");
}
byte firstByte = data.get(0);
byte soundFormat = (byte)((firstByte>>4) & 0x0F);
switch (soundFormat) {
case 0:
audCodec = AudioCodec.PCM;
break;
case 1:
audCodec = AudioCodec.ADPCM;
break;
case 2:
audCodec = AudioCodec.MP3;
break;
case 3:
audCodec = AudioCodec.PCM_LE;
break;
case 4:
audCodec = AudioCodec.Nellymoser_16khz;
break;
case 5:
audCodec = AudioCodec.Nellymoser_8khz;
break;
case 6:
audCodec = AudioCodec.Nellymoser;
break;
case 7:
audCodec = AudioCodec.PCM_ALAW;
break;
case 8:
audCodec = AudioCodec.PCM_MULAW;
break;
case 9:
audCodec = AudioCodec.RESERVED;
break;
case 10:
audCodec = AudioCodec.AAC;
break;
case 11:
audCodec = AudioCodec.SPEEX;
break;
case 14:
audCodec = AudioCodec.MP3_8khz;
break;
case 15:
audCodec = AudioCodec.DEVICE_SPECIFIC;
break;
default:
throw new RuntimeException("Unrecognized type of audio data: " + soundFormat);
}
byte soundRate = (byte)((firstByte>>2) & 0x03);
if (audCodec == AudioCodec.SPEEX) {
sampleRate = 16000;
}
else if (audCodec == AudioCodec.Nellymoser_8khz) {
sampleRate = 8000;
}
else if (audCodec == AudioCodec.Nellymoser_16khz) {
sampleRate = 16000;
}
else if (audCodec == AudioCodec.MP3_8khz) {
sampleRate = 8000;
}
else {
switch(soundRate) {
case 0:
sampleRate = 5512;
break;
case 1:
sampleRate = 11025;
break;
case 2:
sampleRate = 22050;
break;
case 3:
sampleRate = 44100;
break;
}
}
byte soundSize = (byte)((firstByte>>1) & 0x01);
sampleSize = soundSize > 0 ? 16 : 8;
byte stereo = (byte)((firstByte) & 0x01);
isStereo = stereo > 0;
}
else if (aType.isVideo()) {
if (aData == null) {
throw new IllegalArgumentException("cannot pass null video data");
}
if (!(aData instanceof VideoData)) {
throw new IllegalArgumentException("cannot pass non VideoData for video");
}
IoBuffer data = ((VideoData)aData).getData();
if (data == null) {
throw new IllegalArgumentException("cannot pass empty video data for video");
}
data.rewind();
dataSize = data.remaining();
byte firstByte = data.get(0);
byte codecId = (byte)((firstByte)& 0x0F);
switch(codecId) {
case 1:
vidCodec = VideoCodec.JPEG;
break;
case 2:
vidCodec = VideoCodec.H263;
break;
case 3:
vidCodec = VideoCodec.Screen;
break;
case 4:
vidCodec = VideoCodec.VP6;
break;
case 5:
vidCodec = VideoCodec.VP6a;
break;
case 6:
vidCodec = VideoCodec.Screen2;
break;
case 7:
vidCodec = VideoCodec.AVC;
break;
default:
throw new RuntimeException("Unrecognized video codec: " + codecId);
}
}
mVideoCodec = vidCodec;
mAudioCodec = audCodec;
mSampleRate = sampleRate;
mSampleSize = sampleSize;
mStereo = isStereo;
log.debug("Created red5 message; type: {}; data: {}; data size: {}; video codec: {}; audio codec: {}; "
+"sample rate: {}; sample size: {}; stereo: {}",
new Object[]{
mType,
mData,
dataSize,
mVideoCodec,
mAudioCodec,
mSampleRate,
mSampleSize,
mStereo
}
);
}
catch (RuntimeException ex) {
log.error("Got exception: {}", ex);
throw ex;
}
}
|
{
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
}
|
[
"public Message newMessage(String message, Object... params) {\n/* 61 */ return new SimpleMessage(message);\n/* */ }",
"public Message newMessage(String message, Object p0, Object p1, Object p2, Object p3) {\n/* 93 */ return new SimpleMessage(message);\n/* */ }",
"public Message newMessage(String message, Object p0) {\n/* 69 */ return new SimpleMessage(message);\n/* */ }",
"public Message newMessage(String message, Object p0, Object p1) {\n/* 77 */ return new SimpleMessage(message);\n/* */ }",
"public Message newMessage(String message, Object p0, Object p1, Object p2) {\n/* 85 */ return new SimpleMessage(message);\n/* */ }",
"public Message newMessage(String message, Object p0, Object p1, Object p2, Object p3, Object p4) {\n/* 101 */ return new SimpleMessage(message);\n/* */ }",
"public Message newMessage(String message, Object p0, Object p1, Object p2, Object p3, Object p4, Object p5, Object p6) {\n/* 118 */ return new SimpleMessage(message);\n/* */ }",
"@Override\n\tpublic void newMsg(String msg) throws RemoteException {\n\t\tchathistory.add(new chatmessage<String>(msg + \"\\n\"));\n\t}",
"public Message newMessage(String message, Object p0, Object p1, Object p2, Object p3, Object p4, Object p5, Object p6, Object p7, Object p8, Object p9) {\n/* 145 */ return new SimpleMessage(message);\n/* */ }",
"public Message newMessage(String message, Object p0, Object p1, Object p2, Object p3, Object p4, Object p5) {\n/* 109 */ return new SimpleMessage(message);\n/* */ }",
"public Message createMessage()\n {\n return messageFactory.createMessage();\n }",
"public Message addMessage(Message p);",
"public Message() {\n message = \"\";\n senderID = \"\";\n time = 0;\n }",
"public void putMessage (Message message);",
"public Message newMessage(String message, Object p0, Object p1, Object p2, Object p3, Object p4, Object p5, Object p6, Object p7) {\n/* 127 */ return new SimpleMessage(message);\n/* */ }",
"public Message () {\n\t\tthis.setCreationtime(Calendar.getInstance().getTimeInMillis());\n\t\tsetTimestamp();\n\t}",
"Message newMessage(Uuid id, Uuid author, Uuid conversation, String body, Time creationTime);",
"DynamicMessage createDynamicMessage();",
"public Message newMessage(String message, Object p0, Object p1, Object p2, Object p3, Object p4, Object p5, Object p6, Object p7, Object p8) {\n/* 136 */ return new SimpleMessage(message);\n/* */ }",
"public abstract Message createMessage(String uid) throws MessagingException;",
"public void newMessage(String new_message) {\r\n\t\tsynchronized(this.messages) {\r\n\t\t\tthis.messages.push(new_message);\r\n\t\t}\r\n\t}",
"public Message() {\n\t\tsuper();\n\t}",
"protected ParseObject createMessage() {\n //format single variables appropriatly. most cases the field is an array\n ArrayList<ParseUser> nextDrinker = new ArrayList<ParseUser>();\n nextDrinker.add(mNextDrinker);\n ArrayList<String> groupName = new ArrayList<String>();\n groupName.add(mGroupName);\n\n ParseObject message = new ParseObject(ParseConstants.CLASS_MESSAGES);\n message.put(ParseConstants.KEY_SENDER_ID, ParseUser.getCurrentUser().getObjectId());\n message.put(ParseConstants.KEY_SENDER, ParseUser.getCurrentUser());\n message.put(ParseConstants.KEY_GROUP_ID, mGroupId);\n message.put(ParseConstants.KEY_GROUP_NAME, groupName);\n message.put(ParseConstants.KEY_SENDER_NAME, ParseUser.getCurrentUser().getUsername());\n message.put(ParseConstants.KEY_RECIPIENT_IDS, nextDrinker);\n message.put(ParseConstants.KEY_MESSAGE_TYPE, ParseConstants.TYPE_DRINK_REQUEST);\n\n return message;\n }",
"@Override\n public TransponderMessage newMessage() {\n super.newMessage();\n setModule(\"somevertical\");\n return this;\n }",
"protected void sendMessage(String msg) {\n message = msg; \n newMessage = true;\n }",
"private Message(MessageType handle, String srcName, String text) {\n msgType = handle;\n // Save the properly formatted identifier for the user sending the\n // message.\n msgSender = srcName;\n // Save the text of the message.\n msgText = text;\n }",
"abstract void addMessage(Message message);",
"public void addMessage() {\n }",
"public Message() {}",
"public Message() {}",
"public AbstractMessage() {\n\t\t//this.idMessage = SecUtils.getHex(SecUtils.getRandomBytes(SecUtils.getSeed(), 20));\n\t\tthis.idMessage = this.hashCode();\n\t\tthis.setChallenge(new Challenge());\n\t}",
"public void createMessage(int tid, int uid, int rank, String detail);",
"protected abstract Message createMessage(Object object, MessageProperties messageProperties);",
"private void createMessage(String msg) {\n\t\tmessage = new GLabel(msg);\n\t\tmessage.setFont(MESSAGE_FONT);\n\t\tadd(message, getWidth() / 2 - message.getWidth() / 2, getHeight()\n\t\t\t\t- BOTTOM_MESSAGE_MARGIN - message.getHeight());\n\t}",
"public static synchronized void createMessage(MessageModel message, String parentMessageId) throws MessageException, MongoException, SQLException {\n\t\t// Verify the message parameters\n\t\tboolean valid = true;\n\t\tStringBuilder errorMessage = new StringBuilder();\n\t\t\n\t\tif(message.getMessageText() == null || !Security.isStringNotEmpty(message.getMessageText())) {\n\t\t\tvalid = false;\n\t\t\terrorMessage.append(\" - Invalid message text : \" + message.getMessageText());\n\t\t}\n\t\tif(message.getMessageBoardName() == null || !Security.isValidBoardName(message.getMessageBoardName())) {\n\t\t\tvalid = false;\n\t\t\terrorMessage.append(\" - Invalid message board name : \" + message.getMessageBoardName());\n\t\t}\n\t\tif(message.getMessagePosterId() == null || !Security.isValidUserId(message.getMessagePosterId())) {\n\t\t\tvalid = false;\n\t\t\terrorMessage.append(\" - Invalid message poster id : \" + message.getMessagePosterId());\n\t\t}\n\t\tif(message.getMessageDate() == null) {\n\t\t\tvalid = false;\n\t\t\terrorMessage.append(\" - Invalid message date : null\");\n\t\t}\n\t\t\n\t\t// If there is an error, throw an error\n\t\tif(!valid) {\n\t\t\t\n\t\t\tthrow new MessageException(errorMessage.toString());\n\t\t\t\n\t\t} else {\n\t\t\t\n\t\t\t// Escape the HTML special characters\n\t\t\tmessage.setMessageText(Security.htmlEncode(message.getMessageText()));\n\t\t\tmessage.setMessageBoardName(Security.htmlEncode(message.getMessageBoardName()));\n\t\t\t\n\t\t\t// Get message ID dynamically\n\t\t\tif(parentMessageId != null && !parentMessageId.equals(\"\")) {\n\t\t\t\t\n\t\t\t\t// Get the message parent\n\t\t\t\tMessageFilter parentFilter = new MessageFilter();\n\t\t\t\tparentFilter.addMessageId(parentMessageId);\n\t\t\t\tList<MessageModel> parents = MessageDatabaseManager.getMessage(parentFilter, false, true);\n\t\t\t\tif(parents.size() == 1) {\n\t\t\t\t\t\n\t\t\t\t\tMessageModel parent = parents.get(0);\n\t\t\t\t\tmessage.setMessageId(parent.getNextAnswerId());\n\t\t\t\t\t\n\t\t\t\t} else {\n\t\t\t\t\t\n\t\t\t\t\tthrow new MessageException(\"Parent message not found : \" + parentMessageId);\n\t\t\t\t\t\n\t\t\t\t}\n\t\t\t\t\n\t\t\t} else {\n\t\t\t\t\n\t\t\t\t// Get the next root message ID\n\t\t\t\tmessage.setMessageId(MessageDatabaseManager.getNextRootMessageId());\n\t\t\t\t\n\t\t\t}\n\t\t\t\n\t\t\t// Insert the new message\n\t\t\tMessageDatabaseManager.insertMessage(message);\n\t\t\t\n\t\t}\n\t}",
"public void setMessage(String newMsg) {\n this.message = newMsg;\n }",
"public Message(String message){\n\t\tthis(message, 5000);\n\t}",
"public Message(){}",
"public abstract void newChatMembersMessage(Message m);",
"public Message(long msg) {\n m_msg = msg;\n m_type = getType(msg);\n parseMessage();\n }",
"public Message newMessage(String type) {\n\tString address = null;\n\n\t/*\n * Provide the default address from the original open.\n */\n\n\tif (((m_mode & Connector.WRITE) > 0) && (host != null)) {\n\t address = ADDRESS_PREFIX + host;\n\t if (m_iport != 0) {\n\t\taddress = address + \":\" + String.valueOf(m_iport);\n\t }\n\t}\n\n\treturn newMessage(type, address);\n }",
"public Message newMessage(String type, String addr) {\n\tMessage message = null;\n\n\tif (type.equals(MessageConnection.TEXT_MESSAGE)) {\n\n\t message = new TextObject(addr);\n\t} else {\n\t if (type.equals(MessageConnection.BINARY_MESSAGE)) {\n\n message = new BinaryObject(addr);\n\t } else {\n throw new IllegalArgumentException(\n \"Message type not supported\");\n\t }\n\t}\n\n\n\treturn message;\n }",
"Message create(MessageInvoice invoice);",
"public void addMessage(String message);",
"public void newACMsg(OL_Message msg) {\n setACMsg(msg);\n FSM_Extension e = ((FSM_Extension) msg.getFirstExtensionByType(Extension.FSM));\n switch(e.getType()) {\n case DONT_HAVE_IT:\n {\n myState = NoPayload_NoRecover;\n messageStore.setTimer(this, REC_TIMER_INDEX, timeout_REC);\n }\n break;\n case HAVE_IT:\n {\n sendToNode(NACK_SYNC, msg.getSourceAddress());\n neighboraddress = msg.getSourceAddress();\n myState = WaitforPayload;\n messageStore.setTimer(this, NACK_TIMER_INDEX, timeout_NACK);\n messageStore.setTimer(this, MAXNACK_TIMER_INDEX, max_NACK);\n }\n break;\n case NACK_SYNC:\n case QUERY_MSG_SYNC:\n {\n sendToNode(DONT_HAVE_IT, msg.getSourceAddress());\n myState = NoPayload_NoRecover;\n messageStore.setTimer(this, REC_TIMER_INDEX, timeout_REC);\n }\n break;\n }\n }",
"private static void messageConstructor(){\n msg = \"These are the ammo you can spend.\\n\" +\n \"Every time you select the corresponding color, the quantity will decrease: \\n\";\n\n paymentSB.append(msg);\n if (tmpAmmoInAmmoBox[GeneralInfo.RED_ROOM_ID] > 0) {\n msg = red + \": Red ammo available: \" + tmpAmmoInAmmoBox[GeneralInfo.RED_ROOM_ID] + \"\\n\";\n paymentSB.append(msg);\n responeForAmmo.add(red);\n }\n if (tmpAmmoInAmmoBox[GeneralInfo.BLUE_ROOM_ID] > 0) {\n msg = blue + \": Blue ammo available: \" + tmpAmmoInAmmoBox[GeneralInfo.BLUE_ROOM_ID] + \"\\n\";\n paymentSB.append(msg);\n responeForAmmo.add(blue);\n }\n if (tmpAmmoInAmmoBox[GeneralInfo.YELLOW_ROOM_ID] > 0) {\n msg = yellow + \": Yellow ammo available: \" + tmpAmmoInAmmoBox[GeneralInfo.YELLOW_ROOM_ID] + \"\\n\";\n paymentSB.append(msg);\n responeForAmmo.add(yellow);\n }\n\n for (i = 0; i < tmpAmmoInPowerUp.size(); i++) {\n msg = (i + 1) + \": \" + tmpAmmoInPowerUp.get(i).getName() + \" COLOR: \" + tmpAmmoInPowerUp.get(i).getGainAmmoColor() + \"\\n\";\n paymentSB.append(msg);\n responseForPowerUp.add(Integer.toString(i + 1));\n }\n\n if (!responeForAmmo.isEmpty()) {\n possibleChoice.addAll(responeForAmmo);\n msg = \"Chose a letter R/B/Y \\n\";\n paymentSB.append(msg);\n }\n\n if(!responseForPowerUp.isEmpty()) {\n possibleChoice.addAll(responseForPowerUp);\n msg = \"choose a number from 1 to \" + i + \": \";\n paymentSB.append(msg);\n }\n }",
"@Override\n public void onClick(View v){\n EditText newMessageView=(EditText) findViewById(R.id.new_message);\n String newMessageView1 = newMessageView.getText().toString();\n newMessageView.setText(\"\");\n com.arunya.aarunya.Message msg = new com.arunya.aarunya.Message();\n msg.setmDate(new Date());\n msg.setmText(\"newMessage\");\n msg.setmSender(\"Raj\");\n\n MessageDataSource.saveMessage(msg,mConvoId); /*fetches message from edit text add to the message object */\n\n\n\n }",
"public Message(){\n\t\ttimeStamp = System.currentTimeMillis();\n\t}",
"protected abstract TMessage prepareMessage();",
"public void newADMsg(OL_Message msg) {\n socket.appmsgArrived(msg, socket.callback);\n setADMsg(msg);\n myState = HavePayload;\n messageStore.setTimer(this, DELETE_TIMER_INDEX, delete);\n }",
"public Message(String key) {\n this.key = key;\n }",
"private Message createMsg(long type,Object event){\r\n Message msg=new Message(0,type,0,\"\",new Object[]{event},\r\n System.currentTimeMillis(),0,0,null,0,0,0);\r\n return msg;\r\n }",
"public Message() {\n }",
"public Message() {\n }",
"private void constructACLMessage()\n {\n PlayIntroAction playIntroObject = new PlayIntroAction();\n playIntroObject.setLenght(numberOfMeasures);\n playIntroObject.setNow(true);\n playIntroObject.setDuration(-1);\n msg = new ACLMessage(ACLMessage.CFP);\n msg.setLanguage(codec.getName());\n msg.setOntology(ontology.getName());\n for(int i = 0; i < receivers.size(); i++)\n {\n try\n {\n //fill the content using the Ontology concept\n myAgent.getContentManager().fillContent(msg,new Action((AID)receivers.elementAt(i),playIntroObject));\n }catch (Exception ex) { ex.printStackTrace(); }\n //Set the receiver of the message\n msg.addReceiver((AID)receivers.elementAt(i));\n\n }\n\n //Set the protocol that we gonna use\n msg.setProtocol(FIPANames.InteractionProtocol.FIPA_CONTRACT_NET);\n //We indicate the deadline of the reply\n msg.setReplyByDate(new Date(System.currentTimeMillis() + 30000));\n\n\n }",
"@Override\n\t\t\tpublic Message createMessage(Session session) throws JMSException {\n\t\t\t\tMessage m = session.createTextMessage(s);\n\t\t\t\treturn m;\n\t\t\t}",
"private Message(String message, long visibleTime, long creationTime, long id){\n\t\tthis(message, visibleTime);\n\t\tthis.creationTime = creationTime;\n\t\tthis.id = id;\n\t}",
"@Override\n public MediationMessage createMessage(CamelMediationMessage message) {\n return null;\n }",
"public Message() {\n }",
"void mo23214a(Message message);",
"@PostMapping(\"/messages\")\n\t@ResponseStatus(HttpStatus.CREATED)\n\tResponseEntity<?> newMessage(@RequestBody @Valid Message newMessage) throws URISyntaxException {\n\n\t\tResource<Message> resource = messageAssembler.toResource(messagesService.addMessage(newMessage));\n\n\t\treturn ResponseEntity.created(new URI(resource.getId().expand().getHref())).body(resource);\n\t}",
"public void setMessage(String message){\r\n this.message = message;\r\n key = randNumber.nextInt(50) + 1; \r\n\r\n encode();\r\n }",
"public Message() {\n\tkey = MessageKey.NULL;\n\tdata = null;\n\n\tattachment = null;\n }",
"@Override\r\n\tpublic void addMessage(Integer receive_id, Integer send_id, String content,Timestamp createtime) {\n\t\tString sql=\"insert into message(receive_id,send_id,content,createtime,isread,result) values(?,?,?,?,?,?)\";\r\n\t\tObject[] args=new Object[] {receive_id,send_id,content,createtime,0,0};\r\n\t\ttry {\r\n\t\t\tupdate(conn, sql, args);\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}",
"public Message wrap(String name, String reci, String msg)\n {\n return new Message(name, reci, msg);\n }",
"@Override\r\n\tpublic void onMessage(BmobMsg message) {\n\t\trefreshNewMsg(message);\r\n\t}",
"public Message(String message, long visibleTime){\n\t\tthis.message = message;\n\t\tthis.creationTime = System.currentTimeMillis();\n\t\tthis.visibleTime = visibleTime;\n\t\tthis.id = this.hashCode();\n\t}",
"public OctopusCollectedMsg() {\n super(DEFAULT_MESSAGE_SIZE);\n amTypeSet(AM_TYPE);\n }",
"public Message(String type, Object message) {\n\t\tthis.type = type;\n\t\tthis.message = message;\n\t}",
"public Message(){\n this.body = null;\n this.contact = null;\n }",
"public void addMessage() throws IOException {\r\n\t\tSystem.out.println(\"Enter the message to be decrypted\");\r\n\t\tmessage = this.readStringFromCmd();\r\n\t}",
"void mo80453a(Message message);",
"@Override\r\n\tpublic void addMessage(String ChatMessageModel) {\n\t\t\r\n\t}",
"private Message createMessage(final JSONObject jsonMessageSet) {\n\n final JSONArray messages = (JSONArray) jsonMessageSet.get(\"message\");\n final JSONObject jsonMessage = getRandomJsonObject(messages);\n\n final Message message = new Message();\n message.setMessageId((Integer) jsonMessage.get(\"messageId\"));\n message.setText((String) jsonMessage.get(\"text\"));\n\n final Integer tipSetId = (Integer) jsonMessage.get(\"tipSetId\");\n if (tipSetId != null) {\n message.setTipSetId(tipSetId);\n }\n\n return message;\n }",
"void append(final String msg) {\n Preconditions.checkState(isOpen);\r\n\r\n message.append(msg);\r\n isDirty = true;\r\n }",
"private Message(MessageType handle) {\n this(handle, null, null);\n }",
"public abstract void newChatTitleMessage(Message m);",
"@Override\n public void onClick(View view) {\n Message message = new Message(null, getDate(), address, mMessageEditText.getText().toString());\n // To create a new message node in the database\n mMessagesDatabaseReference.push().setValue(message);\n // Clear input box\n mMessageEditText.setText(\"\");\n }",
"private Message(){\n // default constructor\n }",
"protected void setMessage(java.lang.String newMessage)\r\n {\r\n if (message == null)\r\n {\r\n message = newMessage;\r\n }\r\n else\r\n {\r\n message += \"\\n\" + newMessage;\r\n }\r\n }",
"public ModelMessage(MessageType messageType, String id, FreeColGameObject source) {\n this(messageType, id, source, getDefaultDisplay(messageType, source));\n }",
"public MessageRecord() {\n super(Message.MESSAGE);\n }",
"public Message createMessage(String messageText)\n {\n Message msg =\n new MessageIcqImpl(messageText,\n OperationSetBasicInstantMessaging.DEFAULT_MIME_TYPE,\n OperationSetBasicInstantMessaging.DEFAULT_MIME_ENCODING, null);\n\n return msg;\n }",
"Message(String clientID, String message, int msgResendTime) {\n this.clientID = clientID;\n this.message = message;\n this.msgResendTime = msgResendTime;\n nextMessage = null;\n messageID = ++messageIDCounter;\n date = new Date();\n clientsRequestsList = new HashMap<String, Date>();\n }",
"void mo80456b(Message message);",
"public abstract void contactMessage(Message m);",
"public Message(){\n super();\n this.status = RETURN_OK;\n put(\"status\",this.status.getCode());\n put(\"message\", this.status.getMessage());\n }",
"public AmqpMessage() {}",
"public void onClick(ClickEvent event) {\n\t\t\t\tString msgtxt = view.getCreateMessageText().getText().trim();\n\n\t\t\t\t// 2. Lock input, show sending indicator: goto 3\n\t\t\t\tview.lockCreateMessageInput();\n\n\t\t\t\t// 3. Validate input: valid ? goto 4 : goto e1\n\t\t\t\tif(msgtxt.isEmpty()) {\n\t\t\t\t\t// TODO: Show warning message: goto 6\n\n\t\t\t\t\t// 6. Unlock input, remove sending indicator, set focus to inputText: goto 1\n\t\t\t\t\tview.unlockCreatemessageInput();\n\n\t\t\t\t\treturn;\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\tMessage msg = new MessageImpl();\n\t\t\t\tmsg.setText(msgtxt);\n\t\t\t\tservice.createMessage(msg, new AsyncCallback<Void>() {\t\t\t\t\t\n\t\t\t\t\t@Override\n\t\t\t\t\tpublic void onSuccess(Void result) {\n\t\t\t\t\t\tGWT.log(\"INFO: Message saved succesfully.\");\n\n\t\t\t\t\t\t// 5. Clear input: goto 6\n\t\t\t\t\t\tview.getCreateMessageText().setText(\"\");\n\n\t\t\t\t\t\t// 6. Unlock input, remove sending indicator, set focus to inputText: goto 1\n\t\t\t\t\t\tview.unlockCreatemessageInput();\t\t\t\t\t\n\t\t\t\t\t}\t\t\t\t\n\n\t\t\t\t\t@Override\n\t\t\t\t\tpublic void onFailure(Throwable caught) {\n\t\t\t\t\t\tGWT.log(caught.getMessage());\n\n\t\t\t\t\t\t// TODO: Show error message: goto 6\n\n\t\t\t\t\t\t// 6. Unlock input, remove sending indicator, set focus to inputText: goto 1\n\t\t\t\t\t\tview.unlockCreatemessageInput();\n\t\t\t\t\t}\n\t\t\t\t});\n\t\t\t}",
"public abstract void stickerMessage(Message m);",
"private Message(Builder builder) {\n super(builder);\n }",
"public MessageAbstract createMessageAbstract() {\n\t\tMessageAbstract messageAbstract = new MessageAbstract();\n\t\tmessageAbstract.setId(this.id);\n\t\tmessageAbstract.setMessage(this.message);\n\t\tmessageAbstract.setSentTimestamp(this.sentTimestamp);\n\n\t\t// Add sender's user ID if available\n\t\tif (this.origin != null) {\n\t\t\tmessageAbstract.setSenderUserId(this.origin.getId());\n\t\t\tmessageAbstract.setSenderScreenName(this.origin.getScreenName());\n\t\t}\n\t\treturn messageAbstract;\n\t}",
"abstract void message(String message);",
"public Message(MessageKey key, String data) {\n\tthis.key = key;\n\tthis.data = data;\n\n\tattachment = null;\n }",
"public Builder message(String message) {\r\n this.message = message;\r\n return this;\r\n }",
"private SocketMessage() {\n initFields();\n }",
"void requestRebuildNextTime(String message);",
"public void add(Message message){\n if (message.getContent().length() <= 280) {\n this.messages.add(message);\n }\n //this.messages.add(message);\n }",
"protected void createAccessMessage() {\n final GenericMessage genericMessage = (GenericMessage) mMeshMessage;\n final ApplicationKey key = genericMessage.getAppKey();\n final int akf = genericMessage.getAkf();\n final int aid = genericMessage.getAid();\n final int aszmic = genericMessage.getAszmic();\n final int opCode = genericMessage.getOpCode();\n final byte[] parameters = genericMessage.getParameters();\n message = mMeshTransport.createMeshMessage(mSrc, mDst, mLabel, key, akf, aid, aszmic, opCode, parameters);\n genericMessage.setMessage(message);\n }",
"private void createHelper(int id, String sendername, int senderid, int getterid, String txt) {\n Message b = new Message(sendername, id, senderid, getterid, txt);\n allmessage.add(b);\n }",
"public abstract void newChatPhotoMessage(Message m);"
] |
[
"0.7078753",
"0.68768436",
"0.6854656",
"0.6773202",
"0.6766036",
"0.66889036",
"0.6671148",
"0.6637399",
"0.6629913",
"0.66124105",
"0.6575711",
"0.6524541",
"0.65089154",
"0.6486051",
"0.6467056",
"0.6457068",
"0.64563626",
"0.64548147",
"0.6448845",
"0.6446021",
"0.63918066",
"0.6347378",
"0.63332295",
"0.6327238",
"0.6294271",
"0.6275806",
"0.6259451",
"0.6257893",
"0.6238775",
"0.6238775",
"0.62315416",
"0.62312233",
"0.62269926",
"0.6221729",
"0.62126964",
"0.6201614",
"0.6199887",
"0.6197618",
"0.61825025",
"0.61675656",
"0.6165586",
"0.61582613",
"0.6157192",
"0.6140371",
"0.6136518",
"0.61337286",
"0.612575",
"0.61155725",
"0.61056286",
"0.6101447",
"0.608566",
"0.6084345",
"0.606199",
"0.606199",
"0.6059631",
"0.6025043",
"0.6010243",
"0.60095567",
"0.59921193",
"0.59865516",
"0.5976151",
"0.5956785",
"0.5956707",
"0.5956683",
"0.59531534",
"0.59465295",
"0.59390926",
"0.5933556",
"0.59325904",
"0.59254724",
"0.59208196",
"0.59053683",
"0.5903729",
"0.58823496",
"0.58672893",
"0.5866457",
"0.5861521",
"0.5856704",
"0.5855509",
"0.5853191",
"0.5843344",
"0.5841453",
"0.5835303",
"0.5820598",
"0.58197886",
"0.5819259",
"0.5817291",
"0.5799501",
"0.5798053",
"0.5783656",
"0.578239",
"0.57789916",
"0.577863",
"0.5773577",
"0.57666636",
"0.57594526",
"0.5758312",
"0.5755785",
"0.57548434",
"0.5751094",
"0.5750104"
] |
0.0
|
-1
|
Returns the type of this red5 message
|
public Type getType() {
return mType;
}
|
{
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
}
|
[
"public MessageProto.MSG getType() {\n MessageProto.MSG result = MessageProto.MSG.valueOf(type_);\n return result == null ? MessageProto.MSG.UNRECOGNIZED : result;\n }",
"public MessageProto.MSG getType() {\n MessageProto.MSG result = MessageProto.MSG.valueOf(type_);\n return result == null ? MessageProto.MSG.UNRECOGNIZED : result;\n }",
"MessageType getType();",
"public messages.Basemessage.BaseMessage.Type getType() {\n return type_;\n }",
"public messages.Basemessage.BaseMessage.Type getType() {\n return type_;\n }",
"public abstract MessageType getType();",
"public abstract MessageType getType();",
"MessageProto.MSG getType();",
"public int getMsgType() {\n return msgType_;\n }",
"public int getMsgType() {\n return msgType_;\n }",
"public org.graylog.plugins.dnstap.protos.DnstapOuterClass.Dnstap.Type getType() {\n org.graylog.plugins.dnstap.protos.DnstapOuterClass.Dnstap.Type result = org.graylog.plugins.dnstap.protos.DnstapOuterClass.Dnstap.Type.valueOf(type_);\n return result == null ? org.graylog.plugins.dnstap.protos.DnstapOuterClass.Dnstap.Type.MESSAGE : result;\n }",
"public org.graylog.plugins.dnstap.protos.DnstapOuterClass.Dnstap.Type getType() {\n org.graylog.plugins.dnstap.protos.DnstapOuterClass.Dnstap.Type result = org.graylog.plugins.dnstap.protos.DnstapOuterClass.Dnstap.Type.valueOf(type_);\n return result == null ? org.graylog.plugins.dnstap.protos.DnstapOuterClass.Dnstap.Type.MESSAGE : result;\n }",
"public int getMsgType() {\n\t\treturn msgType;\n\t}",
"messages.Basemessage.BaseMessage.Type getType();",
"@java.lang.Override\n public entities.Torrent.Message.Type getType() {\n @SuppressWarnings(\"deprecation\")\n entities.Torrent.Message.Type result = entities.Torrent.Message.Type.valueOf(type_);\n return result == null ? entities.Torrent.Message.Type.UNRECOGNIZED : result;\n }",
"public int getMessageType()\r\n {\r\n return msgType;\r\n }",
"public MessageType getType() {\n return msgType;\n }",
"@java.lang.Override public entities.Torrent.Message.Type getType() {\n @SuppressWarnings(\"deprecation\")\n entities.Torrent.Message.Type result = entities.Torrent.Message.Type.valueOf(type_);\n return result == null ? entities.Torrent.Message.Type.UNRECOGNIZED : result;\n }",
"public com.eze.ezecli.ApiInput.MessageType getMsgType() {\n return msgType_;\n }",
"public com.eze.ezecli.ApiInput.MessageType getMsgType() {\n return msgType_;\n }",
"public String getMessageType() {\n return type.getMessage().getName();\n }",
"public abstract String getMessageType();",
"public String getMessageType()\r\n\t{\r\n\t\treturn this.messageType;\r\n\t}",
"public Utils.MessageType getMessageType() {\n return messageType;\n }",
"public java.lang.String getMessageType() {\r\n return messageType;\r\n }",
"public MessageType getType() {\n return m_type;\n }",
"@Override\r\n\tpublic String getMessageType() {\n\t\treturn this.getClass().getName();\r\n\t}",
"public Integer getMessageType() {\n return messageType;\n }",
"org.graylog.plugins.dnstap.protos.DnstapOuterClass.Message.Type getType();",
"public com.example.cs217b.ndn_hangman.MessageBuffer.Messages.MessageType getType() {\n return type_;\n }",
"public java.lang.String getMsgType() {\n java.lang.Object ref = msgType_;\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 msgType_ = s;\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }",
"public java.lang.String getMsgType() {\n java.lang.Object ref = msgType_;\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 msgType_ = s;\n return s;\n }\n }",
"public org.graylog.plugins.dnstap.protos.DnstapOuterClass.Message.Type getType() {\n org.graylog.plugins.dnstap.protos.DnstapOuterClass.Message.Type result = org.graylog.plugins.dnstap.protos.DnstapOuterClass.Message.Type.valueOf(type_);\n return result == null ? org.graylog.plugins.dnstap.protos.DnstapOuterClass.Message.Type.AUTH_QUERY : result;\n }",
"public com.example.cs217b.ndn_hangman.MessageBuffer.Messages.MessageType getType() {\n return type_;\n }",
"public org.graylog.plugins.dnstap.protos.DnstapOuterClass.Message.Type getType() {\n org.graylog.plugins.dnstap.protos.DnstapOuterClass.Message.Type result = org.graylog.plugins.dnstap.protos.DnstapOuterClass.Message.Type.valueOf(type_);\n return result == null ? org.graylog.plugins.dnstap.protos.DnstapOuterClass.Message.Type.AUTH_QUERY : result;\n }",
"public MPTMessageType getMessageType()\n {\n \tint value = mMessage.getInt( B1_MESSAGE_TYPE );\n\n \treturn MPTMessageType.fromNumber( value );\n }",
"com.mycompany.midtermproject2.proto.ServerMessageOuterClass.ServerMessage.MsgType getType();",
"protected abstract MessageType getMessageType();",
"int getMsgType();",
"public com.czht.face.recognition.Czhtdev.MessageType getType() {\n com.czht.face.recognition.Czhtdev.MessageType result = com.czht.face.recognition.Czhtdev.MessageType.valueOf(type_);\n return result == null ? com.czht.face.recognition.Czhtdev.MessageType.MsgDefaultReply : result;\n }",
"public com.czht.face.recognition.Czhtdev.MessageType getType() {\n com.czht.face.recognition.Czhtdev.MessageType result = com.czht.face.recognition.Czhtdev.MessageType.valueOf(type_);\n return result == null ? com.czht.face.recognition.Czhtdev.MessageType.MsgDefaultReply : result;\n }",
"com.example.cs217b.ndn_hangman.MessageBuffer.Messages.MessageType getType();",
"public MessageType getMessageType() {\n\t\treturn messageType;\n\t}",
"public MessageType getMessageType() {\n return messageType;\n }",
"public java.lang.String getReceiveType () {\n\t\treturn receiveType;\n\t}",
"public char message_type_GET()\n { return (char)((char) get_bytes(data, 0, 2)); }",
"public proto.MessagesProtos.ClientRequest.MessageType getType() {\n\t\t\t@SuppressWarnings(\"deprecation\")\n\t\t\tproto.MessagesProtos.ClientRequest.MessageType result = proto.MessagesProtos.ClientRequest.MessageType.valueOf(type_);\n\t\t\treturn result == null ? proto.MessagesProtos.ClientRequest.MessageType.UNRECOGNIZED : result;\n\t\t}",
"public com.mycompany.midtermproject2.proto.ServerMessageOuterClass.ServerMessage.MsgType getType() {\n com.mycompany.midtermproject2.proto.ServerMessageOuterClass.ServerMessage.MsgType result = com.mycompany.midtermproject2.proto.ServerMessageOuterClass.ServerMessage.MsgType.valueOf(type_);\n return result == null ? com.mycompany.midtermproject2.proto.ServerMessageOuterClass.ServerMessage.MsgType.CHAT : result;\n }",
"public proto.MessagesProtos.ClientRequest.MessageType getType() {\n\t\t\t\t@SuppressWarnings(\"deprecation\")\n\t\t\t\tproto.MessagesProtos.ClientRequest.MessageType result = proto.MessagesProtos.ClientRequest.MessageType.valueOf(type_);\n\t\t\t\treturn result == null ? proto.MessagesProtos.ClientRequest.MessageType.UNRECOGNIZED : result;\n\t\t\t}",
"com.randomm.server.ProtoBufMessage.Message.InputType getType();",
"public final String type() {\n return type;\n }",
"public com.mycompany.midtermproject2.proto.ServerMessageOuterClass.ServerMessage.MsgType getType() {\n com.mycompany.midtermproject2.proto.ServerMessageOuterClass.ServerMessage.MsgType result = com.mycompany.midtermproject2.proto.ServerMessageOuterClass.ServerMessage.MsgType.valueOf(type_);\n return result == null ? com.mycompany.midtermproject2.proto.ServerMessageOuterClass.ServerMessage.MsgType.CHAT : result;\n }",
"public String getType()\n \t{\n \t\treturn this.type;\n \t}",
"public String getType()\r\n\t{\r\n\t\treturn type;\r\n\t}",
"public String getType()\r\n {\r\n return type;\r\n }",
"public String getType()\n\t{\n\t\treturn type;\n\t}",
"public static String getMessageType(TextMessage message) {\n JSONObject json = new JSONObject(message.getPayload());\n String type = json.keys().next();\n\n return type;\n }",
"public String getType()\n {\n return type;\n }",
"public String type(){\n\t\treturn type;\n\t}",
"java.lang.String getType();",
"java.lang.String getType();",
"java.lang.String getType();",
"java.lang.String getType();",
"java.lang.String getType();",
"java.lang.String getType();",
"java.lang.String getType();",
"java.lang.String getType();",
"java.lang.String getType();",
"java.lang.String getType();",
"java.lang.String getType();",
"java.lang.String getType();",
"java.lang.String getType();",
"public TransmissionProtocol.Type getType() {\n @SuppressWarnings(\"deprecation\")\n TransmissionProtocol.Type result = TransmissionProtocol.Type.valueOf(type_);\n return result == null ? TransmissionProtocol.Type.UNRECOGNIZED : result;\n }",
"public String getType() {\r\r\n\t\treturn type;\r\r\n\t}",
"entities.Torrent.Message.Type getType();",
"TransmissionProtocol.Type getType();",
"public TransmissionProtocol.Type getType() {\n @SuppressWarnings(\"deprecation\")\n TransmissionProtocol.Type result = TransmissionProtocol.Type.valueOf(type_);\n return result == null ? TransmissionProtocol.Type.UNRECOGNIZED : result;\n }",
"public synchronized String getType() {\n\t\treturn type;\n\t}",
"public static String getType() {\n\t\treturn type;\n\t}",
"public String getType()\n {\n return type;\n }",
"public String getType()\n {\n return type;\n }",
"public String getType()\n {\n return type;\n }",
"public String getType()\n {\n return type;\n }",
"public String getType()\n {\n return type;\n }",
"public String getType()\n {\n return type;\n }",
"public final String getType() {\n return this.type;\n }",
"public String type() {\n return this.type;\n }",
"public String type() {\n return this.type;\n }",
"public String type() {\n return this.type;\n }",
"public String type() {\n return this.type;\n }",
"public String type() {\n return this.type;\n }",
"public String type() {\n return this.type;\n }",
"public String getType() {\r\n return type;\r\n }",
"public String getType();",
"public String getType();",
"public String getType();",
"public String getType();",
"public String getType();",
"public String getType();",
"public String getType();",
"public String getType();"
] |
[
"0.7698541",
"0.7683481",
"0.76538414",
"0.7639415",
"0.76352626",
"0.76323175",
"0.76323175",
"0.76237833",
"0.7552931",
"0.7526781",
"0.7499197",
"0.7452993",
"0.7412018",
"0.7403205",
"0.73431224",
"0.7310951",
"0.73094964",
"0.73020715",
"0.7256558",
"0.72548646",
"0.7210869",
"0.72058356",
"0.7204433",
"0.719304",
"0.71881783",
"0.7182326",
"0.7152069",
"0.71421635",
"0.710399",
"0.7005806",
"0.7005446",
"0.69776386",
"0.69762444",
"0.6976101",
"0.69728005",
"0.69287944",
"0.69021726",
"0.6877393",
"0.68326485",
"0.6826621",
"0.68238795",
"0.6797417",
"0.6795616",
"0.6794688",
"0.66489846",
"0.6623918",
"0.662116",
"0.6617298",
"0.6616401",
"0.6580115",
"0.6559712",
"0.6559472",
"0.65416354",
"0.65399444",
"0.6504329",
"0.6502486",
"0.6501183",
"0.6501073",
"0.64944005",
"0.64866513",
"0.64866513",
"0.64866513",
"0.64866513",
"0.64866513",
"0.64866513",
"0.64866513",
"0.64866513",
"0.64866513",
"0.64866513",
"0.64866513",
"0.64866513",
"0.64866513",
"0.6482031",
"0.6472135",
"0.6468202",
"0.6467081",
"0.6465323",
"0.64615136",
"0.6459209",
"0.64582956",
"0.64582956",
"0.64582956",
"0.64582956",
"0.64582956",
"0.64582956",
"0.6441616",
"0.6438433",
"0.6438433",
"0.6438433",
"0.6438433",
"0.6438433",
"0.6438433",
"0.6437061",
"0.6433372",
"0.6433372",
"0.6433372",
"0.6433372",
"0.6433372",
"0.6433372",
"0.6433372",
"0.6433372"
] |
0.0
|
-1
|
Get the audio sample rate in hertz
|
public int getAudioSampleRate() {
return mSampleRate;
}
|
{
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
}
|
[
"public Rational getAudioSampleRate();",
"@java.lang.Override\n public int getSampleRateHertz() {\n return sampleRateHertz_;\n }",
"@java.lang.Override\n public int getSampleRateHertz() {\n return sampleRateHertz_;\n }",
"public float getSampleRate();",
"public int getSampleRate() {\n return sampleRate;\n }",
"public int getSampleRate() {\n for (int rate : new int[]{8000, 11025, 16000, 22050, 44100, 48000}) {\n int buffer = AudioRecord.getMinBufferSize(rate, channel_in, format);\n if (buffer > 0)\n return rate;\n }\n return -1;\n }",
"public int getSampleRate() {\n return 0;\n }",
"public int getSampleRate() {\r\n\treturn SAMPLES_IN_SECOND;\r\n}",
"public int getSamplingRate( ) {\r\n return samplingRate;\r\n }",
"public Integer getSampleRate() {\n return this.sampleRate;\n }",
"int getSampleMs();",
"public int getAudiobitrate() {\n return audiobitrate;\n }",
"@Field(7) \n\tpublic int sample_rate() {\n\t\treturn this.io.getIntField(this, 7);\n\t}",
"public int getSamplingRate() {\n return samplingRate;\n }",
"public int getReSampleRate() {\n return 0;\n }",
"private float hzToPeriod(float hz ) {\n\t\tint sampling = 44100;\n\t\treturn sampling / hz;\n\t}",
"public int getAudioSampleSize() {\n\t\treturn mSampleSize;\n\t}",
"public float getFrequency() {\n Integer sR = (Integer)sampleRate.getSelectedItem();\n int intST = sR.intValue();\n int intFPW = framesPerWavelength.getValue();\n\n return (float)intST/(float)intFPW;\n }",
"public long getSampleCount() {\r\n\t\tif (audioFile != null) {\r\n\t\t\treturn audioFile.getEffectiveDurationSamples();\r\n\t\t}\r\n\t\treturn 0;\r\n\t}",
"public float getMicGainDb();",
"public static double[] rawFreqCreator(){\n\t\tfinal int EXTERNAL_BUFFER_SIZE = 2097152;\n\t\t//128000\n\n\t\t//Get the location of the sound file\n\t\tFile soundFile = new File(\"MoodyLoop.wav\");\n\n\t\t//Load the Audio Input Stream from the file \n\t\tAudioInputStream audioInputStream = null;\n\t\ttry {\n\t\t\taudioInputStream = AudioSystem.getAudioInputStream(soundFile);\n\t\t} catch (Exception e) {\n\t\t\te.printStackTrace();\n\t\t\tSystem.exit(1);\n\t\t}\n\n\t\t//Get Audio Format information\n\t\tAudioFormat audioFormat = audioInputStream.getFormat();\n\n\t\t//Handle opening the line\n\t\tSourceDataLine\tline = null;\n\t\tDataLine.Info\tinfo = new DataLine.Info(SourceDataLine.class, audioFormat);\n\t\ttry {\n\t\t\tline = (SourceDataLine) AudioSystem.getLine(info);\n\t\t\tline.open(audioFormat);\n\t\t} catch (LineUnavailableException e) {\n\t\t\te.printStackTrace();\n\t\t\tSystem.exit(1);\n\t\t} catch (Exception e) {\n\t\t\te.printStackTrace();\n\t\t\tSystem.exit(1);\n\t\t}\n\n\t\t//Start playing the sound\n\t\t//line.start();\n\n\t\t//Write the sound to an array of bytes\n\t\tint nBytesRead = 0;\n\t\tbyte[]\tabData = new byte[EXTERNAL_BUFFER_SIZE];\n\t\twhile (nBytesRead != -1) {\n\t\t\ttry {\n\t\t \t\tnBytesRead = audioInputStream.read(abData, 0, abData.length);\n\n\t\t\t} catch (IOException e) {\n\t\t \t\te.printStackTrace();\n\t\t\t}\n\t\t\tif (nBytesRead >= 0) {\n\t\t \t\tint nBytesWritten = line.write(abData, 0, nBytesRead);\n\t\t\t}\n\n\t\t}\n\n\t\t//close the line \n\t\tline.drain();\n\t\tline.close();\n\t\t\n\t\t//Calculate the sample rate\n\t\tfloat sample_rate = audioFormat.getSampleRate();\n\t\tSystem.out.println(\"sample rate = \"+sample_rate);\n\n\t\t//Calculate the length in seconds of the sample\n\t\tfloat T = audioInputStream.getFrameLength() / audioFormat.getFrameRate();\n\t\tSystem.out.println(\"T = \"+T+ \" (length of sampled sound in seconds)\");\n\n\t\t//Calculate the number of equidistant points in time\n\t\tint n = (int) (T * sample_rate) / 2;\n\t\tSystem.out.println(\"n = \"+n+\" (number of equidistant points)\");\n\n\t\t//Calculate the time interval at each equidistant point\n\t\tfloat h = (T / n);\n\t\tSystem.out.println(\"h = \"+h+\" (length of each time interval in second)\");\n\t\t\n\t\t//Determine the original Endian encoding format\n\t\tboolean isBigEndian = audioFormat.isBigEndian();\n\n\t\t//this array is the value of the signal at time i*h\n\t\tint x[] = new int[n];\n\n\t\t//convert each pair of byte values from the byte array to an Endian value\n\t\tfor (int i = 0; i < n*2; i+=2) {\n\t\t\tint b1 = abData[i];\n\t\t\tint b2 = abData[i + 1];\n\t\t\tif (b1 < 0) b1 += 0x100;\n\t\t\tif (b2 < 0) b2 += 0x100;\n\t\t\tint value;\n\n\t\t\t//Store the data based on the original Endian encoding format\n\t\t\tif (!isBigEndian) value = (b1 << 8) + b2;\n\t\t\telse value = b1 + (b2 << 8);\n\t\t\tx[i/2] = value;\n\t\t\t\n\t\t}\n\t\t\n\t\t//do the DFT for each value of x sub j and store as f sub j\n\t\tdouble f[] = new double[n/2];\n\t\tfor (int j = 0; j < n/2; j++) {\n\n\t\t\tdouble firstSummation = 0;\n\t\t\tdouble secondSummation = 0;\n\n\t\t\tfor (int k = 0; k < n; k++) {\n\t\t \t\tdouble twoPInjk = ((2 * Math.PI) / n) * (j * k);\n\t\t \t\tfirstSummation += x[k] * Math.cos(twoPInjk);\n\t\t \t\tsecondSummation += x[k] * Math.sin(twoPInjk);\n\t\t\t}\n\n\t\t f[j] = Math.abs( Math.sqrt(Math.pow(firstSummation,2) + \n\t\t Math.pow(secondSummation,2)) );\n\n\t\t\tdouble amplitude = 2 * f[j]/n;\n\t\t\tdouble frequency = j * h / T * sample_rate;\n\t\t\tSystem.out.println(\"frequency = \"+frequency+\", amp = \"+amplitude);\n\t\t}\n\t\tSystem.out.println(\"DONE\");\n\t\treturn f;\n\t\t\n\t}",
"public Double bitsPerSecond()\n\t{\n\t\treturn getValue(DataRateUnit.BITS_PER_SEC);\n\t}",
"int getHPPerSecond();",
"public float getFramesPerSecond() {\n return 1 / frametime;\n }",
"int getSmpRate();",
"public static int sampleRate(@NonNull String path)\n {\n JSONObject json = fileMetadata(path);\n\n if (json == null)\n {\n return -1;\n }\n\n try\n {\n JSONArray streams = json.optJSONArray(\"streams\");\n JSONObject stream = streams.optJSONObject(0);\n\n return stream.optInt(\"sample_rate\", -1);\n }\n catch (Exception exc)\n {\n exc.printStackTrace();\n return -1;\n }\n }",
"private float calculateSensorFrequency() {\n if (startTime == 0) {\n startTime = System.nanoTime();\n }\n\n long timestamp = System.nanoTime();\n\n // Find the sample period (between updates) and convert from\n // nanoseconds to seconds. Note that the sensor delivery rates can\n // individually vary by a relatively large time frame, so we use an\n // averaging technique with the number of sensor updates to\n // determine the delivery rate.\n float hz = (count++ / ((timestamp - startTime) / 1000000000.0f));\n\n return hz;\n }",
"public long getMeasFrequencyHz() {\r\n return measFrequencyHz;\r\n }",
"@Override\r\n\tpublic float getSample(long us) {\n\t\treturn 0;\r\n\t}",
"public int getAudioDscp();",
"float getFrequency();",
"double getPlaybackSpeed();",
"public float getPlaybackGainDb();",
"public float getSpeechRate() {\n SharedPreferences preferences = PreferenceManager.getDefaultSharedPreferences(this);\n return Float.valueOf(preferences.getString(\"speech_rate\", \"\"));\n }",
"int getMPPerSecond();",
"public int getAudioJittcomp();",
"float getDecodedAudioTimeoutMs();",
"float getDecodedAudioTimeoutMs();",
"public float getByteRate() {\n return byteMonitor.getRate();\n }",
"long getSamplePeriod();",
"long getDuration() {\n if (debugFlag)\n debugPrintln(\"JSChannel:getDuration\");\n\n if (ais == null || audioFormat == null ) {\n if (debugFlag)\n debugPrintln(\"JSChannel: Internal Error getDuration\");\n return (long)Sample.DURATION_UNKNOWN;\n }\n // Otherwise we'll assume that we can calculate this duration\n\n // get \"duration\" of audio stream (wave file)\n // TODO: For True STREAMing audio the size is unknown...\n long numFrames = ais.getFrameLength();\n if (debugFlag)\n debugPrintln(\" frame length = \" + numFrames);\n if (numFrames <= 0)\n return (long)Sample.DURATION_UNKNOWN;\n\n float rateInFrames = audioFormat.getFrameRate();\n rateInHz = audioFormat.getSampleRate();\n if (debugFlag)\n debugPrintln(\" rate in Frames = \" + rateInFrames);\n if (numFrames <= 0)\n return (long)Sample.DURATION_UNKNOWN;\n long duration = (long)((float)numFrames/rateInFrames);\n if (debugFlag)\n debugPrintln(\" duration(based on ais) = \" + duration);\n return duration;\n }",
"float getPitch();",
"float getPitch();",
"private AudioFormat getAudioFormat() {\n float sampleRate = 16000.0F;\n int sampleSizeInBits = 16;\n int channels = 1;\n boolean signed = true;\n boolean bigEndian = false;\n return new AudioFormat(sampleRate, sampleSizeInBits, channels, signed, bigEndian);\n }",
"double getPitch();",
"public Double bytesPerSecond()\n\t{\n\t\treturn getValue(DataRateUnit.BYTES_PER_SEC);\n\t}",
"public int /* sound_sample */output() {\n\t\treturn Vo;\n\t}",
"float getPreGain();",
"public float getRate() {\n\treturn durationStretch * nominalRate;\n }",
"public int nSamples() {\n return samples.nSamples();\n }",
"public long getSamplingPeriod();",
"float getVideoCaptureRateFactor();",
"public int getSamplingSeconds() {\n return samplingSeconds;\n }",
"public long get_sampleCnt() {\n return (long)getUIntBEElement(offsetBits_sampleCnt(), 32);\n }",
"public float getSoundPitch() {\n return _soundPitch;\n }",
"public double toMetersPerSecond(){\n\t\tdouble mps = mph * 1609.34/3600;\n\t\treturn mps;\n\t}",
"private int m18349l() {\n if (this.f16622p) {\n int minBufferSize = AudioTrack.getMinBufferSize(this.f16625s, this.f16626t, this.f16627u);\n C8514e.m20490b(minBufferSize != -2);\n return C8509F.m20433a(minBufferSize * 4, ((int) m18337c(250000)) * this.f16589I, (int) Math.max((long) minBufferSize, m18337c(750000) * ((long) this.f16589I)));\n }\n int rate = m18332b(this.f16627u);\n if (this.f16627u == 5) {\n rate *= 2;\n }\n return (int) ((((long) rate) * 250000) / 1000000);\n }",
"double getRate();",
"public int getAudioPort();",
"public float getCountRate() {\n return countMonitor.getRate();\n }",
"public float getWavelength() {\n/* 52 */ return this.wavelength;\n/* */ }",
"int getHeartRate();",
"public abstract double samplingFrequency();",
"public int getHPPerSecond() {\n return hPPerSecond_;\n }",
"public AudioFormat getAudioFormat() {\n\t\tif (lastFormatChunk == null)\n\t\t\tthrow new NullPointerException();\n\n\t\treturn new AudioFormat((lastFormatChunk.sampleRate) / 1000f,\n\t\t\t\tlastFormatChunk.sigBitsPerSample, lastFormatChunk.numChannels,\n\t\t\t\tlastFormatChunk.sigBitsPerSample != 8, false);\n\t}",
"public interface AudioHeader\n{\n /**\n * @return the audio file type\n */\n public abstract String getEncodingType();\n\n /**\n * @return the ByteRate of the Audio, this is the total average amount of bytes of data sampled per second\n */\n public Integer getByteRate();\n\n\n\n /**\n * @return the BitRate of the Audio, this is the amount of kilobits of data sampled per second\n */\n public String getBitRate();\n\n /**\n * @return bitRate as a number, this is the amount of kilobits of data sampled per second\n */\n public long getBitRateAsNumber();\n\n\n /**\n *\n * @return length of the audio data in bytes, exactly what this means depends on the audio format\n *\n * TODO currently only used by Wav/Aiff/Flac/Mp4\n */\n public Long getAudioDataLength();\n\n\n /**\n *\n * @return the location in the file where the audio samples start\n *\n * TODO currently only used by Wav/Aiff/Flac/Mp4\n */\n public Long getAudioDataStartPosition();\n\n\n /**\n *\n * @return the location in the file where the audio samples end\n *\n * TODO currently only used by Wav/Aiff/Flac/Mp4\n */\n public Long getAudioDataEndPosition();\n\n\n /**\n * @return the Sampling rate, the number of samples taken per second\n */\n public String getSampleRate();\n\n /**\n * @return he Sampling rate, the number of samples taken per second\n */\n public int getSampleRateAsNumber();\n\n /**\n * @return the format\n */\n public String getFormat();\n\n /**\n * @return the number of channels (i.e 1 = Mono, 2 = Stereo)\n */\n public String getChannels();\n\n /**\n * @return if the sampling bitRate is variable or constant\n */\n public boolean isVariableBitRate();\n\n /**\n * @return track length in seconds\n */\n public int getTrackLength();\n\n /**\n *\n * @return track length as float\n */\n public double getPreciseTrackLength();\n\n /**\n * @return the number of bits in each sample\n */\n public int getBitsPerSample();\n\n /**\n *\n * @return if the audio codec is lossless or lossy\n */\n public boolean isLossless();\n\n /**\n *\n * @return the total number of samples, this can usually be used in conjunction with the\n * sample rate to determine the track duration\n */\n public Long getNoOfSamples();\n}",
"public static int measureHeartRate() {\n\t\treturn HeartRateSensor.getRate(currentRate);\n\t}",
"double sample();",
"public int getLength() { \r\n return audioLength; \r\n }",
"public float getFrequency() { \n \treturn mouseJointDef.frequencyHz; \n }",
"private long getSampleTime() {\n return System.currentTimeMillis();\n\n }",
"float getPostGain();",
"public Double micrometersPerSecond()\n\t{\n\t\treturn getValue(VelocityUnit.MICROMETERS_PER_SECOND);\n\t}",
"public int getHPPerSecond() {\n return hPPerSecond_;\n }",
"int getLastVibrationFrequency();",
"public long getSampleCacheMs() {\n\t\treturn sampleCacheMs;\n\t}",
"public AudioDescriptor getAudioDescriptor();",
"public int getBytesPerSample();",
"public double getSpeedPerFrame(){\r\n\t\treturn speed;\r\n\t}",
"public Builder setSampleRateHertz(int value) {\n\n sampleRateHertz_ = value;\n bitField0_ |= 0x00000002;\n onChanged();\n return this;\n }",
"@Override\n\tprotected void sampleRateChanged()\n\t{\n\t\ttimeStepSize = 1/sampleRate();\n\t}",
"@Override\n\tprotected void sampleRateChanged()\n\t{\n\t\ttimeStepSize = 1/sampleRate();\n\t}",
"double sample()\n\t{\n\t\treturn rb.peek();\n\t}",
"@Override\n public long getMicrosecondLength() {\n return clip.getMicrosecondLength();\n }",
"public float getAmplitude() {\n/* 70 */ return this.amplitude;\n/* */ }",
"public int getSampleSize() {\n return sampleSize;\n }",
"int getSampleSize();",
"public double getBandWidth() {\n\t\treturn bw * _mySampleRate;\n\t}",
"public double getRate() {\r\n\t\treturn (getRate(0)+getRate(1))/2.0;\r\n\t}",
"@Override\r\n\tpublic float soundLevel() {\n\t\treturn 1f;\r\n\t}",
"double getPWMRate();",
"public static int getTempSampleTime() {\n return tempSampleTime;\n }",
"public Double terabytesPerSecond()\n\t{\n\t\treturn getValue(DataRateUnit.TERABYTES_PER_SEC);\n\t}",
"public int getSampleSize(){\n\t\treturn sampleSize;\n\t}",
"public double getRawFrequency() {\n return rawFrequency;\n }",
"public JSlider getFramesPerWavelengthSlider() {\n return framesPerWavelength;\n }",
"Integer networkTickRate();",
"public float getRate(){\r\n return rate;\r\n }",
"public static byte calculateAudioLevel(\n byte[] samples,\n int offset,\n int length)\n { \n double rms = 0; // root mean square (RMS) amplitude\n\n for (; offset < length; offset += 2)\n {\n double sample = ArrayIOUtils.readShort(samples, offset);\n\n sample /= Short.MAX_VALUE;\n rms += sample * sample;\n }\n\n int sampleCount = length / 2;\n\n rms = (sampleCount == 0) ? 0 : Math.sqrt(rms / sampleCount);\n\n double db;\n\n if (rms > 0)\n {\n db = 20 * Math.log10(rms);\n // XXX The audio level is expressed in -dBov.\n db = -db;\n // Ensure that the calculated audio level is within the range\n // between MIN_AUDIO_LEVEL and MAX_AUDIO_LEVEL.\n if (db > MIN_AUDIO_LEVEL)\n db = MIN_AUDIO_LEVEL;\n else if (db < MAX_AUDIO_LEVEL)\n db = MAX_AUDIO_LEVEL;\n }\n else\n {\n db = MIN_AUDIO_LEVEL;\n }\n\n return (byte) db;\n }",
"@Field(5) \n\tpublic AVRational frame_rate() {\n\t\treturn this.io.getNativeObjectField(this, 5);\n\t}"
] |
[
"0.80524457",
"0.7938407",
"0.7804729",
"0.778186",
"0.74449956",
"0.7353209",
"0.72574615",
"0.71965593",
"0.70852214",
"0.7062535",
"0.6971499",
"0.6957952",
"0.695273",
"0.6893425",
"0.68644947",
"0.6840376",
"0.6689246",
"0.6627866",
"0.6556558",
"0.6455756",
"0.6411016",
"0.6403826",
"0.63861936",
"0.63680017",
"0.6364285",
"0.6340663",
"0.6337937",
"0.6335596",
"0.6320291",
"0.6312294",
"0.6300336",
"0.6291717",
"0.6291405",
"0.62542677",
"0.62305367",
"0.6204896",
"0.61894274",
"0.61894274",
"0.618772",
"0.61832565",
"0.61359537",
"0.613108",
"0.613108",
"0.61281455",
"0.612744",
"0.60904795",
"0.60865736",
"0.6080733",
"0.6075123",
"0.6037313",
"0.6014011",
"0.6000365",
"0.5985881",
"0.597676",
"0.59758586",
"0.59645385",
"0.5963384",
"0.59573555",
"0.595016",
"0.5944883",
"0.5930226",
"0.592182",
"0.58846045",
"0.5876773",
"0.58736444",
"0.586407",
"0.5848375",
"0.58341116",
"0.58334774",
"0.5830534",
"0.5820187",
"0.5795995",
"0.57831985",
"0.5779857",
"0.5773888",
"0.5759678",
"0.5753672",
"0.574498",
"0.574493",
"0.5741135",
"0.57321644",
"0.57321644",
"0.5719077",
"0.5711665",
"0.5700732",
"0.568512",
"0.5679762",
"0.56784743",
"0.5672105",
"0.56673974",
"0.56596833",
"0.5655442",
"0.5652755",
"0.5646767",
"0.56412053",
"0.5639772",
"0.5615614",
"0.5588591",
"0.55881137",
"0.55817884"
] |
0.714737
|
8
|
Get the audio sample size.
|
public int getAudioSampleSize() {
return mSampleSize;
}
|
{
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
}
|
[
"public int getSampleSize() {\n return sampleSize;\n }",
"public long getSampleCount() {\r\n\t\tif (audioFile != null) {\r\n\t\t\treturn audioFile.getEffectiveDurationSamples();\r\n\t\t}\r\n\t\treturn 0;\r\n\t}",
"int getSampleSize();",
"public int getSampleSize(){\n\t\treturn sampleSize;\n\t}",
"public final int getSampleSize(int band) {\n return DataBuffer.getDataTypeSize(dataType);\n }",
"public final int[] getSampleSize() {\n int sampleSize[] = new int[numBands];\n int sizeInBits = getSampleSize(0);\n\n for (int i = 0; i < numBands; i++)\n sampleSize[i] = sizeInBits;\n\n return sampleSize;\n }",
"public int nSamples() {\n return samples.nSamples();\n }",
"public static int size_sampleCnt() {\n return (32 / 8);\n }",
"public int getLength() { \r\n return audioLength; \r\n }",
"public long getSampleFrameLength() {\n\t\treturn ais.getFrameLength();\n\t}",
"public int calculateSize( int numSamples )\n {\n return numSamples * 2;\n }",
"public long get_sampleCnt() {\n return (long)getUIntBEElement(offsetBits_sampleCnt(), 32);\n }",
"public int getBytesPerSample();",
"public Rational getAudioSampleRate();",
"long getDuration() {\n if (debugFlag)\n debugPrintln(\"JSChannel:getDuration\");\n\n if (ais == null || audioFormat == null ) {\n if (debugFlag)\n debugPrintln(\"JSChannel: Internal Error getDuration\");\n return (long)Sample.DURATION_UNKNOWN;\n }\n // Otherwise we'll assume that we can calculate this duration\n\n // get \"duration\" of audio stream (wave file)\n // TODO: For True STREAMing audio the size is unknown...\n long numFrames = ais.getFrameLength();\n if (debugFlag)\n debugPrintln(\" frame length = \" + numFrames);\n if (numFrames <= 0)\n return (long)Sample.DURATION_UNKNOWN;\n\n float rateInFrames = audioFormat.getFrameRate();\n rateInHz = audioFormat.getSampleRate();\n if (debugFlag)\n debugPrintln(\" rate in Frames = \" + rateInFrames);\n if (numFrames <= 0)\n return (long)Sample.DURATION_UNKNOWN;\n long duration = (long)((float)numFrames/rateInFrames);\n if (debugFlag)\n debugPrintln(\" duration(based on ais) = \" + duration);\n return duration;\n }",
"public int getSampleRate() {\n for (int rate : new int[]{8000, 11025, 16000, 22050, 44100, 48000}) {\n int buffer = AudioRecord.getMinBufferSize(rate, channel_in, format);\n if (buffer > 0)\n return rate;\n }\n return -1;\n }",
"public int getAudioSampleRate() {\n\t\treturn mSampleRate;\n\t}",
"int getSampleSizeValue(Session session) {\r\n if (sampleSizeExpr == null) {\r\n return 0;\r\n }\r\n Value v = sampleSizeExpr.optimize(session).getValue(session);\r\n if (v == ValueNull.INSTANCE) {\r\n return 0;\r\n }\r\n return v.getInt();\r\n }",
"public static int sizeBits_sampleCnt() {\n return 32;\n }",
"private int determineCalculatedBufferSize() {\n\n float percentOfASecond = (float) BUFFER_SIZE_IN_MS / 1000.0f;\n int numSamplesRequired = (int) ((float) RATE * percentOfASecond);\n int minBufferSize = determineMinimumBufferSize();\n\n int bufferSize;\n // each sample takes two bytes, need a bigger buffer\n if (ENCODING == AudioFormat.ENCODING_PCM_16BIT) {\n bufferSize = numSamplesRequired * 2;\n } else {\n bufferSize = numSamplesRequired;\n }\n\n if (bufferSize < minBufferSize) {\n Log.w(LOG_TAG, \"Increasing buffer to hold enough samples \"\n + minBufferSize + \" was: \" + bufferSize);\n bufferSize = minBufferSize;\n }\n\n return bufferSize;\n }",
"int getSampleMs();",
"public int getPlayLength()\n\t{\n\t\treturn playbackLength;\n\t}",
"int getSoundLen(File sndFile) {\n\t\tif (sndFile == null) {\n\t\t\treturn 0;\n\t\t}\n\t\tAudioInputStream audioInputStream;\n\t\ttry {\n\t\t\taudioInputStream = AudioSystem.getAudioInputStream(sndFile);\n\t\t\tAudioFormat format = audioInputStream.getFormat();\n\t\t\tlong frames = audioInputStream.getFrameLength();\n\t\t\taudioInputStream.close();\n\t\t\treturn (int) (frames / format.getFrameRate());\n\t\t} catch (Exception e) {\n\t\t\tlog.error(\"Horrible hack blew up, karma\", e);\n\t\t\treturn 0;\n\t\t}\n\t}",
"public int getAudiobitrate() {\n return audiobitrate;\n }",
"public ReactorResult<java.lang.Integer> getAllAudiofileSize_as() {\r\n\t\treturn Base.getAll_as(this.model, this.getResource(), AUDIOFILESIZE, java.lang.Integer.class);\r\n\t}",
"public int getSampleRate() {\n return sampleRate;\n }",
"private int getBufferSize() {\n int maxBandOff = bandOffsets[0];\n for (int i = 1; i < bandOffsets.length; i++) {\n maxBandOff = Math.max(maxBandOff, bandOffsets[i]);\n }\n\n if (maxBandOff < 0 || maxBandOff > (Integer.MAX_VALUE - 1)) {\n throw new IllegalArgumentException(\"Invalid band offset\");\n }\n\n if (pixelStride < 0 || pixelStride > (Integer.MAX_VALUE / width)) {\n throw new IllegalArgumentException(\"Invalid pixel stride\");\n }\n\n if (scanlineStride < 0 || scanlineStride > (Integer.MAX_VALUE / height)) {\n throw new IllegalArgumentException(\"Invalid scanline stride\");\n }\n\n int size = maxBandOff + 1;\n\n int val = pixelStride * (width - 1);\n\n if (val > (Integer.MAX_VALUE - size)) {\n throw new IllegalArgumentException(\"Invalid pixel stride\");\n }\n\n size += val;\n\n val = scanlineStride * (height - 1);\n\n if (val > (Integer.MAX_VALUE - size)) {\n throw new IllegalArgumentException(\"Invalid scan stride\");\n }\n\n size += val;\n\n return size;\n }",
"public static double getTrackLength(URL trackAddress) throws UnsupportedAudioFileException,\r\n IOException {\r\n AudioInputStream stream = AudioSystem.getAudioInputStream(trackAddress);\r\n AudioFormat f = stream.getFormat();\r\n return stream.getFrameLength() / f.getFrameRate();\r\n }",
"public static int size_reading() {\n return (16 / 8);\n }",
"@Field(7) \n\tpublic int sample_rate() {\n\t\treturn this.io.getIntField(this, 7);\n\t}",
"public double getBandWidth() {\n\t\treturn bw * _mySampleRate;\n\t}",
"@java.lang.Override\n public int getAudioChannelCount() {\n return audioChannelCount_;\n }",
"public int getSamplingRate( ) {\r\n return samplingRate;\r\n }",
"@java.lang.Override\n public int getAudioChannelCount() {\n return audioChannelCount_;\n }",
"public float getScale_length() throws IOException\n\t{\n\t\tif ((__io__pointersize == 8)) {\n\t\t\treturn __io__block.readFloat(__io__address + 0);\n\t\t} else {\n\t\t\treturn __io__block.readFloat(__io__address + 0);\n\t\t}\n\t}",
"public static int computeSampleSize(float scale) {\n Utils.assertTrue(scale > 0);\n int initialSize = Math.max(1, (int) FloatMath.ceil(1 / scale));\n \n return initialSize <= 8\n ? Utils.nextPowerOf2(initialSize)\n : (initialSize + 7) / 8 * 8;\n }",
"public float getSampleRate();",
"private static int calculateInSampleSize(Options options, int reqWidth, int reqHeight) {\n\t\tfinal int height = options.outHeight;\r\n\t\tfinal int width = options.outWidth;\r\n\t\tint inSampleSize = 1;\r\n\r\n\t\tif (height > reqHeight || width > reqWidth) {\r\n\t\t\tif (width > height) {\r\n\t\t\t\tinSampleSize = Math.round((float) height / (float) reqHeight);\r\n\t\t\t} else {\r\n\t\t\t\tinSampleSize = Math.round((float) width / (float) reqWidth);\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t\treturn inSampleSize;\r\n\t}",
"public static int size_quality() {\n return (16 / 8);\n }",
"public Integer getSampleRate() {\n return this.sampleRate;\n }",
"@Override\n public long getMicrosecondLength() {\n return clip.getMicrosecondLength();\n }",
"int getNumSampleDimensions();",
"public void setSampleSize(int value) {\n this.sampleSize = value;\n }",
"public int samplesOnePixel() {\r\n\t\tif (getGraphWidth() > 0) {\r\n\t\t\t// avoid division by zero\r\n\t\t\treturn section.getLength() / getGraphWidth();\r\n\t\t}\r\n\t\treturn 1;\r\n\t}",
"public int getUploadBandwidth();",
"private int calculateInSampleSize(Options options, int reqWidth,\n\t\t\t\tint reqHeight) {\n\t\t\tfinal int height = options.outHeight;\n\t\t\tfinal int width = options.outWidth;\n\t\t\tint inSampleSize = 1;\n\t\t\t\n\t\t\tif (height > reqHeight || width > reqWidth){\n\t\t\t\tif(width > height){ // 작은 크기에 맞춰서 줄이는데 왜? // 큰키게에 맞춰서 줄여야지 여백이 생기더라도 이미지가 잘리지 않을 텐데\n\t\t\t\t\t//600,800경우와 300, 80 경우를 생각을 해보면 req100,100일때... 맞는거 같은데 궁금\n\t\t\t\t\t//그래서 내 생각대로 바꿈\n\t\t\t\t\tinSampleSize = Math.round((float)width / (float)reqWidth);\t\t\t\t\t\n\t\t\t\t} else{\n\t\t\t\t\tinSampleSize = Math.round((float)height / (float)reqHeight);\n\t\t\t\t}\n\t\t\t}\t\t\t\n\t\t\treturn inSampleSize;\n\t\t}",
"public int getSampleRate() {\n return 0;\n }",
"public double getOptimalDataSampleBufferSizeInShortsAccurate(int intAudioSampleRate) {\n double fltPageSizeInSecs = intPageSizeInMs/1000f;\n double floatShortSamplesPerPage = intAudioSampleRate * fltPageSizeInSecs;\n double floatShortSamplesPerRmsValue = floatShortSamplesPerPage/rectGraph.width();\n return floatShortSamplesPerRmsValue;\n }",
"public int getSamplingRate() {\n return samplingRate;\n }",
"public int length()\n\t{\n\t\tif ( properties != null && properties.containsKey(\"ogg.length.bytes\") )\n\t\t{\n\t\t\tlengthInMillis = VobisBytes2Millis((Integer)properties.get(\"ogg.length.bytes\"));\n\t\t\tSystem.out.println(\"GOT LENGTH: \"+lengthInMillis);\n\t\t}\n\t\telse\n\t\t{\n\t\t\tlengthInMillis = -1;\n\t\t}\n\t\treturn (int)lengthInMillis;\n\t}",
"public int getLengthInBytes()\n \t{\n \t\treturn FormatableBitSet.numBytesFromBits(lengthAsBits);\n \t}",
"public static int getSIZE() {\n return SIZE;\n }",
"public double getTotalSignalCount(){\n\t\tdouble total=0;\n\t\tfor(Sample s: signalSamples)\n\t\t\ttotal += s.getHitCount();\n\t\treturn total;\n\t}",
"public double getSize()\n\t{\n\t\treturn size;\n\t}",
"public float getSize() {\n return bufSize;\n }",
"public short get_length() {\n return (short)getUIntElement(offsetBits_length(), 8);\n }",
"public int getSampleRate() {\r\n\treturn SAMPLES_IN_SECOND;\r\n}",
"public int getAudioDscp();",
"public float getFrequency() {\n Integer sR = (Integer)sampleRate.getSelectedItem();\n int intST = sR.intValue();\n int intFPW = framesPerWavelength.getValue();\n\n return (float)intST/(float)intFPW;\n }",
"public static int size_count() {\n return (16 / 8);\n }",
"protected int pixelOneSample() {\r\n\t\treturn getGraphWidth() / section.getLength();\r\n\t}",
"public int GetSize() {\n\t\tif(this.V == 0) {\n\t\t\t\n\t\t\t// Read from settings file\n\t\t\ttry {\n\t\t\t\tBufferedReader br = new BufferedReader(new FileReader(\"settings.txt\"));\n\t\t\t\tString line;\n\t\t\t\tif((line = br.readLine()) != null) {\n\t\t\t\t\tthis.V = Integer.parseInt(line.split(\" \")[1]);\n\t\t\t\t}\n\t\t\t} catch(IOException e) {\n\t\t\t\te.printStackTrace();\n\t\t\t}\n\t\t\t\n\t\t}\n\t\treturn this.V;\n\t}",
"public static int size_length() {\n return (8 / 8);\n }",
"public Double bytesPerSecond()\n\t{\n\t\treturn getValue(DataRateUnit.BYTES_PER_SEC);\n\t}",
"public int getSizeBytes() {\n if (getDataType() == DataType.SEQUENCE)\n return getDataType().getSize();\n else if (getDataType() == DataType.STRING)\n return getDataType().getSize();\n else if (getDataType() == DataType.STRUCTURE)\n return size * members.getStructureSize();\n // else if (this.isVariableLength())\n // return 0; // do not know\n else\n return size * getDataType().getSize();\n }",
"public static int totalSize_data() {\n return (480 / 8);\n }",
"public double getLength() {\n return count;\n }",
"public double Length() {\n return OCCwrapJavaJNI.Units_Dimensions_Length(swigCPtr, this);\n }",
"public static int computeSampleSizeLarger(float scale) {\n int initialSize = (int) FloatMath.floor(1f / scale);\n if (initialSize <= 1) return 1;\n\n return initialSize <= 8\n ? Utils.prevPowerOf2(initialSize)\n : initialSize / 8 * 8;\n }",
"public int getLength() {\n return mySize.getLength();\n }",
"public double getSize() {\n return size_;\n }",
"public int getRecordSize() {\n\t\treturn this.buffer.getRecordSize();\n\t\t}",
"public JSlider getFramesPerWavelengthSlider() {\n return framesPerWavelength;\n }",
"public float getWavelength() {\n/* 52 */ return this.wavelength;\n/* */ }",
"public static int computeSampleSizeLarger(float scale) {\n int initialSize = (int) Math.floor(1f / scale);\n if (initialSize <= 1) return 1;\n\n return initialSize <= 8\n ? Utils.prevPowerOf2(initialSize)\n : initialSize / 8 * 8;\n }",
"public float getSize() {\n return size;\n }",
"public double getSize() {\n return size_;\n }",
"public int size()\n\t{\n\t\treturn numOfSongs;\n\t}",
"public float getSize()\n {\n return size;\n }",
"public float getSize() {\n\t\treturn size;\n\t}",
"public int /* sound_sample */output() {\n\t\treturn Vo;\n\t}",
"public double getOutputSizeInBytes()\n {\n return totalSize;\n }",
"@Override\n\tpublic double getLength() {\n \tdouble muscleLength = myAmplitude * Math.sin(myPie);\n\t\tmyPie += myFrequency;\n\t\treturn muscleLength;\n }",
"public double sizeMeters() {\n return this.size_meters;\n }",
"public static byte getSize() {\n return SIZE;\n }",
"public double get_length() {\n\t\treturn _length;\n\t}",
"public int getNumberOfSpectra() {\r\n return nSpectrum;\r\n }",
"public double getMusicDuration() {\n if (music == null) {\n return -1;\n }\n \n return music.getDuration();\n }",
"public static ReactorResult<java.lang.Integer> getAllAudiofileSize_as(Model model, org.ontoware.rdf2go.model.node.Resource instanceResource) {\r\n\t\treturn Base.getAll_as(model, instanceResource, AUDIOFILESIZE, java.lang.Integer.class);\r\n\t}",
"public long getMeasFrequencyHz() {\r\n return measFrequencyHz;\r\n }",
"float getLength();",
"float getLength();",
"public int getLength()\n {\n return stream.getInt(COSName.LENGTH, 0);\n }",
"public double getSize() \n {\n return size;\n }",
"public void setSampleSize(int size){\r\n\t\tSampleSize = size;\r\n\t}",
"public int getAudioPort();",
"public int getNumberOfSpectraPerFraction() {\n return numberOfSpectraPerFraction;\n }",
"double getSize();",
"public int SampleNum() {\n\t\treturn sample_map.size();\n\t}",
"public Number getSizeP() {\n return (Number)getAttributeInternal(SIZEP);\n }"
] |
[
"0.76030284",
"0.75803703",
"0.75713485",
"0.7541602",
"0.7314392",
"0.72587305",
"0.72096056",
"0.7148841",
"0.71044654",
"0.7085747",
"0.70190156",
"0.69505465",
"0.68396914",
"0.6741112",
"0.673192",
"0.65913236",
"0.65806115",
"0.64635813",
"0.6405206",
"0.6365599",
"0.63638157",
"0.63375217",
"0.6325876",
"0.6315973",
"0.62445885",
"0.62366796",
"0.6196813",
"0.6184341",
"0.61620384",
"0.6149503",
"0.6134364",
"0.61325866",
"0.613196",
"0.60998213",
"0.6091251",
"0.6039833",
"0.59937173",
"0.59857905",
"0.59843546",
"0.5958913",
"0.5957455",
"0.59512347",
"0.59287256",
"0.59278613",
"0.59117013",
"0.59097815",
"0.5894377",
"0.5890458",
"0.5881694",
"0.5873506",
"0.5868702",
"0.5837745",
"0.58353055",
"0.5820938",
"0.580996",
"0.58006716",
"0.5795353",
"0.57942325",
"0.57874894",
"0.5784317",
"0.5784009",
"0.5782685",
"0.57798576",
"0.5774616",
"0.5761299",
"0.57572955",
"0.57514507",
"0.5749844",
"0.5749156",
"0.5747003",
"0.5743665",
"0.57435477",
"0.57427156",
"0.5732911",
"0.573155",
"0.573071",
"0.5725096",
"0.5713132",
"0.5709348",
"0.57046914",
"0.5699179",
"0.569623",
"0.5694593",
"0.5691537",
"0.56885093",
"0.5688477",
"0.5688434",
"0.56883746",
"0.5673294",
"0.566176",
"0.56541014",
"0.56541014",
"0.5652872",
"0.5652465",
"0.5647408",
"0.56470394",
"0.563643",
"0.56322974",
"0.5629796",
"0.5625981"
] |
0.8780764
|
0
|
Find out if the audio stream is present.
|
public boolean isAudioStereo() {
return mStereo;
}
|
{
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
}
|
[
"public boolean hasAudio() {\n\t\treturn this.recordingProperties.hasAudio();\n\t}",
"public boolean isAudioPlaying() {\n\t\tif (android.os.Environment.getExternalStorageState().equals(android.os.Environment.MEDIA_MOUNTED)) {\n\t\t\treturn mPlayer.isPlaying();\n\t\t} else {\n\t\t\treturn false;\n\t\t}\n\t}",
"public boolean isSetAudioSpan() {\n return this.audioSpan != null;\n }",
"boolean isSoundPlaying() {\n return (audioTrack.getPlayState() == AudioTrack.PLAYSTATE_PLAYING);\n }",
"private boolean findSound(boolean stream){\r\n try{\r\n \tString type = name.substring(name.length() - 3).toUpperCase();\r\n \tString path = Data.DIR_PATH + \"res\" + Data.SEP + \"sfx\" + Data.SEP + name;\r\n \tif(stream){\r\n \t\tsound = AudioLoader.getStreamingAudio(type, ResourceLoader.getResource(path));\r\n \t}else{\r\n \t\tsound = AudioLoader.getAudio(type, ResourceLoader.getResourceAsStream(path));\r\n \t}\r\n\t\t}catch(Exception e){\r\n\t\t\te.printStackTrace();\r\n\t\t\treturn false;\r\n\t\t}\r\n\t\treturn true;\r\n\t}",
"boolean hasMediaFile();",
"boolean hasIosAppDataStream();",
"public boolean isAudio() {\n\t\t\treturn this == AUDIO;\n\t\t}",
"public boolean isPlaying() {\n\t\treturn AL10.alGetSourcei(id, AL10.AL_SOURCE_STATE) == AL10.AL_PLAYING;\n\t}",
"public boolean isAnyAudioPolicyRegistered() {\n return !registeredAudioPolicies.isEmpty();\n }",
"public boolean hasSoundFont() {\n\t\treturn soundFont != null;\n\t}",
"public boolean isAudio()\n {return false ;\n }",
"public boolean isAudioChannelAvailable()\n {\n return (0 != getAudioOOBSourceID() || 0 != this.m_audioFileSources.size() || this.m_audioDescriptorAvailable);\n }",
"boolean checkAudioRecord() {\n try {\n audioRecord = new AudioRecord(\n audioBundle.getInt(AudioSettings.AUDIO_BUNDLE_KEYS[0]),\n audioBundle.getInt(AudioSettings.AUDIO_BUNDLE_KEYS[1]),\n audioBundle.getInt(AudioSettings.AUDIO_BUNDLE_KEYS[2]),\n audioBundle.getInt(AudioSettings.AUDIO_BUNDLE_KEYS[3]),\n audioBundle.getInt(AudioSettings.AUDIO_BUNDLE_KEYS[4]));\n MainActivity.logger(context.getString(R.string.audio_check_4));\n // need to start reading buffer to trigger an exception\n audioRecord.startRecording();\n short buffer[] = new short[audioBundle.getInt(AudioSettings.AUDIO_BUNDLE_KEYS[4])];\n int audioStatus = audioRecord.read(buffer, 0, audioBundle.getInt(AudioSettings.AUDIO_BUNDLE_KEYS[4]));\n\n // check for error on pre 6.x and 6.x API\n if(audioStatus == AudioRecord.ERROR_INVALID_OPERATION\n || audioStatus == AudioRecord.STATE_UNINITIALIZED) {\n MainActivity.logger(context.getString(R.string.audio_check_6) + audioStatus);\n // audioStatus == 0(uninitialized) is an error, does not throw exception\n MainActivity.logger(context.getString(R.string.audio_check_5));\n return false;\n }\n }\n catch(Exception e) {\n MainActivity.logger(context.getString(R.string.audio_check_7));\n MainActivity.logger(context.getString(R.string.audio_check_9));\n return false;\n }\n // no errors\n if (audioRecord != null) {\n audioRecord.stop();\n audioRecord.release();\n }\n MainActivity.logger(context.getString(R.string.audio_check_8));\n return true;\n }",
"boolean hasMultimediaData();",
"public boolean isSpeaking() {\n return (mSelf.mIsSpeaking && (mSpeechQueue.size() < 1));\n }",
"public static boolean isSound() {\n return sound;\n }",
"@java.lang.Override\n public boolean hasSpeechEventOffset() {\n return speechEventOffset_ != null;\n }",
"public boolean isSilent() {\n for(int iSndGrp = 0, i = 0;\n iSndGrp < XaAdpcmDecoder.ADPCM_SOUND_GROUPS_PER_SECTOR;\n iSndGrp++, i += XaAdpcmDecoder.SIZEOF_SOUND_GROUP)\n {\n // just check if all ADPCM values are 0\n for (int j = 16; j < XaAdpcmDecoder.SIZEOF_SOUND_GROUP; j++) {\n if (getCdSector().readUserDataByte(i+j) != 0)\n return false;\n }\n }\n return true;\n }",
"public boolean getAcceptsAudio() {\n\n return m_acceptsAudio;\n }",
"private static boolean mediaExists(String url){\n try {\n /* Do not follow redirects */\n HttpURLConnection.setFollowRedirects(false);\n \n /* Open a connection to the media */\n HttpURLConnection con = (HttpURLConnection) new URL(url).openConnection();\n \n /* Use a head only request to just retrieve metadata */\n con.setRequestMethod(\"HEAD\");\n \n /* If a response code of 200 (okay) is received, the media is available */\n return (con.getResponseCode() == HttpURLConnection.HTTP_OK);\n } catch (Exception e) {\n /* Media unavailabe, return false */\n return false;\n }\n }",
"public boolean is_set_streams() {\n return this.streams != null;\n }",
"public boolean soundDeviceCanPlayback(String device);",
"public boolean isSoundPlaying(ISound sound) {\n/* 333 */ if (!this.loaded)\n/* */ {\n/* 335 */ return false;\n/* */ }\n/* */ \n/* */ \n/* 339 */ String s = this.invPlayingSounds.get(sound);\n/* */ \n/* 341 */ if (s == null)\n/* */ {\n/* 343 */ return false;\n/* */ }\n/* */ \n/* */ \n/* 347 */ return !(!this.sndSystem.playing(s) && (!this.playingSoundsStopTime.containsKey(s) || ((Integer)this.playingSoundsStopTime.get(s)).intValue() > this.playTime));\n/* */ }",
"public boolean isSound() {\n\t\treturn true;\n\t}",
"public static boolean musicPlaying()\r\n\t{\r\n\t\tif ( musicPlayer == null )\r\n\t\t\treturn false;\r\n\t\telse\r\n\t\t\treturn musicPlayer.isPlaying();\r\n\t}",
"public boolean hasPlayList(){\n return numPlayList < MAX_PLAYLIST;\n }",
"public boolean poll()\n {\n if (this.mediaPlayer == null)\n {\n return false;\n }\n\n return mediaPlayer.getStatus().equals(MediaPlayer.Status.PLAYING);\n }",
"@Override\r\n\tpublic boolean isPlaying() {\n\t\treturn mediaPlayer.isPlaying();\r\n\t}",
"public boolean isPlaying() {\n return params.isPlay();\n }",
"boolean hasSendReading();",
"@java.lang.Override\n public boolean hasPlayready() {\n return playready_ != null;\n }",
"public boolean playing() {\n\t\treturn sound.isPlaying();\n\t}",
"public boolean isMetaDataAvailable()\n\t{\n\t\tboolean allLoaded = true;\n\t\ttry \n\t\t{\n\t\t\t// we need to ask the session since our fileinfocache will hide the exception\n\t\t\tSwfInfo[] swfs = m_session.getSwfs();\n\t\t\tfor(int i=0; i<swfs.length; i++)\n\t\t\t{\n\t\t\t\t// check if our processing is finished.\n\t\t\t\tSwfInfo swf = swfs[i];\n\t\t\t\tif (swf != null && !swf.isProcessingComplete())\n\t\t\t\t{\n\t\t\t\t\tallLoaded = false;\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\tcatch(NoResponseException nre)\n\t\t{\n\t\t\t// ok we still need to wait for player to read the swd in\n\t\t\tallLoaded = false;\n\t\t}\n\n\t\t// count the number of times we checked and it wasn't there\n\t\tif (!allLoaded)\n\t\t{\n\t\t\tint count = propertyGet(METADATA_NOT_AVAILABLE);\n\t\t\tcount++;\n\t\t\tpropertyPut(METADATA_NOT_AVAILABLE, count);\n\t\t}\n\t\telse\n\t\t{\n\t\t\t// success so we reset our attempt counter\n\t\t\tpropertyPut(METADATA_ATTEMPTS, METADATA_RETRIES);\n\t\t}\n\t\treturn allLoaded;\n\t}",
"private boolean alreadyStarted() {\n\t\treturn this.buffer.length() > 0;\n\t}",
"private boolean readyPlayer() {\n switch (this.state) {\n case MEDIA_NONE:\n if (this.player == null) {\n //TODO: Agregar buffer (this, audiobuffer, decoderbuffer).\n this.player = new MultiPlayer(this);\n this.setState(STATE.MEDIA_STARTING);\n return true;\n }\n case MEDIA_LOADING:\n //cordova js is not aware of MEDIA_LOADING, so we send MEDIA_STARTING instead\n LOG.d(LOG_TAG, \"StreamPlayer Loading: startPlaying() called during media preparation: \" + STATE.MEDIA_STARTING.ordinal());\n return false;\n case MEDIA_STARTING:\n case MEDIA_RUNNING:\n case MEDIA_PAUSED:\n case MEDIA_STOPPED:\n return true;\n default:\n LOG.d(LOG_TAG, \"StreamPlayer Error: startPlaying() called during invalid state: \" + this.state);\n sendErrorStatus(MEDIA_ERR_ABORTED);\n }\n return false;\n }",
"boolean hasDecodedAudioTimeoutMs();",
"boolean hasDecodedAudioTimeoutMs();",
"public boolean hasRequestStreaming()\n {\n return requestStreaming;\n }",
"public boolean isPlaying(int sample) {\n\t\t\treturn m_soundManager.isPlaying(sample);\n\t\t}",
"public boolean hasSendReading() {\n return sendReading_ != null;\n }",
"boolean hasPlayready();",
"public boolean hasSpeechEventOffset() {\n return ((bitField0_ & 0x00000004) != 0);\n }",
"public boolean isValidSong() { \n\t\tString filepath = aFilePath.toString();\n\t\tFile f = new File(filepath);\n\t\treturn f.exists();\n\t}",
"boolean hasChannel();",
"boolean hasChannel();",
"boolean hasPlaySingleCardResponse();",
"Boolean isPlaying() {\n return execute(\"player.playing\");\n }",
"boolean anyAudioTriggered() {\n for (final Datum d : this.datumList) {\n if (d instanceof Cell) {\n final Cell c = (Cell)d;\n if (c.isAudioTriggered())\n return true;\n }\n }\n\n return false;\n }",
"boolean hasHadithVolumeNo();",
"public boolean checkAvailability(Media media) {\n\t\t return false;\n\t }",
"public boolean hasSong(){\n return numSongs < MAX_SONG;\n }",
"public boolean getAudioEnabled() {\n SharedPreferences prefs = PreferenceManager.getDefaultSharedPreferences(this);\n return prefs.getBoolean(\"audio_output_switch\", true);\n }",
"public boolean exists() {\n try {\n return open() != null;\n } catch (IOException e) {\n return false;\n }\n }",
"@VisibleForTesting\n public boolean connectAudio(byte[] address) {\n return connectAudioNative(address);\n }",
"boolean isPlayable();",
"public boolean isPresent() {\n return exists();\n }",
"public boolean hasMediaAssetFileHolder() {\n return mediaAssetFileHolder_ != null;\n }",
"public boolean isPlaying() {\n\t\tif(currentPlayingItem==null) return false;\n\t\treturn mediaPlayer.isPlaying();\n\t}",
"public boolean hasMediaAssetFileHolder() {\n return instance.hasMediaAssetFileHolder();\n }",
"@Override\n public boolean isPlaying()\n {\n final String funcName = \"isPlaying\";\n\n if (debugEnabled)\n {\n dbgTrace.traceEnter(funcName, TrcDbgTrace.TraceLevel.API);\n dbgTrace.traceExit(funcName, TrcDbgTrace.TraceLevel.API, \"=%s\", Boolean.toString(playing));\n }\n\n return playing;\n }",
"boolean isLocalVideoStreaming(Call call);",
"private void isAudio(MultipartFile file) {\n\t\t\n\t}",
"boolean hasPlayCardRequest();",
"public boolean inAnySession() {\n\t\treturn getSession(player).isPresent();\n\t}",
"public boolean isSoundPlaybackEnabled()\r\n {\r\n return isSoundPlaybackEnabled;\r\n }",
"private boolean canRecognizeSpeechInput() {\n final Activity activity = getActivity();\n if (activity != null) {\n final List<ResolveInfo> activities = activity.getPackageManager()\n .queryIntentActivities(new Intent(RecognizerIntent.ACTION_RECOGNIZE_SPEECH), 0);\n\n if (activities.size() > 0) {\n return true;\n }\n else {\n return false;\n }\n }\n else {\n return false;\n }\n }",
"public boolean hasDatastream(String pid, String dsName) throws IOException, FedoraException {\r\n GetMethod get = new GetMethod(this.fedoraBaseUrl + \"/objects/\" + pid + \"/datastreams?format=xml\");\r\n try {\r\n client.executeMethod(get);\r\n InputStream is = get.getResponseBodyAsStream();\r\n boolean hasDs = (readStream(is, get.getResponseCharSet()).indexOf(\"dsid=\\\"\" + dsName + \"\\\"\") != -1);\r\n is.close();\r\n return hasDs;\r\n } finally {\r\n get.releaseConnection();\r\n }\r\n }",
"protected InputStream getAudioStream()\n\t{\n\t\tInputStream in = null;\n\t\t\n\t\ttry\n\t\t{\n\t\t\tURL url = getAudioURL();\n\t\t\tif (url!=null)\t\t\t\n\t\t\t\tin = url.openStream();\n\t\t}\n\t\tcatch (IOException ex)\n\t\t{\n\t\t\tSystem.err.println(ex);\n\t\t}\n\t\treturn in;\n\t}",
"private boolean isReadAudioAllowed() {\n int result = ContextCompat.checkSelfPermission(this, Manifest.permission.RECORD_AUDIO);\n\n //If permission is granted returning true\n if (result == PackageManager.PERMISSION_GRANTED)\n return true;\n\n //If permission is not granted returning false\n return false;\n }",
"public boolean isPlaying(MediaController mediaController) {\n boolean z = false;\n if (mediaController == null) {\n return false;\n }\n PlaybackState playbackState = mediaController.getPlaybackState();\n if (playbackState == null) {\n return false;\n }\n if (playbackState.getState() == 3) {\n z = true;\n }\n return z;\n }",
"public boolean isPlaying() {\n\t\treturn state == State.INGAME;\n\t}",
"boolean getStream();",
"boolean hasPostEndOfAudioTimeoutMs();",
"boolean hasPitch();",
"boolean hasPitch();",
"public static boolean isSongAvailable(Song details) {\n\t\tSongsDao dao = new SongsDao();\n\t\treturn dao.isSongAlreadyAvailable(details);\n\t}",
"boolean hasSource();",
"public boolean playsSound() {\r\n\t\treturn playsSound;\r\n\t}",
"public boolean connectAudio(String address) {\n if (mHearingAidDevicesByAddress.containsKey(address)) {\n if (mBluetoothHearingAidService == null) {\n Log.w(this, \"Attempting to turn on audio when the hearing aid service is null\");\n return false;\n }\n return mBluetoothAdapterProxy.setActiveDevice(\n mHearingAidDevicesByAddress.get(address),\n BluetoothAdapter.ACTIVE_DEVICE_ALL);\n } else if (mHfpDevicesByAddress.containsKey(address)) {\n BluetoothDevice device = mHfpDevicesByAddress.get(address);\n if (mBluetoothHeadsetService == null) {\n Log.w(this, \"Attempting to turn on audio when the headset service is null\");\n return false;\n }\n boolean success = mBluetoothAdapterProxy.setActiveDevice(device,\n BluetoothAdapter.ACTIVE_DEVICE_PHONE_CALL);\n if (!success) {\n Log.w(this, \"Couldn't set active device to %s\", address);\n return false;\n }\n if (!mBluetoothHeadsetService.isAudioOn()) {\n return mBluetoothHeadsetService.connectAudio();\n }\n return true;\n } else {\n Log.w(this, \"Attempting to turn on audio for a disconnected device\");\n return false;\n }\n }",
"public boolean isPlaying(StarObjectClass self){ \r\n \t\tStarCLEMediaPlayer mediaplayer = (StarCLEMediaPlayer)WrapAndroidClass.GetAndroidObject(self,\"AndroidObject\");\r\n \t\tif( mediaplayer == null )\r\n \t\t\treturn false;\r\n \t\treturn mediaplayer.isPlaying();\r\n \t}",
"boolean hasSubscription();",
"public static boolean hasAudioExtension(String string)\n {\n \tboolean hasAudio = false;\n \tif(!Util.isEmptyString(string))\n \t{\n\t \tString fn = string.toLowerCase(Locale.getDefault());\n\t \tif(\tfn.endsWith(\"3gp\") || fn.endsWith(\"mp4\") ||\tfn.endsWith(\"m4a\") || fn.endsWith(\"aac\") ||\n\t \t\tfn.endsWith(\"ts\") || fn.endsWith(\"flac\") ||\tfn.endsWith(\"mp3\") || fn.endsWith(\"mid\") || \n\t \t\tfn.endsWith(\"xmf\") || fn.endsWith(\"mxmf\")|| fn.endsWith(\"rtttl\") || fn.endsWith(\"rtx\") || \n\t \t\tfn.endsWith(\"ota\") || fn.endsWith(\"imy\")|| fn.endsWith(\"ogg\") || fn.endsWith(\"mkv\") ||\n\t \t\tfn.endsWith(\"wav\") || fn.endsWith(\"wma\")\n\t \t\t) \n\t \t\thasAudio = true;\n \t}\n \treturn hasAudio;\n }",
"public boolean exists() {\r\n\t\t// Try file existence: can we find the file in the file system?\r\n\t\ttry {\r\n\t\t\treturn getFile().exists();\r\n\t\t}\r\n\t\tcatch (IOException ex) {\r\n\t\t\t// Fall back to stream existence: can we open the stream?\r\n\t\t\ttry {\r\n\t\t\t\tInputStream is = getInputStream();\r\n\t\t\t\tis.close();\r\n\t\t\t\treturn true;\r\n\t\t\t}\r\n\t\t\tcatch (Throwable isEx) {\r\n\t\t\t\treturn false;\r\n\t\t\t}\r\n\t\t}\r\n\t}",
"public boolean isPlaying() {\n\t\treturn mIsSupposedToBePlaying;\n\t}",
"public boolean isPlaying() {\n return state.isActive();\n }",
"public boolean isSoundNotificationEnabled()\r\n {\r\n return isSoundNotificationEnabled;\r\n }",
"default boolean isAvailable() {\n switch (getState()) {\n case STOPPED:\n return true;\n case STARTING:\n return false;\n case STARTED:\n return false;\n case STOPPING:\n return false;\n default:\n throw new IllegalStateException(\"The speaker state is in an unknown state\");\n }\n }",
"public boolean checkVoiceRecognition() {\n\t\tPackageManager pm = context.getPackageManager();\n\t\tList<ResolveInfo> activities = pm.queryIntentActivities(new Intent(\n\t\t\t\tRecognizerIntent.ACTION_RECOGNIZE_SPEECH), 0);\n\t\tif (activities.size() == 0) {\n\t\t\tToast.makeText(context, \"Voice recognizer not present\",\n\t\t\t\t\tToast.LENGTH_SHORT).show();\n\t\t\treturn false;\n\t\t}\n\t\treturn true;\n\t}",
"public boolean isMusicActive() {\n return mAudioManager.isMusicActive();\n }",
"public boolean hasPlayerInfo()\n {\n return this.getPlayerInfo() != null;\n }",
"public boolean getRingDuringIncomingEarlyMedia();",
"public boolean isDeDuplicateAudio() {\n String deDuplicateAudio = getDbProperties().getProperty(Constants.DE_DUPLICATE_AUDIO);\n return deDuplicateAudio != null && deDuplicateAudio.equalsIgnoreCase(\"true\");\n }",
"boolean hasVolume();",
"@Test\r\n\tpublic void verifyAudioLoadedSuccessfully(){\r\n\t\tdriver.get(audioUrl2);\r\n\t\tObject response = jse.executeScript(\r\n\t\t\t\t\"if(document.readyState === 'complete'){\"\r\n\t\t\t\t+ \"if(document.getElementsByClassName('rp__playingItem__overlay')[0] != null && document.getElementById('player') != null){\"\r\n\t\t\t\t+ \"return true;}}\", \"\");\r\n\t\tAssert.assertTrue(((Boolean)response).booleanValue(), \"Audio not loaded as expected\");\r\n\t}",
"public boolean hasResponseStreaming()\n {\n return responseStreaming;\n }",
"boolean hasVideo();",
"public boolean hasSendReading() {\n return sendReadingBuilder_ != null || sendReading_ != null;\n }",
"public boolean isPlaying() {\n return isPlaying(mController);\n }",
"public boolean isPlaying() {\n \t\treturn isPlaying;\n \t}",
"public boolean isPresent() {\n return platform.isPresent() || application.isPresent();\n }"
] |
[
"0.71586907",
"0.6479558",
"0.64533573",
"0.6445227",
"0.63591427",
"0.6329908",
"0.63067555",
"0.6303502",
"0.6223547",
"0.6221517",
"0.6221046",
"0.62097263",
"0.61611414",
"0.61238027",
"0.6119786",
"0.6077582",
"0.6059635",
"0.6056561",
"0.6002174",
"0.5982568",
"0.5956323",
"0.59162176",
"0.5883746",
"0.58816403",
"0.5880923",
"0.58776814",
"0.5867901",
"0.586639",
"0.58530444",
"0.5843786",
"0.58125824",
"0.5773609",
"0.57732177",
"0.57654595",
"0.57322484",
"0.57205606",
"0.570114",
"0.570114",
"0.56880265",
"0.5675049",
"0.5661016",
"0.5658513",
"0.5640602",
"0.5634238",
"0.5618096",
"0.5618096",
"0.56116676",
"0.56086993",
"0.56059736",
"0.5605093",
"0.5591659",
"0.55888546",
"0.55832314",
"0.55784196",
"0.55644524",
"0.5562642",
"0.55440325",
"0.55282813",
"0.55278695",
"0.5511696",
"0.5502275",
"0.5498768",
"0.5496212",
"0.54955447",
"0.5493962",
"0.5492529",
"0.54915106",
"0.5491394",
"0.54728395",
"0.5467701",
"0.5466279",
"0.54630095",
"0.54408544",
"0.54355955",
"0.54287016",
"0.54287016",
"0.54207474",
"0.54100734",
"0.54006886",
"0.53989166",
"0.53983974",
"0.53929573",
"0.538036",
"0.5375203",
"0.53639376",
"0.53632724",
"0.53602916",
"0.5355658",
"0.5353808",
"0.5349039",
"0.53364456",
"0.5321239",
"0.5320818",
"0.5320432",
"0.5319165",
"0.53158015",
"0.53140396",
"0.5313821",
"0.53107274",
"0.5310487",
"0.5302382"
] |
0.0
|
-1
|
TODO Autogenerated method stub
|
@Override
public void onClick(View v) {
}
|
{
"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.66713095",
"0.6567948",
"0.652319",
"0.648097",
"0.64770466",
"0.64586824",
"0.64132667",
"0.6376419",
"0.62759",
"0.62545097",
"0.62371093",
"0.62237984",
"0.6201738",
"0.619477",
"0.619477",
"0.61924416",
"0.61872935",
"0.6173417",
"0.613289",
"0.6127952",
"0.6080854",
"0.6076905",
"0.6041205",
"0.6024897",
"0.60200036",
"0.59985113",
"0.5967729",
"0.5967729",
"0.5965808",
"0.5949083",
"0.5941002",
"0.59236866",
"0.5909713",
"0.59030116",
"0.589475",
"0.58857024",
"0.58837134",
"0.586915",
"0.58575684",
"0.5850424",
"0.5847001",
"0.5824116",
"0.5810248",
"0.5809659",
"0.58069366",
"0.58069366",
"0.5800507",
"0.5792168",
"0.5792168",
"0.5792168",
"0.5792168",
"0.5792168",
"0.5792168",
"0.57900196",
"0.5790005",
"0.578691",
"0.578416",
"0.578416",
"0.5774115",
"0.5774115",
"0.5774115",
"0.5774115",
"0.5774115",
"0.5761079",
"0.57592577",
"0.57592577",
"0.5749888",
"0.5749888",
"0.5749888",
"0.5748457",
"0.5733414",
"0.5733414",
"0.5733414",
"0.57209575",
"0.57154554",
"0.57149583",
"0.57140404",
"0.57140404",
"0.57140404",
"0.57140404",
"0.57140404",
"0.57140404",
"0.57140404",
"0.571194",
"0.57043016",
"0.56993437",
"0.5696782",
"0.5687825",
"0.5677794",
"0.5673577",
"0.5672046",
"0.5669512",
"0.5661156",
"0.56579345",
"0.5655569",
"0.5655569",
"0.5655569",
"0.56546396",
"0.56543446",
"0.5653163",
"0.56502634"
] |
0.0
|
-1
|
TODO Autogenerated method stub
|
@Override
public void onClick(View v) {
onSlideMenuFragmentEventListener.onSlideMenuFragmentEvent(MENU_LOGIN);
}
|
{
"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 void onClick(View v) {
onSlideMenuFragmentEventListener.onSlideMenuFragmentEvent(MENU_TOOLS);
}
|
{
"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 void onClick(View v) {
onSlideMenuFragmentEventListener.onSlideMenuFragmentEvent(MENU_SETTING);
}
|
{
"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 void onClick(View v) {
onSlideMenuFragmentEventListener.onSlideMenuFragmentEvent(MENU_HELP);
}
|
{
"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.66713095",
"0.6567948",
"0.652319",
"0.648097",
"0.64770466",
"0.64586824",
"0.64132667",
"0.6376419",
"0.62759",
"0.62545097",
"0.62371093",
"0.62237984",
"0.6201738",
"0.619477",
"0.619477",
"0.61924416",
"0.61872935",
"0.6173417",
"0.613289",
"0.6127952",
"0.6080854",
"0.6076905",
"0.6041205",
"0.6024897",
"0.60200036",
"0.59985113",
"0.5967729",
"0.5967729",
"0.5965808",
"0.5949083",
"0.5941002",
"0.59236866",
"0.5909713",
"0.59030116",
"0.589475",
"0.58857024",
"0.58837134",
"0.586915",
"0.58575684",
"0.5850424",
"0.5847001",
"0.5824116",
"0.5810248",
"0.5809659",
"0.58069366",
"0.58069366",
"0.5800507",
"0.5792168",
"0.5792168",
"0.5792168",
"0.5792168",
"0.5792168",
"0.5792168",
"0.57900196",
"0.5790005",
"0.578691",
"0.578416",
"0.578416",
"0.5774115",
"0.5774115",
"0.5774115",
"0.5774115",
"0.5774115",
"0.5761079",
"0.57592577",
"0.57592577",
"0.5749888",
"0.5749888",
"0.5749888",
"0.5748457",
"0.5733414",
"0.5733414",
"0.5733414",
"0.57209575",
"0.57154554",
"0.57149583",
"0.57140404",
"0.57140404",
"0.57140404",
"0.57140404",
"0.57140404",
"0.57140404",
"0.57140404",
"0.571194",
"0.57043016",
"0.56993437",
"0.5696782",
"0.5687825",
"0.5677794",
"0.5673577",
"0.5672046",
"0.5669512",
"0.5661156",
"0.56579345",
"0.5655569",
"0.5655569",
"0.5655569",
"0.56546396",
"0.56543446",
"0.5653163",
"0.56502634"
] |
0.0
|
-1
|
TODO Autogenerated method stub
|
@Override
public void onClick(View v) {
onSlideMenuFragmentEventListener.onSlideMenuFragmentEvent(MENU_ABOUT);
}
|
{
"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 void onClick(View v) {
onSlideMenuFragmentEventListener.onSlideMenuFragmentEvent(MENU_EXIT);
}
|
{
"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
|
Description: Call the method getCustomerDetails from CustomerService Modified by: Simon Escobar Benitez
|
public CustomerTO getCustomerDetails(CustomerTO customerTo) throws Exception
{
return new CustomerService().getCustomerDetails(customerTo);
}
|
{
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
}
|
[
"CustomerDTO getCustomerDetails(Long customerId,String userName) throws EOTException;",
"public String getCustomer(String custId);",
"public Customer getCustomerDetails() throws Exception {\n\t\treturn customersDBDAO.getOneCustomer(customerId);\n\t}",
"@GetMapping(\"/api/customer\")\n\tpublic ResponseEntity<List<CustomerDetails>> getAllCustomerDetails() {\n\n\t\tList<CustomerDetails> customerDetaillist = customerService.getAllCustomerDetails();\n\n\t\treturn ResponseEntity.ok().body(customerDetaillist);\n\n\t}",
"Customer getCustomer();",
"public static CustomerService getCustomerDetailsServiceImpl() {\n\t\treturn new CustomerServiceImpl();\n\t}",
"public Customer fetchProfileDetails(Long userId) {\n\t\tCustomer cust = null;\n\t\ttry (Connection con = DBUtil.getInstance().getDbConnection()) {\n\t\t\t//Create object of Customer DAO & call respective method\n\t\t\tCustomerDAO customerDAO = new CustomerDAO(con); \n\t\t\tcust=customerDAO.getCustomerById(userId);\n\t\t} catch (SQLException e) {\n\t\t\tthrow new ServiceException(\"Internal Server issue to validate CRM User, Please contact admin\");\n\t\t}\n\t\treturn cust;\n\t}",
"private void printCustomerDetails(CustomerService customerService) \n\t\t\t\t\t\tthrows DBOperationException\n\t{\n\t\tCustomer customer = customerService.getCustomerDetails();\n\t\tif(customer == null)\n\t\t{\n\t\t\tSystem.out.print(customerService.getClientMsg());\n\t\t\treturn;\n\t\t}\n\t\tSystem.out.println(customer);\n\t}",
"@GetMapping(\"/api/customer/{id}\")\n\tpublic ResponseEntity<CustomerDetails> getCustomerDetailsByID(@PathVariable(\"id\") long id) {\n\t\tCustomerDetails customerDetails = customerService.getCustomerDetailsByID(id);\n\t\treturn ResponseEntity.ok().body(customerDetails);\n\n\t}",
"io.opencannabis.schema.commerce.OrderCustomer.Customer getCustomer();",
"@GetMapping(\"/customer/{id}\")\n\tpublic ResponseEntity<Object> getCustomerDetailed(@PathVariable(\"id\") Integer id, HttpServletRequest request){\n\t\tif(service.findByEmail(SessionManager.getInstance().getSessionEmail(request.getSession())) == null) {\n\t\t\tSessionManager.getInstance().delete(request.getSession());\n\t\t\treturn new ResponseEntity<>(HttpStatus.UNAUTHORIZED); \n\t\t}else {\n\t\t\tCustomer cus = cService.findById(id);\n\t\t\tif(cus == null) return new ResponseEntity<>(HttpStatus.NOT_FOUND);\n\t\t\tMappingJacksonValue mappedCustomer = new MappingJacksonValue(cus);\n\t\t\tmappedCustomer.setFilters(new SimpleFilterProvider().addFilter(Customer.FILTER, SimpleBeanPropertyFilter.serializeAll()));\n\t\t\treturn new ResponseEntity<>(mappedCustomer, HttpStatus.OK);\n\t\t}\n\t}",
"Customer getCustomerById(int customerId);",
"@Override\n\tpublic CustomerData getCustomer(Long custId) {\n\t \n\t\tOptional<CustomerData> optionalCust = customerRepository.findById(custId);\n\t\t//Optional object use for check if a customer id is existing or not\n if(optionalCust.isPresent()) {\n return optionalCust.get(); //if customer id is exist then return a value\n }\n\t\treturn null;\n\t\t\n\t}",
"public CustomerProfile getCustomerProfile();",
"public static ArrayList<CustomerInfoBean> getDoCutomers(int districtId) {\r\n\t\tSystem.out.println(\"CustomerBAL.get_do_customers()\");\r\n\t\tCustomerInfoBean bean = null;\r\n\t\tArrayList<CustomerInfoBean> customerList = new ArrayList<CustomerInfoBean>();\r\n\t\tString monthlyIncome;\r\n\t\tint applianceId, customerId, salesmanId, status, familySize, state;\r\n\t\tString customerName, cnicNo, phoneNo, district, gsmNumber, salesmanName, applianceName;\r\n\t\tConnection connection = Connect.getConnection();\r\n\t\ttry {\r\n\t\t\tif (connection != null) {\r\n\t\t\t\t// Begin Stored Procedure Calling -- Jetander\r\n\t\t\t\tCallableStatement prepareCall = connection\r\n\t\t\t\t\t\t.prepareCall(\"{call get_do_customers(?)}\");\r\n\t\t\t\tprepareCall.setInt(1, districtId);\r\n\t\t\t\tResultSet rs = prepareCall.executeQuery();\r\n\t\t\t\twhile (rs.next()) {\r\n\t\t\t\t\tcustomerId = rs.getInt(1);\r\n\t\t\t\t\tcustomerName = rs.getString(2);\r\n\t\t\t\t\tcnicNo = rs.getString(3);\r\n\t\t\t\t\tphoneNo = rs.getString(4);\r\n\t\t\t\t\tdistrict = rs.getString(5);\r\n\t\t\t\t\tmonthlyIncome = rs.getString(6);\r\n\t\t\t\t\tgsmNumber = rs.getString(7);\r\n\t\t\t\t\tstate = rs.getInt(8);\r\n\t\t\t\t\tsalesmanName = rs.getString(9);\r\n\t\t\t\t\tapplianceId = rs.getInt(10);\r\n\t\t\t\t\tsalesmanId = rs.getInt(11);\r\n\t\t\t\t\tapplianceName = rs.getString(12);\r\n\t\t\t\t\tstatus = rs.getInt(13);\r\n\t\t\t\t\tfamilySize = rs.getInt(14);\r\n\t\t\t\t\t// End Stored Procedure Calling -- Jetander\r\n\t\t\t\t\tbean = new CustomerInfoBean();\r\n\t\t\t\t\tbean.setCustomerName(customerName);\r\n\t\t\t\t\tbean.setCnicNo(cnicNo);\r\n\t\t\t\t\tbean.setDistrict(district);\r\n\t\t\t\t\tbean.setGsmNumber(gsmNumber);\r\n\t\t\t\t\tbean.setMonthlyIncome(monthlyIncome);\r\n\t\t\t\t\tbean.setApplianceStatus(state);\r\n\t\t\t\t\tbean.setSalesmanName(salesmanName);\r\n\t\t\t\t\tbean.setPhoneNo(phoneNo);\r\n\t\t\t\t\tbean.setSalesamanId(salesmanId);\r\n\t\t\t\t\tbean.setApplianceId(applianceId);\r\n\t\t\t\t\tbean.setCustomerId(customerId);\r\n\t\t\t\t\tbean.setApplianceName(applianceName);\r\n\t\t\t\t\tbean.setStatus(status);\r\n\t\t\t\t\tbean.setFamilySize(familySize);\r\n\t\t\t\t\tcustomerList.add(bean);\r\n\t\t\t\t}\r\n\t\t\t\trs.close();\r\n\t\t\t\tconnection.close();\r\n\t\t\t}\r\n\r\n\t\t} catch (SQLException e) {\r\n\t\t\tlogger.error(\"\", e);\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t\treturn customerList;\r\n\t}",
"public ReturnCustomer getCustomer() {\n return (ReturnCustomer) get(\"customer\");\n }",
"@RequestMapping(value = \"/customers/{phoneNo}/calldetails\", method = RequestMethod.GET, produces = MediaType.APPLICATION_JSON_VALUE)\n\tpublic List<CallDetailsDTO> getCustomerCallDetails(@PathVariable long phoneNo) {\n\n\t\tlogger.info(\"Calldetails request for customer {}\", phoneNo);\n\n\t\treturn callDetailsService.getCustomerCallDetails(phoneNo);\n\t}",
"@RequestMapping( value = CONTEXT_URL,\n method = RequestMethod.GET,\n produces = {MediaType.APPLICATION_JSON_VALUE} )\n public List<CustomerDTO> getCustomers()\n throws CustomerNotFoundException\n {\n final String methodName = \"getCustomers\";\n logMethodBegin( methodName );\n List<CustomerDTO> customerDTOs = customerEntityService.getAllCustomers();\n logMethodEnd( methodName, customerDTOs );\n return customerDTOs;\n }",
"@Override\r\n\tpublic Customer getCustomer(String custId) {\r\n\t\tOptional<Customer> optionalCustomer = null;\r\n\t\tCustomer customer = null;\r\n\t\toptionalCustomer = customerRepository.findById(custId);\r\n\t\tif (optionalCustomer.isPresent()) {\r\n\t\t\tcustomer = optionalCustomer.get();\r\n\t\t\treturn customer;\r\n\t\t} else {\r\n\t\t\tthrow new EntityNotFoundException(\"Customer With Id \" + custId + \" does Not Exist.\");\r\n\t\t}\r\n\r\n\t}",
"Customer getCustomerById(final Long id);",
"@Override\n\t@Transactional\n\tpublic Customer getCustomer(int theId) {\n\t\t;\n\t\treturn customerDAO.getCustomer(theId);\n\t}",
"public Customer getCustomerByName(String customerName);",
"@Override\n\tpublic Customer retrieveCustomer(Integer id) {\n\n\t\tCustomer customer = new Customer();\n\n\t\tfor (Customer cust : customers) {\n\t\t\tif (cust.getId() == id) {\n\t\t\t\tcustomer.setId(id);\n\t\t\t\tcustomer.setUsername(cust.getUsername());\n\t\t\t\tcustomer.setFirstName(cust.getFirstName());\n\t\t\t\tcustomer.setLastName(cust.getLastName());\n\t\t\t\tcustomer.setEmail(cust.getEmail());\n\t\t\t\tcustomer.setUserType(cust.getUserType());\n\t\t\t\tcustomer.setPassword(cust.getPassword());\n\t\t\t\tcustomer.setAddress(cust.getAddress());\n\t\t\t}\n\t\t}\n\t\tlogger.info(\"A GET call retrieved a customer: retrieveCustomer()\");\n\t\treturn customer;\n\t}",
"@Override\n public Customer getCustomerById(Long id) {\n log.debug(\"Inside getCustomerById method\");\n return customerRepository.findById(id).orElseThrow(\n () -> new ResourceNotFoundException(\"No customer present with the id : \" + id));\n }",
"public void lookupCustomer(String customerId) {\r\n customer = transaction.getCustomerInfo(customerId);\r\n }",
"@RequestMapping( value = CONTEXT_URL + \"/id/{id}\",\n method = RequestMethod.GET,\n produces = {MediaType.APPLICATION_JSON_VALUE} )\n public CustomerDTO getCustomer( @PathVariable String id )\n throws CustomerNotFoundException\n {\n final String methodName = \"getCustomer\";\n logMethodBegin( methodName, id );\n CustomerDTO customerDTO = this.customerEntityService\n .getCustomerDTO( UUIDUtil.uuid( id ));\n logMethodEnd( methodName, customerDTO );\n return customerDTO;\n }",
"@RequestMapping(value = \"/ws/customers/{id}\", method = RequestMethod.GET)\n public @ResponseBody\n CustomerDto getCustomer(@PathVariable(\"id\") Long customerId) {\n logger.info(\"Tries to find customer by id={}\", customerId);\n\n return customerAssembler.assembly(getCustomerById(customerId));\n }",
"@Override\n\tpublic Customer getCustomer(int customerId) {\n\t\tSession session=sessionFactory.getCurrentSession();\n\t\ttry {\n\t\t\t\n\t\t\tCustomer customer =session.get(Customer.class, customerId);\n\t\t return customer;\t\t\t\n\t\t}\n\t\tcatch(HibernateException exception){\n\t\t\texception.printStackTrace();\n\t\t}\n\t\treturn null;\n\t\t\n\t}",
"com.google.ads.googleads.v6.resources.Customer getCustomer();",
"public static ArrayList<CustomerInfoBean> getCustomers() {\r\n\t\tSystem.out.println(\"CustomerBAL.get_customers()\");\r\n\t\tCustomerInfoBean bean = null;\r\n\t\tArrayList<CustomerInfoBean> customerList = new ArrayList<CustomerInfoBean>();\r\n\t\tString monthlyIncome;\r\n\t\tint applianceId, customerId, salesmanId, e_status, c_status, state;\r\n\t\tString customerName, cnicNo, phoneNo, district, gsmNumber, salesmanName, applianceName;\r\n\t\tConnection connection = Connect.getConnection();\r\n\t\ttry {\r\n\r\n\t\t\tif (connection != null) {\r\n\t\t\t\t// Begin Stored Procedure Calling -- Jetander\r\n\t\t\t\tCallableStatement prepareCall = connection\r\n\t\t\t\t\t\t.prepareCall(\"{call get_customers()}\");\r\n\t\t\t\tResultSet rs = prepareCall.executeQuery();\r\n\t\t\t\twhile (rs.next()) {\r\n\t\t\t\t\tcustomerId = rs.getInt(\"customer_id\");\r\n\t\t\t\t\tcustomerName = rs.getString(\"customer_name\");\r\n\t\t\t\t\tcnicNo = rs.getString(\"customer_cnic\");\r\n\t\t\t\t\tphoneNo = rs.getString(\"customer_phone\");\r\n\t\t\t\t\tdistrict = rs.getString(\"district_name\");\r\n\t\t\t\t\tmonthlyIncome = rs.getString(\"salary_range\");\r\n\t\t\t\t\tgsmNumber = rs.getString(\"appliance_gsmno\");\r\n\t\t\t\t\tstate = rs.getInt(\"appliance_status\");\r\n\t\t\t\t\tsalesmanName = rs.getString(\"salesman_name\");\r\n\r\n\t\t\t\t\tapplianceId = rs.getInt(\"appliance_id\");\r\n\t\t\t\t\tsalesmanId = rs.getInt(\"salesman_id\");\r\n\t\t\t\t\tapplianceName = rs.getString(\"appliance_name\");\r\n\t\t\t\t\te_status = rs.getInt(\"e.status\");\r\n\t\t\t\t\tc_status = rs.getInt(\"cs.status\");\r\n\t\t\t\t\tbean = new CustomerInfoBean();\r\n\t\t\t\t\tbean.setCustomerName(customerName);\r\n\t\t\t\t\tbean.setCnicNo(cnicNo);\r\n\t\t\t\t\tbean.setDistrict(district);\r\n\t\t\t\t\tbean.setGsmNumber(gsmNumber);\r\n\t\t\t\t\tbean.setMonthlyIncome(monthlyIncome);\r\n\t\t\t\t\tbean.setApplianceStatus(state);\r\n\t\t\t\t\tbean.setSalesmanName(salesmanName);\r\n\t\t\t\t\tbean.setPhoneNo(phoneNo);\r\n\t\t\t\t\tbean.setSalesamanId(salesmanId);\r\n\t\t\t\t\tbean.setApplianceId(applianceId);\r\n\t\t\t\t\tbean.setCustomerId(customerId);\r\n\t\t\t\t\tbean.setApplianceName(applianceName);\r\n\t\t\t\t\tbean.setStatus(e_status);\r\n\t\t\t\t\tbean.setCustomerStatus(c_status);\r\n\t\t\t\t\tcustomerList.add(bean);\r\n\t\t\t\t\t// End Stored Procedure Calling -- Jetander\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\tif (connection != null) {\r\n\t\t\t\tconnection.close();\r\n\r\n\t\t\t}\r\n\r\n\t\t} catch (SQLException e) {\r\n\t\t\tlogger.error(\"\", e);\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t\treturn customerList;\r\n\t}",
"@GetMapping(\"/customer/{id}\")\r\n\tpublic Customer viewCustomerbyId(@PathVariable(\"id\") int customerId){\r\n\t\tif(custService.viewCustomerbyId(customerId)==null) {\r\n\t\t\tthrow new CustomerNotFoundException(\"Customer not found with this id\" +customerId);\r\n\t\t}\r\n\t\treturn custService.viewCustomerbyId(customerId);\r\n\t\t\r\n\t}",
"@Override\n\tpublic Customer getCustomer(Integer id) {\n\t\treturn customerDao.findById(id);\n\t}",
"Customer getCustomerByMobileNumber(String mobileNumber) throws EOTException;",
"@GetMapping(\"/customers/{customer_id}\")\n\tpublic Customer getcustomer(@PathVariable(\"customer_id\") int customerid) {\n\t\tCustomer thecustomer=thecustomerService.getCustomer(customerid);\n\t\tif(thecustomer==null) {\n\t\t\tthrow new CustomerNotFoundException(\"Customer with id : \"+customerid+\" not found\");\n\t\t}\n\t\t\n\t\treturn thecustomer;\n\t}",
"public List<Customer> getCustomerByID() {\n Query query = em.createNamedQuery(\"Customer.findByCustomerId\")\r\n .setParameter(\"customerId\", custID);\r\n // return query result\r\n return query.getResultList();\r\n }",
"@Override\n\tpublic List<Customer> getCustomerById(int customerid) {\n\t\treturn null;\n\t}",
"public Customer getCustomer()\n {\n return customer;\n }",
"@RequestMapping(value = \"/v2/customers\", method = RequestMethod.GET)\r\n\tpublic List<Customer> customers() {\r\n JPAQuery<?> query = new JPAQuery<Void>(em);\r\n QCustomer qcustomer = QCustomer.customer;\r\n List<Customer> customers = (List<Customer>) query.from(qcustomer).fetch();\r\n // Employee oneEmp = employees.get(0);\r\n\t\treturn customers;\r\n }",
"public Customer getCustomer()\n {\n return customer;\n }",
"public Customer getCustomer() {\r\n return customer;\r\n }",
"@Override\r\n\tpublic Customer getCustomerById(int id) {\n\t\treturn customerdao.getCustomerById(id);\r\n\t}",
"public void retrieveACustomerWithID(long id) {\r\n\t\tSystem.out.println(\"\\nCustomer with id \" + id);\r\n\t\tEntityManager em = emf.createEntityManager();\r\n\t\tEntityTransaction tx = em.getTransaction();\r\n\t\ttx.begin();\r\n\t\tCustomer2 customer = em.find(Customer2.class, id);\r\n\t\tif(customer == null){\r\n\t\t\tSystem.out.println(\"\\nNo such customer with id: \" + id);\r\n\t\t\treturn;\r\n\t\t}\r\n\t\tSystem.out.println(customer);\r\n\t\ttx.commit();\r\n\t\tem.close();\r\n\t}",
"@Override\n public JSONObject viewCustomerById(long id) {\n\n return in_salescustdao.viewSLCustomerByID(id);\n }",
"@Override\n public Customer getCustomer(Long userId) {\n Optional<Customer> customer = customerDao.getCustomer(userId);\n if (!customer.isPresent()) {\n logger.error(\"Customer with this id {} doesn't exist\", userId);\n }\n return customer.orElseThrow(ResourceNotFoundException::new);\n }",
"@Override\n\tpublic Customer getCustomerById(long customerId) {\n\t\treturn null;\n\t}",
"public static CustomerBean getCutomer(int customerID) {\r\n\t\tCustomerBean bean = null;\r\n\t\tint customerId;\r\n\t\tdouble monthlyIncome, familyIncome;\r\n\t\tString customerName, cnicNo, phoneNo, address, district, customer_pic, accountCreatedDate;\r\n\t\ttry {\r\n\t\t\tConnection con = connection.Connect.getConnection();\r\n\t\t\tString query = \"SELECT customer_id, customer_name, customer_cnic, customer_address, city_name, customer_phone,customer_monthly_income, customer_family_income, customr_image,created_on FROM customer join city on customer_city=city_id Where customer_id = ?;\";\r\n\t\t\tPreparedStatement stmt = con.prepareStatement(query);\r\n\t\t\tstmt.setInt(1, customerID);\r\n\t\t\tResultSet rs = stmt.executeQuery();\r\n\t\t\twhile (rs.next()) {\r\n\t\t\t\tcustomerId = rs.getInt(1);\r\n\t\t\t\tcustomerName = rs.getString(2);\r\n\t\t\t\tcnicNo = rs.getString(3);\r\n\t\t\t\taddress = rs.getString(4);\r\n\t\t\t\tdistrict = rs.getString(5);\r\n\r\n\t\t\t\tphoneNo = rs.getString(7);\r\n\t\t\t\tmonthlyIncome = rs.getDouble(8);\r\n\t\t\t\tfamilyIncome = rs.getDouble(9);\r\n\r\n\t\t\t\tcustomer_pic = rs.getString(11);\r\n\t\t\t\taccountCreatedDate = rs.getString(12);\r\n\t\t\t\tbean = new CustomerBean();\r\n\t\t\t\tbean.setCustomerId(customerId);\r\n\t\t\t\tbean.setCustomerName(customerName);\r\n\t\t\t\tbean.setCnicNo(cnicNo);\r\n\t\t\t\tbean.setAddress(address);\r\n\t\t\t\tbean.setDistrict(district);\r\n\r\n\t\t\t\tbean.setFamilyIncome(familyIncome);\r\n\t\t\t\tbean.setPhoneNo(phoneNo);\r\n\r\n\t\t\t\tbean.setAccountCreatedDate(accountCreatedDate);\r\n\t\t\t\tbean.setMonthlyIncome(monthlyIncome);\r\n\t\t\t\tbean.setCustomer_pic(customer_pic);\r\n\t\t\t}\r\n\t\t} catch (SQLException e) {\r\n\t\t\tlogger.error(\"\", e);\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t\treturn bean;\r\n\t}",
"@GET\n\t@Path(\"get\")\n\tpublic Customer getCustomer(@QueryParam(\"id\") int id) {\n\t\treturn ManagerHelper.getCustomerManager().get(id);\n\n\t}",
"@GET\n\t@Path(\"/get\")\n\t@Produces(MediaType.APPLICATION_JSON)\n\tpublic Response getCustomer()\n\t\t\tthrows RemoteException, MalformedURLException, NotBoundException, SQLException, ClassNotFoundException {\n\n\t\t// Connect to RMI and setup crud interface\n\t\tDatabaseOption db = (DatabaseOption) Naming.lookup(\"rmi://\" + address + service);\n\n\t\t// Connect to database\n\t\tdb.Connect();\n\n\t\t// Get all data in customers and add to list object\n\t\tList<Object> rs = db.ReadCustomers(\"SELECT * FROM CUSTOMERS\");\n\n\t\t// Disconnect to database\n\t\tdb.Close();\n\n\t\t// GSON import used to serialize and deserialize Java objects to JSON\n\t\tGson gson = new Gson();\n\n\t\t// Set to string\n\t\tString jsonResp = gson.toJson(rs);\n\n\t\t// Return webpage with json data from RMI\n\t\treturn Response.ok(jsonResp, MediaType.APPLICATION_JSON).build();\n\t}",
"@Override\n @Transactional\n public Customer getCustomer(int customerId) {\n Optional<Customer> queryResult = customerRepository.findById(customerId);\n // if null return new Customer(), otherwise return the Customer\n return queryResult.orElseGet(Customer::new);\n }",
"@Override\n\tpublic Customer getCustomer(int id) {\n\t\treturn sessionFactory.getCurrentSession().get(Customer.class, id);\n\t}",
"public Customer getCustomer()\n {\n return this.customer;\n }",
"@Override\n\tpublic List<Customer> retrieveAllCustomers() {\n\t\tlogger.info(\"A GET call retrieved all customers: retrieveAllCustomers()\");\n\t\treturn customers;\n\t}",
"@GetMapping(value = \"/customers/{phoneNo}/calldetails\", produces = MediaType.APPLICATION_JSON_VALUE)\n\tpublic List<CallDetailsDTO> getCustomerCallDetails(@PathVariable long phoneNo) {\n\t\tlogger.info(\"Calldetails request for customer {}\", phoneNo);\n\t\treturn custService.getCustomerCallDetails(phoneNo);\n\t}",
"@GetMapping(produces = MediaType.APPLICATION_JSON_VALUE)\n\t/*\n\t * @ApiOperation(value = \"Get all the customers\", notes =\n\t * \"Send GET request to get all the customers\" , httpMethod = \"GET\", code = 200,\n\t * response = CustomerResponse.class, responseContainer = \"List\", produces =\n\t * MediaType.APPLICATION_JSON_VALUE)\n\t * \n\t * @ApiResponses(value = {\n\t * \n\t * @ApiResponse(code = 200, response = CustomerResponse.class, responseContainer\n\t * = \"List\", message = \"List of all customers\"),\n\t * \n\t * @ApiResponse(code = 401, response = ErrorResponse.class, message =\n\t * \"Invalid or expired token provided. Error code: CREDENTIALS_REJECTED\"),\n\t * \n\t * @ApiResponse(code = 500, response = ErrorResponse.class, message =\n\t * \"Runtime server error occurred. Error code: SERVER_ERROR\")})\n\t */\n\tpublic List<CustomerResponse> getCustomers() {\n\t\tlog.info(\"hit the controller\");\n\t\treturn customerService.findAll();\n\t}",
"@Override\r\n\tpublic Customer getCustomer(int customerID) {\n\t\treturn null;\r\n\t}",
"public Customer getCustomer() {\n return customer;\n }",
"public Customer getCustomer(String id) {\n\t\tString firstName = \"\";\n//\t\tString lastName = \"\";\n//\t\tString address = \"\";\n//\t\tString creditCard = \"\";\n//\t\tString phone = \"\";\n//\t\tArrayList<Order> orders = new ArrayList<>();\n\t\tConnection connection = DBConnect.getDatabaseConnection();\n\t\t\n\t\ttry {\n\t\t\tStatement selectStatement = connection.createStatement();\n\t\t\t\n\t\t\tString selectQuery = \"SELECT * from Customer where CustomerID='\" + id +\"'\";\n\t\t\tResultSet resultSet = selectStatement.executeQuery(selectQuery);\n\t\t\tresultSet.next();\n\t\t\t\n\t\t\tfirstName = resultSet.getString(\"FName\");\n//\t\t\tlastName = resultSet.getString(\"lastName\");\n//\t\t\taddress = resultSet.getString(\"lastName\"); //TODO update this code: Address has it's own table . access AddressDAO object (use attribute line 21) \n//\t\t\tcreditCard = resultSet.getString(\"creditCard\"); //TODO same as Address. (attribute line 22) \n\n//\t\t\torders = orderDAO.getAllOrders(); //TODO fix me (make sure function returns something).\n\t\t\t\n\t\t}catch(SQLException se) {\n\t\t\tse.printStackTrace();\n\t\t}finally {\n\t\t\tif(connection != null) {\n\t\t\t\ttry {\n\t\t\t\t\tconnection.close();\n\t\t\t\t} catch (SQLException e) {}\n\t\t\t}\n\t\t}\n\t\t\n\t\tCustomer customer = new Customer();\n\t\tcustomer.setFirstName(firstName);\n//\t\tcustomer.setLastName(lastName);\n//\t\t//TODO customer.setAddress(address); update\n//\t\t//TODO customer.setCard(creditCard); update\n//\t\tcustomer.setOrders(orders);\n\t\t\n\t\treturn customer;\n\t}",
"@RequestMapping(method = RequestMethod.GET, value = \"/{id}\")\n\t public ResponseEntity<Customer> getCustomerWithId(@PathVariable Long id) {\n\t return service.getCustomerWithId(id);\n\t }",
"public interface CustomerService {\n\n List<Customer> getAllCustomer();\n\n //根据条件获得客户信息列表\n List<Customer> getCustomer(Customer customer);\n\n Customer getCustomerById(Integer id);\n\n int insertCustomer(Customer customer);\n\n int insertSelectiveCustomer(Customer customer);\n\n int deleteCustomer(Integer id );\n\n int updateCustomer(Customer customer );\n}",
"@Override\n\tpublic Customer getCustomer(long id) throws Exception {\n\t\tConnection con = pool.getConnection();\n\t\tCustomer customer = new Customer();\n\t\ttry {\n\t\t\tString getCustomer = String.format(\"select * from customer where id in('%d')\", id);\n\n\t\t\tStatement st = con.createStatement();\n\t\t\tResultSet rs = st.executeQuery(getCustomer);\n\n\t\t\tif (rs.next()) {\n\t\t\t\tcustomer.setId(id);\n\t\t\t\tcustomer.setCustName(rs.getString(\"Cust_Name\"));\n\t\t\t\tcustomer.setPassword(rs.getString(\"Password\"));\n\t\t\t\tSystem.out\n\t\t\t\t\t\t.println(\"Customer \" + customer.getCustName() + \" ID: \" + customer.getId() + \" was retrived.\");\n\t\t\t} else {\n\t\t\t\tthrow new Exception(\"Customer with ID: \" + id + \" was not found in the DB.\");\n\t\t\t}\n\n\t\t} catch (SQLException e) {\n\t\t\tSystem.out.println(e.getMessage() + \" Could not retrieve data from DB.\");\n\t\t} finally {\n\t\t\ttry {\n\t\t\t\tConnectionPool.getInstance().returnConnection(con);\n\t\t\t} catch (Exception e) {\n\t\t\t\tSystem.out.println(e.getMessage() + \" Could not close connection\");\n\t\t\t}\n\t\t}\n\t\treturn customer;\n\t}",
"public static ArrayList<CustomerInfoBean> getCutomers_notinterested_Super() {\r\n\t\tCustomerInfoBean bean = null;\r\n\r\n\t\tArrayList<CustomerInfoBean> customerList = new ArrayList<CustomerInfoBean>();\r\n\t\tString monthlyIncome;\r\n\t\tint applianceId, customerId, salesmanId, status;\r\n\t\tString customerName, cnicNo, phoneNo, district, gsmNumber, salesmanName, applianceName;\r\n\t\tboolean state;\r\n\t\ttry {\r\n\t\t\tConnection con = connection.Connect.getConnection();\r\n\t\t\tString query = \"SELECT cs.customer_id ,cs.customer_name, cs.customer_cnic ,cs.customer_phone, c.city_name, cs.customer_monthly_income,\\n\"\r\n\t\t\t\t\t+ \" a.appliance_GSMno, a.appliance_status, s.salesman_name , a.appliance_id, s.salesman_id,\\n\"\r\n\t\t\t\t\t+ \" a.appliance_name, cs.status FROM eligibility e\\n\"\r\n\t\t\t\t\t+ \" INNER JOIN appliance a ON e.appliance_id =a.appliance_id\\n\"\r\n\t\t\t\t\t+ \" INNER JOIN salesman s ON e.salesman_id =s.salesman_id\\n\"\r\n\t\t\t\t\t+ \" INNER JOIN customer cs ON e.customer_id = cs.customer_id \\n\"\r\n\t\t\t\t\t+ \" JOIN city c ON cs.customer_city=c.city_id\\n\"\r\n\t\t\t\t\t+ \" JOIN city_district cd ON cs.customer_city=cd.city_id\\n\"\r\n\t\t\t\t\t+\r\n\r\n\t\t\t\t\t\" INNER JOIN do_salesman ds ON s.salesman_id=ds.salesman_id WHERE e.status=3 GROUP BY cs.customer_id\\n\";\r\n\t\t\tStatement st = con.prepareStatement(query);\r\n\t\t\tResultSet rs = st.executeQuery(query);\r\n\t\t\tSystem.err.println(query);\r\n\t\t\twhile (rs.next()) {\r\n\t\t\t\tcustomerId = rs.getInt(1);\r\n\t\t\t\tcustomerName = rs.getString(2);\r\n\t\t\t\tcnicNo = rs.getString(3);\r\n\t\t\t\tphoneNo = rs.getString(4);\r\n\t\t\t\tdistrict = rs.getString(5);\r\n\t\t\t\tmonthlyIncome = rs.getString(6);\r\n\t\t\t\tgsmNumber = rs.getString(7);\r\n\t\t\t\tstate = rs.getBoolean(8);\r\n\t\t\t\tsalesmanName = rs.getString(9);\r\n\r\n\t\t\t\tapplianceId = rs.getInt(10);\r\n\t\t\t\tsalesmanId = rs.getInt(11);\r\n\t\t\t\tapplianceName = rs.getString(12);\r\n\t\t\t\tstatus = rs.getInt(13);\r\n\r\n\t\t\t\tbean = new CustomerInfoBean();\r\n\t\t\t\tbean.setCustomerName(customerName);\r\n\t\t\t\tbean.setCnicNo(cnicNo);\r\n\t\t\t\tbean.setDistrict(district);\r\n\t\t\t\tbean.setGsmNumber(gsmNumber);\r\n\t\t\t\tbean.setMonthlyIncome(monthlyIncome);\r\n\r\n\t\t\t\tbean.setState(state);\r\n\t\t\t\tbean.setSalesmanName(salesmanName);\r\n\t\t\t\tbean.setPhoneNo(phoneNo);\r\n\t\t\t\tbean.setSalesamanId(salesmanId);\r\n\t\t\t\tbean.setApplianceId(applianceId);\r\n\t\t\t\tbean.setCustomerId(customerId);\r\n\t\t\t\tbean.setApplianceName(applianceName);\r\n\t\t\t\tbean.setStatus(status);\r\n\r\n\t\t\t\tcustomerList.add(bean);\r\n\t\t\t}\r\n\t\t} catch (SQLException e) {\r\n\t\t\tlogger.error(\"\", e);\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t\treturn customerList;\r\n\t}",
"public Map<String, Object> getCustomerInfo(String custId) {\r\n\t\treturn getSingleRowAsMap(String.format(GET_CUSTOMER_INFO, custId));\r\n\t}",
"String getCustomerNameById(int customerId);",
"public interface CustomerServiceFacade {\n void getCustomerPersonalInfo();\n void getBillingInfo();\n void getShippingInfo();\n}",
"@Override\n public CustomerEntity getCustomerData(Long id) {\n return customerPersistencePort.getUser(id);\n }",
"public Customer getCustomer() {\n return this.customer;\n }",
"public static ArrayList<CustomerInfoBean> getCutomers_suggested() {\r\n\t\tCustomerInfoBean bean = null;\r\n\t\tArrayList<CustomerInfoBean> customerList = new ArrayList<CustomerInfoBean>();\r\n\t\tString monthlyIncome;\r\n\t\tint applianceId, customerId, salesmanId, status;\r\n\t\tString customerName, cnicNo, phoneNo, district, gsmNumber, salesmanName, applianceName;\r\n\t\tboolean state;\r\n\t\ttry {\r\n\t\t\tConnection con = connection.Connect.getConnection();\r\n\t\t\tString query = \"SELECT cs.customer_id ,cs.customer_name, cs.customer_cnic ,cs.customer_phone, c.city_name, cs.customer_monthly_income, \\n\"\r\n\t\t\t\t\t+ \" a.appliance_GSMno, a.appliance_status, s.salesman_name , a.appliance_id, s.salesman_id, \\n\"\r\n\t\t\t\t\t+ \" a.appliance_name, cs.status FROM eligibility e\\n\"\r\n\t\t\t\t\t+ \" JOIN appliance a ON e.appliance_id =a.appliance_id \\n\"\r\n\t\t\t\t\t+ \" JOIN salesman s ON e.salesman_id =s.salesman_id \\n\"\r\n\t\t\t\t\t+ \" JOIN customer cs ON e.customer_id = cs.customer_id\\n\"\r\n\t\t\t\t\t+ \" JOIN sold_to sld ON cs.customer_id=sld.customer_id\\n\"\r\n\t\t\t\t\t+ \" JOIN city c ON cs.customer_city=c.city_id\\n\"\r\n\t\t\t\t\t+ \" WHERE e.status=3\";\r\n\t\t\tPreparedStatement stmt = con.prepareStatement(query);\r\n\t\t\tResultSet rs = stmt.executeQuery();\r\n\t\t\twhile (rs.next()) {\r\n\t\t\t\tcustomerId = rs.getInt(1);\r\n\t\t\t\tcustomerName = rs.getString(2);\r\n\t\t\t\tcnicNo = rs.getString(3);\r\n\t\t\t\tphoneNo = rs.getString(4);\r\n\t\t\t\tdistrict = rs.getString(5);\r\n\t\t\t\tmonthlyIncome = rs.getString(6);\r\n\t\t\t\tgsmNumber = rs.getString(7);\r\n\t\t\t\tstate = rs.getBoolean(8);\r\n\t\t\t\tsalesmanName = rs.getString(9);\r\n\r\n\t\t\t\tapplianceId = rs.getInt(11);\r\n\t\t\t\tsalesmanId = rs.getInt(12);\r\n\t\t\t\tapplianceName = rs.getString(13);\r\n\t\t\t\tstatus = rs.getInt(14);\r\n\t\t\t\tbean = new CustomerInfoBean();\r\n\t\t\t\tbean.setCustomerName(customerName);\r\n\t\t\t\tbean.setCnicNo(cnicNo);\r\n\t\t\t\tbean.setDistrict(district);\r\n\t\t\t\tbean.setGsmNumber(gsmNumber);\r\n\t\t\t\tbean.setMonthlyIncome(monthlyIncome);\r\n\r\n\t\t\t\tbean.setState(state);\r\n\t\t\t\tbean.setSalesmanName(salesmanName);\r\n\t\t\t\tbean.setPhoneNo(phoneNo);\r\n\t\t\t\tbean.setSalesamanId(salesmanId);\r\n\t\t\t\tbean.setApplianceId(applianceId);\r\n\t\t\t\tbean.setCustomerId(customerId);\r\n\t\t\t\tbean.setApplianceName(applianceName);\r\n\t\t\t\tbean.setStatus(status);\r\n\t\t\t\tcustomerList.add(bean);\r\n\t\t\t}\r\n\r\n\t\t} catch (SQLException e) {\r\n\t\t\tlogger.error(\"\", e);\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t\treturn customerList;\r\n\t}",
"public static ArrayList<CustomerInfoBean> getCutomers_onInActive() {\r\n\t\tCustomerInfoBean bean = null;\r\n\t\tArrayList<CustomerInfoBean> customerList = new ArrayList<CustomerInfoBean>();\r\n\t\tString monthlyIncome;\r\n\t\tint applianceId, customerId, salesmanId, status;\r\n\t\tString customerName, cnicNo, phoneNo, district, gsmNumber, salesmanName, applianceName;\r\n\t\tboolean state;\r\n\t\ttry {\r\n\t\t\tConnection con = connection.Connect.getConnection();\r\n\t\t\tString query = \"SELECT cs.customer_id ,cs.customer_name, cs.customer_cnic ,cs.customer_phone, c.city_name, cs.customer_monthly_income, \\n\"\r\n\t\t\t\t\t+ \" a.appliance_GSMno, a.appliance_status, s.salesman_name ,a.appliance_status, a.appliance_id, s.salesman_id, \\n\"\r\n\t\t\t\t\t+ \" a.appliance_name, cs.status FROM eligibility e\\n\"\r\n\t\t\t\t\t+ \" JOIN appliance a ON e.appliance_id =a.appliance_id \\n\"\r\n\t\t\t\t\t+ \" JOIN salesman s ON e.salesman_id =s.salesman_id \\n\"\r\n\t\t\t\t\t+ \" JOIN customer cs ON e.customer_id = cs.customer_id \\n\"\r\n\t\t\t\t\t+ \" JOIN city c ON cs.customer_city=c.city_id\\n\"\r\n\t\t\t\t\t+ \" WHERE a.appliance_status=0\";\r\n\t\t\tPreparedStatement stmt = con.prepareStatement(query);\r\n\t\t\tResultSet rs = stmt.executeQuery();\r\n\t\t\twhile (rs.next()) {\r\n\t\t\t\tcustomerId = rs.getInt(1);\r\n\t\t\t\tcustomerName = rs.getString(2);\r\n\t\t\t\tcnicNo = rs.getString(3);\r\n\t\t\t\tphoneNo = rs.getString(4);\r\n\t\t\t\tdistrict = rs.getString(5);\r\n\t\t\t\tmonthlyIncome = rs.getString(6);\r\n\t\t\t\tgsmNumber = rs.getString(7);\r\n\t\t\t\tstate = rs.getBoolean(8);\r\n\t\t\t\tsalesmanName = rs.getString(9);\r\n\r\n\t\t\t\tapplianceId = rs.getInt(11);\r\n\t\t\t\tsalesmanId = rs.getInt(12);\r\n\t\t\t\tapplianceName = rs.getString(13);\r\n\t\t\t\tstatus = rs.getInt(14);\r\n\t\t\t\tbean = new CustomerInfoBean();\r\n\t\t\t\tbean.setCustomerName(customerName);\r\n\t\t\t\tbean.setCnicNo(cnicNo);\r\n\t\t\t\tbean.setDistrict(district);\r\n\t\t\t\tbean.setGsmNumber(gsmNumber);\r\n\t\t\t\tbean.setMonthlyIncome(monthlyIncome);\r\n\r\n\t\t\t\tbean.setState(state);\r\n\t\t\t\tbean.setSalesmanName(salesmanName);\r\n\t\t\t\tbean.setPhoneNo(phoneNo);\r\n\t\t\t\tbean.setSalesamanId(salesmanId);\r\n\t\t\t\tbean.setApplianceId(applianceId);\r\n\t\t\t\tbean.setCustomerId(customerId);\r\n\t\t\t\tbean.setApplianceName(applianceName);\r\n\t\t\t\tbean.setStatus(status);\r\n\t\t\t\tcustomerList.add(bean);\r\n\t\t\t}\r\n\t\t} catch (SQLException e) {\r\n\t\t\tlogger.error(\"\", e);\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t\treturn customerList;\r\n\t}",
"public static CustomerLoanBean getCustomer_details(int customerId,\r\n\t\t\tint applianceId) {\r\n\t\tCustomerLoanBean bean = null;\r\n\t\tnew ArrayList<CustomerLoanBean>();\r\n\t\tint total_installments, grace_period;\r\n\t\tdouble remaining_balanse, total_amount, monthly_amount, down_payment;\r\n\t\tString CustomerName, date, terminate_date, customerPhone, salemanPhone;\r\n\t\tSystem.out.println(customerId);\r\n\t\tSystem.out.print(applianceId);\r\n\t\ttry {\r\n\t\t\tConnection con = connection.Connect.getConnection();\r\n\t\t\tString query = \"SELECT cs.customer_Name, pl.total_Installments ,pl.created_on,pl.grace_period,pl.recent_payed_amount,(SELECT ap.appliance_price-(SELECT SUM(Amount_Paid) FROM loan_payments WHERE loan_id = 1) FROM appliance ap INNER \"\r\n\t\t\t\t\t+ \"JOIN sold_to sld ON ap.appliance_id=sld.Appliance_Id INNER JOIN customer cs ON sld.customer_id=cs.customer_id \"\r\n\t\t\t\t\t+ \"INNER JOIN payment_loan pl ON sld.sold_to_id=pl.soldto_id WHERE loan_id = 1) AS LONAoUTSTANDING,pl.terminated_on ,pl.total_amount ,pl.installment_amount_month, pl.terminated_on ,cs.customer_id, cs.customer_phone, s.salesman_phone_no FROM payment_loan pl \\n\"\r\n\t\t\t\t\t+ \" JOIN sold_to sld ON pl.soldto_id=sld.sold_to_id\\n\"\r\n\t\t\t\t\t+ \" JOIN customer cs ON sld.customer_id=cs.customer_id\\n\"\r\n\t\t\t\t\t+ \" JOIN salesman s ON s.salesman_id = sld.salesman_id\\n\"\r\n\t\t\t\t\t+ \" WHERE cs.customer_id=\"\r\n\t\t\t\t\t+ customerId\r\n\t\t\t\t\t+ \" AND sld.appliance_id=\" + applianceId + \"\";\r\n\t\t\tStatement stmt = con.prepareStatement(query);\r\n\t\t\tSystem.out.println(query);\r\n\t\t\tResultSet rs = null;\r\n\t\t\trs = stmt.executeQuery(query);\r\n\t\t\tif (rs.next()) {\r\n\t\t\t\tCustomerName = rs.getString(1);\r\n\t\t\t\ttotal_installments = rs.getInt(2);\r\n\t\t\t\tdate = rs.getString(3);\r\n\t\t\t\tgrace_period = rs.getInt(4);\r\n\t\t\t\tdown_payment = rs.getDouble(5);\r\n\t\t\t\tremaining_balanse = rs.getDouble(6);\r\n\t\t\t\tterminate_date = rs.getString(7);\r\n\t\t\t\ttotal_amount = rs.getDouble(8);\r\n\t\t\t\tmonthly_amount = rs.getDouble(9);\r\n\t\t\t\trs.getInt(10);\r\n\t\t\t\tcustomerPhone = rs.getString(11);\r\n\t\t\t\tsalemanPhone = rs.getString(12);\r\n\r\n\t\t\t\tbean = new CustomerLoanBean();\r\n\t\t\t\tbean.setCustomerId(customerId);\r\n\t\t\t\tbean.setCustomerName(CustomerName);\r\n\t\t\t\tbean.setTotal_installments(total_installments);\r\n\t\t\t\tbean.setCreated_on(date);\r\n\t\t\t\tbean.setGrace_period(grace_period);\r\n\t\t\t\tbean.setDownPayment(down_payment);\r\n\t\t\t\tbean.setRemaining_balanse(remaining_balanse);\r\n\t\t\t\tbean.setTerminate_date(terminate_date);\r\n\t\t\t\tbean.setTotal_amount(total_amount);\r\n\t\t\t\tbean.setMonthly_amount(monthly_amount);\r\n\t\t\t\tbean.setPhoneNo(customerPhone);\r\n\t\t\t\tbean.setSalemanPhone(salemanPhone);\r\n\t\t\t}\r\n\t\t} catch (SQLException e) {\r\n\t\t\tlogger.error(\"\", e);\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t\treturn bean;\r\n\t}",
"@Override\n\tpublic List<MstCustomerDto> getAllCustomer() {\n\t\tList<MstCustomerDto> listMstCustomerDtos=new ArrayList<>();\n\t\tList<Object[]> obj=new ArrayList<>();\n\t\t\n\t\tobj = mstCustomerDao.getAll();\n\t\tlistMstCustomerDtos = mapperFacade.mapAsList(obj, MstCustomerDto.class);\n\t\t\n\t\treturn listMstCustomerDtos;\n\t}",
"@Override\n public CustomerDetails viewAccount(String user) {\n CustomerDetails details=customerRepository.findById(user).get(); \n log.debug(user);\n return details; \n\n }",
"public static DTO_JPOS_Customer getCustomer(int customerId,Connection con) {\r\n\t\tLMSDAOFactory factory = LMSDAOFactory.getInstances();\r\n\t\tIJPOS_Customer myCustomer = factory.getJPOS_Customer();\r\n\t\treturn myCustomer.getCustomer(customerId,con);\r\n\t}",
"List<Customer> getCustomers();",
"public static ArrayList<CustomerInfoBean> getCutomers_Accepted() {\r\n\t\tCustomerInfoBean bean = null;\r\n\t\tArrayList<CustomerInfoBean> customerList = new ArrayList<CustomerInfoBean>();\r\n\t\tString monthlyIncome;\r\n\t\tint applianceId, customerId, salesmanId, status;\r\n\t\tString customerName, cnicNo, phoneNo, district, gsmNumber, salesmanName, applianceName;\r\n\t\tboolean state;\r\n\t\ttry {\r\n\t\t\tConnection con = connection.Connect.getConnection();\r\n\t\t\tString query = \"SELECT cs.customer_id ,cs.customer_name, cs.customer_cnic ,cs.customer_phone, c.city_name, cs.customer_monthly_income, \\n\"\r\n\t\t\t\t\t+ \" a.appliance_GSMno, a.appliance_status, s.salesman_name , a.appliance_id, s.salesman_id, \\n\"\r\n\t\t\t\t\t+ \" a.appliance_name, cs.status FROM eligibility e\\n\"\r\n\t\t\t\t\t+ \" JOIN appliance a ON e.appliance_id =a.appliance_id \\n\"\r\n\t\t\t\t\t+ \" JOIN salesman s ON e.salesman_id =s.salesman_id \\n\"\r\n\t\t\t\t\t+ \" JOIN customer cs ON e.customer_id = cs.customer_id\\n\"\r\n\t\t\t\t\t+ \" JOIN city c ON cs.customer_city=c.city_id WHERE e.status=1 or e.status=6;\";\r\n\t\t\tPreparedStatement stmt = con.prepareStatement(query);\r\n\t\t\tResultSet rs = stmt.executeQuery();\r\n\t\t\twhile (rs.next()) {\r\n\t\t\t\tcustomerId = rs.getInt(1);\r\n\t\t\t\tcustomerName = rs.getString(2);\r\n\t\t\t\tcnicNo = rs.getString(3);\r\n\t\t\t\tphoneNo = rs.getString(4);\r\n\t\t\t\tdistrict = rs.getString(5);\r\n\t\t\t\tmonthlyIncome = rs.getString(6);\r\n\t\t\t\tgsmNumber = rs.getString(7);\r\n\t\t\t\tstate = rs.getBoolean(8);\r\n\t\t\t\tsalesmanName = rs.getString(9);\r\n\r\n\t\t\t\tapplianceId = rs.getInt(10);\r\n\t\t\t\tsalesmanId = rs.getInt(11);\r\n\t\t\t\tapplianceName = rs.getString(12);\r\n\t\t\t\tstatus = rs.getInt(13);\r\n\t\t\t\tbean = new CustomerInfoBean();\r\n\t\t\t\tbean.setCustomerName(customerName);\r\n\t\t\t\tbean.setCnicNo(cnicNo);\r\n\t\t\t\tbean.setDistrict(district);\r\n\t\t\t\tbean.setGsmNumber(gsmNumber);\r\n\t\t\t\tbean.setMonthlyIncome(monthlyIncome);\r\n\r\n\t\t\t\tbean.setState(state);\r\n\t\t\t\tbean.setSalesmanName(salesmanName);\r\n\t\t\t\tbean.setPhoneNo(phoneNo);\r\n\t\t\t\tbean.setSalesamanId(salesmanId);\r\n\t\t\t\tbean.setApplianceId(applianceId);\r\n\t\t\t\tbean.setCustomerId(customerId);\r\n\t\t\t\tbean.setApplianceName(applianceName);\r\n\t\t\t\tbean.setStatus(status);\r\n\t\t\t\tcustomerList.add(bean);\r\n\t\t\t}\r\n\r\n\t\t} catch (SQLException e) {\r\n\t\t\tlogger.error(\"\", e);\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t\treturn customerList;\r\n\t}",
"public String getCustomerName() \n {\n return customerName;\n }",
"public List<CustomerModel> getCustomers();",
"public interface CustomerServiceI {\n\n /**\n * 查询所有客户信息\n * @param jsonStr\n * @return\n * @throws Exception\n */\n public String queryAllCustomer(String jsonStr) throws Exception;\n\n /**\n * 验证邮箱是否可用\n * @param jsonStr\n * @return\n * @throws Exception\n */\n public String validCustomerMailForAdd(String jsonStr) throws Exception;\n\n /**\n * 保存草稿状态客户信息\n * @param jsonStr\n * @return\n * @throws Exception\n */\n public String saveDraftCustomer(String jsonStr) throws Exception;\n\n /**\n * 保存确认状态客户信息\n * @param jsonStr\n * @return\n * @throws Exception\n */\n public String saveConfirmCustomer(String jsonStr) throws Exception;\n\n /**\n * 锁定客户信息\n * @param jsonStr\n * @return\n * @throws Exception\n */\n public String lockCustomerById(String jsonStr) throws Exception;\n\n /**\n * 解锁客户信息\n * @param jsonStr\n * @return\n * @throws Exception\n */\n public String unlockCustomerById(String jsonStr) throws Exception;\n\n /**\n * 重置客户密码\n * @param jsonStr\n * @return\n * @throws Exception\n */\n public String resetCustomerPasswd(String jsonStr) throws Exception;\n\n /**\n * 根据ID查询客户详细信息\n * @param jsonStr\n * @return\n * @throws Exception\n */\n public String queryCustomerById(String jsonStr) throws Exception;\n\n /**\n * 根据ID编辑客户信息\n * @param jsonStr\n * @return\n * @throws Exception\n */\n public String updateCustomerById(String jsonStr) throws Exception;\n}",
"List<Customer> getCustomerList();",
"private void loadCustomerData() {\n\t\tCustomerDTO cust1 = new CustomerDTO();\n\t\tcust1.setId(null);\n\t\tcust1.setFirstName(\"Steven\");\n\t\tcust1.setLastName(\"King\");\n\t\tcust1.setEmail(\"king@gmail.com\");\n\t\tcust1.setCity(\"Hyderabad\");\n\t\tcustomerService.createCustomer(cust1);\n\n\t\tCustomerDTO cust2 = new CustomerDTO();\n\t\tcust2.setId(null);\n\t\tcust2.setFirstName(\"Neena\");\n\t\tcust2.setLastName(\"Kochhar\");\n\t\tcust2.setEmail(\"kochhar@gmail.com\");\n\t\tcust2.setCity(\"Pune\");\n\t\tcustomerService.createCustomer(cust2);\n\n\t\tCustomerDTO cust3 = new CustomerDTO();\n\t\tcust3.setId(null);\n\t\tcust3.setFirstName(\"John\");\n\t\tcust3.setLastName(\"Chen\");\n\t\tcust3.setEmail(\"johnr@gmail.com\");\n\t\tcust3.setCity(\"Bangalore\");\n\t\tcustomerService.createCustomer(cust3);\n\n\t\tCustomerDTO cust4 = new CustomerDTO();\n\t\tcust4.setId(null);\n\t\tcust4.setFirstName(\"Nancy\");\n\t\tcust4.setLastName(\"Greenberg\");\n\t\tcust4.setEmail(\"nancy@gmail.com\");\n\t\tcust4.setCity(\"Mumbai\");\n\t\tcustomerService.createCustomer(cust4);\n\n\t\tCustomerDTO cust5 = new CustomerDTO();\n\t\tcust5.setId(5L);\n\t\tcust5.setFirstName(\"Luis\");\n\t\tcust5.setLastName(\"Popp\");\n\t\tcust5.setEmail(\"popp@gmail.com\");\n\t\tcust5.setCity(\"Delhi\");\n\t\tcustomerService.createCustomer(cust5);\n\n\t}",
"Customer getCustomer() {\n\t\treturn customer;\n\t}",
"public Customer getSpecificCustomerById(String customerId){\n Customer specificCustomer = null;\n\n try{\n // try and connect\n conn = DriverManager.getConnection(URL);\n\n // make sql query\n PreparedStatement preparedStatement =\n conn.prepareStatement(\"SELECT CustomerId, FirstName, LastName, Country, PostalCode, Phone, Email FROM Customer WHERE CustomerId=?\");\n preparedStatement.setString(1, customerId);\n // execute query\n ResultSet set = preparedStatement.executeQuery();\n\n while(set.next()){\n specificCustomer = new Customer(\n set.getString(\"CustomerId\"),\n set.getString(\"FirstName\"),\n set.getString(\"LastName\"),\n set.getString(\"Country\"),\n set.getString(\"PostalCode\"),\n set.getString(\"Phone\"),\n set.getString(\"Email\")\n );\n }\n }\n catch(Exception exception){\n System.out.println(exception.toString());\n }\n finally{\n try{\n conn.close();\n }\n catch (Exception exception){\n System.out.println(exception.toString());\n }\n }\n return specificCustomer;\n }",
"public int getCustomerId() \n {\n return customerId;\n }",
"public static ArrayList<CustomerInfoBean> getCutomers_onCash() {\r\n\t\tCustomerInfoBean bean = null;\r\n\t\tArrayList<CustomerInfoBean> customerList = new ArrayList<CustomerInfoBean>();\r\n\t\tString monthlyIncome;\r\n\t\tint applianceId, customerId, salesmanId, status;\r\n\t\tString customerName, cnicNo, phoneNo, district, gsmNumber, salesmanName, applianceName;\r\n\t\tboolean state;\r\n\t\ttry {\r\n\t\t\tConnection con = connection.Connect.getConnection();\r\n\t\t\tString query = \"SELECT cs.customer_id ,cs.customer_name, cs.customer_cnic ,cs.customer_phone, c.city_name, cs.customer_monthly_income, \\n\"\r\n\t\t\t\t\t+ \" a.appliance_GSMno, a.appliance_status, s.salesman_name ,sld.payement_option, a.appliance_id, s.salesman_id, \\n\"\r\n\t\t\t\t\t+ \" a.appliance_name, cs.status FROM eligibility e\\n\"\r\n\t\t\t\t\t+ \" JOIN appliance a ON e.appliance_id =a.appliance_id \\n\"\r\n\t\t\t\t\t+ \" JOIN salesman s ON e.salesman_id =s.salesman_id \\n\"\r\n\t\t\t\t\t+ \" JOIN customer cs ON e.customer_id = cs.customer_id \\n\"\r\n\t\t\t\t\t+ \" JOIN sold_to sld ON cs.customer_id=sld.customer_id\\n\"\r\n\t\t\t\t\t+ \" JOIN city c ON cs.customer_city=c.city_id\\n\"\r\n\t\t\t\t\t+\r\n\r\n\t\t\t\t\t\" WHERE sld.payement_option=0\";\r\n\t\t\tPreparedStatement stmt = con.prepareStatement(query);\r\n\t\t\tResultSet rs = stmt.executeQuery();\r\n\t\t\twhile (rs.next()) {\r\n\t\t\t\tcustomerId = rs.getInt(1);\r\n\t\t\t\tcustomerName = rs.getString(2);\r\n\t\t\t\tcnicNo = rs.getString(3);\r\n\t\t\t\tphoneNo = rs.getString(4);\r\n\t\t\t\tdistrict = rs.getString(5);\r\n\t\t\t\tmonthlyIncome = rs.getString(6);\r\n\t\t\t\tgsmNumber = rs.getString(7);\r\n\t\t\t\tstate = rs.getBoolean(8);\r\n\t\t\t\tsalesmanName = rs.getString(9);\r\n\r\n\t\t\t\tapplianceId = rs.getInt(11);\r\n\t\t\t\tsalesmanId = rs.getInt(12);\r\n\t\t\t\tapplianceName = rs.getString(13);\r\n\t\t\t\tstatus = rs.getInt(14);\r\n\t\t\t\tbean = new CustomerInfoBean();\r\n\t\t\t\tbean.setCustomerName(customerName);\r\n\t\t\t\tbean.setCnicNo(cnicNo);\r\n\t\t\t\tbean.setDistrict(district);\r\n\t\t\t\tbean.setGsmNumber(gsmNumber);\r\n\t\t\t\tbean.setMonthlyIncome(monthlyIncome);\r\n\r\n\t\t\t\tbean.setState(state);\r\n\t\t\t\tbean.setSalesmanName(salesmanName);\r\n\t\t\t\tbean.setPhoneNo(phoneNo);\r\n\t\t\t\tbean.setSalesamanId(salesmanId);\r\n\t\t\t\tbean.setApplianceId(applianceId);\r\n\t\t\t\tbean.setCustomerId(customerId);\r\n\t\t\t\tbean.setApplianceName(applianceName);\r\n\t\t\t\tbean.setStatus(status);\r\n\t\t\t\tcustomerList.add(bean);\r\n\t\t\t}\r\n\r\n\t\t} catch (SQLException e) {\r\n\t\t\tlogger.error(\"\", e);\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t\treturn customerList;\r\n\t}",
"public static CustomerDetailsDto getCustomerDetailsDto() {\n\t\treturn new CustomerDetailsDto();\n\t}",
"@Override\n\tpublic List<Customer> getCustomerList() {\n\t\tSession session = sessionFactory.getCurrentSession();\n\t\tQuery query=session.createQuery(\"Select c from Customer c\");\n\t\tList<Customer> list=(List<Customer>)query.getResultList();\n\t\t/*\n\t\t * Customer customer = (Customer)session.load(Customer.class,customerId);\n\t\t * */\n\t\treturn list;\n\t}",
"@ApiOperation(value = \"Get a customer by id\", notes = \"\")\n @GetMapping(value = {\"/{customerId}\"}, produces = MediaType.APPLICATION_JSON_VALUE)\n @ResponseStatus(HttpStatus.OK)\n public CustomerDTO getCustomerById(@PathVariable Long customerId) {\n\n return customerService.getCustomerById(customerId);\n }",
"public static ArrayList<CustomerInfoBean> getCutomers_onWait() {\r\n\t\tCustomerInfoBean bean = null;\r\n\t\tArrayList<CustomerInfoBean> customerList = new ArrayList<CustomerInfoBean>();\r\n\t\tString monthlyIncome;\r\n\t\tint applianceId, customerId, salesmanId, status;\r\n\t\tString customerName, cnicNo, phoneNo, district, gsmNumber, salesmanName, applianceName;\r\n\t\tboolean state;\r\n\t\ttry {\r\n\t\t\tConnection con = connection.Connect.getConnection();\r\n\t\t\tString query = \"SELECT cs.customer_id ,cs.customer_name, cs.customer_cnic ,cs.customer_phone, c.city_name, cs.customer_monthly_income, \\n\"\r\n\t\t\t\t\t+ \" a.appliance_GSMno, a.appliance_status, s.salesman_name , a.appliance_id, s.salesman_id, \\n\"\r\n\t\t\t\t\t+ \" a.appliance_name, cs.status FROM eligibility e\\n\"\r\n\t\t\t\t\t+ \" INNER JOIN appliance a ON e.appliance_id =a.appliance_id \\n\"\r\n\t\t\t\t\t+ \" INNER JOIN salesman s ON e.salesman_id =s.salesman_id \\n\"\r\n\t\t\t\t\t+ \" INNER JOIN customer cs ON e.customer_id = cs.customer_id\\n\"\r\n\t\t\t\t\t+ \" JOIN city c ON cs.customer_city=c.city_id\\n\"\r\n\t\t\t\t\t+ \" WHERE e.status=0;\";\r\n\t\t\tPreparedStatement stmt = con.prepareStatement(query);\r\n\t\t\tResultSet rs = stmt.executeQuery();\r\n\t\t\twhile (rs.next()) {\r\n\t\t\t\tcustomerId = rs.getInt(1);\r\n\t\t\t\tcustomerName = rs.getString(2);\r\n\t\t\t\tcnicNo = rs.getString(3);\r\n\t\t\t\tphoneNo = rs.getString(4);\r\n\t\t\t\tdistrict = rs.getString(5);\r\n\t\t\t\tmonthlyIncome = rs.getString(6);\r\n\t\t\t\tgsmNumber = rs.getString(7);\r\n\t\t\t\tstate = rs.getBoolean(8);\r\n\t\t\t\tsalesmanName = rs.getString(9);\r\n\r\n\t\t\t\tapplianceId = rs.getInt(10);\r\n\t\t\t\tsalesmanId = rs.getInt(11);\r\n\t\t\t\tapplianceName = rs.getString(12);\r\n\t\t\t\tstatus = rs.getInt(13);\r\n\t\t\t\tbean = new CustomerInfoBean();\r\n\t\t\t\tbean.setCustomerName(customerName);\r\n\t\t\t\tbean.setCnicNo(cnicNo);\r\n\t\t\t\tbean.setDistrict(district);\r\n\t\t\t\tbean.setGsmNumber(gsmNumber);\r\n\t\t\t\tbean.setMonthlyIncome(monthlyIncome);\r\n\r\n\t\t\t\tbean.setState(state);\r\n\t\t\t\tbean.setSalesmanName(salesmanName);\r\n\t\t\t\tbean.setPhoneNo(phoneNo);\r\n\t\t\t\tbean.setSalesamanId(salesmanId);\r\n\t\t\t\tbean.setApplianceId(applianceId);\r\n\t\t\t\tbean.setCustomerId(customerId);\r\n\t\t\t\tbean.setApplianceName(applianceName);\r\n\t\t\t\tbean.setStatus(status);\r\n\t\t\t\tcustomerList.add(bean);\r\n\t\t\t}\r\n\r\n\t\t} catch (SQLException e) {\r\n\t\t\tlogger.error(\"\", e);\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t\treturn customerList;\r\n\t}",
"@Override\n\tpublic Customer viewCustomer(int customerId) {\n\t\t// TODO Auto-generated method stub\n\t\tCustomer cust = repository.findById(customerId)\n\t\t\t\t.orElseThrow(() -> new EntityNotFoundException(\"Currently No Customer is available with this id\"));\n\t\treturn cust;\n\t}",
"@Test\n public void getCustomer() {\n Customer customer = new Customer();\n customer.setFirstName(\"Dominick\");\n customer.setLastName(\"DeChristofaro\");\n customer.setEmail(\"dominick.dechristofaro@gmail.com\");\n customer.setCompany(\"Omni\");\n customer.setPhone(\"999-999-9999\");\n customer = service.saveCustomer(customer);\n\n // Copy the customer added to the mock database using the CustomerAPI\n Customer customerCopy = service.findCustomer(customer.getCustomerId());\n\n // Test getCustomer() API method\n verify(customerDao, times(1)).getCustomer(customer.getCustomerId());\n TestCase.assertEquals(customerCopy, customer);\n }",
"@Override\n\tpublic Customer getCustomer(int theId) {\n\t\tSession currentSession = sessionFactory.getCurrentSession();\n\n\t\t//now retrieve/read from database using the primary key or id..\n\t\tCustomer theCustomer = currentSession.get(Customer.class,theId);\n\n\t\treturn theCustomer;\n\t}",
"@GetMapping(\"/customerdetails\")\n\tpublic String listOfCustomer(Model model) {\n\t\tList<Customer> customerDetails = customerService.findByIsEnable();\n\t\tmodel.addAttribute(\"customerDetails\", customerDetails);\n\t\treturn \"customer-details\";\n\t}",
"@Override\r\n\tpublic Plan getPlanDetails(int customerID, long mobileNo) {\n\t\treturn null;\r\n\t}",
"public org.tempuri.Customers getCustomer() {\r\n return customer;\r\n }",
"private CustomerDetails initCustomerDetails() {\n CustomerDetails mCustomerDetails = new CustomerDetails();\n mCustomerDetails.setPhone(\"085310102020\");\n mCustomerDetails.setFirstName(\"user fullname\");\n mCustomerDetails.setEmail(\"mail@mail.com\");\n return mCustomerDetails;\n }",
"CustomerDTO getUserForProof(String name,CustomerDTO customerDTO) throws EOTException;",
"public String getCustomerName(){\n return customerName;\n }",
"@Override\n public void showCustomerDetails() {\n System.out.println(customerLoggedIn);\n }",
"@Override\n public JSONObject viewSLCustomerByID(long id) {\n\n return in_salescustdao.viewSLCustomerByID(id);\n }",
"@Override\n\t@Transactional\n\tpublic List<Customer> getCustomers() {\n\t\treturn customerDAO.getCustomers();\n\t\t\n\t}",
"public String queryCustomerInfo(int id, int customerID)\n throws RemoteException, DeadlockException;"
] |
[
"0.7892349",
"0.72243094",
"0.7184706",
"0.70809937",
"0.6992449",
"0.6882933",
"0.68497276",
"0.6842365",
"0.68081737",
"0.67829776",
"0.6757765",
"0.67506975",
"0.6747463",
"0.6746218",
"0.67125154",
"0.6710245",
"0.66850376",
"0.66590536",
"0.6653769",
"0.66412956",
"0.6638874",
"0.66370577",
"0.6627758",
"0.6615333",
"0.6583108",
"0.658229",
"0.6573312",
"0.654422",
"0.6540824",
"0.6535294",
"0.6513112",
"0.6494707",
"0.6477533",
"0.6454751",
"0.64485025",
"0.64198595",
"0.6413244",
"0.64128757",
"0.64078134",
"0.64059013",
"0.64054453",
"0.6401588",
"0.6401006",
"0.63986456",
"0.63957435",
"0.6370986",
"0.63595957",
"0.6355577",
"0.6342904",
"0.63425016",
"0.63293123",
"0.63271534",
"0.6321079",
"0.63187295",
"0.6309961",
"0.6305783",
"0.63008523",
"0.6294936",
"0.6294325",
"0.629334",
"0.62760943",
"0.62632245",
"0.62558967",
"0.6251645",
"0.62412524",
"0.62367773",
"0.62363565",
"0.6229677",
"0.62288845",
"0.62202895",
"0.6220113",
"0.6219243",
"0.62154514",
"0.6213904",
"0.6212563",
"0.6188406",
"0.61877954",
"0.6185396",
"0.6178766",
"0.61754096",
"0.6173295",
"0.6172431",
"0.61625415",
"0.61508775",
"0.6145668",
"0.61445844",
"0.6143191",
"0.61418194",
"0.61367106",
"0.61275303",
"0.6124045",
"0.61213523",
"0.6112294",
"0.61121315",
"0.61119753",
"0.6103842",
"0.6092588",
"0.6090723",
"0.6086",
"0.60845363"
] |
0.7647631
|
1
|
TODO Autogenerated method stub
|
@Override
protected void onLoginSuccess() {
}
|
{
"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.66713095",
"0.6567948",
"0.652319",
"0.648097",
"0.64770466",
"0.64586824",
"0.64132667",
"0.6376419",
"0.62759",
"0.62545097",
"0.62371093",
"0.62237984",
"0.6201738",
"0.619477",
"0.619477",
"0.61924416",
"0.61872935",
"0.6173417",
"0.613289",
"0.6127952",
"0.6080854",
"0.6076905",
"0.6041205",
"0.6024897",
"0.60200036",
"0.59985113",
"0.5967729",
"0.5967729",
"0.5965808",
"0.5949083",
"0.5941002",
"0.59236866",
"0.5909713",
"0.59030116",
"0.589475",
"0.58857024",
"0.58837134",
"0.586915",
"0.58575684",
"0.5850424",
"0.5847001",
"0.5824116",
"0.5810248",
"0.5809659",
"0.58069366",
"0.58069366",
"0.5800507",
"0.5792168",
"0.5792168",
"0.5792168",
"0.5792168",
"0.5792168",
"0.5792168",
"0.57900196",
"0.5790005",
"0.578691",
"0.578416",
"0.578416",
"0.5774115",
"0.5774115",
"0.5774115",
"0.5774115",
"0.5774115",
"0.5761079",
"0.57592577",
"0.57592577",
"0.5749888",
"0.5749888",
"0.5749888",
"0.5748457",
"0.5733414",
"0.5733414",
"0.5733414",
"0.57209575",
"0.57154554",
"0.57149583",
"0.57140404",
"0.57140404",
"0.57140404",
"0.57140404",
"0.57140404",
"0.57140404",
"0.57140404",
"0.571194",
"0.57043016",
"0.56993437",
"0.5696782",
"0.5687825",
"0.5677794",
"0.5673577",
"0.5672046",
"0.5669512",
"0.5661156",
"0.56579345",
"0.5655569",
"0.5655569",
"0.5655569",
"0.56546396",
"0.56543446",
"0.5653163",
"0.56502634"
] |
0.0
|
-1
|
UsersInfo ui = new UsersInfo(); model.addAttribute("user", ui);
|
@RequestMapping(method = RequestMethod.GET)
public String resiterMethod(@ModelAttribute UsersInfo info, ModelMap model) {
return "Register";
}
|
{
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
}
|
[
"@RequestMapping(value = \"/displayUserForm\", method = RequestMethod.GET)\n public String displayUserForm(Model model) {\n User user = new User();\n model.addAttribute(\"user\", user);\n return \"admin/addUser\";\n }",
"@RequestMapping(value = { \"/new\" }, method = RequestMethod.GET)\r\n public String newuser(ModelMap model) {\r\n User user = new User();\r\n model.addAttribute(\"user\", user);\r\n model.addAttribute(\"edit\", false);\r\n return \"registration\";\r\n\r\n }",
"@ModelAttribute(\"value\")\r\n\tpublic void userpopulate(){\r\n\t\tuservalue=new User();\r\n\t}",
"@GetMapping\n public String displayUser(Model model) {\n User newUser = new User(\"Sven Svennis\",\"Svennegatan 2\", new ArrayList<Loan>());\n userRepository.save(newUser);\n\n //TODO this is where we need to fetch the current user instead!\n User user = userRepository.getOne(1l);\n\n model.addAttribute(\"user\", user);\n\n return \"displayUser\";\n }",
"@RequestMapping(value = \"/registration\")\n public String registration(Model model) {\n User user = new User();\n model.addAttribute(\"user\", user);\n return \"user/registration\";\n }",
"@RequestMapping(value = \"/registration\", method = RequestMethod.GET)\n public String showPageRegistration(Model model)\n {\n model.addAttribute(\"registeredUser\", new User());\n return \"registration\";\n }",
"@RequestMapping(value = {\"/register\"}, method = RequestMethod.GET)\n public String newUser(ModelMap model) {\n User user = new User();\n Customer customer = new Customer();\n List<UserProfile> userProfileList = new ArrayList();\n user.setCustomer(customer);\n user.setUserProfileList(userProfileList);\n model.addAttribute(\"user\", user);\n model.addAttribute(\"edit\", false);\n model.addAttribute(\"action\", \"newuser\");\n model.addAttribute(\"loggedinuser\", appService.getPrincipal());\n return \"registration\";\n }",
"@GetMapping(\"register\")\n public String registerForm(Model model){\n model.addAttribute(\"user\", new User());\n return \"register_form\";\n }",
"@GetMapping(\"/register\")\n public String showRegister(Model model){\n model.addAttribute(\"user\", new User());\n return \"registerForm\";\n }",
"@RequestMapping( method = RequestMethod.GET )\n\tpublic String showUserForm( ModelMap model, HttpServletRequest request ) {\n\t\tUsuario usuario = new Usuario();\n\t\tmodel.addAttribute( \"usuario\", usuario );\n\t\treturn \"Formulario\";\n\t}",
"@RequestMapping(\"Home1\")\r\n\tpublic String createUser1(Model m) \r\n\t{\n\t\tm.addAttribute(\"employee\",new Employee());\r\n\t\treturn \"register\";//register.jsp==form action=register\r\n\t}",
"@GetMapping(\"/patientRegister\")\n public String patientRegister(Model model){\n model.addAttribute(\"patient\", new User());\n model.addAttribute(\"info\", new PatientInfo());\n return \"views/patient/patientRegister\";\n }",
"@GetMapping(\"/userAddForm\")\n\tpublic String userAddForm(Model theModel) {\n\t\tUser theUser = new User();\n\t\ttheModel.addAttribute(\"user\", theUser);\n\t\treturn \"registration-form\";\n\t}",
"@GetMapping(\"/doctorRegister\")\n public String doctorRegister(Model model){\n model.addAttribute(\"doctor\", new User());\n model.addAttribute(\"info\", new PrescriberInfo());\n return \"views/doctor/doctorRegister\";\n }",
"@GetMapping(\"login\")\n public String loginForm(Model model){\n model.addAttribute(\"user\", new User());\n return \"login_form\";\n }",
"@GetMapping(\"/pharmRegister\")\n public String pharmRegister(Model model){\n model.addAttribute(\"pharmacist\", new User());\n return \"views/pharmacist/pharmacistRegister\";\n }",
"@RequestMapping(value = \"/add\", method = RequestMethod.GET)\n public String addUser(Model model)\n {\n model.addAttribute(\"userDto\", new UserDto());\n return \"login/add\";\n }",
"@RequestMapping(value = \"/users\")\n\tpublic String index(Model model){\n \tList<Users> list = userService.getAll();\n \tcheckUser();\n \t\n \tmodel.addAttribute(\"loginusername\", loginUser.getUsername());\n \tmodel.addAttribute(\"loginemailuser\", loginUser.getEmail());\n \tmodel.addAttribute(\"loginuserid\", loginUser.getId());\n \tmodel.addAttribute(\"loginuser\", loginUser);\n \tmodel.addAttribute(\"s3awsurl\", new Constantes().s3awsurl);\n \t\n \tmodel.addAttribute(\"list\", list);\n\t\t\n\t\treturn \"users/list\";\n\t}",
"@GetMapping(\"/login\")\n public String showLogin(Model model){\n model.addAttribute(\"user\", new User());\n return \"loginForm\";\n }",
"private void getInfoUser(Model model,Principal principal){\n String username= principal.getName();\n\n if(username != null){\n User user= userService.findUserByName(username);\n String email= user.getEmail();\n String image= user.getImage();\n model.addAttribute(\"image\",image);\n model.addAttribute(\"username\", username);\n model.addAttribute(\"email\", email);\n }\n }",
"@RequestMapping(value = { \"/newuser\" }, method = RequestMethod.GET)\n\t@PreAuthorize(\"hasRole('ADMIN')\")\n\tpublic String newUser(ModelMap model) {\n\t\tUser user = new User();\n\t\tmodel.addAttribute(\"user\", user);\n\t\tmodel.addAttribute(\"edit\", false);\n\t\treturn \"registration\";\n\t}",
"@RequestMapping(\"/users/about/{id}\")\n public String about(@PathVariable Long id, Model model) {\n\t\tUsers aboutUser = userService.get(id);\n\t\tPerson person = aboutUser.getPerson();\n\t\tcheckUser();\n\n model.addAttribute(\"user\", aboutUser);\n\tmodel.addAttribute(\"person\", person);\n model.addAttribute(\"loginusername\", loginUser.getUsername());\n \tmodel.addAttribute(\"loginemailuser\", loginUser.getEmail());\n \tmodel.addAttribute(\"loginuserid\", loginUser.getId());\n \tmodel.addAttribute(\"loginuser\", loginUser);\n\tmodel.addAttribute(\"s3awsurl\", new Constantes().s3awsurl);\n \n\treturn \"users/aboutUser\";\n }",
"@GetMapping(\"/showAddFormUser\")\n\tpublic String showAddForm(Model model) {\n\t\tUser user = new User();\n\t\tmodel.addAttribute(\"user\", user);\n\t\t\n\t\t// add page title\n\t\tmodel.addAttribute(\"pageTitle\", \"Add User\");\n\t\treturn \"user-form\";\n\t}",
"@RequestMapping(value = \"/register\",method = RequestMethod.GET)\r\n\tpublic String viewRegistration(Model model) { \r\n\t\tmodel.addAttribute(\"userForm\", uservalue);\r\n\t\t//UserForm Name of the model attribute under which the form object is exposed. Defaults to 'command'.\r\n\t\treturn \"Registration\";\r\n\t}",
"@RequestMapping(value = \"/managerUser\", method = RequestMethod.GET)\n\tpublic String managerUser(Model model) {\n\t\tAuthentication auth = SecurityContextHolder.getContext().getAuthentication();\n\t\tmodel.addAttribute(\"username\", auth.getName());\n\t\tmodel.addAttribute(\"title\", \"WeSpeak | Quản lý tài khoản\");\n\n\t\tList<Users> list = userDAO.listUser();\n\t\tmodel.addAttribute(\"userModel\", list);\n\n\t\treturn \"managerUserPage\";\n\t}",
"@RequestMapping(value=\"/vueEmployeAjouterQcm\")\r\n\tpublic String nouveauUser(Model model){\r\n\t\t\r\n\t\tmodel.addAttribute(\"user\", this.user);\t\t\r\n\t\tmodel.addAttribute(\"bonjour\", this.bonjour);\r\n\t\tmodel.addAttribute(\"espace\", this.espace);\r\n\t\treturn \"Employe/vue-initialiser-qcm-formulaire\";\r\n\t}",
"@GetMapping(\"/users\")\n public String getUserList(Model model){\n List<User> users = accountService.getAllUsers();\n model.addAttribute(\"userList\", users);\n return \"listUsers\";\n }",
"public void populateUserInformation()\n {\n ViewInformationUser viewInformationUser = new ViewFXInformationUser();\n\n viewInformationUser.buildViewProfileInformation(clientToRegisteredClient((Client) user), nameLabel, surnameLabel, phoneLabel, emailLabel, addressVbox);\n }",
"@RequestMapping(value = \"/signup\", method = RequestMethod.GET)\n\tpublic String signUpPage(Model model)\n\t{\n\t\t/* Initialize user registration form */\n\t\tmodel.addAttribute(\"userForm\", new UserDto());\n\t\treturn \"user/signup\";\n\t}",
"@RequestMapping(value = { \"/\", \"/list\" }, method = RequestMethod.GET)\r\n public String listusers(ModelMap model) {\r\n List users = service.findAllUser();\r\n model.addAttribute(\"users\", users);\r\n return \"allusers\";\r\n }",
"@RequestMapping(value = \"/list\", method = RequestMethod.GET)\n\tpublic String listUsers(ModelMap model)\n\t{\n\t\tList<User> users = userService.findAllUsers();\n\t\tmodel.addAttribute(\"users\", users);\n\t\tmodel.addAttribute(\"loggedinuser\", getPrincipalUsername());\n\t\treturn \"userslist\";\n\t}",
"@RequestMapping(\"/user/{id}/view\")\n public String viewUser(@PathVariable String id, ModelMap theModel) {\n\n User theUserService = userService.findById(Integer.valueOf(id));\n Set<Sensor> sensors = theUserService.getSensor();\n\n theModel.addAttribute(\"theSensors\", sensors);\n return \"sensor/viewUserSensor\";\n }",
"@ModelAttribute\n\tpublic void addCommonData(Model model, Principal principal) {\n\t\tString userName = principal.getName();\n\t\tSystem.out.println(\"USERNAME \"+userName);\n\t\t\n\t\t// get the user using username(Email)\n\t\t\n\t\tUser user = userRepository.getUserByUserName(userName);\n\t\t\n\t\tSystem.out.println(\"USER \"+user);\n\t\t\n\t\tmodel.addAttribute(\"user\",user);\n\t}",
"@RequestMapping(\"/newuser\")\r\n\tpublic ModelAndView newUser() {\t\t\r\n\t\tRegister reg = new Register();\r\n\t\treg.setUser_type(\"ROLE_INDIVIDUAL\");\r\n\t\treg.setEmail_id(\"abc@xyz.com\");\r\n\t\treg.setFirst_name(\"First Name\");\r\n\t\treg.setCity(\"pune\");\r\n\t\treg.setMb_no(new BigInteger(\"9876543210\"));\r\n\t\treturn new ModelAndView(\"register\", \"rg\", reg);\r\n\t}",
"@GetMapping(value=\"/\")\n\tpublic String showRegistrationForm(WebRequest request, Model model) {\n\t\tUserDTO userDTO = new UserDTO();\n\t\tmodel.addAttribute(\"user\", userDTO);\n\t\treturn \"security/register\";\n\t}",
"@RequestMapping(value = \"/admin/signup\", method = RequestMethod.GET)\n public String adminSignupPage(Model model)\n {\n\t model.addAttribute(\"adminForm\", new UserDto());\n\t return \"admin/admin-signup\";\n }",
"@RequestMapping(\"/admin/viewClientUserSites\")\r\n\tpublic String viewClientUserSite(Model model){\n\t\tmodel.addAttribute(\"formObject\",new ClientUserSite());\r\n\t\tmakeUIData(entityManager,model,\"ClientUserSite\");\r\n\t\treturn DefaultService.ADMIN+\"viewClientUserSites\";\r\n\t}",
"@RequestMapping(\"/book/new\")\n public String newBook(Model model){\n model.addAttribute(\"book\", new Book ());\n return \"bookform\";\n }",
"@GetMapping(\"/registration\")\n public String registration(Model model) {\n \t\n model.addAttribute(\"userForm\", new User());\n\n return \"registration\";\n }",
"@GetMapping(value= \"/add\")\n public String add(Model model) {\n\n \tmodel.addAttribute(\"user\",new User());\n \tmodel.addAttribute(\"success\", true);\n\n \treturn \"addUser\";\n }",
"@RequestMapping(method = RequestMethod.GET, value = \"/user/{user_id}\")\n public String getUserPage(@PathVariable(\"user_id\") long user_id, Model model, HttpServletRequest a_request) {\n User given_user = this.user_dao.findById(user_id);\n\n //Create user wrapper\n UserWrapper wrapper = new UserWrapper(given_user);\n\n //Get common user object from session\n User common_user = (User) a_request.getSession(false).getAttribute(\"common_user\");\n\n //Add to model\n model.addAttribute(\"given_user\", wrapper);\n\n //Friends section\n //Get status of friends relationship\n //Set 'addToFriends' flag\n model.addAttribute(\"addToFriends\", this.friends_manager.validate(common_user, given_user));\n\n //Get amount of unconfirmed friends requests\n int unconfirmed_friends_request = this.friends_dao.getUnconfirmedFriendsRequests(common_user.getUserId()).size();\n //Add it to user session attribute\n a_request.getSession(false).setAttribute(\"unconfirmed_requests\", unconfirmed_friends_request);\n\n //Return user view\n return \"user\";\n }",
"@Override\n\tpublic userinfo getModel() {\n\t\treturn user;\n\t}",
"private String users(ModelMap model, Integer user_id) {\n\t\tList<Object> users = userservice.fetchUser(user_id);\n\t\tfor (Iterator<Object> iterator1 = users.iterator(); iterator1.hasNext();) {\n\t\t\tUser user = (User) iterator1.next();\n\t\t\tmodel.addAttribute(\"userdetail\", user);\n\t\t\tmodel.addAttribute(\"addresses\", user.getAddress());\n\t\t\tmodel.addAttribute(\"files\", user.getFile());\n\t\t}\n\t\treturn \"register\";\n\t}",
"@Override\r\npublic User_Login getModel() {\n\treturn user_Login;\r\n}",
"@GetMapping\n public String showProfilePage(Model model){\n user = (User) SecurityContextHolder.getContext().getAuthentication().getPrincipal();\n\n model.addAttribute(\"profileForm\",ProfileForm.createProfileFormFromUser(user));\n model.addAttribute(\"image\",user.getProfileImage() != null);\n\n return PROFILE_PAGE_NAME;\n }",
"@GetMapping(\"/register\")\r\n\tpublic String showRegistrationForm(Model theModel) {\r\n\t\ttheModel.addAttribute(\"user\", new UserCrm());\r\n\t\treturn \"registration\";\r\n\t}",
"@RequestMapping(\"updat\")\r\n\tpublic String update(Model m) \r\n\t{\n\t\tm.addAttribute(\"update1\",new Employee());\r\n\t\treturn \"update\";//register.jsp==form action=register\r\n\t}",
"public UserModel(){\n ID = 0; // The user's ID, largely used in conjuction with a database\n firstName = \"fname\"; //User's first name\n lastName = \"lname\"; // User's last name\n password= \"pass\"; ///User password\n username = \"testuser\"; //Valid email for user\n role = 0; //Whether the user is a typical user or administrator\n status = 0; //Whether the user is active or disabled\n }",
"@RequestMapping(\"/createReview\")\n public String createReview(Model model) {\n Review review = new Review();\n model.addAttribute(review);\n return \"createReview\";\n }",
"@RequestMapping(value = \"/add/userList\", method = RequestMethod.GET)\r\n\tpublic ModelAndView listUser() {\n\t\t\r\n\t\tSystem.out.println(\"Entering list user method\");\r\n\t\tuserDAO.list();\r\n\t\t\r\n\t\tModelAndView mv = new ModelAndView(\"page\");\r\n\t\tmv.addObject(\"greeting\", \"This is list of value \");\r\n\t\treturn mv;\r\n\t}",
"public UserInfo() {\r\n\t\t// TODO Auto-generated constructor stub\r\n\t}",
"@ModelAttribute(\"user\")\n public UserRegistration userRegistration() {\n return new UserRegistration();\n }",
"@PostMapping(\"/user-list\")\n\tpublic String userlist(@ModelAttribute User user, ModelMap model){\n\t\tmodel.addAttribute(\"USERS\", userService.save(user));\n\t\tmodel.addAttribute(\"addStatus\", true);\n\t\treturn \"redirect:/admin/user-list\";\n\t\n\t}",
"private void addDeveloperMap(ModelMap model) {\n List<User> developers = userDao.findDevelopers();\n//\t\tfor (User developer : developers) {\n model.addAttribute(\"developersList\", developers);\n//\t\t\tdeveloperMap.put(developer.getUserId(), developer.getUserName());\n//\t\t}\n//\n//\t\tmodel.addAttribute(\"developerMap\", developerMap);\n }",
"@RequestMapping(value = \"/editUserData\" , method = RequestMethod.POST)\n\tpublic String saveEditUser(@ModelAttribute(\"updateDetails\") LoginUser user, Model model)\n\t{\n\t\tLoginUser updatedDetails=loginService.updateData(user);\n\n\n\n\t\t//\tSystem.out.println(\"return in controller \"+l);\n\t\tmodel.addAttribute(\"updatedDetails\", updatedDetails);\n\t\treturn \"login\";\n\t}",
"@RequestMapping(\"/getusers\")\n public UserViewModel userViewModel (){\n return userService.getAllUsers();\n }",
"@RequestMapping(value = \"/profile\", method = RequestMethod.GET)\n\tpublic String create(Model model) {\n\t\tmodel.addAttribute(\"profile\", new Profile());\n\t\treturn \"create\";\n\t}",
"@Override\n\tpublic void execute(Model model) {\n\t\tString userid = (String)model.asMap().get(\"userid\");\n//\t\tString nickname = (String)model.asMap().get(\"nickname\");\n\t\t\n\t\tRecipeDAO dao = new RecipeDAO();\n\t\tArrayList<MyRecipeDTO> list = dao.MyRecipe(userid);\n\t\t\n\t\tmodel.addAttribute(\"MyRecipe\", list); \n\t}",
"@RequestMapping(value = {\"/testing\", \"/list\"}, method = RequestMethod.GET)\r\n public String listUsers1(ModelMap model, HttpServletRequest req) {\r\n\r\n List<User> users = userService.findAllUsers();\r\n /*\r\n if (null != user.getImgLocation() && !\"\".equalsIgnoreCase(user.getImgLocation())) {\r\n encodedString = utility.imageToBase64tring(user.getImgLocation());\r\n } else {\r\n System.out.println(\"Image is empty or null\");\r\n }\r\n\r\n model.addAttribute(\"user\", fileBucket);\r\n model.addAttribute(\"edit\", true);\r\n model.addAttribute(\"image\", encodedString);\r\n */\r\n model.addAttribute(\"users\", users);\r\n return \"userslist\";\r\n }",
"@RequestMapping(\"/new\")\n public String newStudent(ModelMap view) {\n Student student = new Student();\n view.addAttribute(\"student\", student);\n view.addAttribute(\"listurl\", listurl);\n return(\"newstudent\");\n }",
"@RequestMapping(\"findUser\")\r\n public String getSearch(ModelMap model) {\r\n\r\n List<User> userList = null;\r\n\r\n model.addAttribute(\"users\", userList);\r\n\r\n return \"search\";\r\n }",
"@ModelAttribute(\"student\")\n public Student_gra_84 setupAddForm() {\n return new Student_gra_84();\n }",
"@RequestMapping(value = \"list\", method = RequestMethod.GET)\n public String list(Model model) {\n LOGGER.info(\"Invoke list()\");\n List<TbUser> tbUsers = tbUserService.selectAll();\n model.addAttribute(\"tbUsers\", tbUsers);\n return \"user_list\";\n }",
"@Override\r\n\tpublic User getModel() {\n\t\tuser = new User();\r\n\t\treturn user;\r\n\t}",
"@GetMapping(\"/admin\")\n public String admin(Model model){\n String nextPage = \"login\";\n User currentUser = (User) model.getAttribute(\"currentUser\");\n if (isValid(currentUser))\n nextPage = \"adminpage\";\n else{\n User user = new User();\n model.addAttribute(\"currentUser\", null);\n model.addAttribute(\"newUser\", user);\n }\n return nextPage;\n }",
"public interface IUserInfoView extends BaseView {\n void showUserData(UserBean userBean);\n}",
"@GetMapping(value = \"/utilisateur/inscription\")\n public String inscriptionForm(Model model){\n Utilisateur utilisateur=new Utilisateur();\n logger.info(\"Un visiteur veut accéder au formulaire d'inscription\");\n model.addAttribute(\"utilisateur\",utilisateur);\n return \"inscription\";\n }",
"@RequestMapping(method = RequestMethod.GET)\n\tpublic String setupForm(Model model) \n\t{\n\t\tEmployeeEntity employeeVO = new EmployeeEntity();\n\t\tmodel.addAttribute(\"employee\", employeeVO);\n\t\treturn \"listEmployeeView\";\n\t}",
"@GetMapping(\"/registration\")\n\t public String registration(Model model) {\n\t model.addAttribute(\"userForm\", new User());\n\t return \"registration\";\n\t }",
"@RequestMapping(\"/productlist/Productdetails/{id}\")\n\n public String Productdetails(@PathVariable String id, Model model) throws IOException{\n\n Product bike = productDao.getProductById(id);\n model.addAttribute(bike);\n\n\n return \"productdetails\";\n }",
"@RequestMapping(\"/orderHistory\")\n public String orderHistory(Model model, Principal principal, Authentication authentication){\n model.addAttribute(\"categories\", categoryRepository.findAll());\n model.addAttribute(\"products\", productRepository.findAll());\n model.addAttribute(\"users\", userRepository.findAll());\n model.addAttribute(\"carts\", cartRepository.findAll());\n /*model.addAttribute(\"user_id\", userRepository.findByUsername(principal.getName()).getId());*/\n model.addAttribute(\"user_id\", userService.getUser().getId());\n\n\n User currentUser = userService.getUser();\n Set<Cart> currentUserCarts = currentUser.getCarts();\n\n\n model.addAttribute(\"currentUser\", currentUser);\n model.addAttribute(\"currentUserCarts\", currentUserCarts);\n\n\n\n\n return \"orderHistory\";\n }",
"@GetMapping(\"/updateLoggedUser\")\n public String updateLoggedUser(Model model){\n CustomUserDetails userDetails =\n (CustomUserDetails) SecurityContextHolder.getContext().getAuthentication().getPrincipal();\n\n User user = accountService.getUser(userDetails.getId());\n model.addAttribute(\"newUser\", user);\n return \"updateLoggedUser\";\n }",
"@RequestMapping(value=\"/{username}\", method=GET)\n\tpublic String showSorcererProfile(\n\t\t@PathVariable String username, Model model) {\n\t Sorcerer sorcerer = sorcererDao.findByUsername(username);\n\t model.addAttribute(sorcerer);\t\t\n\t return \"profile\";\t\n\t}",
"@RequestMapping(value = \"home\", method = RequestMethod.GET)\n public String home(Model model, HttpServletRequest request){\n IronUser user = (IronUser)request.getSession().getAttribute(\"user\");\n\n Long usrId = user.getId();\n\n // get users favorites\n Set<Movie> favs = userRepository.findOne(usrId).getFavs();\n\n\n // put them in a model\n model.addAttribute(\"favs\", favs);\n\n // send them to the dam\n return \"home\";\n }",
"@RequestMapping(value=\"/admin\" , method= RequestMethod.GET)\n\tpublic String adminPage(ModelMap model) { \n\t\t\n\t\tmodel.addAttribute(\"user\",getUserData());\n\t\treturn\"admin\";\n\t}",
"@GetMapping(\"/showNewEmployeeForm\")\n public String showNewEmployeeForm(Model model){\n Employee employee=new Employee();\n model.addAttribute(\"employee\",employee);\n return \"Add_Employee\";\n }",
"public void viewUser() {\n\t\tsuper.viewUser();\n\t}",
"public HomeView(User user) {\n initComponents();\n this.user = user;\n jLabelName.setText(user.getName()); \n }",
"public interface UserModel {\n\n\n}",
"UserModel()\n {/*Used for Gson*/}",
"@Override\n public String getTypeForDisplay() {\n return \"User\";\n }",
"public static void addUserContext(Map<String, Object> model) {\r\n\t\tUser user = new User();\r\n\t\tuser.setUsername(SecurityContextHolder.getContext().getAuthentication().getName());\r\n\t\tmodel.put(\"user\", user);\r\n\t}",
"@RequestMapping(value = \"/create\", method = RequestMethod.GET)\n public String create(Model model) {\n model.addAttribute(\"roles\", getAllRoles());\n return \"object/create\";\n }",
"public void doGet(HttpServletRequest req, HttpServletResponse res) throws ServletException, IOException {Usermodel usermodel = new Usermodel();\n//\t\tusermodel.setFullName(\"Nguyen Trung Hieu\");\n//\t\t//cach lay fullName cua usermodel de day ra jsp | \"model\" se co tat cac thuoc tinh cua usermoldel\n//\t\treq.setAttribute(\"model\", usermodel);\n//\t\t\n\t\tRequestDispatcher requestDispatchedDispatcher = req.getRequestDispatcher(\"/views/web/home-web.jsp\");\n\t\trequestDispatchedDispatcher.forward(req, res);\n\n\t}",
"@RequestMapping(value=\"/vueInternauteCategoriesQcms\")\r\n\tpublic String vueInternauteCategoriesQcms(Model model){\r\n\r\n\t\tmodel.addAttribute(\"user\", this.user);\t\t\r\n\t\tmodel.addAttribute(\"bonjour\", this.bonjour);\r\n\t\tmodel.addAttribute(\"espace\", this.espace);\r\n\t\treturn \"Internaute/vue-categories\";\r\n\t}",
"public User details(String user);",
"@RequestMapping(\"/addjob\")\n public String addJob(Model model)\n {\n model.addAttribute(\"aJob\",new Job());\n return \"addjob\";\n }",
"@RequestMapping(\"/showForm\")\n\tpublic String showForm(Model theModel) {\n\t\tStudent theStudent = new Student();\n\t\t\n\t\t// add student object to the model\n\t\ttheModel.addAttribute(theStudent);\n\t\t\n\t\t// add the department options to the model \n\t theModel.addAttribute(\"departmentOptions\", departmentOptions); \n\t \n\t LinkedHashMap<String, String> favoriteLanguageOptions = new LinkedHashMap<String, String>();\n\t favoriteLanguageOptions.put(\"Java\", \"Java\");\n favoriteLanguageOptions.put(\"C#\", \"C#\");\n favoriteLanguageOptions.put(\"PHP\", \"PHP\");\n favoriteLanguageOptions.put(\"Ruby\", \"Ruby\"); \n\t theModel.addAttribute(\"favoriteLanguageOptions\", favoriteLanguageOptions); \n\n\t\treturn \"student-form\";\n\t}",
"@RequestMapping(\"/home\")\n public String home(HttpSession session,Model model) {\n //Getting the session details\n List<Image> image =imageService.getAll();\n model.addAttribute(\"images\", image);\n\n // Setting the current User as currUser by taking it from session\n User currUser = (User)session.getAttribute(\"currUser\");\n ProfilePhoto photo = currUser.getProfilePhoto();\n model.addAttribute(\"profilephoto\",photo);\n return \"home\";\n }",
"@RequestMapping(\"/new\")\n\tpublic String displayProjectForm(Model model) {\n\t\tProject aproject = new Project();\n\t//Iterable<Employee> employees = \tpro.getall();\n\t\n\t\tmodel.addAttribute(\"project\", aproject);\n\n\t\t//model.addAttribute(\"allEmployees\", employees);\n\t\t\n\t\t\n\t\treturn \"newproject\";\n\t\t\n\t}",
"public ListUserBean(){\n \n }",
"@RequestMapping(\"/clienteLista\")\r\n\tpublic String indice(Model model){\t\t\r\n\t\t\r\n\t\tmodel.addAttribute(\"cliente\", new Cliente()); //Al iniciar página siempre pasamos instancia vacía\r\n\t\t\r\n\t\treturn \"clienteLista\";\r\n\t}",
"@RequestMapping(\"/list\")\n public String showMyMainSensorPage(ModelMap theModel) {\n\n List<Sensor> theSensor = sensorService.findAll();\n\n theModel.addAttribute(\"theSensors\", theSensor);\n\n return \"sensor/viewUserSensor\";\n\n }",
"@RequestMapping(\"edit\")\n\tpublic String edit(ModelMap model, HttpSession httpSession) {\n\t\tCustomer user = (Customer) httpSession.getAttribute(\"user\");\n\t\tmodel.addAttribute(\"user\", user);\n\t\treturn \"user/account/edit\";\n\t}",
"@RequestMapping(\"/rating/list\")\r\n public String home(Model model)\r\n {\r\n model.addAttribute(\"ratings\", ratingRepository.findAll());\r\n return \"rating/list\";\r\n }",
"public UserView() {\n initComponents();\n new UserDaoImp().createTable();\n displayDataIntoTable();\n displayDataAtComboBox();\n\n }",
"@RequestMapping(value = \"/\", method = RequestMethod.GET)\n\tpublic String home(HttpSession session,Model model) {\n\t\tUser user=(User)session.getAttribute(\"user\");\n\t\tif(user!=null) {\n\t\t\tlogger.info(\"user {}\",user.getName());\n\t\t}\n\t\t\n\t\t\n\t\t\n\t\tList<User> users=testService.getUsers();\n\t\t\n\t\n\t\tmodel.addAttribute(\"users\", users);\n\t\t\n\t\t\n\t\treturn \"home\";\n\t}",
"@RequestMapping(value=\"/listall/users\", method = RequestMethod.GET) \n\t\n\tpublic String findByUsername(ModelMap model) {\n\t\t \n\t return \"displayUserProfile\" ;\t\n\t}",
"@RequestMapping(value = \"themtaikhoan\", method = {RequestMethod.GET})\n public String insertAccount(ModelMap model) {\n if (conUser == null) {\n return \"dangnhap\";\n } else {\n model.addAttribute(\"user\", new User());\n model.addAttribute(\"tenUser\", conUser.getUsername());\n return \"insertAccount\";\n }\n }",
"public UserInfo() {\n }",
"@GetMapping(\"/userlist\")\n\tpublic String listUsers(Model model) {\n\t\tList<User> users = userService.getUsers();\n\t\t\n\t\t// add the customers to the model\n\t\tmodel.addAttribute(\"users\",users);\n\t\t\n\t\t// add page title\n\t\tmodel.addAttribute(\"pageTitle\", \"List Users\");\n\t\treturn \"list-users\";\n\t}"
] |
[
"0.7350018",
"0.7062552",
"0.69479144",
"0.69314677",
"0.69064015",
"0.68890536",
"0.6873567",
"0.68076944",
"0.6745031",
"0.6708383",
"0.6705567",
"0.6689754",
"0.6647017",
"0.66115695",
"0.6603545",
"0.6598067",
"0.65720904",
"0.64884686",
"0.6461021",
"0.6451765",
"0.644307",
"0.6428078",
"0.6422232",
"0.6398732",
"0.6388255",
"0.6371691",
"0.63639957",
"0.6333724",
"0.63278556",
"0.6301946",
"0.62908906",
"0.62864304",
"0.62683684",
"0.62435883",
"0.6237861",
"0.622992",
"0.62230915",
"0.6219657",
"0.62158847",
"0.62022847",
"0.6200993",
"0.6187962",
"0.61859035",
"0.6170872",
"0.6164963",
"0.61645246",
"0.6152802",
"0.6147722",
"0.6110229",
"0.6085134",
"0.60849035",
"0.60841936",
"0.6064123",
"0.60574245",
"0.6046145",
"0.6034515",
"0.60343957",
"0.6025448",
"0.60181427",
"0.6015252",
"0.60109484",
"0.6003597",
"0.60020953",
"0.60001934",
"0.59986633",
"0.59904546",
"0.5980822",
"0.5971567",
"0.5971157",
"0.5968609",
"0.5963047",
"0.5958708",
"0.5957411",
"0.5956415",
"0.59540373",
"0.59486336",
"0.59442",
"0.59429175",
"0.5932009",
"0.5928191",
"0.5918101",
"0.5915066",
"0.589538",
"0.58828634",
"0.587024",
"0.5866559",
"0.5866139",
"0.5860096",
"0.58557117",
"0.5852856",
"0.58515906",
"0.58496416",
"0.58492666",
"0.5835561",
"0.5831349",
"0.58298355",
"0.582948",
"0.58192754",
"0.5819194",
"0.5813692",
"0.5812787"
] |
0.0
|
-1
|
TODO Autogenerated method stub
|
@Override
public HotelPromotionVO toHotelPromotionVO() {
return new HotelPromotionVO(hotelID, "特定时间促销策略", start, end, null, -1, discount);
}
|
{
"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
|
Add a row to this TableView's row collection. The row is not yet added to the UI component. You to call layout() for the row to be physically added
|
public void addRow(TableViewRow row) {
this.rows.add(row);
}
|
{
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
}
|
[
"public void addRow() {\n tableModel.insertRow(this.getRowCount(), new String[]{});\n this.setModel(tableModel);\n\n }",
"public void addRow(Row row) {\r\n\t\trows.add(row);\r\n\t}",
"public int addRow() {\n\t\t// Create a new row with nothing in it\n\t\tList row = new ArrayList();\n\t\treturn(addRow(row));\n\t}",
"public void addRow(ResultRow row) {\r\n rows.add(row);\r\n }",
"public void addRow(Spedizione spedizione){\n spedizioni.add(spedizione);\n fireTableChanged(new TableModelEvent(this));\n }",
"public void addRow(Row r) {\n\t\tcontainingRows.add(r);\n\t}",
"public void addRow(String rowName);",
"@Override\n\tpublic void addRow() {\n\t\tif(this.numCols == 0){\n\t\t\tthis.numCols++;\n\t\t}\n\t\tthis.numRows++;\n\t}",
"public int addRow(List row) {\n\t\tdata.add(row);\n\t\tfireTableRowsInserted(data.size()-1, data.size()-1);\n\t\treturn(data.size() -1);\n\t}",
"public void addRow(final Object[] rowData) {\n\t\t((DefaultTableModel) this.model).addRow(rowData);\n\t}",
"public void addNewRow(Vector row) throws IllegalStateException{\r\n if(flagAddStatusRow){\r\n row.add(numberOfcolumns, new Integer(IS_INSERTED)); //Set status for row is add new\r\n }else{\r\n row.setElementAt(new Integer(IS_NO_CHANGE), numberOfcolumns);\r\n }\r\n data.add(row);\r\n }",
"public void addRow () {\n CSVRow row = CSVRow.createEmptyLine(nbOfColumns, this);\n addRow(row);\n }",
"public void addRow(DataRow dataRow) {\n this.dataRows.add(dataRow);\n }",
"public void addRow (int index)\n\t{\n\t\tm_data.rows.add(index, new ArrayList<Object>());\n\t\tm_data.rowsMeta.add(index, null);\n\t}",
"protected void addRow(TextButton buttonToAdd)\n {\n table.add(buttonToAdd).width(centre/3.0f);\n table.row();\n }",
"int addRow(RowData row_data) throws IOException;",
"public Builder addRow(\n int index, io.dstore.engine.procedures.MiCheckPerformanceAd.Response.Row value) {\n if (rowBuilder_ == null) {\n if (value == null) {\n throw new NullPointerException();\n }\n ensureRowIsMutable();\n row_.add(index, value);\n onChanged();\n } else {\n rowBuilder_.addMessage(index, value);\n }\n return this;\n }",
"public void addRow(EntityBean e) {\n rows.add(e);\n updateTotalPageNumbers();\n }",
"Row createRow();",
"public boolean addRow(TableRow row) {\n\n if (row.getContent().size() != columns.size())\n throw new IllegalArgumentException(\"El nombre de columnes de la nova fila no coincideix amb les de la taula\");\n\n for (String column : getColumnNames())\n if (!row.getContent().containsKey(column))\n throw new IllegalArgumentException(\"La nova fila no conté la columna: \" + column);\n\n return dataStructure.add(row);\n }",
"public Builder addRow(io.dstore.engine.procedures.MiCheckPerformanceAd.Response.Row value) {\n if (rowBuilder_ == null) {\n if (value == null) {\n throw new NullPointerException();\n }\n ensureRowIsMutable();\n row_.add(value);\n onChanged();\n } else {\n rowBuilder_.addMessage(value);\n }\n return this;\n }",
"public void setRow(int newRow) {\n this.row = newRow;\n }",
"private void addRow() {\n ArrayList<EscapeBlock> row = new ArrayList<>();\n grid.add(row);\n \n for (int j = 0; j < gridWidth; j++) {\n EscapeBlock block = new EscapeBlock(j, gridHeight);\n block.setLocation(margin + j * (Block.length+1) ,\n margin + topMargin + gridHeight * (Block.length+1)); \n \n this.add(block); // add to the JPanel \n row.add(block); // and to the row\n }\n \n gridHeight++;\n }",
"TableRow componentATableRow(){\n\n TableRow componentATableRow = new TableRow(this.context);\n View view = this.headerObjects.get(0);\n componentATableRow.addView(view);\n\n return componentATableRow;\n }",
"private void addRow() {\n\t\t\n\t\tArrayList<Invader> lastRow = enemyArray.get(enemyArray.size() - 1);\n\t\tArrayList<Invader> newRow = new ArrayList<Invader>();\n\t\t\t\n\t\tfor (int i = 0; i < 10; i++) {\n\t\t\tnewRow.add(new Invader(\n\t\t\t\t\tlastRow.get(i).getX(),\n\t\t\t\t\tlastRow.get(i).getY() + 40,\n\t\t\t\t\tPLAYER_WIDTH,\n\t\t\t\t\tPLAYER_WIDTH,\n\t\t\t\t\t2));\n\t\t}\n\t\t\n\t\tenemyArray.add(newRow);\n\t}",
"public void addNewItem(DataHolder newRow) {\n this.add(newRow);\n\n // sends request to update ListAdapter\n notifyDataSetChanged();\n }",
"public void addRow(double[] rowValues) {\n rows++;\n matrix.add(rowValues);\n }",
"public void addRow(Patient o)\n\t{\n\t\tthis.data.add(o);\n\t\tthis.fireTableChanged(null);\n\t}",
"public void newRow();",
"public void addRow(DataFile fileInfo, FileState state) {\n\n if (fileInfo != null && (state == FileState.NO_COPY || state == FileState.HAS_COPY || state == FileState.DOWNLOADING)\n || state == FileState.CORRUPTED) {\n data.add(new DataRowModel(fileInfo, state));\n } else {\n log.error(\"Row was not added - invalid data format!\");\n }\n fireTableDataChanged();\n }",
"public void insertRow(int index) {\n\t\tString[] array = new String[getColumnCount()];\n\t\tArrays.fill(array, \"\"); //$NON-NLS-1$\n\t\tinput.add(index, new ArrayList<String>(Arrays.asList(array)));\n\t\ttableViewer.refresh(false);\n\t\tfireTableModified();\n\t}",
"public void addRow (ArrayList<Object> l, int index)\n\t{\n\t\tm_data.rows.add(index, l);\n\t\tm_data.rowsMeta.add(index, null);\n\t}",
"public void add(String[] row) {\r\n\t\tthis.df.add(row);\r\n\t}",
"public void addRow(ResultSetRow row) throws SQLException {\n/* 231 */ notSupported();\n/* */ }",
"public Builder addRow(\n int index, io.dstore.engine.procedures.ImModifyNodeCharacsAd.Response.Row value) {\n if (rowBuilder_ == null) {\n if (value == null) {\n throw new NullPointerException();\n }\n ensureRowIsMutable();\n row_.add(index, value);\n onChanged();\n } else {\n rowBuilder_.addMessage(index, value);\n }\n return this;\n }",
"public Builder addRow(\n int index, io.dstore.engine.procedures.OmModifyCampaignsAd.Response.Row value) {\n if (rowBuilder_ == null) {\n if (value == null) {\n throw new NullPointerException();\n }\n ensureRowIsMutable();\n row_.add(index, value);\n onChanged();\n } else {\n rowBuilder_.addMessage(index, value);\n }\n return this;\n }",
"public native void appendRow(List<TableViewRow> rows, TableViewAnimation animation) /*-{\n\t\tvar jso = this.@com.emitrom.ti4j.core.client.ProxyObject::getJsObj()();\n\t\tjso\n\t\t\t\t.appendRow(\n\t\t\t\t\t\t@com.emitrom.ti4j.mobile.client.ui.TableViewRow::fromList(Ljava/util/List;)(rows),\n\t\t\t\t\t\tanimation.@com.emitrom.ti4j.core.client.ProxyObject::getJsObj()());\n }-*/;",
"public Builder addRow(\n int index, com.google.devtools.kythe.proto.Filecontext.ContextDependentVersion.Row value) {\n if (rowBuilder_ == null) {\n if (value == null) {\n throw new NullPointerException();\n }\n ensureRowIsMutable();\n row_.add(index, value);\n onChanged();\n } else {\n rowBuilder_.addMessage(index, value);\n }\n return this;\n }",
"public boolean addRow(BMessage message){\n return addRow(MessageListItem.fromBMessage(message, userID, maxWidth, customDateFormat));\n }",
"public static void rowPlus() {\n\t\tnRow++;\n\t\tbuildBoard();\n\t\tfor (int c = 0; c < nCol; c++)\n\t\t\tboard[c][nRow - 1] = pItem.getItem(rnd[c][nRow - 1] = random.nextDouble());\n\t\tRightPanel.updateTextBoardInfo();\n\t}",
"public void addRow(MyFile myFile) {\n\t\tint row = flexTable.getRowCount();\r\n\t\tButton filebtn = new Button(myFile.getName());\r\n\t\tfilebtn.addClickHandler(new MyfileClickHandler());\r\n\t\tif (myFile.getType() == FileType.DIR) {\r\n\t\t\tfilebtn.setStyleName(\"fileButton\");\r\n\t\t}\r\n\r\n\t\tButton modiftbtn = new Button(\"Modify\");\r\n\t\tmodiftbtn.addClickHandler(new ModifyButtonClickHandler());\r\n\t\tmodiftbtn.setTitle(myFile.getName());\r\n\t\tButton removrbtn = new Button(\"Remove\");\r\n\t\tremovrbtn.setTitle(myFile.getName());\r\n\t\tremovrbtn.addClickHandler(new RemoveButtonClickHandler());\r\n\t\tflexTable.setWidget(row, 0, filebtn);\r\n\t\tflexTable.setWidget(row, 1, new Label(myFile.getTypeName()));\r\n\t\tflexTable.setWidget(row, 2, modiftbtn);\r\n\t\tflexTable.setWidget(row, 3, removrbtn);\r\n\t}",
"@Override\n\t\t\tpublic void actionPerformed(ActionEvent arg0) {\n\t\t\t\taddRow();\n\t\t\t}",
"@Override\r\n\tpublic void addRow(Object[] rowData) {\r\n\t\ttry{\r\n\t\t\tPersona newRecord = new Persona();\r\n\t\t\tnewRecord.setNome((String)rowData[0]);\r\n\t\t\tnewRecord.setCognome((String)rowData[1]);\r\n\t\t\tnewRecord.setTelefono((String)rowData[2]);\r\n\t\t\tnewRecord.setIndirizzo((String)rowData[3]);\r\n\t\t\tnewRecord.setEta(Integer.parseInt((String)rowData[4]));\r\n\t\t\tlista.create(newRecord);\r\n\t\t\tsuper.addRow(rowData);\r\n\t\t}\r\n\t\tcatch (NumberFormatException nfe) {\r\n\t\t\tJOptionPane.showMessageDialog(null, NFE_MESSAGE);\r\n\t\t}\r\n\t}",
"@Override\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\taddRow();\n\t\t\t}",
"public native void insertRowBefore(int index, TableViewRow row, TableViewAnimation animation) /*-{\n\t\tvar jso = this.@com.emitrom.ti4j.core.client.ProxyObject::getJsObj()();\n\t\tjso\n\t\t\t\t.insertRowBefore(\n\t\t\t\t\t\tindex,\n\t\t\t\t\t\trow.@com.emitrom.ti4j.core.client.ProxyObject::getJsObj()(),\n\t\t\t\t\t\tanimation.@com.emitrom.ti4j.core.client.ProxyObject::getJsObj()());\n }-*/;",
"public Builder addRow(\n int index, io.dstore.engine.procedures.StGetPageVisitsAd.Response.Row value) {\n if (rowBuilder_ == null) {\n if (value == null) {\n throw new NullPointerException();\n }\n ensureRowIsMutable();\n row_.add(index, value);\n onChanged();\n } else {\n rowBuilder_.addMessage(index, value);\n }\n return this;\n }",
"public void addTimesheetRow(TimesheetRow tsRow) {\n\t\tservice.addTimesheetRow(tsRow);\n\t\ttimesheetRowList.add(tsRow);\n\t}",
"private void addRow(EMultipleAnswerType eMultipleAnswerType, String title, boolean answer){\n final View row;\n\n // *Setting the row xml:\n if(eMultipleAnswerType == EMultipleAnswerType.SINGLE_CHOICE){\n row = layoutInflater.inflate(ROW_SINGLE_CHOICE_LAYOUT, null);\n } else {\n row = layoutInflater.inflate(ROW_MULTIPLE_CHOICE_LAYOUT, null);\n }\n\n // *Hiding removeBtn:\n ImageButton removeBtn = (ImageButton) row.findViewById(ROW_REMOVE_BTN_ID);\n removeBtn.setVisibility(View.GONE);\n\n // *RadioButton listener:\n final CompoundButton compoundButton = (CompoundButton) row.findViewById(ROW_COMPOUND_BTN_ID);\n compoundButtonController.addCompoundButton(compoundButton);\n\n // *Fill the text and check state of the row:\n compoundButton.setText(title);\n compoundButton.setChecked(answer);\n\n rowContainer.addView(row);\n }",
"public TableRow() {\n\t\tthis.cells = new ArrayList<TableCell>();\n\t}",
"public Row getRow() {\n\treturn new Row(rowIndex); \n }",
"public Builder addRow(io.dstore.engine.procedures.OmModifyCampaignsAd.Response.Row value) {\n if (rowBuilder_ == null) {\n if (value == null) {\n throw new NullPointerException();\n }\n ensureRowIsMutable();\n row_.add(value);\n onChanged();\n } else {\n rowBuilder_.addMessage(value);\n }\n return this;\n }",
"public void insertRow() throws SQLException\n {\n m_rs.insertRow();\n }",
"public native void appendRow(List<TableViewRow> rows) /*-{\n\t\tvar jso = this.@com.emitrom.ti4j.core.client.ProxyObject::getJsObj()();\n\t\tjso\n\t\t\t\t.appendRow(@com.emitrom.ti4j.mobile.client.ui.TableViewRow::fromList(Ljava/util/List;)(rows));\n }-*/;",
"public Builder addRow(\n int index, io.dstore.engine.procedures.FoModifyForumsInCategoriesAd.Response.Row value) {\n if (rowBuilder_ == null) {\n if (value == null) {\n throw new NullPointerException();\n }\n ensureRowIsMutable();\n row_.add(index, value);\n onChanged();\n } else {\n rowBuilder_.addMessage(index, value);\n }\n return this;\n }",
"private void addEmptyRow()\n {\n TableLayout table = (TableLayout) findViewById(R.id.lossesTable);\n TableRow row = new TableRow(this);\n\n TextView emptyView1 = new TextView(this);\n ((BadBudgetApplication)this.getApplication()).initializeTableCell(emptyView1, \"\", R.drawable.emptyborder);\n TextView emptyView2 = new TextView(this);\n ((BadBudgetApplication)this.getApplication()).initializeTableCell(emptyView2, \"\", R.drawable.emptyborder);\n TextView emptyView3 = new TextView(this);\n ((BadBudgetApplication)this.getApplication()).initializeTableCell(emptyView3, \"\", R.drawable.emptyborder);\n TextView emptyView4 = new TextView(this);\n ((BadBudgetApplication)this.getApplication()).initializeTableCell(emptyView4, \"\", R.drawable.emptyborder);\n\n row.addView(emptyView1);\n row.addView(emptyView2);\n row.addView(emptyView3);\n row.addView(emptyView4);\n\n table.addView(row);\n }",
"public void setRowAddTime(Date rowAddTime) {\n this.rowAddTime = rowAddTime;\n }",
"public void absInsertRowAt(Vector row, int index) {\n if (row == null) {\n row = new Vector(getModel().getColumnCount());\n }\n ((DefaultTableModel) getModel()).insertRow(index, row);\n }",
"public native void insertRowAfter(int index, TableViewRow row, TableViewAnimation animation) /*-{\n\t\tvar jso = this.@com.emitrom.ti4j.core.client.ProxyObject::getJsObj()();\n\t\tjso\n\t\t\t\t.insertRowAfter(\n\t\t\t\t\t\tindex,\n\t\t\t\t\t\trow.@com.emitrom.ti4j.core.client.ProxyObject::getJsObj()(),\n\t\t\t\t\t\tanimation.@com.emitrom.ti4j.core.client.ProxyObject::getJsObj()());\n }-*/;",
"public void addRow(int[] row) {\n board[counter] = row;\n counter += 1;\n if (counter == 9) {\n startingBoard = copyBoard();\n }\n }",
"protected void addRowAttributes(TableRowBuilder row) {\n }",
"public void incrementRow() {\n setRowAndColumn(row + 1, column);\n }",
"public static void addRow(String[] arg0, String[] arg1) {\n tableModel.addRow(arg0, arg1);\n updateSummaryTable();\n inputModel.addRow(arg0[0], arg1.length / 2);\n updateInputTable();\n }",
"public Builder addRow(io.dstore.engine.procedures.StGetPageVisitsAd.Response.Row value) {\n if (rowBuilder_ == null) {\n if (value == null) {\n throw new NullPointerException();\n }\n ensureRowIsMutable();\n row_.add(value);\n onChanged();\n } else {\n rowBuilder_.addMessage(value);\n }\n return this;\n }",
"public static Row createRow() {\n\t\treturn new Row(fsco,criteria,columns);\n\t}",
"private void createRow( String name )\n {\n logger.log(Level.FINE, \"Creating Row\");\n\n JLabel label = new JLabel( name, SwingConstants.RIGHT );\n if (!isHeadless)\n label.setFont(new Font(\"Monospaced\", Font.PLAIN, 15));\n label.setHorizontalAlignment(SwingConstants.CENTER);\n label.setBorder(BorderFactory.createMatteBorder(0, 0, 1, 0, Color.DARK_GRAY));\n if (name.equals(PROFIT_LOSS))\n bottomPanel.add(label, BorderLayout.NORTH);\n else\n leftPanel.add(label);\n\n JTextField field = new JTextField( 30 );\n field.setEditable(false);\n if (!isHeadless)\n field.setFont(new Font(\"Serif\", Font.BOLD, 30));\n field.setBorder(BorderFactory.createMatteBorder(0, 0, 1, 0, Color.DARK_GRAY));\n field.setHorizontalAlignment(SwingConstants.CENTER);\n if (name.equals(PROFIT_LOSS)) {\n if (!isHeadless)\n field.setFont(new Font(\"Monospaced\", Font.BOLD, 55));\n bottomPanel.add(field, BorderLayout.CENTER);\n } else\n rightPanel.add(field);\n\n fields.put(name, field);\n\n logger.log(Level.FINE, \"Created Row\");\n\n }",
"private void addPerson(){\r\n\t\tpeople.add(new Person(this));\r\n\t\t// fire the listeners so the screen updates\r\n\t\t// when addPerson is called (by the button click)\r\n\t\tpersonTableModel.fireTableRowsInserted(0,0);\r\n\t}",
"public void addRow(CoverFooterItemType input_data){\r\n if (input_data != null){\r\n data.add(input_data);\r\n int row_num = data.size();\r\n this.fireTableRowsInserted(row_num,row_num);\r\n }\r\n }",
"public void insertRow(Vector<Row> _data) {\r\n if(!validTable()){\r\n System.out.println(\"Error:Table:insertRow: table invalid, nothing done\");\r\n return;\r\n }\r\n //inserts a row and updates indexes\r\n if(_data.size() == 0){\r\n System.out.println(\"Error:Table:insertRow: data to be inserted is empty, no data inserted\");\r\n return;\r\n }\r\n if(!rows.isEmpty() && _data.elementAt(0).getData().size() != rows.get(rows.keySet().iterator().next()).getData().size()){\r\n System.out.println(\"Error:Table:insertRow: data to be inserted is a mismatched size to existing data, no data inserted\");\r\n return;\r\n }\r\n for(Row r : _data) {\r\n String key = \"\";\r\n for(int i : primKeyIndexes)\r\n key = key + r.getDataAtIndex(i);\r\n rows.put(key, r);\r\n }\r\n }",
"public void addData(View view) {\n int numCompanies = companies.length;\n TableLayout tl = view.findViewById(R.id.tableLayout);\n Log.d(\"TableViewFragment\", \"addData() invoked\");\n for (int i = 0; i < numCompanies; i++) {\n Log.d(\"TableViewFragment\", \"addData()\" + (i));\n TableRow tr = new TableRow(getContext());\n tr.setLayoutParams(getLayoutParams());\n tr.addView(getTextView(i + 1, companies[i], Color.WHITE, Typeface.NORMAL, ContextCompat.getColor(getContext(), R.color.colorAccent)));\n tr.addView(getTextView(i + numCompanies, os[i], Color.WHITE, Typeface.NORMAL, ContextCompat.getColor(getContext(), R.color.colorAccent)));\n tl.addView(tr, getTblLayoutParams());\n }\n }",
"@Kroll.method\n\tpublic void appendRow(Object rows, @Kroll.argument(optional = true) KrollDict animation)\n\t{\n\t\tfinal List<TableViewRowProxy> rowList = new ArrayList<>();\n\n\t\tif (rows instanceof Object[]) {\n\n\t\t\t// Handle array of rows.\n\t\t\tfor (Object rowObj : (Object[]) rows) {\n\t\t\t\tfinal TableViewRowProxy row = processRow(rowObj);\n\n\t\t\t\tif (row != null) {\n\t\t\t\t\trowList.add(row);\n\t\t\t\t}\n\t\t\t}\n\t\t} else {\n\t\t\tfinal TableViewRowProxy row = processRow(rows);\n\n\t\t\t// Handle single row.\n\t\t\tif (row != null) {\n\t\t\t\trowList.add(row);\n\t\t\t}\n\t\t}\n\t\tif (rowList.size() == 0) {\n\t\t\treturn;\n\t\t}\n\n\t\t// Prevent updating rows during iteration.\n\t\tshouldUpdate = false;\n\n\t\t// Append rows to last section.\n\t\tfor (TableViewRowProxy row : rowList) {\n\n\t\t\t// Create section if one does not exist.\n\t\t\t// Or create new section if `headerTitle` is specified.\n\t\t\tif (this.sections.size() == 0\n\t\t\t\t|| row.hasPropertyAndNotNull(TiC.PROPERTY_HEADER)\n\t\t\t\t|| row.hasPropertyAndNotNull(TiC.PROPERTY_HEADER_TITLE)\n\t\t\t) {\n\t\t\t\tfinal TableViewSectionProxy section = new TableViewSectionProxy();\n\n\t\t\t\t// Set `headerTitle` of section from row.\n\t\t\t\tsection.setProperty(TiC.PROPERTY_HEADER_TITLE,\n\t\t\t\t\trow.getProperties().optString(TiC.PROPERTY_HEADER_TITLE,\n\t\t\t\t\t\trow.getProperties().getString(TiC.PROPERTY_HEADER)));\n\n\t\t\t\tsection.setParent(this);\n\t\t\t\tthis.sections.add(section);\n\t\t\t}\n\n\t\t\t// Obtain last section.\n\t\t\tfinal TableViewSectionProxy section = this.sections.get(this.sections.size() - 1);\n\n\t\t\t// Override footer of section.\n\t\t\tsection.setProperty(TiC.PROPERTY_FOOTER_TITLE,\n\t\t\t\trow.getProperties().optString(TiC.PROPERTY_FOOTER_TITLE,\n\t\t\t\t\trow.getProperties().getString(TiC.PROPERTY_FOOTER)));\n\n\t\t\t// Add row to section.\n\t\t\tsection.add(row);\n\t\t}\n\n\t\t// Allow updating rows after iteration.\n\t\tshouldUpdate = true;\n\t\tupdate();\n\t}",
"public void addRows(IfcTableRow Rows)\n\t{\n\t\tif(this.Rows == null)\n\t\t\tthis.Rows = new LIST<IfcTableRow>();\n\t\tthis.Rows.add(Rows);\n\t\tsynchronizeInversesAddRows(Rows);\n\t\tfireChangeEvent();\n\t}",
"public Builder addRow(io.dstore.engine.procedures.ImModifyNodeCharacsAd.Response.Row value) {\n if (rowBuilder_ == null) {\n if (value == null) {\n throw new NullPointerException();\n }\n ensureRowIsMutable();\n row_.add(value);\n onChanged();\n } else {\n rowBuilder_.addMessage(value);\n }\n return this;\n }",
"public Builder addRow(io.dstore.engine.procedures.FoModifyForumsInCategoriesAd.Response.Row value) {\n if (rowBuilder_ == null) {\n if (value == null) {\n throw new NullPointerException();\n }\n ensureRowIsMutable();\n row_.add(value);\n onChanged();\n } else {\n rowBuilder_.addMessage(value);\n }\n return this;\n }",
"public void addRow(String itemName, String itemPrice, String username) {\n LinearLayout parentLayout = findViewById(R.id.itemList);\n\n // Create layout for new item\n LinearLayout l = new LinearLayout(this);\n l.setOrientation(LinearLayout.HORIZONTAL);\n LinearLayout.LayoutParams layoutParams = new LinearLayout.LayoutParams(ViewGroup.LayoutParams.MATCH_PARENT, 100);\n layoutParams.bottomMargin = 10;\n l.setBackgroundResource(R.drawable.customborder);\n l.setLayoutParams(layoutParams);\n\n // Create item_name textview\n TextView name_textview = new TextView(this);\n name_textview.setText(itemName);\n name_textview.setTextSize(24);\n LinearLayout.LayoutParams nameParams = new LinearLayout.LayoutParams(0, ViewGroup.LayoutParams.MATCH_PARENT);\n nameParams.weight = 1;\n name_textview.setLayoutParams(nameParams);\n\n // Create price textview\n TextView price_textview = new TextView(this);\n price_textview.setText(\"$\"+itemPrice);\n price_textview.setTextSize(24);\n LinearLayout.LayoutParams priceParams = new LinearLayout.LayoutParams(0, ViewGroup.LayoutParams.MATCH_PARENT);\n priceParams.weight = 1;\n price_textview.setLayoutParams(priceParams);\n\n // Create username textview\n TextView username_textview = new TextView(this);\n username_textview.setText(username);\n username_textview.setTextSize(24);\n LinearLayout.LayoutParams usernameParams = new LinearLayout.LayoutParams(0, ViewGroup.LayoutParams.MATCH_PARENT);\n usernameParams.weight = 1;\n username_textview.setLayoutParams(usernameParams);\n\n // Add views to layout\n l.addView(name_textview);\n l.addView(price_textview);\n l.addView(username_textview);\n parentLayout.addView(l);\n\n }",
"public void setRowAddTime(Date rowAddTime) {\n\t\tthis.rowAddTime = rowAddTime;\n\t}",
"@Override\r\n public int getRow() {\r\n return this.row;\r\n }",
"public Row(int index) {\n this.index=index;\n row = new ArrayList<>(8);\n }",
"public void actionPerformed(ActionEvent e) {\n model.addRow();\n }",
"private void addTableRow(String[] cols){\n final TableRow tr = (TableRow) inflater.inflate(R.layout.word_table_row, tableLayout, false);\n tr.setClickable(true);\n final TableRow tr1 = (TableRow) inflater.inflate(R.layout.word_table_row1, tableLayout, false);\n //tr1.setClickable(true);\n final TextView posView = (TextView)tr.findViewById(R.id.wordPos);\n final TextView descriptionView = (TextView)tr.findViewById(R.id.wordDescription);\n final TextView glossView = (TextView) tr1.findViewById(R.id.wordGloss);\n final TextView glossView1 = (TextView) tr1.findViewById(R.id.wordGloss1);\n\n // set the background color to indicate if the row was selected\n View.OnClickListener clickListener = new View.OnClickListener() {\n public void onClick(View v) {\n Drawable background = posView.getBackground();\n int backColor = ContextCompat.getColor(context, R.color.row_background);\n if ((background instanceof ColorDrawable)) {\n int currentBackColor = ((ColorDrawable) background).getColor();\n if (currentBackColor == rowSelectColor)\n backColor = rowBackColor;\n //else if (currentBackColor == rowHighlightColor)\n // backColor = rowHighlightColor;\n else\n backColor = rowSelectColor;\n }\n posView.setBackgroundColor(backColor);\n descriptionView.setBackgroundColor(backColor);\n glossView.setBackgroundColor(backColor);\n tr.setBackgroundColor(backColor);\n tr1.setBackgroundColor(backColor);\n }\n };\n\n tr.setOnClickListener(clickListener);\n tr1.setOnClickListener(clickListener);\n\n // set the background color and text of the table row\n int backColor = rowBackColor;\n posView.setText(fromHtml(cols[0])); posView.setBackgroundColor(backColor);\n descriptionView.setText(fromHtml(cols[1])); descriptionView.setBackgroundColor(backColor);\n glossView.setText(fromHtml(cols[2])); glossView.setBackgroundColor(backColor);\n glossView1.setText(cols[3]);\n rows.add(tr); // save the collection of rows\n rows.add(tr1);\n tableLayout.addView(tr);\n tableLayout.addView(tr1);\n }",
"public void addRowSpanCell(int rowNum, TableCellParsingElement startingCell) {\r\n\t\tInteger key = new Integer(rowNum);\r\n\t\tArrayList<TableCellParsingElement> values = this.rowSpanCells.get(key);\r\n\r\n\t\tif (values == null) {\r\n\t\t\tvalues = new ArrayList<TableCellParsingElement>();\r\n\t\t}\r\n\r\n\t\tif (!values.contains(startingCell)) {\r\n\t\t\tvalues.add(startingCell);\r\n\t\t}\r\n\t\tthis.rowSpanCells.put(key, values);\r\n\r\n\t\t// System.out.println(\"Added new row span cell to the map at: \" + key\r\n\t\t// + \" with values: \" + values.toArray());\r\n\t}",
"public Builder addRow(com.google.devtools.kythe.proto.Filecontext.ContextDependentVersion.Row value) {\n if (rowBuilder_ == null) {\n if (value == null) {\n throw new NullPointerException();\n }\n ensureRowIsMutable();\n row_.add(value);\n onChanged();\n } else {\n rowBuilder_.addMessage(value);\n }\n return this;\n }",
"public void AddRow(String Table, String Value)\r\n {\n }",
"public void setRow(int row) {\n\t\tthis.row = row;\n\t}",
"public void setRow(int row) {\n\t\tthis.row = row;\n\t}",
"public void setRow(int row) {\n\t\tthis.row = row; \n\t}",
"public GridBagPanel addRow(Component... components)\n {\n if (myGBC.gridx == GridBagConstraints.RELATIVE)\n {\n setGridx(0);\n }\n if (myGBC.gridy == GridBagConstraints.RELATIVE)\n {\n setGridy(0);\n }\n\n for (Component component : components)\n {\n add(component);\n incrementGridx();\n }\n setGridx(0);\n incrementGridy();\n return this;\n }",
"public TableRow build_row(String item_name, String quantity, String price){\n\n //Converts pixel to dp\n int padding_in_dp = 10;\n final float scale = getResources().getDisplayMetrics().density;\n int padd_bottom = (int) (padding_in_dp * scale + 0.5f);\n\n TableRow row = new TableRow(getContext());\n\n TextView item_view = build_view(item_name, 6, false, true, row);\n TextView quantity_view = build_view(quantity, 3,true, false, row);\n TextView price_view = build_view(price,3,true, false, row);\n TextView delete_view = build_view(\"x\",1, true, true, row);\n\n row.addView(item_view);\n row.addView(quantity_view);\n row.addView(price_view);\n row.addView(delete_view);\n\n row.setPadding(0,0,0,padd_bottom);\n\n return row;\n }",
"public void addData(String[] row) {\n this.data.add(row);\n }",
"public void addRow(String userWeight, int date, int reps, float weight) {\n ContentValues newValues = new ContentValues();\n\n // Assign values for each row.\n newValues.put(KEY_WEIGHT, userWeight);\n newValues.put(KEY_DATE, date);\n newValues.put(KEY_benchReps, reps);\n newValues.put(KEY_BENCHWEIGHT, weight);\n\n\n // Insert the row into your table\n SQLiteDatabase db = moduleDBOpenHelper.getWritableDatabase();\n db.insert(ModuleDBOpenHelper.DATABASE_TABLE, null, newValues);\n }",
"public void addRow(String... cols)\r\n {\r\n rows.add(cols);\r\n }",
"void addRowsLock();",
"@Override\n public final void buildRow(T rowValue, int absRowIndex) {\n setRowInfo(absRowIndex, rowValue);\n buildRowImpl(rowValue, absRowIndex);\n }",
"public void setRow(int row)\n\t{\n\t\tthis.row = row;\n\t}",
"public void setRow(int row)\n\t{\n\t\tthis.row = row;\n\t}",
"Row<T> createRow(final T element);",
"public Builder addRows(\n String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n ensureRowsIsMutable();\n rows_.add(value);\n onChanged();\n return this;\n }",
"protected abstract E newRow();",
"public Matrix rowAdd(int rowI, int rowJ, ComplexNumber weight) {\n\t\t// rowI += weight * rowJ\n\t\tMatrix m = copy();\n\t\tfor (int col = 0; col < m.N; col++) {\n\t\t\tComplexNumber term = weight.multiply(m.ROWS[rowJ][col]);\n\t\t\tm.ROWS[rowI][col] = m.ROWS[rowI][col].add(term);\n\t\t}\n\t\treturn m;\n\t}",
"public TableRow getRow() {\n return row;\n }",
"public void addRowAt(int index, CoverFooterItemType input_data){\r\n if (input_data != null){\r\n data.add(index, input_data);\r\n this.fireTableRowsInserted(index,index);\r\n }\r\n }"
] |
[
"0.7727202",
"0.7309577",
"0.7135193",
"0.7004519",
"0.697451",
"0.6970073",
"0.696764",
"0.677",
"0.6688811",
"0.66552764",
"0.65111846",
"0.6479",
"0.64344126",
"0.6378867",
"0.6349691",
"0.6349304",
"0.626424",
"0.6243588",
"0.6140592",
"0.6128744",
"0.6055728",
"0.6000556",
"0.5988122",
"0.5953119",
"0.5945081",
"0.59171593",
"0.59033644",
"0.58823544",
"0.5866492",
"0.5851145",
"0.58439296",
"0.5841404",
"0.5835096",
"0.5820865",
"0.5819715",
"0.5800016",
"0.57982135",
"0.57933736",
"0.57927614",
"0.5791179",
"0.57820344",
"0.57442415",
"0.5731859",
"0.5720183",
"0.56756043",
"0.5673365",
"0.56640965",
"0.56611145",
"0.5657357",
"0.56560737",
"0.5654649",
"0.56515586",
"0.5642944",
"0.56378555",
"0.5631719",
"0.56248224",
"0.5623349",
"0.5622385",
"0.5618985",
"0.5607045",
"0.5600067",
"0.5570857",
"0.55647767",
"0.5564382",
"0.55475765",
"0.5545266",
"0.5544442",
"0.55312157",
"0.55284166",
"0.5523473",
"0.5511967",
"0.5507742",
"0.5479952",
"0.54741144",
"0.5450856",
"0.5449578",
"0.54457426",
"0.5442385",
"0.54338235",
"0.5430521",
"0.5417536",
"0.5411649",
"0.5408405",
"0.5408405",
"0.5398378",
"0.5385405",
"0.5373352",
"0.53671914",
"0.5366453",
"0.5361324",
"0.5361183",
"0.5356958",
"0.53417",
"0.53417",
"0.5337826",
"0.53180647",
"0.5314314",
"0.5305719",
"0.52977866",
"0.529112"
] |
0.80209816
|
0
|
One of Titanium.UI.Android.OVER_SCROLL_ALWAYS, Titanium.UI.Android.OVER_SCROLL_IF_CONTENT_SCROLLS, or Titanium.UI.Android.OVER_SCROLL_NEVER. Default: Titanium.UI.Android.OVER_SCROLL_ALWAYS
|
public native int getOverScrollMode() /*-{
var jso = this.@com.emitrom.ti4j.core.client.ProxyObject::getJsObj()();
return jso.overScrollMode;
}-*/;
|
{
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
}
|
[
"public native void setOverScrollMode(double value) /*-{\n\t\tvar jso = this.@com.emitrom.ti4j.core.client.ProxyObject::getJsObj()();\n\t\tjso.overScrollMode = value;\n }-*/;",
"@JSProperty(\"overscroll\")\n void setOverscroll(double value);",
"@Override \r\n protected boolean overScrollBy(int deltaX, int deltaY, int scrollX, int scrollY, int scrollRangeX, int scrollRangeY, int maxOverScrollX, int maxOverScrollY, boolean isTouchEvent){\n return super.overScrollBy(deltaX, deltaY, scrollX, scrollY, scrollRangeX, scrollRangeY, maxOverScrollX, mMaxYOverscrollDistance, isTouchEvent); \r\n }",
"@Override\n public void onScroll(AbsListView view, int firstVisibleItem,\n int visibleItemCount, int totalItemCount) {\n boolean loadMore = /* maybe add a padding */\n firstVisibleItem + visibleItemCount >= totalItemCount-1;\n // xHelper.log(\"goapp\",\"onScroll\");\n if(loadMore==true && totalItemCount!=0 && isLoadingThreads==false && isMoreOld) {\n loadMoreOld();\n }\n }",
"@Override\n public boolean canCoalesce() {\n if (mScrollEventType == ScrollEventType.SCROLL) {\n return true;\n }\n return false;\n }",
"@JSProperty(\"overscroll\")\n double getOverscroll();",
"@Override\r\n\tprotected void onOverScrolled(int scrollX, int scrollY, boolean clampedX,\r\n\t\t\tboolean clampedY) {\n\t\tsuper.scrollTo(scrollX, scrollY);\r\n\t}",
"void onScroll(boolean bDragging);",
"@Override\n\t\t\tpublic boolean onScroll(MotionEvent arg0, MotionEvent arg1, float arg2,\n\t\t\t\t\tfloat arg3)\n\t\t\t{\n\t\t\t\treturn false;\n\t\t\t}",
"@Override\r\n\tpublic boolean onScroll(MotionEvent arg0, MotionEvent arg1, float arg2,\r\n\t\t\tfloat arg3) {\n\t\treturn false;\r\n\t}",
"@Override\n\t\t\t\tpublic void onScrollStateChanged(AbsListView view, int scrollState) {\n\t\t\t\t\tbForceScrollDown = false;\n\t\t\t\t}",
"protected boolean needsFetchingScroll() {\n \t\treturn false;\n \t}",
"private void scrollEnable() {\n mBinding.scroll.postDelayed(new Runnable() {\n @Override\n public void run() {\n int viewHeight = mBinding.scroll.getMeasuredHeight();\n int contentHeight = mBinding.scroll.getChildAt(0).getHeight();\n if (viewHeight - contentHeight < 0) {\n Log.d(\">>>\", \"onGlobalLayout: scroll\");\n mBinding.review.setVisibility(View.VISIBLE);\n mBinding.review.setEnabled(true);\n mBinding.submit.setVisibility(View.GONE);\n // scrollable\n } else {\n mBinding.review.setVisibility(View.GONE);\n mBinding.submit.setVisibility(View.VISIBLE);\n Log.d(\">>>\", \"onGlobalLayout: not scroll\");\n }\n }\n }, 2000);\n }",
"void onScrollChange(View v, int scrollX, int scrollY, int oldScrollX, int oldScrollY);",
"@Override\n\tpublic boolean onScroll(MotionEvent arg0, MotionEvent arg1, float arg2,\n\t\t\tfloat arg3) {\n\t\treturn false;\n\t}",
"@Override\n\tpublic boolean onScroll(MotionEvent arg0, MotionEvent arg1, float arg2,\n\t\t\tfloat arg3) {\n\t\treturn false;\n\t}",
"@Override\n\tpublic boolean onScroll(MotionEvent arg0, MotionEvent arg1, float arg2,\n\t\t\tfloat arg3) {\n\t\treturn false;\n\t}",
"@Override\n\tpublic boolean onScroll(MotionEvent arg0, MotionEvent arg1, float arg2,\n\t\t\tfloat arg3) {\n\t\treturn false;\n\t}",
"@Override\n public void onAbsoluteScrollChange(int i) {\n }",
"private void loadScrollState() {\n AppExecutors.getInstance().mainThread().execute(() ->\r\n mScrollViewFinal.scrollTo(0, mActivityPreferences\r\n .getInt(getScrollType(mIsRedWine), 0)));\r\n }",
"public void onScroll(State state, int positionY);",
"@Override\n\tprotected void onScrollChanged(int l, int t, int oldl, int oldt) {\n\t\tsuper.onScrollChanged(l, t, oldl, oldt);\n\t\t\n\t}",
"public void onPageScrollStateChanged(int arg0) {\n\t\t\t\t\n\t\t\t}",
"private void setScrollDefaultState()\n {\n nestedScrollView.fullScroll(View.FOCUS_UP);\n nestedScrollView.scrollTo(0,0);\n appBarLayout.setExpanded(true);\n }",
"@Override\n\t\t\tpublic void onScrollStateChanged(AbsListView arg0, int arg1) {\n\t\t\t\treturn ;\n\t\t\t}",
"@Test\n public void testSlowScroll() {\n detector.onTouchEvent(createFakeEvent(MotionEvent.ACTION_DOWN));\n detector.onScrollChanged();\n assertThat(scrollStateListener.startCount).isEqualTo(1);\n detector.onScrollChanged();\n detector.onScrollChanged();\n detector.onScrollChanged();\n detector.onTouchEvent(createFakeEvent(MotionEvent.ACTION_UP));\n assertThat(scrollStateListener.startCount).isEqualTo(1);\n assertThat(scrollStateListener.stopCount).isEqualTo(1);\n }",
"@Override\n\t\t\tpublic void onScrollStateChanged(AbsListView view, int scrollState) {\n\t\t\t\tif(paging==true)\n\t\t\t\t{\t\n\t\t\t\t\tgetExhibitionsPaging();\n\t\t\t\t}\n\t\t\t}",
"@Override\r\n public boolean onScroll(float displacement, float delta, float velocity) {\n return false;\r\n }",
"@Override\n public void onScrollStateChanged(AbsListView view, int scrollState) {\n\n }",
"@Override\r\n\t\t\tpublic void onScrollStateChanged(AbsListView view, int scrollState) {\n\t\t\t\tLogUtil.print(\"scrolling--->\"\r\n\t\t\t\t\t\t+ schoolListView.getFirstVisiblePosition());\r\n\t\t\t\tswitch (scrollState) {\r\n\t\t\t\t// 当不滚动时\r\n\t\t\t\tcase OnScrollListener.SCROLL_STATE_IDLE:// 是当屏幕停止滚动时\r\n\t\t\t\t\tscrollFlag = false;\r\n\t\t\t\t\t// 判断滚动到底部\r\n\t\t\t\t\tif (schoolListView.getLastVisiblePosition() == (schoolListView\r\n\t\t\t\t\t\t\t.getCount() - 1)) {\r\n\t\t\t\t\t\t// toTopBtn.setVisibility(View.VISIBLE);\r\n\t\t\t\t\t}\r\n\t\t\t\t\t// 判断滚动到顶部\r\n\t\t\t\t\tif (schoolListView.getFirstVisiblePosition() == 0) {\r\n\t\t\t\t\t\t// toTopBtn.setVisibility(View.GONE);\r\n\t\t\t\t\t}\r\n\r\n\t\t\t\t\tbreak;\r\n\t\t\t\tcase OnScrollListener.SCROLL_STATE_TOUCH_SCROLL:// 滚动时\r\n\t\t\t\t\tscrollFlag = true;\r\n\r\n\t\t\t\t\tbreak;\r\n\t\t\t\tcase OnScrollListener.SCROLL_STATE_FLING:// 是当用户由于之前划动屏幕并抬起手指,屏幕产生惯性滑动时\r\n\t\t\t\t\tscrollFlag = false;\r\n\t\t\t\t\tbreak;\r\n\t\t\t\t}\r\n\t\t\t}",
"protected boolean scroll(int amount) {\n\t// Does nothing\n\treturn false;\n}",
"@Override\n\t\t\tpublic void onScroll(AbsListView view, int firstVisibleItem,\n\t\t\t\t\tint visibleItemCount, int totalItemCount) {\n\t\t\t\tif(firstVisibleItem==0){\n\t\t\t\t\tswipeLayout.setEnabled(true);\n\t\t\t\t}else{\n\t\t\t\t\tswipeLayout.setEnabled(false);\n\t\t\t\t}\n\n\t\t\t\tif(mLastFirstVisibleItem<firstVisibleItem)\n\t\t\t\t{\n\t\t\t\t\t//\t\t Log.i(\"SCROLLING DOWN\",\"TRUE\");\n\t\t\t\t\tAnimation slideUp = AnimationUtils.loadAnimation(getActivity(), R.anim.slide_up);\n\t\t\t\t\tstatuslyt.startAnimation(slideUp);\n\n\t\t\t\t}\n\t\t\t\tif(mLastFirstVisibleItem>firstVisibleItem)\n\t\t\t\t{\n\t\t\t\t\t//\t\t Log.i(\"SCROLLING UP\",\"TRUE\");\n\t\t\t\t}\n\t\t\t\tmLastFirstVisibleItem=firstVisibleItem;\n\t\t\t}",
"@Override\n public void onScrollChanged(int scrollY, boolean firstScroll, boolean dragging) {\n }",
"@Override\n protected void onScrollChanged(int l, int t, int oldl, int oldt) {\n super.onScrollChanged(l, t, oldl, oldt);\n\n }",
"@Override\r\n\tpublic void onScrollStateChanged(AbsListView view, int scrollState) {\n\r\n\t}",
"@Override\r\n public void onPageScrollStateChanged(int arg0) {\n\r\n }",
"public void setScrollable(boolean scrollable) {\n/* 1006 */ throw new RuntimeException(\"Stub!\");\n/* */ }",
"public void setOverScrolling(boolean z) {\n this.mStackScrollerOverscrolling = z;\n C0940QS qs = this.mQs;\n if (qs != null) {\n qs.setOverscrolling(z);\n }\n }",
"void onScrollChanged(ObservableHorizontalScrollView view, int l, int t);",
"@Override\n\t\t\tpublic void onScrollStateChanged(AbsListView view, int scrollState) \n\t\t\t{\n\t\t\t\tif (scrollState == AbsListView.OnScrollListener.SCROLL_STATE_FLING) \n\t\t\t\t{\n\t\t\t\t\t// Before Honeycomb pause image loading on scroll to help with performance\n\t\t\t\t\tif (!Utils.hasHoneycomb()) \n\t\t\t\t\t{\n\t\t\t\t\t\tmain.imageLoader.setPauseWork(true);\n\t\t\t\t\t}\n\t\t\t\t} \n\t\t\t\telse \n\t\t\t\t{\n\t\t\t\t\tmain.imageLoader.setPauseWork(false);\n\t\t\t\t}\n\t\t\t}",
"@Override\r\n\t\t\tpublic void onScroll(AbsListView arg0, int arg1, int arg2, int arg3) {\n\r\n\t\t\t}",
"@Override\n public void onPageScrollStateChanged(int arg0) {\n\n }",
"@Override\n public void onPageScrollStateChanged(int arg0) {\n \n }",
"@Override\n public void onPageScrollStateChanged(int arg0) {\n \n }",
"@Override\r\n\tpublic void onPageScrollStateChanged(int arg0) {\n\r\n\t}",
"@Override\r\n\tpublic void onPageScrollStateChanged(int arg0) {\n\r\n\t}",
"@Override\n public void onPageScrollStateChanged(int state)\n {\n\n }",
"public abstract void scroll(long ms);",
"@Override\n\tprotected void onScrollChanged(int l, int t, int oldl, int oldt) {\n\t\tsuper.onScrollChanged(l, t, oldl, oldt);\n\t\tif (mListener != null) {\n\t\t\tmListener.scrollOritention(l, t, oldl, oldt);\n\t\t}\n\t}",
"@Override\n\t\t\tpublic void onScrollStateChanged(AbsListView arg0, int arg1) {\n\t\t\t}",
"private boolean isRefreshViewScroll(float deltaY) {\n if (!isMarginChangeableWhenloading()) {\n if (mHeaderState == STATE_PULL_DOWN_TO_REFRESHING || mFooterState == STATE_PULL_UP_TO_LOADING) {\n //when HeaderView is refreshing,or FooterView is loading,view cannot scroll\n return false;\n }\n } else {\n if (mHeaderState == STATE_PULL_DOWN_TO_REFRESHING && isAtTop() && mHeaderParams.topMargin > -mHeaderHeight)\n return true;\n if (mFooterState == STATE_PULL_UP_TO_LOADING && isAtBottom() && mHeaderParams.topMargin < -mHeaderHeight)\n return true;\n }\n\n if (null != mListView) {\n if (isAtTop() && deltaY > 0) {\n //when top,view is scrollable\n //state is pull down to refresh\n mPullState = STATE_PULL_DOWN_TO_REFRESH;\n return true;\n } else if (isAtBottom() && deltaY < 0) {\n //when bottom,view is scrollable\n //state is pull up to load\n mPullState = STATE_PULL_UP_TO_LOAD;\n return true;\n }\n }\n\n return false;\n }",
"public void onScrollStateChanged(AbsListView arg0, int scrollState) {\n\t\tcurrentScrollState = scrollState;\n\t\tif (valorUltimo <= 0)\n\t\t\tisScrollCompleted();\n\t}",
"@Override\n public void onScrollStateChanged(AbsListView view, int scrollState) {\n this.currentScrollState = scrollState;\n try {\n isScrollCompleted();\n } catch (Exception ex) {\n\n }\n }",
"@Override\n\tpublic void onScroll(AbsListView arg0, int arg1, int arg2, int arg3) {\n\t\t\n\t}",
"@Override\n\tpublic void onScroll(AbsListView arg0, int arg1, int arg2, int arg3) {\n\t\t\n\t}",
"@Override\n\t\t\tpublic void onScroll(AbsListView arg0, int arg1, int arg2, int arg3) {\n\t\t\t\t\n\t\t\t}",
"public void setUpdateScroll(int updateScroll)\n {\n this.updateScroll = updateScroll;\n }",
"@Override\n public void onScroll(AbsListView view, int firstVisibleItem, int visibleItemCount, int totalItemCount) {\n //if there are no items in list, end method\n if(totalItemCount == 0) return;\n\n //if there are items in list, check if first visible item in list has changed\n if (isSameRow(firstVisibleItem)) {\n //if same, check top position of first visible item to see if scroll threshold is met\n int newScrollY = getTopItemScrollY();\n\n //check if scroll threshold is met\n boolean isSignificantDelta = Math.abs(mLastScrollY - newScrollY) > mScrollThreshold;\n\n //if change is significant\n if (isSignificantDelta) {\n //check scroll direction\n if (mLastScrollY > newScrollY) {\n //scroll up event\n onScrollUp();\n } else {\n //scroll down event\n onScrollDown();\n }\n }\n\n //set last scroll top position\n mLastScrollY = newScrollY;\n } else {\n //first visible item in list has changed, check change direction\n if (firstVisibleItem > mPreviousFirstVisibleItem) {\n //first visible item is greater, scroll up event\n onScrollUp();\n } else {\n //first visible item is less, scroll down event\n onScrollDown();\n }\n\n //save top position of first visible item\n mLastScrollY = getTopItemScrollY();\n\n //save item position of first visible item\n mPreviousFirstVisibleItem = firstVisibleItem;\n }\n }",
"private void updateScrollPosition() {\n int oldTop = scrollTop;\n int oldLeft = scrollLeft;\n scrollTop = DOM.getElementPropertyInt(getElement(), \"scrollTop\");\n scrollLeft = DOM.getElementPropertyInt(getElement(), \"scrollLeft\");\n if (connection != null && !rendering) {\n if (oldTop != scrollTop) {\n connection.updateVariable(id, \"scrollTop\", scrollTop, false);\n }\n if (oldLeft != scrollLeft) {\n connection.updateVariable(id, \"scrollLeft\", scrollLeft, false);\n }\n }\n }",
"@Override\r\n\tpublic void onScroll(AbsListView view, int firstVisibleItem,\r\n\t\t\tint visibleItemCount, int totalItemCount) {\n\r\n\t\tint offset = lastIndex - firstVisibleItem;\r\n\r\n\t\tif (offset < 0 || firstVisibleItem == 0) {\r\n\t\t\t// 证明现在listView往上移动\r\n\t\t\tif (quickTols != null) {\r\n\r\n\t\t\t\tquickTols.setVisibility(View.INVISIBLE);\r\n\t\t\t}\r\n\t\t} else if (offset > 0) {\r\n\t\t\tif (quickTols != null) {\r\n\t\t\t\tquickTols.setVisibility(View.VISIBLE);\r\n\r\n\t\t\t}\r\n\r\n\t\t}\r\n\r\n\t\tlastIndex = firstVisibleItem;\r\n\t}",
"@Override\n\t\t\tpublic void onScrollStateChanged(AbsListView arg0, int arg1) {\n\n\t\t\t}",
"public void setScrolling(boolean isScrolling) {\n this.isScrolling = isScrolling;\n }",
"@Override\n public void onScrollStateChanged(AbsListView view, int scrollState)\n {\n }",
"@Override\r\n\t\t\tpublic void onPageScrollStateChanged(int arg0) {\n\r\n\t\t\t}",
"@Override\n\t\t\tpublic void onScrollStateChanged(AbsListView view, int scrollState) {\n\t\t\t\t\n\t\t\t}",
"@Override\n\tpublic void onScroll(AbsListView arg0, int arg1, int arg2, int arg3) {\n\n\t}",
"@Override\n\tpublic void onScroll(AbsListView arg0, int arg1, int arg2, int arg3) {\n\n\t}",
"public void computeScroll() {\n /* 93 */\n if (this.mChartTouchListener instanceof PieRadarChartTouchListener) {\n /* 94 */\n ((PieRadarChartTouchListener) this.mChartTouchListener).computeScroll();\n /* */\n }\n /* */\n }",
"@Override\n\tpublic void onScroll(int left, int top, int oldl, int oldt) {\n\t\tif (!isBtnClick) {\n\t\t\tdouble level;\n\t\t\tSystem.out.println(\"now:\" + left + \" old:\" + oldl);\n\t\t\tlevel = (double) left / (double) MyMath.dip2px(this, 40);\n\t\t\tSystem.out.println(\"level:\" + level);\n\t\t\tlevel = new BigDecimal(Double.toString(level)).setScale(0,\n\t\t\t\t\tBigDecimal.ROUND_HALF_UP).doubleValue();\n\t\t\tint index = (int) level;\n\t\t\tif (mCheckedIndex != index) {\n\t\t\t\tsetCheckAt(index);\n\t\t\t\tSystem.out.println(\"滚动到:\" + index);\n\t\t\t}\n\t\t}\n\t}",
"public void setAutoScroll(boolean b) {\r\n\t\t_autoScroll = b;\r\n\t}",
"@Override\n\tpublic void onScrollStateChanged(AbsListView view, int scrollState) {\n\t\tif (scrollState == OnScrollListener.SCROLL_STATE_IDLE\n && lastVisibleIndex == adapter.getCount() && lastVisibleIndex != 0) {\n // 当滑到底部时自动加载\n pg.setVisibility(View.VISIBLE);\n bt.setVisibility(View.GONE);\n loadMoreData();\n\n }\n\t}",
"@Override\n public void onPageScrollStateChanged(int state) {\n }",
"void setScrollTop(int scrollTop);",
"@Override\n\t\t\tpublic void onPageScrollStateChanged(int arg0) {\n\t\t\t\t\n\t\t\t}",
"@Override\n\t\t\tpublic void onPageScrollStateChanged(int arg0) {\n\t\t\t\t\n\t\t\t}",
"@Override\n\t\t\tpublic void onPageScrollStateChanged(int arg0) {\n\t\t\t\t\n\t\t\t}",
"@Override\n\t\t\tpublic void onPageScrollStateChanged(int arg0) {\n\t\t\t\t\n\t\t\t}",
"@Override\n\t\t\tpublic void onPageScrollStateChanged(int arg0) {\n\t\t\t\t\n\t\t\t}",
"@Override\n\t\t\tpublic void onPageScrollStateChanged(int arg0) {\n\t\t\t\t\n\t\t\t}",
"@Override\n\t\t\tpublic void onPageScrollStateChanged(int arg0) {\n\t\t\t\t\n\t\t\t}",
"@Override\n\t\t\tpublic void onPageScrollStateChanged(int arg0) {\n\t\t\t\t\n\t\t\t}",
"@Override\n\t\t\tpublic void onPageScrollStateChanged(int arg0) {\n\t\t\t\t\n\t\t\t}",
"@Override\n\t\t\tpublic void onPageScrollStateChanged(int arg0) {\n\t\t\t\t\n\t\t\t}",
"private void onScrollDetected() {\n swipeRefreshLayout.setEnabled(false); // don't allow refreshes if we are scrolling\n }",
"@Override\r\n\t\t\tpublic void onScrollStateChanged(AbsListView view, int scrollState) {\n\t\t\t\t\r\n\t\t\t}",
"@Override\n\t\tpublic void onPageScrollStateChanged(int arg0) {\n\t\t\t\n\t\t}",
"@Override\n\t\tpublic void onPageScrollStateChanged(int arg0) {\n\t\t\t\n\t\t}",
"@Override\n public boolean scrolled(int arg0) {\n return false;\n }",
"@Override\r\n\t\tpublic void onPageScrollStateChanged(int arg0) {\n\r\n\t\t}",
"@Override\r\n\t\t\tpublic void onPageScrollStateChanged(int arg0) {\n\t\t\t\t\r\n\t\t\t}",
"@Override\n public boolean scrolled(int amount) {\n return false;\n }",
"@Override\n public boolean scrolled(int amount) {\n return false;\n }",
"@Override\n public boolean scrolled(int amount) {\n return false;\n }",
"@Override\n public boolean scrolled(int amount) {\n return false;\n }",
"@Override\n public void onScrollStateChanged(AbsListView absListView, int scrollState) {\n // ensures smoother scrolling\n if (scrollState == AbsListView.OnScrollListener.SCROLL_STATE_FLING) {\n imageRequestQueue.stop();\n } else {\n imageRequestQueue.start();\n }\n }",
"@Override\n\tpublic void onScroll(AbsListView view, int firstVisibleItem,\n\t\t\tint visibleItemCount, int totalItemCount) {\n\t\tif (mCurrentScrollState == SCROLL_STATE_TOUCH_SCROLL\n\t\t\t\t&& firstVisibleItem == 0\n\t\t\t\t&& mHeaderLinearLayout.getBottom() >= 0\n\t\t\t\t&& mHeaderLinearLayout.getBottom() < mHeaderHeight) {\n\t\t\tif (mPullRefreshState == NONE_PULL_REFRESH) {\n\t\t\t\tmPullRefreshState = ENTER_PULL_REFRESH;\n\t\t\t}\n\t\t} else if (mCurrentScrollState == SCROLL_STATE_TOUCH_SCROLL\n\t\t\t\t&& firstVisibleItem == 0\n\t\t\t\t&& mHeaderLinearLayout.getBottom() >= mHeaderHeight) {\n\t\t\tif (mPullRefreshState == ENTER_PULL_REFRESH\n\t\t\t\t\t|| mPullRefreshState == NONE_PULL_REFRESH) {\n\t\t\t\tmPullRefreshState = OVER_PULL_REFRESH;\n\t\t\t\tmDownY = mMoveY;\n\t\t\t\tmHeaderTextPull.setText(\"放开刷新数据\");\n\t\t\t\tmHeaderPullDownImageView.setVisibility(View.GONE);\n\t\t\t\tmHeaderReleaseDownImageView.setVisibility(View.VISIBLE);\n\t\t\t}\n\t\t} else if (mCurrentScrollState == SCROLL_STATE_TOUCH_SCROLL\n\t\t\t\t&& firstVisibleItem != 0) {\n\t\t\tif (mPullRefreshState == ENTER_PULL_REFRESH) {\n\t\t\t\tmPullRefreshState = NONE_PULL_REFRESH;\n\t\t\t}\n\t\t} else if (mCurrentScrollState == SCROLL_STATE_FLING) {\n\t\t\tif (mPullRefreshState == NONE_PULL_REFRESH) {\n\t\t\t\tif (firstVisibleItem == 0) {\n\t\t\t\t\tsetSelection(1);\n\t\t\t\t} else {\n\t\t\t\t\tsetSelection(firstVisibleItem);\n\t\t\t\t}\n\n\t\t\t}\n\t\t}\n\n\t\tif ((totalItemCount - visibleItemCount - firstVisibleItem) <= 3) {\n\n\t\t\tmFooterTextView.setText(R.string.listview_footer_hint_ready);\n\t\t\tmFooterProgressBar.setVisibility(View.VISIBLE);\n\t\t\tif (mRefreshListener != null) {\n\t\t\t\tmRefreshListener.more();\n\t\t\t}\n\t\t\tmFooterTextView.setText(R.string.listview_footer_hint_normal);\n\t\t}\n\t}",
"@Override\r\n public void onScrollStateChanged(AbsListView view, int scrollState) {\n\r\n if (scrollState == SCROLL_STATE_IDLE) {\r\n\r\n if (getScrollYDistance() > 0) {\r\n setListener();\r\n LogManager.i(\"=============onScrollStateChanged\");\r\n }\r\n// LogManager.i(\"=============getScrollYDistance()=\" + getScrollYDistance());\r\n }\r\n }",
"void scroll(int scrollTop);",
"@Override\r\n\tpublic void onPageScrollStateChanged(int state) {\n\r\n\t}",
"@Override\n\tpublic void onPageScrollStateChanged(int arg0) {\n\t\t\n\t}"
] |
[
"0.6592114",
"0.6436934",
"0.61532843",
"0.60759044",
"0.6073717",
"0.6052103",
"0.5860891",
"0.5836",
"0.58104104",
"0.57912916",
"0.5790714",
"0.5783181",
"0.57405376",
"0.5737534",
"0.57342",
"0.57342",
"0.57342",
"0.57342",
"0.5732117",
"0.5724599",
"0.5711798",
"0.57006395",
"0.5687988",
"0.5685966",
"0.5665366",
"0.5660264",
"0.5653548",
"0.5651132",
"0.5644112",
"0.5629503",
"0.5626348",
"0.56118476",
"0.5606143",
"0.560381",
"0.56010824",
"0.5583865",
"0.55823135",
"0.5580719",
"0.5573785",
"0.5573641",
"0.5565291",
"0.5559986",
"0.55580586",
"0.55580586",
"0.5555171",
"0.5555171",
"0.55501205",
"0.5545949",
"0.5544199",
"0.5533918",
"0.5529542",
"0.5527333",
"0.5523071",
"0.5520949",
"0.5520949",
"0.55190223",
"0.5518982",
"0.55141723",
"0.550906",
"0.55082834",
"0.550766",
"0.55050504",
"0.55033433",
"0.5489231",
"0.5487075",
"0.54858303",
"0.54858303",
"0.54825526",
"0.5481016",
"0.54778516",
"0.54732996",
"0.5467823",
"0.5464395",
"0.5462306",
"0.5462306",
"0.5462306",
"0.5462306",
"0.5462306",
"0.5462306",
"0.5462306",
"0.5462306",
"0.5462306",
"0.5462306",
"0.5460488",
"0.5453988",
"0.54473335",
"0.54473335",
"0.54380697",
"0.5433068",
"0.54325664",
"0.54320616",
"0.54320616",
"0.54320616",
"0.54320616",
"0.5431242",
"0.5430203",
"0.54281384",
"0.54270643",
"0.54251015",
"0.5421529"
] |
0.6176545
|
2
|
One of Titanium.UI.Android.OVER_SCROLL_ALWAYS, Titanium.UI.Android.OVER_SCROLL_IF_CONTENT_SCROLLS, or Titanium.UI.Android.OVER_SCROLL_NEVER. Default: Titanium.UI.Android.OVER_SCROLL_ALWAYS
|
public native void setOverScrollMode(double value) /*-{
var jso = this.@com.emitrom.ti4j.core.client.ProxyObject::getJsObj()();
jso.overScrollMode = value;
}-*/;
|
{
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
}
|
[
"@JSProperty(\"overscroll\")\n void setOverscroll(double value);",
"public native int getOverScrollMode() /*-{\n\t\tvar jso = this.@com.emitrom.ti4j.core.client.ProxyObject::getJsObj()();\n\t\treturn jso.overScrollMode;\n }-*/;",
"@Override \r\n protected boolean overScrollBy(int deltaX, int deltaY, int scrollX, int scrollY, int scrollRangeX, int scrollRangeY, int maxOverScrollX, int maxOverScrollY, boolean isTouchEvent){\n return super.overScrollBy(deltaX, deltaY, scrollX, scrollY, scrollRangeX, scrollRangeY, maxOverScrollX, mMaxYOverscrollDistance, isTouchEvent); \r\n }",
"@Override\n public void onScroll(AbsListView view, int firstVisibleItem,\n int visibleItemCount, int totalItemCount) {\n boolean loadMore = /* maybe add a padding */\n firstVisibleItem + visibleItemCount >= totalItemCount-1;\n // xHelper.log(\"goapp\",\"onScroll\");\n if(loadMore==true && totalItemCount!=0 && isLoadingThreads==false && isMoreOld) {\n loadMoreOld();\n }\n }",
"@Override\n public boolean canCoalesce() {\n if (mScrollEventType == ScrollEventType.SCROLL) {\n return true;\n }\n return false;\n }",
"@JSProperty(\"overscroll\")\n double getOverscroll();",
"@Override\r\n\tprotected void onOverScrolled(int scrollX, int scrollY, boolean clampedX,\r\n\t\t\tboolean clampedY) {\n\t\tsuper.scrollTo(scrollX, scrollY);\r\n\t}",
"void onScroll(boolean bDragging);",
"@Override\n\t\t\tpublic boolean onScroll(MotionEvent arg0, MotionEvent arg1, float arg2,\n\t\t\t\t\tfloat arg3)\n\t\t\t{\n\t\t\t\treturn false;\n\t\t\t}",
"@Override\r\n\tpublic boolean onScroll(MotionEvent arg0, MotionEvent arg1, float arg2,\r\n\t\t\tfloat arg3) {\n\t\treturn false;\r\n\t}",
"@Override\n\t\t\t\tpublic void onScrollStateChanged(AbsListView view, int scrollState) {\n\t\t\t\t\tbForceScrollDown = false;\n\t\t\t\t}",
"protected boolean needsFetchingScroll() {\n \t\treturn false;\n \t}",
"private void scrollEnable() {\n mBinding.scroll.postDelayed(new Runnable() {\n @Override\n public void run() {\n int viewHeight = mBinding.scroll.getMeasuredHeight();\n int contentHeight = mBinding.scroll.getChildAt(0).getHeight();\n if (viewHeight - contentHeight < 0) {\n Log.d(\">>>\", \"onGlobalLayout: scroll\");\n mBinding.review.setVisibility(View.VISIBLE);\n mBinding.review.setEnabled(true);\n mBinding.submit.setVisibility(View.GONE);\n // scrollable\n } else {\n mBinding.review.setVisibility(View.GONE);\n mBinding.submit.setVisibility(View.VISIBLE);\n Log.d(\">>>\", \"onGlobalLayout: not scroll\");\n }\n }\n }, 2000);\n }",
"void onScrollChange(View v, int scrollX, int scrollY, int oldScrollX, int oldScrollY);",
"@Override\n\tpublic boolean onScroll(MotionEvent arg0, MotionEvent arg1, float arg2,\n\t\t\tfloat arg3) {\n\t\treturn false;\n\t}",
"@Override\n\tpublic boolean onScroll(MotionEvent arg0, MotionEvent arg1, float arg2,\n\t\t\tfloat arg3) {\n\t\treturn false;\n\t}",
"@Override\n\tpublic boolean onScroll(MotionEvent arg0, MotionEvent arg1, float arg2,\n\t\t\tfloat arg3) {\n\t\treturn false;\n\t}",
"@Override\n\tpublic boolean onScroll(MotionEvent arg0, MotionEvent arg1, float arg2,\n\t\t\tfloat arg3) {\n\t\treturn false;\n\t}",
"@Override\n public void onAbsoluteScrollChange(int i) {\n }",
"private void loadScrollState() {\n AppExecutors.getInstance().mainThread().execute(() ->\r\n mScrollViewFinal.scrollTo(0, mActivityPreferences\r\n .getInt(getScrollType(mIsRedWine), 0)));\r\n }",
"public void onScroll(State state, int positionY);",
"@Override\n\tprotected void onScrollChanged(int l, int t, int oldl, int oldt) {\n\t\tsuper.onScrollChanged(l, t, oldl, oldt);\n\t\t\n\t}",
"public void onPageScrollStateChanged(int arg0) {\n\t\t\t\t\n\t\t\t}",
"private void setScrollDefaultState()\n {\n nestedScrollView.fullScroll(View.FOCUS_UP);\n nestedScrollView.scrollTo(0,0);\n appBarLayout.setExpanded(true);\n }",
"@Override\n\t\t\tpublic void onScrollStateChanged(AbsListView arg0, int arg1) {\n\t\t\t\treturn ;\n\t\t\t}",
"@Test\n public void testSlowScroll() {\n detector.onTouchEvent(createFakeEvent(MotionEvent.ACTION_DOWN));\n detector.onScrollChanged();\n assertThat(scrollStateListener.startCount).isEqualTo(1);\n detector.onScrollChanged();\n detector.onScrollChanged();\n detector.onScrollChanged();\n detector.onTouchEvent(createFakeEvent(MotionEvent.ACTION_UP));\n assertThat(scrollStateListener.startCount).isEqualTo(1);\n assertThat(scrollStateListener.stopCount).isEqualTo(1);\n }",
"@Override\n\t\t\tpublic void onScrollStateChanged(AbsListView view, int scrollState) {\n\t\t\t\tif(paging==true)\n\t\t\t\t{\t\n\t\t\t\t\tgetExhibitionsPaging();\n\t\t\t\t}\n\t\t\t}",
"@Override\r\n public boolean onScroll(float displacement, float delta, float velocity) {\n return false;\r\n }",
"@Override\n public void onScrollStateChanged(AbsListView view, int scrollState) {\n\n }",
"@Override\r\n\t\t\tpublic void onScrollStateChanged(AbsListView view, int scrollState) {\n\t\t\t\tLogUtil.print(\"scrolling--->\"\r\n\t\t\t\t\t\t+ schoolListView.getFirstVisiblePosition());\r\n\t\t\t\tswitch (scrollState) {\r\n\t\t\t\t// 当不滚动时\r\n\t\t\t\tcase OnScrollListener.SCROLL_STATE_IDLE:// 是当屏幕停止滚动时\r\n\t\t\t\t\tscrollFlag = false;\r\n\t\t\t\t\t// 判断滚动到底部\r\n\t\t\t\t\tif (schoolListView.getLastVisiblePosition() == (schoolListView\r\n\t\t\t\t\t\t\t.getCount() - 1)) {\r\n\t\t\t\t\t\t// toTopBtn.setVisibility(View.VISIBLE);\r\n\t\t\t\t\t}\r\n\t\t\t\t\t// 判断滚动到顶部\r\n\t\t\t\t\tif (schoolListView.getFirstVisiblePosition() == 0) {\r\n\t\t\t\t\t\t// toTopBtn.setVisibility(View.GONE);\r\n\t\t\t\t\t}\r\n\r\n\t\t\t\t\tbreak;\r\n\t\t\t\tcase OnScrollListener.SCROLL_STATE_TOUCH_SCROLL:// 滚动时\r\n\t\t\t\t\tscrollFlag = true;\r\n\r\n\t\t\t\t\tbreak;\r\n\t\t\t\tcase OnScrollListener.SCROLL_STATE_FLING:// 是当用户由于之前划动屏幕并抬起手指,屏幕产生惯性滑动时\r\n\t\t\t\t\tscrollFlag = false;\r\n\t\t\t\t\tbreak;\r\n\t\t\t\t}\r\n\t\t\t}",
"protected boolean scroll(int amount) {\n\t// Does nothing\n\treturn false;\n}",
"@Override\n\t\t\tpublic void onScroll(AbsListView view, int firstVisibleItem,\n\t\t\t\t\tint visibleItemCount, int totalItemCount) {\n\t\t\t\tif(firstVisibleItem==0){\n\t\t\t\t\tswipeLayout.setEnabled(true);\n\t\t\t\t}else{\n\t\t\t\t\tswipeLayout.setEnabled(false);\n\t\t\t\t}\n\n\t\t\t\tif(mLastFirstVisibleItem<firstVisibleItem)\n\t\t\t\t{\n\t\t\t\t\t//\t\t Log.i(\"SCROLLING DOWN\",\"TRUE\");\n\t\t\t\t\tAnimation slideUp = AnimationUtils.loadAnimation(getActivity(), R.anim.slide_up);\n\t\t\t\t\tstatuslyt.startAnimation(slideUp);\n\n\t\t\t\t}\n\t\t\t\tif(mLastFirstVisibleItem>firstVisibleItem)\n\t\t\t\t{\n\t\t\t\t\t//\t\t Log.i(\"SCROLLING UP\",\"TRUE\");\n\t\t\t\t}\n\t\t\t\tmLastFirstVisibleItem=firstVisibleItem;\n\t\t\t}",
"@Override\n public void onScrollChanged(int scrollY, boolean firstScroll, boolean dragging) {\n }",
"@Override\n protected void onScrollChanged(int l, int t, int oldl, int oldt) {\n super.onScrollChanged(l, t, oldl, oldt);\n\n }",
"@Override\r\n\tpublic void onScrollStateChanged(AbsListView view, int scrollState) {\n\r\n\t}",
"@Override\r\n public void onPageScrollStateChanged(int arg0) {\n\r\n }",
"public void setScrollable(boolean scrollable) {\n/* 1006 */ throw new RuntimeException(\"Stub!\");\n/* */ }",
"public void setOverScrolling(boolean z) {\n this.mStackScrollerOverscrolling = z;\n C0940QS qs = this.mQs;\n if (qs != null) {\n qs.setOverscrolling(z);\n }\n }",
"void onScrollChanged(ObservableHorizontalScrollView view, int l, int t);",
"@Override\n\t\t\tpublic void onScrollStateChanged(AbsListView view, int scrollState) \n\t\t\t{\n\t\t\t\tif (scrollState == AbsListView.OnScrollListener.SCROLL_STATE_FLING) \n\t\t\t\t{\n\t\t\t\t\t// Before Honeycomb pause image loading on scroll to help with performance\n\t\t\t\t\tif (!Utils.hasHoneycomb()) \n\t\t\t\t\t{\n\t\t\t\t\t\tmain.imageLoader.setPauseWork(true);\n\t\t\t\t\t}\n\t\t\t\t} \n\t\t\t\telse \n\t\t\t\t{\n\t\t\t\t\tmain.imageLoader.setPauseWork(false);\n\t\t\t\t}\n\t\t\t}",
"@Override\r\n\t\t\tpublic void onScroll(AbsListView arg0, int arg1, int arg2, int arg3) {\n\r\n\t\t\t}",
"@Override\n public void onPageScrollStateChanged(int arg0) {\n\n }",
"@Override\n public void onPageScrollStateChanged(int arg0) {\n \n }",
"@Override\n public void onPageScrollStateChanged(int arg0) {\n \n }",
"@Override\r\n\tpublic void onPageScrollStateChanged(int arg0) {\n\r\n\t}",
"@Override\r\n\tpublic void onPageScrollStateChanged(int arg0) {\n\r\n\t}",
"@Override\n public void onPageScrollStateChanged(int state)\n {\n\n }",
"public abstract void scroll(long ms);",
"@Override\n\tprotected void onScrollChanged(int l, int t, int oldl, int oldt) {\n\t\tsuper.onScrollChanged(l, t, oldl, oldt);\n\t\tif (mListener != null) {\n\t\t\tmListener.scrollOritention(l, t, oldl, oldt);\n\t\t}\n\t}",
"@Override\n\t\t\tpublic void onScrollStateChanged(AbsListView arg0, int arg1) {\n\t\t\t}",
"private boolean isRefreshViewScroll(float deltaY) {\n if (!isMarginChangeableWhenloading()) {\n if (mHeaderState == STATE_PULL_DOWN_TO_REFRESHING || mFooterState == STATE_PULL_UP_TO_LOADING) {\n //when HeaderView is refreshing,or FooterView is loading,view cannot scroll\n return false;\n }\n } else {\n if (mHeaderState == STATE_PULL_DOWN_TO_REFRESHING && isAtTop() && mHeaderParams.topMargin > -mHeaderHeight)\n return true;\n if (mFooterState == STATE_PULL_UP_TO_LOADING && isAtBottom() && mHeaderParams.topMargin < -mHeaderHeight)\n return true;\n }\n\n if (null != mListView) {\n if (isAtTop() && deltaY > 0) {\n //when top,view is scrollable\n //state is pull down to refresh\n mPullState = STATE_PULL_DOWN_TO_REFRESH;\n return true;\n } else if (isAtBottom() && deltaY < 0) {\n //when bottom,view is scrollable\n //state is pull up to load\n mPullState = STATE_PULL_UP_TO_LOAD;\n return true;\n }\n }\n\n return false;\n }",
"public void onScrollStateChanged(AbsListView arg0, int scrollState) {\n\t\tcurrentScrollState = scrollState;\n\t\tif (valorUltimo <= 0)\n\t\t\tisScrollCompleted();\n\t}",
"@Override\n public void onScrollStateChanged(AbsListView view, int scrollState) {\n this.currentScrollState = scrollState;\n try {\n isScrollCompleted();\n } catch (Exception ex) {\n\n }\n }",
"public void setUpdateScroll(int updateScroll)\n {\n this.updateScroll = updateScroll;\n }",
"@Override\n\tpublic void onScroll(AbsListView arg0, int arg1, int arg2, int arg3) {\n\t\t\n\t}",
"@Override\n\tpublic void onScroll(AbsListView arg0, int arg1, int arg2, int arg3) {\n\t\t\n\t}",
"@Override\n\t\t\tpublic void onScroll(AbsListView arg0, int arg1, int arg2, int arg3) {\n\t\t\t\t\n\t\t\t}",
"@Override\n public void onScroll(AbsListView view, int firstVisibleItem, int visibleItemCount, int totalItemCount) {\n //if there are no items in list, end method\n if(totalItemCount == 0) return;\n\n //if there are items in list, check if first visible item in list has changed\n if (isSameRow(firstVisibleItem)) {\n //if same, check top position of first visible item to see if scroll threshold is met\n int newScrollY = getTopItemScrollY();\n\n //check if scroll threshold is met\n boolean isSignificantDelta = Math.abs(mLastScrollY - newScrollY) > mScrollThreshold;\n\n //if change is significant\n if (isSignificantDelta) {\n //check scroll direction\n if (mLastScrollY > newScrollY) {\n //scroll up event\n onScrollUp();\n } else {\n //scroll down event\n onScrollDown();\n }\n }\n\n //set last scroll top position\n mLastScrollY = newScrollY;\n } else {\n //first visible item in list has changed, check change direction\n if (firstVisibleItem > mPreviousFirstVisibleItem) {\n //first visible item is greater, scroll up event\n onScrollUp();\n } else {\n //first visible item is less, scroll down event\n onScrollDown();\n }\n\n //save top position of first visible item\n mLastScrollY = getTopItemScrollY();\n\n //save item position of first visible item\n mPreviousFirstVisibleItem = firstVisibleItem;\n }\n }",
"private void updateScrollPosition() {\n int oldTop = scrollTop;\n int oldLeft = scrollLeft;\n scrollTop = DOM.getElementPropertyInt(getElement(), \"scrollTop\");\n scrollLeft = DOM.getElementPropertyInt(getElement(), \"scrollLeft\");\n if (connection != null && !rendering) {\n if (oldTop != scrollTop) {\n connection.updateVariable(id, \"scrollTop\", scrollTop, false);\n }\n if (oldLeft != scrollLeft) {\n connection.updateVariable(id, \"scrollLeft\", scrollLeft, false);\n }\n }\n }",
"@Override\r\n\tpublic void onScroll(AbsListView view, int firstVisibleItem,\r\n\t\t\tint visibleItemCount, int totalItemCount) {\n\r\n\t\tint offset = lastIndex - firstVisibleItem;\r\n\r\n\t\tif (offset < 0 || firstVisibleItem == 0) {\r\n\t\t\t// 证明现在listView往上移动\r\n\t\t\tif (quickTols != null) {\r\n\r\n\t\t\t\tquickTols.setVisibility(View.INVISIBLE);\r\n\t\t\t}\r\n\t\t} else if (offset > 0) {\r\n\t\t\tif (quickTols != null) {\r\n\t\t\t\tquickTols.setVisibility(View.VISIBLE);\r\n\r\n\t\t\t}\r\n\r\n\t\t}\r\n\r\n\t\tlastIndex = firstVisibleItem;\r\n\t}",
"@Override\n\t\t\tpublic void onScrollStateChanged(AbsListView arg0, int arg1) {\n\n\t\t\t}",
"public void setScrolling(boolean isScrolling) {\n this.isScrolling = isScrolling;\n }",
"@Override\n public void onScrollStateChanged(AbsListView view, int scrollState)\n {\n }",
"@Override\r\n\t\t\tpublic void onPageScrollStateChanged(int arg0) {\n\r\n\t\t\t}",
"@Override\n\t\t\tpublic void onScrollStateChanged(AbsListView view, int scrollState) {\n\t\t\t\t\n\t\t\t}",
"@Override\n\tpublic void onScroll(AbsListView arg0, int arg1, int arg2, int arg3) {\n\n\t}",
"@Override\n\tpublic void onScroll(AbsListView arg0, int arg1, int arg2, int arg3) {\n\n\t}",
"public void computeScroll() {\n /* 93 */\n if (this.mChartTouchListener instanceof PieRadarChartTouchListener) {\n /* 94 */\n ((PieRadarChartTouchListener) this.mChartTouchListener).computeScroll();\n /* */\n }\n /* */\n }",
"@Override\n\tpublic void onScroll(int left, int top, int oldl, int oldt) {\n\t\tif (!isBtnClick) {\n\t\t\tdouble level;\n\t\t\tSystem.out.println(\"now:\" + left + \" old:\" + oldl);\n\t\t\tlevel = (double) left / (double) MyMath.dip2px(this, 40);\n\t\t\tSystem.out.println(\"level:\" + level);\n\t\t\tlevel = new BigDecimal(Double.toString(level)).setScale(0,\n\t\t\t\t\tBigDecimal.ROUND_HALF_UP).doubleValue();\n\t\t\tint index = (int) level;\n\t\t\tif (mCheckedIndex != index) {\n\t\t\t\tsetCheckAt(index);\n\t\t\t\tSystem.out.println(\"滚动到:\" + index);\n\t\t\t}\n\t\t}\n\t}",
"public void setAutoScroll(boolean b) {\r\n\t\t_autoScroll = b;\r\n\t}",
"@Override\n\tpublic void onScrollStateChanged(AbsListView view, int scrollState) {\n\t\tif (scrollState == OnScrollListener.SCROLL_STATE_IDLE\n && lastVisibleIndex == adapter.getCount() && lastVisibleIndex != 0) {\n // 当滑到底部时自动加载\n pg.setVisibility(View.VISIBLE);\n bt.setVisibility(View.GONE);\n loadMoreData();\n\n }\n\t}",
"@Override\n public void onPageScrollStateChanged(int state) {\n }",
"void setScrollTop(int scrollTop);",
"@Override\n\t\t\tpublic void onPageScrollStateChanged(int arg0) {\n\t\t\t\t\n\t\t\t}",
"@Override\n\t\t\tpublic void onPageScrollStateChanged(int arg0) {\n\t\t\t\t\n\t\t\t}",
"@Override\n\t\t\tpublic void onPageScrollStateChanged(int arg0) {\n\t\t\t\t\n\t\t\t}",
"@Override\n\t\t\tpublic void onPageScrollStateChanged(int arg0) {\n\t\t\t\t\n\t\t\t}",
"@Override\n\t\t\tpublic void onPageScrollStateChanged(int arg0) {\n\t\t\t\t\n\t\t\t}",
"@Override\n\t\t\tpublic void onPageScrollStateChanged(int arg0) {\n\t\t\t\t\n\t\t\t}",
"@Override\n\t\t\tpublic void onPageScrollStateChanged(int arg0) {\n\t\t\t\t\n\t\t\t}",
"@Override\n\t\t\tpublic void onPageScrollStateChanged(int arg0) {\n\t\t\t\t\n\t\t\t}",
"@Override\n\t\t\tpublic void onPageScrollStateChanged(int arg0) {\n\t\t\t\t\n\t\t\t}",
"@Override\n\t\t\tpublic void onPageScrollStateChanged(int arg0) {\n\t\t\t\t\n\t\t\t}",
"private void onScrollDetected() {\n swipeRefreshLayout.setEnabled(false); // don't allow refreshes if we are scrolling\n }",
"@Override\r\n\t\t\tpublic void onScrollStateChanged(AbsListView view, int scrollState) {\n\t\t\t\t\r\n\t\t\t}",
"@Override\n\t\tpublic void onPageScrollStateChanged(int arg0) {\n\t\t\t\n\t\t}",
"@Override\n\t\tpublic void onPageScrollStateChanged(int arg0) {\n\t\t\t\n\t\t}",
"@Override\n public boolean scrolled(int arg0) {\n return false;\n }",
"@Override\r\n\t\tpublic void onPageScrollStateChanged(int arg0) {\n\r\n\t\t}",
"@Override\n public boolean scrolled(int amount) {\n return false;\n }",
"@Override\n public boolean scrolled(int amount) {\n return false;\n }",
"@Override\n public boolean scrolled(int amount) {\n return false;\n }",
"@Override\n public boolean scrolled(int amount) {\n return false;\n }",
"@Override\r\n\t\t\tpublic void onPageScrollStateChanged(int arg0) {\n\t\t\t\t\r\n\t\t\t}",
"@Override\n public void onScrollStateChanged(AbsListView absListView, int scrollState) {\n // ensures smoother scrolling\n if (scrollState == AbsListView.OnScrollListener.SCROLL_STATE_FLING) {\n imageRequestQueue.stop();\n } else {\n imageRequestQueue.start();\n }\n }",
"@Override\n\tpublic void onScroll(AbsListView view, int firstVisibleItem,\n\t\t\tint visibleItemCount, int totalItemCount) {\n\t\tif (mCurrentScrollState == SCROLL_STATE_TOUCH_SCROLL\n\t\t\t\t&& firstVisibleItem == 0\n\t\t\t\t&& mHeaderLinearLayout.getBottom() >= 0\n\t\t\t\t&& mHeaderLinearLayout.getBottom() < mHeaderHeight) {\n\t\t\tif (mPullRefreshState == NONE_PULL_REFRESH) {\n\t\t\t\tmPullRefreshState = ENTER_PULL_REFRESH;\n\t\t\t}\n\t\t} else if (mCurrentScrollState == SCROLL_STATE_TOUCH_SCROLL\n\t\t\t\t&& firstVisibleItem == 0\n\t\t\t\t&& mHeaderLinearLayout.getBottom() >= mHeaderHeight) {\n\t\t\tif (mPullRefreshState == ENTER_PULL_REFRESH\n\t\t\t\t\t|| mPullRefreshState == NONE_PULL_REFRESH) {\n\t\t\t\tmPullRefreshState = OVER_PULL_REFRESH;\n\t\t\t\tmDownY = mMoveY;\n\t\t\t\tmHeaderTextPull.setText(\"放开刷新数据\");\n\t\t\t\tmHeaderPullDownImageView.setVisibility(View.GONE);\n\t\t\t\tmHeaderReleaseDownImageView.setVisibility(View.VISIBLE);\n\t\t\t}\n\t\t} else if (mCurrentScrollState == SCROLL_STATE_TOUCH_SCROLL\n\t\t\t\t&& firstVisibleItem != 0) {\n\t\t\tif (mPullRefreshState == ENTER_PULL_REFRESH) {\n\t\t\t\tmPullRefreshState = NONE_PULL_REFRESH;\n\t\t\t}\n\t\t} else if (mCurrentScrollState == SCROLL_STATE_FLING) {\n\t\t\tif (mPullRefreshState == NONE_PULL_REFRESH) {\n\t\t\t\tif (firstVisibleItem == 0) {\n\t\t\t\t\tsetSelection(1);\n\t\t\t\t} else {\n\t\t\t\t\tsetSelection(firstVisibleItem);\n\t\t\t\t}\n\n\t\t\t}\n\t\t}\n\n\t\tif ((totalItemCount - visibleItemCount - firstVisibleItem) <= 3) {\n\n\t\t\tmFooterTextView.setText(R.string.listview_footer_hint_ready);\n\t\t\tmFooterProgressBar.setVisibility(View.VISIBLE);\n\t\t\tif (mRefreshListener != null) {\n\t\t\t\tmRefreshListener.more();\n\t\t\t}\n\t\t\tmFooterTextView.setText(R.string.listview_footer_hint_normal);\n\t\t}\n\t}",
"void scroll(int scrollTop);",
"@Override\r\n public void onScrollStateChanged(AbsListView view, int scrollState) {\n\r\n if (scrollState == SCROLL_STATE_IDLE) {\r\n\r\n if (getScrollYDistance() > 0) {\r\n setListener();\r\n LogManager.i(\"=============onScrollStateChanged\");\r\n }\r\n// LogManager.i(\"=============getScrollYDistance()=\" + getScrollYDistance());\r\n }\r\n }",
"@Override\r\n\tpublic void onPageScrollStateChanged(int state) {\n\r\n\t}",
"@Override\n\tpublic void onPageScrollStateChanged(int arg0) {\n\t\t\n\t}"
] |
[
"0.6436398",
"0.61761284",
"0.61522704",
"0.60747236",
"0.6072514",
"0.60519",
"0.58597714",
"0.5835561",
"0.58091974",
"0.57903266",
"0.5790115",
"0.5782933",
"0.5739951",
"0.5738077",
"0.57331765",
"0.57331765",
"0.57331765",
"0.57331765",
"0.573176",
"0.5724316",
"0.57112205",
"0.57013106",
"0.5687429",
"0.56863195",
"0.5664039",
"0.5661499",
"0.56527936",
"0.5650816",
"0.5643471",
"0.5628587",
"0.5626385",
"0.5610558",
"0.5606494",
"0.56044304",
"0.56003517",
"0.55836004",
"0.55829054",
"0.5579638",
"0.55739427",
"0.5572317",
"0.5563757",
"0.5559597",
"0.55573535",
"0.55573535",
"0.5554673",
"0.5554673",
"0.55497223",
"0.5546996",
"0.5544703",
"0.5532715",
"0.552889",
"0.55265707",
"0.55217713",
"0.5519753",
"0.5519487",
"0.5519487",
"0.55172867",
"0.5513704",
"0.5509416",
"0.5507273",
"0.55064553",
"0.5505661",
"0.5502303",
"0.54885405",
"0.54860324",
"0.5484388",
"0.5484388",
"0.54822314",
"0.54801935",
"0.5478276",
"0.5472356",
"0.54672176",
"0.54648566",
"0.5461507",
"0.5461507",
"0.5461507",
"0.5461507",
"0.5461507",
"0.5461507",
"0.5461507",
"0.5461507",
"0.5461507",
"0.5461507",
"0.5459117",
"0.54528296",
"0.5446572",
"0.5446572",
"0.5437807",
"0.54324937",
"0.54320294",
"0.54320294",
"0.54320294",
"0.54320294",
"0.543165",
"0.543002",
"0.54297614",
"0.54279757",
"0.54273844",
"0.5424728",
"0.54208857"
] |
0.6592095
|
0
|
Style of the scrollbar, specified using one of the constants from Titanium.UI.iPhone.ScrollIndicatorStyle. Default: Titanium.UI.iPhone.ScrollIndicatorStyle.DEFAULT
|
public native int getScrollIndocatorStyle() /*-{
var jso = this.@com.emitrom.ti4j.core.client.ProxyObject::getJsObj()();
return jso.scrollIndicatorStyle;
}-*/;
|
{
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
}
|
[
"public native void setScrollIndocatorStyle(double value) /*-{\n\t\tvar jso = this.@com.emitrom.ti4j.core.client.ProxyObject::getJsObj()();\n\t\tjso.scrollIndicatorStyle = value;\n }-*/;",
"@Override\n\tpublic ScrollBar createScrollBar() {\n\t\tLightVisualThemeScrollBar lightVisualThemeScrollBar = new LightVisualThemeScrollBar();\n\t\treturn lightVisualThemeScrollBar;\n\t}",
"static int checkStyle (int style) {\r\n\treturn style & ~(SWT.H_SCROLL | SWT.V_SCROLL);\r\n}",
"private void drawScrollBar() {\r\n\r\n\t _scrollOffsetX = 68;\r\n\t _scrollOffsetY = _resolutionResolver.getScaledHeight() % 2 == 1 ? -33 : -32;\r\n\r\n\t ResourceLocation rl = getContentHeight() > getViewableHeight() ? SLIDER_RESOURCE : SLIDER_FULL_RESOURCE;\r\n\t int ySizeScrollToUse = getContentHeight() > getViewableHeight() ? SIZE_SCROLL_Y : SIZE_SCROLL_FULL_Y;\r\n\t int xTextureSize = getContentHeight() > getViewableHeight() ? 32 : 16;\r\n\t int yTextureSize = getContentHeight() > getViewableHeight() ? 32 : 128;\r\n\t _curScrollValue = getContentHeight() > getViewableHeight() ? _curScrollValue : 0;\r\n\r\n\t\tGL11.glColor4f(1.0F, 1.0F, 1.0F, 1.0F);\r\n\t\tthis.mc.renderEngine.bindTexture(rl);\r\n\t\tint x1 = (width - SIZE_SCROLL_X) / 2;\r\n\t\tint y1 = (height - SIZE_SCROLL_Y) / 2;\r\n\t\t\r\n\t\t// draw the scroll bar\r\n\t\tHubbyUtils.drawTexturedRectHelper(0.0f, x1 + _scrollOffsetX, y1 + _scrollOffsetY + _curScrollValue, SIZE_SCROLL_X, ySizeScrollToUse, 0, 0, (256 / xTextureSize) * SIZE_SCROLL_X, (256 / yTextureSize) * ySizeScrollToUse);\r\n\t}",
"protected void animateScrollbar(boolean isScrolling) {\n if (scrollbarAnimator != null) {\n scrollbarAnimator.cancel();\n }\n\n scrollbarAnimator = new AnimatorGroup();\n /*ObjectAnimator trackWidthAnim = ObjectAnimator.ofInt(this, \"trackWidth\",\n isScrolling ? thumbMaxWidth : thumbMinWidth);*/\n\n AnimatorValue trackWidthAnim = new AnimatorValue();\n trackWidthAnim.setValueUpdateListener(new AnimatorValue.ValueUpdateListener() {\n @Override\n public void onUpdate(AnimatorValue animatorValue, float v) {\n FastScrollBar.this.setTrackWidth(isScrolling ? thumbMaxWidth : thumbMinWidth * (int) v);\n }\n });\n\n /*ObjectAnimator thumbWidthAnim = ObjectAnimator.ofInt(this, \"thumbWidth\",\n isScrolling ? thumbMaxWidth : thumbMinWidth);*/\n\n AnimatorValue thumbWidthAnim = new AnimatorValue();\n thumbWidthAnim.setValueUpdateListener(new AnimatorValue.ValueUpdateListener() {\n @Override\n public void onUpdate(AnimatorValue animatorValue, float v) {\n FastScrollBar.this.setThumbWidth(isScrolling ? thumbMaxWidth : thumbMinWidth * (int) v);\n }\n });\n\n scrollbarAnimator.runParallel(trackWidthAnim, thumbWidthAnim);\n\n\n if (thumbActiveColor != thumbInactiveColor) {\n /*ValueAnimator colorAnimation = ValueAnimator\n .ofObject(new ArgbEvaluator(), thumbPaint.getColor(), isScrolling ? thumbActiveColor : thumbInactiveColor);\n colorAnimation.addUpdateListener(new ValueAnimator.AnimatorUpdateListener() {\n\n @Override\n public void onAnimationUpdate(ValueAnimator animator) {\n thumbPaint.setColor((Integer) animator.getAnimatedValue());\n recyclerView\n .invalidate(thumbOffset.x, thumbOffset.y, thumbOffset.x + thumbWidth, thumbOffset.y + thumbHeight);\n }\n });*/\n\n AnimatorValue colorAnimation = new AnimatorValue();\n colorAnimation.setValueUpdateListener(new AnimatorValue.ValueUpdateListener() {\n @Override\n public void onUpdate(AnimatorValue animatorValue, float v) {\n int color = getAnimatedColor(v,thumbPaint.getColor().getValue());\n thumbPaint.setColor(new Color(color));\n recyclerView.invalidate();\n }\n });\n\n scrollbarAnimator.runSerially(colorAnimation);\n }\n scrollbarAnimator.setDuration(SCROLL_BAR_VIS_DURATION);\n scrollbarAnimator.start();\n }",
"public void handleScrollBarUpdate(ScrollBar scrollBar);",
"public void setVerticalScrollBarPolicy(int paramInt) {\n/* 500 */ switch (paramInt) {\n/* */ case 20:\n/* */ case 21:\n/* */ case 22:\n/* */ break;\n/* */ default:\n/* 506 */ throw new IllegalArgumentException(\"invalid verticalScrollBarPolicy\");\n/* */ } \n/* 508 */ int i = this.verticalScrollBarPolicy;\n/* 509 */ this.verticalScrollBarPolicy = paramInt;\n/* 510 */ firePropertyChange(\"verticalScrollBarPolicy\", i, paramInt);\n/* 511 */ revalidate();\n/* 512 */ repaint();\n/* */ }",
"public Color getScrollBorderColor();",
"public int getHorizontalScrollBarPolicy() {\n/* 522 */ return this.horizontalScrollBarPolicy;\n/* */ }",
"public JScrollBar createHorizontalScrollBar() {\n/* 814 */ return new ScrollBar(0);\n/* */ }",
"public ScrollBar(int param1Int) {\n/* 718 */ super(param1Int);\n/* 719 */ putClientProperty(\"JScrollBar.fastWheelScrolling\", Boolean.TRUE);\n/* */ }",
"public JScrollBar createVerticalScrollBar() {\n/* 873 */ return new ScrollBar(1);\n/* */ }",
"public int getVerticalScrollBarPolicy() {\n/* 473 */ return this.verticalScrollBarPolicy;\n/* */ }",
"@JSProperty(\"scrollbar\")\n void setScrollbar(ZAxisScrollbarOptions value);",
"void setScrollBar(final JScrollBar sb) {\n this.scrollBar = sb;\n }",
"public JScrollPane getScrollbar(){\n\t\treturn scrollbar;//Return the scroll bar\n\t}",
"private void drawVerticalScrollBar(){\n }",
"@JSProperty(\"scrollbar\")\n @Nullable\n ZAxisScrollbarOptions getScrollbar();",
"JScrollBar getScrollBar() {\n return scrollBar;\n }",
"public void setHorizontalScrollBarPolicy(int paramInt) {\n/* 548 */ switch (paramInt) {\n/* */ case 30:\n/* */ case 31:\n/* */ case 32:\n/* */ break;\n/* */ default:\n/* 554 */ throw new IllegalArgumentException(\"invalid horizontalScrollBarPolicy\");\n/* */ } \n/* 556 */ int i = this.horizontalScrollBarPolicy;\n/* 557 */ this.horizontalScrollBarPolicy = paramInt;\n/* 558 */ firePropertyChange(\"horizontalScrollBarPolicy\", i, paramInt);\n/* 559 */ revalidate();\n/* 560 */ repaint();\n/* */ }",
"private void drawScrollBars(Canvas canvas) {\n if(!mEventHandler.shouldDrawScrollBar()){\n return;\n }\n mVerticalScrollBar.setEmpty();\n mHorizontalScrollBar.setEmpty();\n if(getScrollMaxY() > getHeight()/2) {\n drawScrollBarTrackVertical(canvas,10);\n }\n if(getScrollMaxX() > getWidth()*3/4) {\n drawScrollBarTrackHorizontal(canvas,10);\n }\n if(getScrollMaxY() > getHeight()/2) {\n drawScrollBarVertical(canvas,10);\n }\n if(getScrollMaxX() > getWidth()*3/4) {\n drawScrollBarHorizontal(canvas,10);\n }\n }",
"private JScrollBar getJScrollBar() {\r\n\t\tif (jScrollBar == null) {\r\n\t\t\tjScrollBar = new JScrollBar();\r\n\t\t\tjScrollBar.setBounds(new Rectangle(591, 127, 17, 333));\r\n\t\t}\r\n\t\treturn jScrollBar;\r\n\t}",
"public void setHorizontalScrollBar(JScrollBar paramJScrollBar) {\n/* 847 */ JScrollBar jScrollBar = getHorizontalScrollBar();\n/* 848 */ this.horizontalScrollBar = paramJScrollBar;\n/* 849 */ if (paramJScrollBar != null) {\n/* 850 */ add(paramJScrollBar, \"HORIZONTAL_SCROLLBAR\");\n/* */ }\n/* 852 */ else if (jScrollBar != null) {\n/* 853 */ remove(jScrollBar);\n/* */ } \n/* 855 */ firePropertyChange(\"horizontalScrollBar\", jScrollBar, paramJScrollBar);\n/* */ \n/* 857 */ revalidate();\n/* 858 */ repaint();\n/* */ }",
"public native void setOverScrollMode(double value) /*-{\n\t\tvar jso = this.@com.emitrom.ti4j.core.client.ProxyObject::getJsObj()();\n\t\tjso.overScrollMode = value;\n }-*/;",
"int getVScrollbarWidth();",
"public void setVerticalScrollBar(JScrollBar paramJScrollBar) {\n/* 906 */ JScrollBar jScrollBar = getVerticalScrollBar();\n/* 907 */ this.verticalScrollBar = paramJScrollBar;\n/* 908 */ add(paramJScrollBar, \"VERTICAL_SCROLLBAR\");\n/* 909 */ firePropertyChange(\"verticalScrollBar\", jScrollBar, paramJScrollBar);\n/* */ \n/* 911 */ revalidate();\n/* 912 */ repaint();\n/* */ }",
"public Border getDefaultBorder() { return SCROLL_VIEW_BORDER; }",
"public void CheckScrollBar() {\n \tif (data3d.Times > 1)\n {\n \tScrollbar Slider=label.TimeScrollbar;\n \tif (! ScrollbarPresent) { //\n\t\t\t\t\t\t// System.out.println(\"Adding a Scrollbar with \"+data3d.Times+\" timesteps.\\n\");\n\t\t\t\t\t\tSlider=new Scrollbar(Scrollbar.VERTICAL, 0, 1, 0, data3d.Times);\n \tScrollbarPresent=true;\n\t\t\t\t\t\tlabel.TimeScrollbar = Slider; // that it will be moved when browsing though the data\n\t\t\t\t\t\tadd(\"East\", Slider);\n\t\t\t\t\t\t//if (DataPanel != null)\n\t\t\t\t\t\t//\tDataPanel.CheckScrollBar();\n\t\t\t\t\t\t//data3d.ShowAllSlices=true;\n\t\t\t\t\t\tdata3d.TrackDirection = 4;\n\t\t\t\t\t\tif (data3d.SizeZ > 1) {\n\t\t\t\t\t\t\tdata3d.SearchZ = 1;\n\t\t\t\t\t\t\tdata3d.COMZ = 1;\n\t\t\t\t\t\t}\n Slider.setBlockIncrement(data3d.Times / 10 + 1);\n Slider.addAdjustmentListener(c1);\n Slider.setVisible(true);\n \t}\n \telse {\n\t\t\t\t\t\tSlider.setMaximum(data3d.Times);\n\t\t\t\t\t\t// System.out.println(\"Changed Scrollbar size to\"+data3d.Times+\" timesteps.\\n\");\n\t\t\t\t\t\tSlider.setBlockIncrement(data3d.Times / 10 + 1);\n\t\t\t\t\t\tSlider.setVisible(true);\n\t\t\t\t\t}\n \tSlider.doLayout();\n \tthis.doLayout();\n }\n// if (data3d.Elements > 5)\n// \tdata3d.TrackDirection=3;\n }",
"PdfViewerScrollBar(int orientation, PdfViewerController controller)\n {\n super(orientation);\n this.controller = controller;\n setUnitIncrement(UNIT_INCREMENT);\n setBlockIncrement(BLOCK_INCREMENT);\n scrollPosition = 0;\n close();\n }",
"int getHScrollbarHeight();",
"void setScroller(Scroller scroller) {\n this.scroller = scroller;\n }",
"public VerticalScrollbar() {}",
"@Override\n public String getFamily() {\n\n return (\"Scroller\");\n\n }",
"public Scrollbar(int which,int ceiling) {\n\tif(which == SCROLLBAR_VERTICAL || which == SCROLLBAR_HORIZONTAL) {\n\t this.which = which;\n\t this.ceiling = ceiling;\n\t} else {\n\t throw new IllegalArgumentException(\"Invalid orientation\");\n\t}\n }",
"protected RectF getVerticalScrollBarRect(){\n return mVerticalScrollBar;\n }",
"public native int getOverScrollMode() /*-{\n\t\tvar jso = this.@com.emitrom.ti4j.core.client.ProxyObject::getJsObj()();\n\t\treturn jso.overScrollMode;\n }-*/;",
"private void setScrollBars() {\n int totHeight = jEditorPane1.getSize().height;\n int value = jEditorPane2.getSize().height;\n if (value > totHeight) totHeight = value;\n int totWidth = jEditorPane1.getSize().width;\n value = jEditorPane2.getSize().width;\n if (value > totWidth) totWidth = value;\n int viewHeight = jViewport1.getExtentSize().height;\n int viewWidth = jViewport1.getExtentSize().width;\n //D.deb(\"totHeight = \"+totHeight+\", totWidth = \"+totWidth); // NOI18N\n //D.deb(\"viewHeight = \"+viewHeight+\", viewWidth = \"+viewWidth); // NOI18N\n jScrollBar1.setValues(0, viewWidth, 0, totWidth);\n jScrollBar1.setBlockIncrement(viewWidth);\n jScrollBar2.setValues(0, viewWidth, 0, totWidth);\n jScrollBar2.setBlockIncrement(viewWidth);\n jScrollBar3.setValues(0, viewHeight, 0, totHeight);\n jScrollBar3.setBlockIncrement(viewHeight);\n boolean visibleScroll = jScrollBar1.isVisible();\n //D.deb(\"jScrollBar1.isVisible() = \"+visibleScroll); // NOI18N\n if (visibleScroll != viewWidth < totWidth && editorPanel.isShowing()) {\n //D.deb(\"jScrollBar1 setting visibility = \"+!visibleScroll); // NOI18N\n jScrollBar1.setVisible(!visibleScroll);\n jScrollBar2.setVisible(!visibleScroll);\n validate();\n //editorPanel.repaint();\n //jScrollBar1.repaint();\n //jScrollBar2.repaint();\n }\n visibleScroll = jScrollBar3.isVisible();\n //D.deb(\"jScrollBar3.isVisible() = \"+visibleScroll); // NOI18N\n if (visibleScroll != viewHeight < totHeight && editorPanel.isShowing()) {\n //D.deb(\"jScrollBar3 setting visibility = \"+!visibleScroll); // NOI18N\n jScrollBar3.setVisible(!visibleScroll);\n validate();\n //editorPanel.repaint();\n //jScrollBar3.repaint();\n }\n }",
"public Scroller getScroller() { return _scroller; }",
"public void setUpdateScroll(int updateScroll)\n {\n this.updateScroll = updateScroll;\n }",
"public JScrollPane(Component paramComponent, int paramInt1, int paramInt2) {\n/* 295 */ setLayout(new ScrollPaneLayout.UIResource());\n/* 296 */ setVerticalScrollBarPolicy(paramInt1);\n/* 297 */ setHorizontalScrollBarPolicy(paramInt2);\n/* 298 */ setViewport(createViewport());\n/* 299 */ setVerticalScrollBar(createVerticalScrollBar());\n/* 300 */ setHorizontalScrollBar(createHorizontalScrollBar());\n/* 301 */ if (paramComponent != null) {\n/* 302 */ setViewportView(paramComponent);\n/* */ }\n/* 304 */ setUIProperty(\"opaque\", Boolean.valueOf(true));\n/* 305 */ updateUI();\n/* */ \n/* 307 */ if (!getComponentOrientation().isLeftToRight()) {\n/* 308 */ this.viewport.setViewPosition(new Point(2147483647, 0));\n/* */ }\n/* */ }",
"public interface ScrollBoxLayout\n extends OrderedContainer, Component.BelongToFrame, HasMargin, HasSpacing, HasOrientation,\n Component.HasIcon, Component.HasCaption, ShortcutNotifier, HasContextHelp,\n HasHtmlCaption, HasHtmlDescription, HasRequiredIndicator, LayoutClickNotifier, HasHtmlSanitizer {\n\n String NAME = \"scrollBox\";\n\n ScrollBarPolicy getScrollBarPolicy();\n void setScrollBarPolicy(ScrollBarPolicy scrollBarPolicy);\n\n /**\n * Sets content width.\n *\n * @param width width\n */\n void setContentWidth(String width);\n /**\n * @return content width value\n */\n float getContentWidth();\n /**\n * @return content width size unit\n */\n SizeUnit getContentWidthSizeUnit();\n\n /**\n * Sets content height.\n *\n * @param height height\n */\n void setContentHeight(String height);\n /**\n * @return content height value\n */\n float getContentHeight();\n /**\n * @return content height size unit\n */\n SizeUnit getContentHeightSizeUnit();\n\n /**\n * Sets minimum CSS width for content. Examples: \"640px\", \"auto\".\n *\n * @param minWidth minimum width\n */\n void setContentMinWidth(String minWidth);\n /**\n * @return minimal content width\n */\n String getContentMinWidth();\n\n /**\n * Sets maximum CSS width for content. Examples: \"640px\", \"100%\".\n *\n * @param maxWidth maximum width\n */\n void setContentMaxWidth(String maxWidth);\n /**\n * @return maximum content width\n */\n String getContentMaxWidth();\n\n /**\n * Sets minimum CSS height for content. Examples: \"640px\", \"auto\".\n *\n * @param minHeight minimum height\n */\n void setContentMinHeight(String minHeight);\n /**\n * @return minimum content width\n */\n String getContentMinHeight();\n\n /**\n * Sets maximum CSS height for content. Examples: \"640px\", \"100%\".\n *\n * @param maxHeight maximum height\n */\n void setContentMaxHeight(String maxHeight);\n /**\n * @return maximum content width\n */\n String getContentMaxHeight();\n\n /**\n * Gets scroll left offset.\n * <p>\n * Scrolling offset is the number of pixels this scrollable has been\n * scrolled right.\n *\n * @return horizontal scrolling position in pixels\n */\n int getScrollLeft();\n\n /**\n * Sets scroll left offset.\n * <p>\n * Scrolling offset is the number of pixels this scrollable has been\n * scrolled right.\n *\n * @param scrollLeft the xOffset\n */\n void setScrollLeft(int scrollLeft);\n\n /**\n * Gets scroll top offset.\n * <p>\n * Scrolling offset is the number of pixels this scrollable has been\n * scrolled down.\n *\n * @return vertical scrolling position in pixels\n */\n int getScrollTop();\n\n /**\n * Sets scroll top offset.\n * <p>\n * Scrolling offset is the number of pixels this scrollable has been\n * scrolled down.\n *\n * @param scrollTop the yOffset\n */\n void setScrollTop(int scrollTop);\n\n enum ScrollBarPolicy {\n VERTICAL,\n HORIZONTAL,\n BOTH,\n NONE\n }\n}",
"private void drawScrollBarTrackVertical(Canvas canvas,int width) {\n if(mEventHandler.holdVerticalScrollBar()) {\n mRect.right = getWidth();\n mRect.left = getWidth() - mDpUnit * width;\n mRect.top = 0;\n mRect.bottom = getHeight();\n drawColor(canvas,mColors.getColor(ColorScheme.SCROLL_BAR_TRACK),mRect);\n }\n }",
"public void draw(Canvas canvas, int currentX, int currentY, Paint paint)\n {\n Rect clip = canvas.getClipBounds();\n \n int oldColor = paint.getColor();\n int alpha = paint.getAlpha();\n \n paint.setColor(SCROLLBAR_COLOR); \n paint.setAlpha(SCROLLBAR_COLOR_ALPHA);\n \n if(pageSize.width > clip.right)\n { \n drawHorizontalScrollBar(canvas, currentX, paint);\n }\n \n if(pageSize.height > clip.bottom)\n {\n drawVerticalScrollBar(canvas, currentY, paint);\n }\n \n paint.setColor(oldColor);\n paint.setAlpha(alpha);\n }",
"private void updateScrollBarSize() {\n int textHeight = getTextHeight();\n if (textHeight <= windowHeight) {\n Root.getChildren().remove(scrollBar);\n } else {\n if (!Root.getChildren().contains(scrollBar)) {\n Root.getChildren().add(scrollBar);\n }\n double range = textHeight - windowHeight;\n scrollBar.setMax(range);\n scrollBar.setVisibleAmount(10);\n }\n }",
"private void drawScrollBarVertical(Canvas canvas,int width) {\n int page = getHeight();\n float all = getLineHeight() * getLineCount() + getHeight() / 2;\n float length = page / all * getHeight();\n float topY;\n if(length < mDpUnit * 30) {\n mVerticalScrollBarSizeEnlarged = true;\n length = mDpUnit * 30;\n topY = (getOffsetY() + page / 2f) / all * (getHeight() - length);\n }else{\n topY = getOffsetY() / all * getHeight();\n mVerticalScrollBarSizeEnlarged = false;\n }\n if(mEventHandler.holdVerticalScrollBar()) {\n float centerY = topY + length / 2f;\n drawLineInfoPanel(canvas,centerY,mRect.left - mDpUnit * 5);\n }\n mRect.right = getWidth();\n mRect.left = getWidth() - mDpUnit * width;\n mRect.top = topY;\n mRect.bottom = topY + length;\n mVerticalScrollBar.set(mRect);\n drawColor(canvas,mColors.getColor(mEventHandler.holdVerticalScrollBar() ? ColorScheme.SCROLL_BAR_THUMB_DOWN : ColorScheme.SCROLL_BAR_THUMB),mRect);\n }",
"public void flashScrollbar() {\n clientRpc.flashScrollbar();\n }",
"public ScrollPaneBorder()\n {\n super(new Insets(6, 6, 8, 6)//5,4,6,4\n , __Icon9Factory__.getInstance().getScrollPaneBorderBg());\n }",
"protected String paramString() {\n/* 1357 */ String str3, str4, str1 = (this.viewportBorder != null) ? this.viewportBorder.toString() : \"\";\n/* */ \n/* 1359 */ String str2 = (this.viewport != null) ? this.viewport.toString() : \"\";\n/* */ \n/* 1361 */ if (this.verticalScrollBarPolicy == 20)\n/* 1362 */ { str3 = \"VERTICAL_SCROLLBAR_AS_NEEDED\"; }\n/* 1363 */ else if (this.verticalScrollBarPolicy == 21)\n/* 1364 */ { str3 = \"VERTICAL_SCROLLBAR_NEVER\"; }\n/* 1365 */ else if (this.verticalScrollBarPolicy == 22)\n/* 1366 */ { str3 = \"VERTICAL_SCROLLBAR_ALWAYS\"; }\n/* 1367 */ else { str3 = \"\"; }\n/* */ \n/* 1369 */ if (this.horizontalScrollBarPolicy == 30)\n/* 1370 */ { str4 = \"HORIZONTAL_SCROLLBAR_AS_NEEDED\"; }\n/* 1371 */ else if (this.horizontalScrollBarPolicy == 31)\n/* 1372 */ { str4 = \"HORIZONTAL_SCROLLBAR_NEVER\"; }\n/* 1373 */ else if (this.horizontalScrollBarPolicy == 32)\n/* 1374 */ { str4 = \"HORIZONTAL_SCROLLBAR_ALWAYS\"; }\n/* 1375 */ else { str4 = \"\"; }\n/* */ \n/* 1377 */ String str5 = (this.horizontalScrollBar != null) ? this.horizontalScrollBar.toString() : \"\";\n/* */ \n/* */ \n/* 1380 */ String str6 = (this.verticalScrollBar != null) ? this.verticalScrollBar.toString() : \"\";\n/* */ \n/* 1382 */ String str7 = (this.columnHeader != null) ? this.columnHeader.toString() : \"\";\n/* */ \n/* 1384 */ String str8 = (this.rowHeader != null) ? this.rowHeader.toString() : \"\";\n/* */ \n/* 1386 */ String str9 = (this.lowerLeft != null) ? this.lowerLeft.toString() : \"\";\n/* */ \n/* 1388 */ String str10 = (this.lowerRight != null) ? this.lowerRight.toString() : \"\";\n/* */ \n/* 1390 */ String str11 = (this.upperLeft != null) ? this.upperLeft.toString() : \"\";\n/* */ \n/* 1392 */ String str12 = (this.upperRight != null) ? this.upperRight.toString() : \"\";\n/* */ \n/* 1394 */ return super.paramString() + \",columnHeader=\" + str7 + \",horizontalScrollBar=\" + str5 + \",horizontalScrollBarPolicy=\" + str4 + \",lowerLeft=\" + str9 + \",lowerRight=\" + str10 + \",rowHeader=\" + str8 + \",upperLeft=\" + str11 + \",upperRight=\" + str12 + \",verticalScrollBar=\" + str6 + \",verticalScrollBarPolicy=\" + str3 + \",viewport=\" + str2 + \",viewportBorder=\" + str1;\n/* */ }",
"void setScrollPosition(int x, int y);",
"@Override\n public void onScroll(float scrollProgressPercent) {\n }",
"StyleListSettings getListablepageStyle();",
"PdfViewerScrollBarVertical(PdfViewerController controller)\n {\n super(JScrollBar.VERTICAL, controller);\n setUI(ui);\n\n addAdjustmentListener(new AdjustmentListener()\n {\n public void adjustmentValueChanged(AdjustmentEvent e)\n {\n scrollPosition = e.getValue();\n setNewViewportPosition();\n }\n });\n\n addComponentListener(new ComponentListener()\n {\n\n public void componentShown(ComponentEvent e)\n {\n }\n\n public void componentResized(ComponentEvent e)\n {\n ;\n repaint();\n }\n\n public void componentMoved(ComponentEvent e)\n {\n }\n\n public void componentHidden(ComponentEvent e)\n {\n }\n });\n }",
"public void setDrawHighlightIndicators(boolean enabled) {\n/* 51 */ setDrawVerticalHighlightIndicator(enabled);\n/* 52 */ setDrawHorizontalHighlightIndicator(enabled);\n/* */ }",
"private void createScrollPane() {\n\n\t\t// --------------------------------------------\n\t\t// first create the client\n\t\t// --------------------------------------------\n\t\tclient = new Client(this);\n//\t\tclient.setTransferHandler(PM_TransferHandler.getInstance());\n\t\tfocusPanel = new PM_FocusPanel(null, this, this);\n\n\t\tif (config.isNurLesen()) {\n\t\t\tclient.setBackground(PM_WindowBase.COLOR_NUR_LESEN);\n\t\t} else {\n\t\t\tclient.setBackground(PM_WindowBase.COLOR_BACKGROUND);\n\t\t}\n\t\tclient.setLayout(null); // I do it myself\n\n\t\tclient.addMouseListener(new MouseAdapter() {\n\t\t\t@Override\n\t\t\tpublic void mouseClicked(MouseEvent arg0) {\n\t\t\t\t// System.out.println(\"Inndex View: mouseClicked: requestFocusInWindow aufrufen\");\n\t\t\t\trequestFocusInWindow();\n\t\t\t}\n\t\t});\n\n\t\t// ------------------------------------------\n\t\t// now the scrollpane\n\t\t// ------------------------------------------\n\t\tscrollPane = new JScrollPane(client);\n\t\tindexViewPort = scrollPane.getViewport();\n\n\t\tscrollPane.setWheelScrollingEnabled(false);\n\n\t\t//\t\t \n\t\tscrollPane\n\t\t\t\t.setHorizontalScrollBarPolicy(JScrollPane.HORIZONTAL_SCROLLBAR_NEVER);\n\t\t// Achtung: VERTICAL_SCROLLBAR_ALWAYS, da sonst unterschiedliche\n\t\t// ExtendSize und\n\t\t// damit funktioniert der stateChanged nicht mehr.\n\t\tscrollPane\n\t\t\t\t.setVerticalScrollBarPolicy(JScrollPane.VERTICAL_SCROLLBAR_ALWAYS);\n\t\t// ----------------------------------------------------------------------\n\t\t// MouseWheelListener\n\t\t// ----------------------------------------------------------------------\n\t\tMouseWheelListener mwl = new MouseWheelListener() {\n\n\t\t\tpublic void mouseWheelMoved(MouseWheelEvent me) {\n\t\t\t\tmouseWheelChanged(me);\n\t\t\t}\n\t\t};\n\t\tscrollPane.addMouseWheelListener(mwl);\n\n\t\t// ----------------------------------------------------------------------\n\t\t// ChangeListener\n\t\t// ----------------------------------------------------------------------\n\t\tChangeListener cl = new ChangeListener() {\n\t\t\tpublic void stateChanged(ChangeEvent ce) {\n\t\t\t\t// viewPortSizeChanged(ce);\n\t\t\t}\n\t\t};\n\t\tscrollPane.getViewport().addChangeListener(cl);\n\n\t\t// addComponentListener\n\t\tscrollPane.getViewport().addComponentListener(new ComponentAdapter() {\n\t\t\t@Override\n\t\t\tpublic void componentResized(ComponentEvent e) {\n\t\t\t\tviewPortChanged(e);\n\t\t\t}\n\t\t});\n\n\t\t// addAdjustmentListener(AdjustmentListener l)\n\t\t// Scrollbar AdjustmentListener\n\t\tJScrollBar sb = scrollPane.getVerticalScrollBar();\n\t\tsb.addAdjustmentListener(new AdjustmentListener() {\n\n\t\t\t \n\t\t\tpublic void adjustmentValueChanged(AdjustmentEvent e) {\n\t\t\t\tverticalScrollBarChanged(e);\n\n\t\t\t}\n\n\t\t});\n\n\t\t// oldViewPortSize = indexViewPort.getExtentSize();\n\t\t\n\t\t\n\t\t\n\t\t\n\t}",
"private void updateScrollbars() {\n if (!inUpdateScrollbars) {\n inUpdateScrollbars = true;\n try {\n doUpdateScrollbar();\n } finally {\n inUpdateScrollbars = false;\n }\n } else {\n if (!inUpdateScrollbarsLogged) {\n inUpdateScrollbarsLogged = true;\n ILog logger = TerminalPlugin.getDefault().getLog();\n logger.log(new Status(WARNING, TerminalPlugin.PLUGIN_ID, OK, \"Unexpected Recursion in terminal\", null));\n }\n }\n }",
"public Rectangle getScrollRectangle() {\r\n return scrollRectangle;\r\n }",
"@Transient\n/* */ public JScrollBar getHorizontalScrollBar() {\n/* 827 */ return this.horizontalScrollBar;\n/* */ }",
"void setScrollBarRelations(JScrollBar param1JScrollBar) {\n/* 1540 */ AccessibleRelation accessibleRelation1 = new AccessibleRelation(AccessibleRelation.CONTROLLED_BY, param1JScrollBar);\n/* */ \n/* */ \n/* 1543 */ AccessibleRelation accessibleRelation2 = new AccessibleRelation(AccessibleRelation.CONTROLLER_FOR, JScrollPane.this);\n/* */ \n/* */ \n/* */ \n/* */ \n/* 1548 */ AccessibleContext accessibleContext = param1JScrollBar.getAccessibleContext();\n/* 1549 */ accessibleContext.getAccessibleRelationSet().add(accessibleRelation2);\n/* */ \n/* */ \n/* 1552 */ getAccessibleRelationSet().add(accessibleRelation1);\n/* */ }",
"private void loadScrollState() {\n AppExecutors.getInstance().mainThread().execute(() ->\r\n mScrollViewFinal.scrollTo(0, mActivityPreferences\r\n .getInt(getScrollType(mIsRedWine), 0)));\r\n }",
"@Transient\n/* */ public JScrollBar getVerticalScrollBar() {\n/* 886 */ return this.verticalScrollBar;\n/* */ }",
"public interface IScrollBarUpdateHandler {\n\n\t/**\n\t * This method is called, when a ScrollBar was updated (e.g. dragged by a user).\n\t * \n\t * @param scrollBar\n\t * The ScrollBar that was updated.\n\t */\n\tpublic void handleScrollBarUpdate(ScrollBar scrollBar);\n\n}",
"void onScroll(boolean bDragging);",
"void setScrollTop(int scrollTop);",
"protected RectF getHorizontalScrollBarRect() {\n return mHorizontalScrollBar;\n }",
"public void setScrolling(boolean isScrolling) {\n this.isScrolling = isScrolling;\n }",
"@JSProperty(\"overscroll\")\n void setOverscroll(double value);",
"public void setEndPointEndingStyle(String style) {\n/* 752 */ String actualStyle = (style == null) ? \"None\" : style;\n/* 753 */ COSBase base = getCOSObject().getDictionaryObject(COSName.LE);\n/* */ \n/* 755 */ if (!(base instanceof COSArray) || ((COSArray)base).size() < 2) {\n/* */ \n/* 757 */ COSArray array = new COSArray();\n/* 758 */ array.add((COSBase)COSName.getPDFName(\"None\"));\n/* 759 */ array.add((COSBase)COSName.getPDFName(actualStyle));\n/* 760 */ getCOSObject().setItem(COSName.LE, (COSBase)array);\n/* */ }\n/* */ else {\n/* */ \n/* 764 */ COSArray array = (COSArray)base;\n/* 765 */ array.setName(1, actualStyle);\n/* */ } \n/* */ }",
"public ScrollView()\n {\n // Configure ScrollView\n setBorder(SCROLL_VIEW_BORDER);\n\n // Create Scroller and add listeners for scroll changes\n _scroller = new Scroller();\n _scroller.addPropChangeListener(pc -> scrollerDidPropChange(pc), Width_Prop, Height_Prop,\n Scroller.ScrollX_Prop, Scroller.ScrollY_Prop, Scroller.ScrollWidth_Prop, Scroller.ScrollHeight_Prop);\n addChild(_scroller);\n }",
"public void scrollBarDidPropChange(PropChange aPC)\n {\n String pname = aPC.getPropName();\n if (pname==ScrollBar.Scroll_Prop) {\n ScrollBar sbar = (ScrollBar)aPC.getSource();\n double val = sbar.getScrollRatio();\n if (sbar==_hbar)\n _scroller.setScrollXRatio(val);\n else _scroller.setScrollYRatio(val);\n }\n }",
"void scroll(int scrollTop);",
"private void doBuildScroller() {\r\n\t\t\r\n\t}",
"private int getScrollVal() {\n return Math.abs((int)scrollBar.getValue());\n }",
"void onScrollChange(View v, int scrollX, int scrollY, int oldScrollX, int oldScrollY);",
"public ScrollBar getVBar()\n {\n if (_vbar!=null) return _vbar;\n _vbar = new ScrollBar(); _vbar.setVertical(true);\n _vbar.addPropChangeListener(pc -> scrollBarDidPropChange(pc), ScrollBar.Scroll_Prop);\n return _vbar;\n }",
"void setScrollLeft(int scrollLeft);",
"public abstract boolean scroll(Direction direction);",
"QtScrollPanePeer (QtToolkit toolkit, ScrollPane target)\n {\n\tsuper (toolkit, target);\n scrollbarDisplayPolicy = target.getScrollbarDisplayPolicy();\n }",
"public void setPageStyle(String style)\n {\n // ignore\n }",
"public void setWordBreakStyle(com.cognos.developer.schemas.raas.Returns__by__Order__Method___x002d__Prompted__Chart.WordBreakEnum wordBreakStyle) {\r\n this.wordBreakStyle = wordBreakStyle;\r\n }",
"PdfViewerScrollBarHorizontal(PdfViewerController controller)\n {\n super(JScrollBar.HORIZONTAL, controller);\n setUI(ui);\n addAdjustmentListener(new AdjustmentListener()\n {\n public void adjustmentValueChanged(AdjustmentEvent e)\n {\n scrollPosition = e.getValue();\n try\n {\n PdfViewerScrollBarHorizontal.this.controller.scrollTo(scrollPosition,\n PdfViewerScrollBarHorizontal.this.controller.getViewportOrigin().y);\n } catch (PdfViewerException ex)\n {\n DebugLogger.log(ex.toString());\n }\n }\n });\n\n addComponentListener(new ComponentListener()\n {\n\n public void componentShown(ComponentEvent e)\n {\n }\n\n public void componentResized(ComponentEvent e)\n {\n update();\n repaint();\n }\n\n public void componentMoved(ComponentEvent e)\n {\n }\n\n public void componentHidden(ComponentEvent e)\n {\n }\n });\n }",
"public int getStyle() {\n\treturn style;\n }",
"Style getStyle();",
"public void propertyChange(PropertyChangeEvent param1PropertyChangeEvent) {\n/* 1520 */ String str = param1PropertyChangeEvent.getPropertyName();\n/* 1521 */ if (str == \"horizontalScrollBar\" || str == \"verticalScrollBar\")\n/* */ {\n/* */ \n/* 1524 */ if (param1PropertyChangeEvent.getNewValue() instanceof JScrollBar) {\n/* 1525 */ setScrollBarRelations((JScrollBar)param1PropertyChangeEvent.getNewValue());\n/* */ }\n/* */ }\n/* */ }",
"protected void scrollerDidPropChange(PropChange anEvent)\n {\n // Get Property Name\n String pname = anEvent.getPropName();\n\n // Handle Scroller.ScrollX change\n if (pname==Scroller.ScrollX_Prop)\n getHBar().setScroll(_scroller.getScrollX());\n\n // Handle Scroller.ScrollY change\n else if (pname==Scroller.ScrollY_Prop)\n getVBar().setScroll(_scroller.getScrollY());\n\n // Handle Scroller.Width or Scroller.ScrollWidth change\n else if (pname==Width_Prop || pname==Scroller.ScrollWidth_Prop) {\n getHBar().setViewSize(_scroller.getWidth());\n getHBar().setScrollSize(_scroller.getScrollWidth());\n getHBar().setScroll(_scroller.getScrollX());\n }\n\n // Handle Scroller.Height or Scroller.ScrollHeight change\n else if (pname==Scroller.Height_Prop || pname==Scroller.ScrollHeight_Prop) {\n getVBar().setViewSize(_scroller.getHeight());\n getVBar().setScrollSize(_scroller.getScrollHeight());\n getVBar().setScroll(_scroller.getScrollY());\n }\n }",
"public void setScrollable(boolean scrollable) {\n/* 1006 */ throw new RuntimeException(\"Stub!\");\n/* */ }",
"private void setProgressBarColor(int ID){\n if(progress!=null){\n Drawable progressDrawable;\n\n switch (ID){\n case 1: progressDrawable = weakContext.get().getResources().getDrawable(R.drawable.customprogressbar0);\n break;\n case 2 : progressDrawable = weakContext.get().getResources().getDrawable(R.drawable.customprogressbar1);\n break;\n case 3 : progressDrawable = weakContext.get().getResources().getDrawable(R.drawable.customprogressbar2);\n break;\n case 4: progressDrawable = weakContext.get().getResources().getDrawable(R.drawable.customprogressbar3);\n break;\n case 5: progressDrawable = weakContext.get().getResources().getDrawable(R.drawable.customprogressbar0);\n break;\n case 6: progressDrawable = weakContext.get().getResources().getDrawable(R.drawable.customprogressbar1);\n break;\n default: progressDrawable = weakContext.get().getResources().getDrawable(R.drawable.customprogressbar);\n break;\n }\n progress.setProgressDrawable(progressDrawable);\n }\n }",
"String getAllDocumentsScroll(String scroll) {\n\t\t@SuppressWarnings(\"deprecation\")\n\t\tString urlEncode = URLEncoder.encode(scroll);\n\t\tString url = esScrollUrl + urlEncode;\n\t\t@SuppressWarnings(\"unused\")\n\t\tint resCode = doHttpOperation(url, HTTP_GET, null);\n\t\treturn lastResponse;\n\t}",
"public void setStyle(String style) {\r\n this.style = style;\r\n }",
"public void setStyle(String style) {\r\n this.style = style;\r\n }",
"private void updateScrollPosition() {\n int oldTop = scrollTop;\n int oldLeft = scrollLeft;\n scrollTop = DOM.getElementPropertyInt(getElement(), \"scrollTop\");\n scrollLeft = DOM.getElementPropertyInt(getElement(), \"scrollLeft\");\n if (connection != null && !rendering) {\n if (oldTop != scrollTop) {\n connection.updateVariable(id, \"scrollTop\", scrollTop, false);\n }\n if (oldLeft != scrollLeft) {\n connection.updateVariable(id, \"scrollLeft\", scrollLeft, false);\n }\n }\n }",
"public void setOnScrollTo(EventHandler<ScrollToEvent<Integer>> value) {\n\n this.getWrappedControl().setOnScrollTo(value);\n }",
"public void onScrollStateChanged(AbsListView arg0, int scrollState) {\n\t\tcurrentScrollState = scrollState;\n\t\tif (valorUltimo <= 0)\n\t\t\tisScrollCompleted();\n\t}",
"UiStyle getUiStyle();",
"private void drawScrollBarHorizontal(Canvas canvas,int width) {\n int page = getWidth();\n float all = getScrollMaxX() + getWidth();\n float length = page / all * getWidth();\n float leftX = getOffsetX() / all * getWidth();\n mRect.top = getHeight() - mDpUnit * width;\n mRect.bottom = getHeight();\n mRect.right = leftX + length;\n mRect.left = leftX;\n mHorizontalScrollBar.set(mRect);\n drawColor(canvas,mColors.getColor(mEventHandler.holdHorizontalScrollBar() ? ColorScheme.SCROLL_BAR_THUMB_DOWN : ColorScheme.SCROLL_BAR_THUMB),mRect);\n }",
"public void updateStyle()\n {\n this.textOutput.setForeground(new Color(null, ShellPreference.OUTPUT_COLOR_INPUT.getRGB()));\n this.textOutput.setBackground(new Color(null, ShellPreference.OUTPUT_BACKGROUND.getRGB()));\n this.textOutput.setFont(new Font(null, ShellPreference.OUTPUT_FONT.getFontData()));\n this.colorOuput = new Color(null, ShellPreference.OUTPUT_COLOR_OUTPUT.getRGB());\n this.colorError = new Color(null, ShellPreference.OUTPUT_COLOR_ERROR.getRGB());\n\n this.textInput.setForeground(new Color(null, ShellPreference.INPUT_COLOR.getRGB()));\n this.textInput.setBackground(new Color(null, ShellPreference.INPUT_BACKGROUND.getRGB()));\n this.textInput.setFont(new Font(null, ShellPreference.INPUT_FONT.getFontData()));\n\n this.historyMax = ShellPreference.MAX_HISTORY.getInt();\n }",
"public ScrollBar getHBar()\n {\n if (_hbar!=null) return _hbar;\n _hbar = new ScrollBar();\n _hbar.addPropChangeListener(pc -> scrollBarDidPropChange(pc), ScrollBar.Scroll_Prop);\n return _hbar;\n }",
"private void setScrollDefaultState()\n {\n nestedScrollView.fullScroll(View.FOCUS_UP);\n nestedScrollView.scrollTo(0,0);\n appBarLayout.setExpanded(true);\n }",
"public int getStyle() {\r\n\t\treturn this.style;\r\n\t}",
"public void setStyle(String style) {\n this.style = style;\n }",
"private org.gwtproject.user.client.ui.ScrollPanel get_f_ScrollPanel1() {\n return build_f_ScrollPanel1();\n }"
] |
[
"0.72330356",
"0.60959363",
"0.56876004",
"0.56791914",
"0.558031",
"0.5477686",
"0.5421987",
"0.5414987",
"0.54145384",
"0.53649354",
"0.53367114",
"0.53237313",
"0.531866",
"0.529352",
"0.5282688",
"0.52595055",
"0.5240132",
"0.5213513",
"0.5180537",
"0.5075054",
"0.50567937",
"0.49797234",
"0.4954715",
"0.49370533",
"0.49282745",
"0.49231684",
"0.49080002",
"0.4888097",
"0.48217082",
"0.47889057",
"0.47815198",
"0.4761372",
"0.47551677",
"0.46968955",
"0.46696165",
"0.46246874",
"0.46073237",
"0.45887768",
"0.45875448",
"0.45829472",
"0.45805195",
"0.45757893",
"0.45703897",
"0.45664704",
"0.456171",
"0.45479026",
"0.44974184",
"0.44835308",
"0.44803905",
"0.44766483",
"0.44719085",
"0.4464269",
"0.44530737",
"0.44486243",
"0.44453302",
"0.4432045",
"0.44298244",
"0.44291928",
"0.44129774",
"0.44128647",
"0.4406705",
"0.4404048",
"0.43911096",
"0.4382589",
"0.4378998",
"0.4358963",
"0.43569008",
"0.4347977",
"0.43421584",
"0.43238974",
"0.43219873",
"0.43202057",
"0.43136498",
"0.42980966",
"0.42867833",
"0.42818567",
"0.4275605",
"0.42721584",
"0.42601967",
"0.42600194",
"0.42569286",
"0.42533186",
"0.4248509",
"0.4247399",
"0.42441037",
"0.42429143",
"0.4227688",
"0.42274776",
"0.42274776",
"0.42231923",
"0.42209414",
"0.4214228",
"0.42089853",
"0.42058495",
"0.42039272",
"0.41891122",
"0.41853535",
"0.41844323",
"0.41831902",
"0.4180596"
] |
0.6894016
|
1
|
Style of the scrollbar, specified using one of the constants from Titanium.UI.iPhone.ScrollIndicatorStyle. Default: Titanium.UI.iPhone.ScrollIndicatorStyle.DEFAULT
|
public native void setScrollIndocatorStyle(double value) /*-{
var jso = this.@com.emitrom.ti4j.core.client.ProxyObject::getJsObj()();
jso.scrollIndicatorStyle = value;
}-*/;
|
{
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
}
|
[
"public native int getScrollIndocatorStyle() /*-{\n\t\tvar jso = this.@com.emitrom.ti4j.core.client.ProxyObject::getJsObj()();\n\t\treturn jso.scrollIndicatorStyle;\n }-*/;",
"@Override\n\tpublic ScrollBar createScrollBar() {\n\t\tLightVisualThemeScrollBar lightVisualThemeScrollBar = new LightVisualThemeScrollBar();\n\t\treturn lightVisualThemeScrollBar;\n\t}",
"static int checkStyle (int style) {\r\n\treturn style & ~(SWT.H_SCROLL | SWT.V_SCROLL);\r\n}",
"private void drawScrollBar() {\r\n\r\n\t _scrollOffsetX = 68;\r\n\t _scrollOffsetY = _resolutionResolver.getScaledHeight() % 2 == 1 ? -33 : -32;\r\n\r\n\t ResourceLocation rl = getContentHeight() > getViewableHeight() ? SLIDER_RESOURCE : SLIDER_FULL_RESOURCE;\r\n\t int ySizeScrollToUse = getContentHeight() > getViewableHeight() ? SIZE_SCROLL_Y : SIZE_SCROLL_FULL_Y;\r\n\t int xTextureSize = getContentHeight() > getViewableHeight() ? 32 : 16;\r\n\t int yTextureSize = getContentHeight() > getViewableHeight() ? 32 : 128;\r\n\t _curScrollValue = getContentHeight() > getViewableHeight() ? _curScrollValue : 0;\r\n\r\n\t\tGL11.glColor4f(1.0F, 1.0F, 1.0F, 1.0F);\r\n\t\tthis.mc.renderEngine.bindTexture(rl);\r\n\t\tint x1 = (width - SIZE_SCROLL_X) / 2;\r\n\t\tint y1 = (height - SIZE_SCROLL_Y) / 2;\r\n\t\t\r\n\t\t// draw the scroll bar\r\n\t\tHubbyUtils.drawTexturedRectHelper(0.0f, x1 + _scrollOffsetX, y1 + _scrollOffsetY + _curScrollValue, SIZE_SCROLL_X, ySizeScrollToUse, 0, 0, (256 / xTextureSize) * SIZE_SCROLL_X, (256 / yTextureSize) * ySizeScrollToUse);\r\n\t}",
"protected void animateScrollbar(boolean isScrolling) {\n if (scrollbarAnimator != null) {\n scrollbarAnimator.cancel();\n }\n\n scrollbarAnimator = new AnimatorGroup();\n /*ObjectAnimator trackWidthAnim = ObjectAnimator.ofInt(this, \"trackWidth\",\n isScrolling ? thumbMaxWidth : thumbMinWidth);*/\n\n AnimatorValue trackWidthAnim = new AnimatorValue();\n trackWidthAnim.setValueUpdateListener(new AnimatorValue.ValueUpdateListener() {\n @Override\n public void onUpdate(AnimatorValue animatorValue, float v) {\n FastScrollBar.this.setTrackWidth(isScrolling ? thumbMaxWidth : thumbMinWidth * (int) v);\n }\n });\n\n /*ObjectAnimator thumbWidthAnim = ObjectAnimator.ofInt(this, \"thumbWidth\",\n isScrolling ? thumbMaxWidth : thumbMinWidth);*/\n\n AnimatorValue thumbWidthAnim = new AnimatorValue();\n thumbWidthAnim.setValueUpdateListener(new AnimatorValue.ValueUpdateListener() {\n @Override\n public void onUpdate(AnimatorValue animatorValue, float v) {\n FastScrollBar.this.setThumbWidth(isScrolling ? thumbMaxWidth : thumbMinWidth * (int) v);\n }\n });\n\n scrollbarAnimator.runParallel(trackWidthAnim, thumbWidthAnim);\n\n\n if (thumbActiveColor != thumbInactiveColor) {\n /*ValueAnimator colorAnimation = ValueAnimator\n .ofObject(new ArgbEvaluator(), thumbPaint.getColor(), isScrolling ? thumbActiveColor : thumbInactiveColor);\n colorAnimation.addUpdateListener(new ValueAnimator.AnimatorUpdateListener() {\n\n @Override\n public void onAnimationUpdate(ValueAnimator animator) {\n thumbPaint.setColor((Integer) animator.getAnimatedValue());\n recyclerView\n .invalidate(thumbOffset.x, thumbOffset.y, thumbOffset.x + thumbWidth, thumbOffset.y + thumbHeight);\n }\n });*/\n\n AnimatorValue colorAnimation = new AnimatorValue();\n colorAnimation.setValueUpdateListener(new AnimatorValue.ValueUpdateListener() {\n @Override\n public void onUpdate(AnimatorValue animatorValue, float v) {\n int color = getAnimatedColor(v,thumbPaint.getColor().getValue());\n thumbPaint.setColor(new Color(color));\n recyclerView.invalidate();\n }\n });\n\n scrollbarAnimator.runSerially(colorAnimation);\n }\n scrollbarAnimator.setDuration(SCROLL_BAR_VIS_DURATION);\n scrollbarAnimator.start();\n }",
"public void handleScrollBarUpdate(ScrollBar scrollBar);",
"public void setVerticalScrollBarPolicy(int paramInt) {\n/* 500 */ switch (paramInt) {\n/* */ case 20:\n/* */ case 21:\n/* */ case 22:\n/* */ break;\n/* */ default:\n/* 506 */ throw new IllegalArgumentException(\"invalid verticalScrollBarPolicy\");\n/* */ } \n/* 508 */ int i = this.verticalScrollBarPolicy;\n/* 509 */ this.verticalScrollBarPolicy = paramInt;\n/* 510 */ firePropertyChange(\"verticalScrollBarPolicy\", i, paramInt);\n/* 511 */ revalidate();\n/* 512 */ repaint();\n/* */ }",
"public int getHorizontalScrollBarPolicy() {\n/* 522 */ return this.horizontalScrollBarPolicy;\n/* */ }",
"public Color getScrollBorderColor();",
"public JScrollBar createHorizontalScrollBar() {\n/* 814 */ return new ScrollBar(0);\n/* */ }",
"public ScrollBar(int param1Int) {\n/* 718 */ super(param1Int);\n/* 719 */ putClientProperty(\"JScrollBar.fastWheelScrolling\", Boolean.TRUE);\n/* */ }",
"public JScrollBar createVerticalScrollBar() {\n/* 873 */ return new ScrollBar(1);\n/* */ }",
"public int getVerticalScrollBarPolicy() {\n/* 473 */ return this.verticalScrollBarPolicy;\n/* */ }",
"@JSProperty(\"scrollbar\")\n void setScrollbar(ZAxisScrollbarOptions value);",
"void setScrollBar(final JScrollBar sb) {\n this.scrollBar = sb;\n }",
"public JScrollPane getScrollbar(){\n\t\treturn scrollbar;//Return the scroll bar\n\t}",
"private void drawVerticalScrollBar(){\n }",
"@JSProperty(\"scrollbar\")\n @Nullable\n ZAxisScrollbarOptions getScrollbar();",
"JScrollBar getScrollBar() {\n return scrollBar;\n }",
"public void setHorizontalScrollBarPolicy(int paramInt) {\n/* 548 */ switch (paramInt) {\n/* */ case 30:\n/* */ case 31:\n/* */ case 32:\n/* */ break;\n/* */ default:\n/* 554 */ throw new IllegalArgumentException(\"invalid horizontalScrollBarPolicy\");\n/* */ } \n/* 556 */ int i = this.horizontalScrollBarPolicy;\n/* 557 */ this.horizontalScrollBarPolicy = paramInt;\n/* 558 */ firePropertyChange(\"horizontalScrollBarPolicy\", i, paramInt);\n/* 559 */ revalidate();\n/* 560 */ repaint();\n/* */ }",
"private void drawScrollBars(Canvas canvas) {\n if(!mEventHandler.shouldDrawScrollBar()){\n return;\n }\n mVerticalScrollBar.setEmpty();\n mHorizontalScrollBar.setEmpty();\n if(getScrollMaxY() > getHeight()/2) {\n drawScrollBarTrackVertical(canvas,10);\n }\n if(getScrollMaxX() > getWidth()*3/4) {\n drawScrollBarTrackHorizontal(canvas,10);\n }\n if(getScrollMaxY() > getHeight()/2) {\n drawScrollBarVertical(canvas,10);\n }\n if(getScrollMaxX() > getWidth()*3/4) {\n drawScrollBarHorizontal(canvas,10);\n }\n }",
"private JScrollBar getJScrollBar() {\r\n\t\tif (jScrollBar == null) {\r\n\t\t\tjScrollBar = new JScrollBar();\r\n\t\t\tjScrollBar.setBounds(new Rectangle(591, 127, 17, 333));\r\n\t\t}\r\n\t\treturn jScrollBar;\r\n\t}",
"public void setHorizontalScrollBar(JScrollBar paramJScrollBar) {\n/* 847 */ JScrollBar jScrollBar = getHorizontalScrollBar();\n/* 848 */ this.horizontalScrollBar = paramJScrollBar;\n/* 849 */ if (paramJScrollBar != null) {\n/* 850 */ add(paramJScrollBar, \"HORIZONTAL_SCROLLBAR\");\n/* */ }\n/* 852 */ else if (jScrollBar != null) {\n/* 853 */ remove(jScrollBar);\n/* */ } \n/* 855 */ firePropertyChange(\"horizontalScrollBar\", jScrollBar, paramJScrollBar);\n/* */ \n/* 857 */ revalidate();\n/* 858 */ repaint();\n/* */ }",
"public native void setOverScrollMode(double value) /*-{\n\t\tvar jso = this.@com.emitrom.ti4j.core.client.ProxyObject::getJsObj()();\n\t\tjso.overScrollMode = value;\n }-*/;",
"int getVScrollbarWidth();",
"public void setVerticalScrollBar(JScrollBar paramJScrollBar) {\n/* 906 */ JScrollBar jScrollBar = getVerticalScrollBar();\n/* 907 */ this.verticalScrollBar = paramJScrollBar;\n/* 908 */ add(paramJScrollBar, \"VERTICAL_SCROLLBAR\");\n/* 909 */ firePropertyChange(\"verticalScrollBar\", jScrollBar, paramJScrollBar);\n/* */ \n/* 911 */ revalidate();\n/* 912 */ repaint();\n/* */ }",
"public Border getDefaultBorder() { return SCROLL_VIEW_BORDER; }",
"public void CheckScrollBar() {\n \tif (data3d.Times > 1)\n {\n \tScrollbar Slider=label.TimeScrollbar;\n \tif (! ScrollbarPresent) { //\n\t\t\t\t\t\t// System.out.println(\"Adding a Scrollbar with \"+data3d.Times+\" timesteps.\\n\");\n\t\t\t\t\t\tSlider=new Scrollbar(Scrollbar.VERTICAL, 0, 1, 0, data3d.Times);\n \tScrollbarPresent=true;\n\t\t\t\t\t\tlabel.TimeScrollbar = Slider; // that it will be moved when browsing though the data\n\t\t\t\t\t\tadd(\"East\", Slider);\n\t\t\t\t\t\t//if (DataPanel != null)\n\t\t\t\t\t\t//\tDataPanel.CheckScrollBar();\n\t\t\t\t\t\t//data3d.ShowAllSlices=true;\n\t\t\t\t\t\tdata3d.TrackDirection = 4;\n\t\t\t\t\t\tif (data3d.SizeZ > 1) {\n\t\t\t\t\t\t\tdata3d.SearchZ = 1;\n\t\t\t\t\t\t\tdata3d.COMZ = 1;\n\t\t\t\t\t\t}\n Slider.setBlockIncrement(data3d.Times / 10 + 1);\n Slider.addAdjustmentListener(c1);\n Slider.setVisible(true);\n \t}\n \telse {\n\t\t\t\t\t\tSlider.setMaximum(data3d.Times);\n\t\t\t\t\t\t// System.out.println(\"Changed Scrollbar size to\"+data3d.Times+\" timesteps.\\n\");\n\t\t\t\t\t\tSlider.setBlockIncrement(data3d.Times / 10 + 1);\n\t\t\t\t\t\tSlider.setVisible(true);\n\t\t\t\t\t}\n \tSlider.doLayout();\n \tthis.doLayout();\n }\n// if (data3d.Elements > 5)\n// \tdata3d.TrackDirection=3;\n }",
"PdfViewerScrollBar(int orientation, PdfViewerController controller)\n {\n super(orientation);\n this.controller = controller;\n setUnitIncrement(UNIT_INCREMENT);\n setBlockIncrement(BLOCK_INCREMENT);\n scrollPosition = 0;\n close();\n }",
"int getHScrollbarHeight();",
"void setScroller(Scroller scroller) {\n this.scroller = scroller;\n }",
"public VerticalScrollbar() {}",
"@Override\n public String getFamily() {\n\n return (\"Scroller\");\n\n }",
"public Scrollbar(int which,int ceiling) {\n\tif(which == SCROLLBAR_VERTICAL || which == SCROLLBAR_HORIZONTAL) {\n\t this.which = which;\n\t this.ceiling = ceiling;\n\t} else {\n\t throw new IllegalArgumentException(\"Invalid orientation\");\n\t}\n }",
"protected RectF getVerticalScrollBarRect(){\n return mVerticalScrollBar;\n }",
"public native int getOverScrollMode() /*-{\n\t\tvar jso = this.@com.emitrom.ti4j.core.client.ProxyObject::getJsObj()();\n\t\treturn jso.overScrollMode;\n }-*/;",
"private void setScrollBars() {\n int totHeight = jEditorPane1.getSize().height;\n int value = jEditorPane2.getSize().height;\n if (value > totHeight) totHeight = value;\n int totWidth = jEditorPane1.getSize().width;\n value = jEditorPane2.getSize().width;\n if (value > totWidth) totWidth = value;\n int viewHeight = jViewport1.getExtentSize().height;\n int viewWidth = jViewport1.getExtentSize().width;\n //D.deb(\"totHeight = \"+totHeight+\", totWidth = \"+totWidth); // NOI18N\n //D.deb(\"viewHeight = \"+viewHeight+\", viewWidth = \"+viewWidth); // NOI18N\n jScrollBar1.setValues(0, viewWidth, 0, totWidth);\n jScrollBar1.setBlockIncrement(viewWidth);\n jScrollBar2.setValues(0, viewWidth, 0, totWidth);\n jScrollBar2.setBlockIncrement(viewWidth);\n jScrollBar3.setValues(0, viewHeight, 0, totHeight);\n jScrollBar3.setBlockIncrement(viewHeight);\n boolean visibleScroll = jScrollBar1.isVisible();\n //D.deb(\"jScrollBar1.isVisible() = \"+visibleScroll); // NOI18N\n if (visibleScroll != viewWidth < totWidth && editorPanel.isShowing()) {\n //D.deb(\"jScrollBar1 setting visibility = \"+!visibleScroll); // NOI18N\n jScrollBar1.setVisible(!visibleScroll);\n jScrollBar2.setVisible(!visibleScroll);\n validate();\n //editorPanel.repaint();\n //jScrollBar1.repaint();\n //jScrollBar2.repaint();\n }\n visibleScroll = jScrollBar3.isVisible();\n //D.deb(\"jScrollBar3.isVisible() = \"+visibleScroll); // NOI18N\n if (visibleScroll != viewHeight < totHeight && editorPanel.isShowing()) {\n //D.deb(\"jScrollBar3 setting visibility = \"+!visibleScroll); // NOI18N\n jScrollBar3.setVisible(!visibleScroll);\n validate();\n //editorPanel.repaint();\n //jScrollBar3.repaint();\n }\n }",
"public Scroller getScroller() { return _scroller; }",
"public void setUpdateScroll(int updateScroll)\n {\n this.updateScroll = updateScroll;\n }",
"public JScrollPane(Component paramComponent, int paramInt1, int paramInt2) {\n/* 295 */ setLayout(new ScrollPaneLayout.UIResource());\n/* 296 */ setVerticalScrollBarPolicy(paramInt1);\n/* 297 */ setHorizontalScrollBarPolicy(paramInt2);\n/* 298 */ setViewport(createViewport());\n/* 299 */ setVerticalScrollBar(createVerticalScrollBar());\n/* 300 */ setHorizontalScrollBar(createHorizontalScrollBar());\n/* 301 */ if (paramComponent != null) {\n/* 302 */ setViewportView(paramComponent);\n/* */ }\n/* 304 */ setUIProperty(\"opaque\", Boolean.valueOf(true));\n/* 305 */ updateUI();\n/* */ \n/* 307 */ if (!getComponentOrientation().isLeftToRight()) {\n/* 308 */ this.viewport.setViewPosition(new Point(2147483647, 0));\n/* */ }\n/* */ }",
"public interface ScrollBoxLayout\n extends OrderedContainer, Component.BelongToFrame, HasMargin, HasSpacing, HasOrientation,\n Component.HasIcon, Component.HasCaption, ShortcutNotifier, HasContextHelp,\n HasHtmlCaption, HasHtmlDescription, HasRequiredIndicator, LayoutClickNotifier, HasHtmlSanitizer {\n\n String NAME = \"scrollBox\";\n\n ScrollBarPolicy getScrollBarPolicy();\n void setScrollBarPolicy(ScrollBarPolicy scrollBarPolicy);\n\n /**\n * Sets content width.\n *\n * @param width width\n */\n void setContentWidth(String width);\n /**\n * @return content width value\n */\n float getContentWidth();\n /**\n * @return content width size unit\n */\n SizeUnit getContentWidthSizeUnit();\n\n /**\n * Sets content height.\n *\n * @param height height\n */\n void setContentHeight(String height);\n /**\n * @return content height value\n */\n float getContentHeight();\n /**\n * @return content height size unit\n */\n SizeUnit getContentHeightSizeUnit();\n\n /**\n * Sets minimum CSS width for content. Examples: \"640px\", \"auto\".\n *\n * @param minWidth minimum width\n */\n void setContentMinWidth(String minWidth);\n /**\n * @return minimal content width\n */\n String getContentMinWidth();\n\n /**\n * Sets maximum CSS width for content. Examples: \"640px\", \"100%\".\n *\n * @param maxWidth maximum width\n */\n void setContentMaxWidth(String maxWidth);\n /**\n * @return maximum content width\n */\n String getContentMaxWidth();\n\n /**\n * Sets minimum CSS height for content. Examples: \"640px\", \"auto\".\n *\n * @param minHeight minimum height\n */\n void setContentMinHeight(String minHeight);\n /**\n * @return minimum content width\n */\n String getContentMinHeight();\n\n /**\n * Sets maximum CSS height for content. Examples: \"640px\", \"100%\".\n *\n * @param maxHeight maximum height\n */\n void setContentMaxHeight(String maxHeight);\n /**\n * @return maximum content width\n */\n String getContentMaxHeight();\n\n /**\n * Gets scroll left offset.\n * <p>\n * Scrolling offset is the number of pixels this scrollable has been\n * scrolled right.\n *\n * @return horizontal scrolling position in pixels\n */\n int getScrollLeft();\n\n /**\n * Sets scroll left offset.\n * <p>\n * Scrolling offset is the number of pixels this scrollable has been\n * scrolled right.\n *\n * @param scrollLeft the xOffset\n */\n void setScrollLeft(int scrollLeft);\n\n /**\n * Gets scroll top offset.\n * <p>\n * Scrolling offset is the number of pixels this scrollable has been\n * scrolled down.\n *\n * @return vertical scrolling position in pixels\n */\n int getScrollTop();\n\n /**\n * Sets scroll top offset.\n * <p>\n * Scrolling offset is the number of pixels this scrollable has been\n * scrolled down.\n *\n * @param scrollTop the yOffset\n */\n void setScrollTop(int scrollTop);\n\n enum ScrollBarPolicy {\n VERTICAL,\n HORIZONTAL,\n BOTH,\n NONE\n }\n}",
"private void drawScrollBarTrackVertical(Canvas canvas,int width) {\n if(mEventHandler.holdVerticalScrollBar()) {\n mRect.right = getWidth();\n mRect.left = getWidth() - mDpUnit * width;\n mRect.top = 0;\n mRect.bottom = getHeight();\n drawColor(canvas,mColors.getColor(ColorScheme.SCROLL_BAR_TRACK),mRect);\n }\n }",
"public void draw(Canvas canvas, int currentX, int currentY, Paint paint)\n {\n Rect clip = canvas.getClipBounds();\n \n int oldColor = paint.getColor();\n int alpha = paint.getAlpha();\n \n paint.setColor(SCROLLBAR_COLOR); \n paint.setAlpha(SCROLLBAR_COLOR_ALPHA);\n \n if(pageSize.width > clip.right)\n { \n drawHorizontalScrollBar(canvas, currentX, paint);\n }\n \n if(pageSize.height > clip.bottom)\n {\n drawVerticalScrollBar(canvas, currentY, paint);\n }\n \n paint.setColor(oldColor);\n paint.setAlpha(alpha);\n }",
"private void updateScrollBarSize() {\n int textHeight = getTextHeight();\n if (textHeight <= windowHeight) {\n Root.getChildren().remove(scrollBar);\n } else {\n if (!Root.getChildren().contains(scrollBar)) {\n Root.getChildren().add(scrollBar);\n }\n double range = textHeight - windowHeight;\n scrollBar.setMax(range);\n scrollBar.setVisibleAmount(10);\n }\n }",
"private void drawScrollBarVertical(Canvas canvas,int width) {\n int page = getHeight();\n float all = getLineHeight() * getLineCount() + getHeight() / 2;\n float length = page / all * getHeight();\n float topY;\n if(length < mDpUnit * 30) {\n mVerticalScrollBarSizeEnlarged = true;\n length = mDpUnit * 30;\n topY = (getOffsetY() + page / 2f) / all * (getHeight() - length);\n }else{\n topY = getOffsetY() / all * getHeight();\n mVerticalScrollBarSizeEnlarged = false;\n }\n if(mEventHandler.holdVerticalScrollBar()) {\n float centerY = topY + length / 2f;\n drawLineInfoPanel(canvas,centerY,mRect.left - mDpUnit * 5);\n }\n mRect.right = getWidth();\n mRect.left = getWidth() - mDpUnit * width;\n mRect.top = topY;\n mRect.bottom = topY + length;\n mVerticalScrollBar.set(mRect);\n drawColor(canvas,mColors.getColor(mEventHandler.holdVerticalScrollBar() ? ColorScheme.SCROLL_BAR_THUMB_DOWN : ColorScheme.SCROLL_BAR_THUMB),mRect);\n }",
"public void flashScrollbar() {\n clientRpc.flashScrollbar();\n }",
"public ScrollPaneBorder()\n {\n super(new Insets(6, 6, 8, 6)//5,4,6,4\n , __Icon9Factory__.getInstance().getScrollPaneBorderBg());\n }",
"protected String paramString() {\n/* 1357 */ String str3, str4, str1 = (this.viewportBorder != null) ? this.viewportBorder.toString() : \"\";\n/* */ \n/* 1359 */ String str2 = (this.viewport != null) ? this.viewport.toString() : \"\";\n/* */ \n/* 1361 */ if (this.verticalScrollBarPolicy == 20)\n/* 1362 */ { str3 = \"VERTICAL_SCROLLBAR_AS_NEEDED\"; }\n/* 1363 */ else if (this.verticalScrollBarPolicy == 21)\n/* 1364 */ { str3 = \"VERTICAL_SCROLLBAR_NEVER\"; }\n/* 1365 */ else if (this.verticalScrollBarPolicy == 22)\n/* 1366 */ { str3 = \"VERTICAL_SCROLLBAR_ALWAYS\"; }\n/* 1367 */ else { str3 = \"\"; }\n/* */ \n/* 1369 */ if (this.horizontalScrollBarPolicy == 30)\n/* 1370 */ { str4 = \"HORIZONTAL_SCROLLBAR_AS_NEEDED\"; }\n/* 1371 */ else if (this.horizontalScrollBarPolicy == 31)\n/* 1372 */ { str4 = \"HORIZONTAL_SCROLLBAR_NEVER\"; }\n/* 1373 */ else if (this.horizontalScrollBarPolicy == 32)\n/* 1374 */ { str4 = \"HORIZONTAL_SCROLLBAR_ALWAYS\"; }\n/* 1375 */ else { str4 = \"\"; }\n/* */ \n/* 1377 */ String str5 = (this.horizontalScrollBar != null) ? this.horizontalScrollBar.toString() : \"\";\n/* */ \n/* */ \n/* 1380 */ String str6 = (this.verticalScrollBar != null) ? this.verticalScrollBar.toString() : \"\";\n/* */ \n/* 1382 */ String str7 = (this.columnHeader != null) ? this.columnHeader.toString() : \"\";\n/* */ \n/* 1384 */ String str8 = (this.rowHeader != null) ? this.rowHeader.toString() : \"\";\n/* */ \n/* 1386 */ String str9 = (this.lowerLeft != null) ? this.lowerLeft.toString() : \"\";\n/* */ \n/* 1388 */ String str10 = (this.lowerRight != null) ? this.lowerRight.toString() : \"\";\n/* */ \n/* 1390 */ String str11 = (this.upperLeft != null) ? this.upperLeft.toString() : \"\";\n/* */ \n/* 1392 */ String str12 = (this.upperRight != null) ? this.upperRight.toString() : \"\";\n/* */ \n/* 1394 */ return super.paramString() + \",columnHeader=\" + str7 + \",horizontalScrollBar=\" + str5 + \",horizontalScrollBarPolicy=\" + str4 + \",lowerLeft=\" + str9 + \",lowerRight=\" + str10 + \",rowHeader=\" + str8 + \",upperLeft=\" + str11 + \",upperRight=\" + str12 + \",verticalScrollBar=\" + str6 + \",verticalScrollBarPolicy=\" + str3 + \",viewport=\" + str2 + \",viewportBorder=\" + str1;\n/* */ }",
"void setScrollPosition(int x, int y);",
"@Override\n public void onScroll(float scrollProgressPercent) {\n }",
"StyleListSettings getListablepageStyle();",
"PdfViewerScrollBarVertical(PdfViewerController controller)\n {\n super(JScrollBar.VERTICAL, controller);\n setUI(ui);\n\n addAdjustmentListener(new AdjustmentListener()\n {\n public void adjustmentValueChanged(AdjustmentEvent e)\n {\n scrollPosition = e.getValue();\n setNewViewportPosition();\n }\n });\n\n addComponentListener(new ComponentListener()\n {\n\n public void componentShown(ComponentEvent e)\n {\n }\n\n public void componentResized(ComponentEvent e)\n {\n ;\n repaint();\n }\n\n public void componentMoved(ComponentEvent e)\n {\n }\n\n public void componentHidden(ComponentEvent e)\n {\n }\n });\n }",
"public void setDrawHighlightIndicators(boolean enabled) {\n/* 51 */ setDrawVerticalHighlightIndicator(enabled);\n/* 52 */ setDrawHorizontalHighlightIndicator(enabled);\n/* */ }",
"private void createScrollPane() {\n\n\t\t// --------------------------------------------\n\t\t// first create the client\n\t\t// --------------------------------------------\n\t\tclient = new Client(this);\n//\t\tclient.setTransferHandler(PM_TransferHandler.getInstance());\n\t\tfocusPanel = new PM_FocusPanel(null, this, this);\n\n\t\tif (config.isNurLesen()) {\n\t\t\tclient.setBackground(PM_WindowBase.COLOR_NUR_LESEN);\n\t\t} else {\n\t\t\tclient.setBackground(PM_WindowBase.COLOR_BACKGROUND);\n\t\t}\n\t\tclient.setLayout(null); // I do it myself\n\n\t\tclient.addMouseListener(new MouseAdapter() {\n\t\t\t@Override\n\t\t\tpublic void mouseClicked(MouseEvent arg0) {\n\t\t\t\t// System.out.println(\"Inndex View: mouseClicked: requestFocusInWindow aufrufen\");\n\t\t\t\trequestFocusInWindow();\n\t\t\t}\n\t\t});\n\n\t\t// ------------------------------------------\n\t\t// now the scrollpane\n\t\t// ------------------------------------------\n\t\tscrollPane = new JScrollPane(client);\n\t\tindexViewPort = scrollPane.getViewport();\n\n\t\tscrollPane.setWheelScrollingEnabled(false);\n\n\t\t//\t\t \n\t\tscrollPane\n\t\t\t\t.setHorizontalScrollBarPolicy(JScrollPane.HORIZONTAL_SCROLLBAR_NEVER);\n\t\t// Achtung: VERTICAL_SCROLLBAR_ALWAYS, da sonst unterschiedliche\n\t\t// ExtendSize und\n\t\t// damit funktioniert der stateChanged nicht mehr.\n\t\tscrollPane\n\t\t\t\t.setVerticalScrollBarPolicy(JScrollPane.VERTICAL_SCROLLBAR_ALWAYS);\n\t\t// ----------------------------------------------------------------------\n\t\t// MouseWheelListener\n\t\t// ----------------------------------------------------------------------\n\t\tMouseWheelListener mwl = new MouseWheelListener() {\n\n\t\t\tpublic void mouseWheelMoved(MouseWheelEvent me) {\n\t\t\t\tmouseWheelChanged(me);\n\t\t\t}\n\t\t};\n\t\tscrollPane.addMouseWheelListener(mwl);\n\n\t\t// ----------------------------------------------------------------------\n\t\t// ChangeListener\n\t\t// ----------------------------------------------------------------------\n\t\tChangeListener cl = new ChangeListener() {\n\t\t\tpublic void stateChanged(ChangeEvent ce) {\n\t\t\t\t// viewPortSizeChanged(ce);\n\t\t\t}\n\t\t};\n\t\tscrollPane.getViewport().addChangeListener(cl);\n\n\t\t// addComponentListener\n\t\tscrollPane.getViewport().addComponentListener(new ComponentAdapter() {\n\t\t\t@Override\n\t\t\tpublic void componentResized(ComponentEvent e) {\n\t\t\t\tviewPortChanged(e);\n\t\t\t}\n\t\t});\n\n\t\t// addAdjustmentListener(AdjustmentListener l)\n\t\t// Scrollbar AdjustmentListener\n\t\tJScrollBar sb = scrollPane.getVerticalScrollBar();\n\t\tsb.addAdjustmentListener(new AdjustmentListener() {\n\n\t\t\t \n\t\t\tpublic void adjustmentValueChanged(AdjustmentEvent e) {\n\t\t\t\tverticalScrollBarChanged(e);\n\n\t\t\t}\n\n\t\t});\n\n\t\t// oldViewPortSize = indexViewPort.getExtentSize();\n\t\t\n\t\t\n\t\t\n\t\t\n\t}",
"private void updateScrollbars() {\n if (!inUpdateScrollbars) {\n inUpdateScrollbars = true;\n try {\n doUpdateScrollbar();\n } finally {\n inUpdateScrollbars = false;\n }\n } else {\n if (!inUpdateScrollbarsLogged) {\n inUpdateScrollbarsLogged = true;\n ILog logger = TerminalPlugin.getDefault().getLog();\n logger.log(new Status(WARNING, TerminalPlugin.PLUGIN_ID, OK, \"Unexpected Recursion in terminal\", null));\n }\n }\n }",
"public Rectangle getScrollRectangle() {\r\n return scrollRectangle;\r\n }",
"@Transient\n/* */ public JScrollBar getHorizontalScrollBar() {\n/* 827 */ return this.horizontalScrollBar;\n/* */ }",
"void setScrollBarRelations(JScrollBar param1JScrollBar) {\n/* 1540 */ AccessibleRelation accessibleRelation1 = new AccessibleRelation(AccessibleRelation.CONTROLLED_BY, param1JScrollBar);\n/* */ \n/* */ \n/* 1543 */ AccessibleRelation accessibleRelation2 = new AccessibleRelation(AccessibleRelation.CONTROLLER_FOR, JScrollPane.this);\n/* */ \n/* */ \n/* */ \n/* */ \n/* 1548 */ AccessibleContext accessibleContext = param1JScrollBar.getAccessibleContext();\n/* 1549 */ accessibleContext.getAccessibleRelationSet().add(accessibleRelation2);\n/* */ \n/* */ \n/* 1552 */ getAccessibleRelationSet().add(accessibleRelation1);\n/* */ }",
"@Transient\n/* */ public JScrollBar getVerticalScrollBar() {\n/* 886 */ return this.verticalScrollBar;\n/* */ }",
"private void loadScrollState() {\n AppExecutors.getInstance().mainThread().execute(() ->\r\n mScrollViewFinal.scrollTo(0, mActivityPreferences\r\n .getInt(getScrollType(mIsRedWine), 0)));\r\n }",
"public interface IScrollBarUpdateHandler {\n\n\t/**\n\t * This method is called, when a ScrollBar was updated (e.g. dragged by a user).\n\t * \n\t * @param scrollBar\n\t * The ScrollBar that was updated.\n\t */\n\tpublic void handleScrollBarUpdate(ScrollBar scrollBar);\n\n}",
"void onScroll(boolean bDragging);",
"void setScrollTop(int scrollTop);",
"protected RectF getHorizontalScrollBarRect() {\n return mHorizontalScrollBar;\n }",
"public void setScrolling(boolean isScrolling) {\n this.isScrolling = isScrolling;\n }",
"@JSProperty(\"overscroll\")\n void setOverscroll(double value);",
"public void setEndPointEndingStyle(String style) {\n/* 752 */ String actualStyle = (style == null) ? \"None\" : style;\n/* 753 */ COSBase base = getCOSObject().getDictionaryObject(COSName.LE);\n/* */ \n/* 755 */ if (!(base instanceof COSArray) || ((COSArray)base).size() < 2) {\n/* */ \n/* 757 */ COSArray array = new COSArray();\n/* 758 */ array.add((COSBase)COSName.getPDFName(\"None\"));\n/* 759 */ array.add((COSBase)COSName.getPDFName(actualStyle));\n/* 760 */ getCOSObject().setItem(COSName.LE, (COSBase)array);\n/* */ }\n/* */ else {\n/* */ \n/* 764 */ COSArray array = (COSArray)base;\n/* 765 */ array.setName(1, actualStyle);\n/* */ } \n/* */ }",
"public ScrollView()\n {\n // Configure ScrollView\n setBorder(SCROLL_VIEW_BORDER);\n\n // Create Scroller and add listeners for scroll changes\n _scroller = new Scroller();\n _scroller.addPropChangeListener(pc -> scrollerDidPropChange(pc), Width_Prop, Height_Prop,\n Scroller.ScrollX_Prop, Scroller.ScrollY_Prop, Scroller.ScrollWidth_Prop, Scroller.ScrollHeight_Prop);\n addChild(_scroller);\n }",
"public void scrollBarDidPropChange(PropChange aPC)\n {\n String pname = aPC.getPropName();\n if (pname==ScrollBar.Scroll_Prop) {\n ScrollBar sbar = (ScrollBar)aPC.getSource();\n double val = sbar.getScrollRatio();\n if (sbar==_hbar)\n _scroller.setScrollXRatio(val);\n else _scroller.setScrollYRatio(val);\n }\n }",
"void scroll(int scrollTop);",
"private void doBuildScroller() {\r\n\t\t\r\n\t}",
"private int getScrollVal() {\n return Math.abs((int)scrollBar.getValue());\n }",
"void onScrollChange(View v, int scrollX, int scrollY, int oldScrollX, int oldScrollY);",
"public ScrollBar getVBar()\n {\n if (_vbar!=null) return _vbar;\n _vbar = new ScrollBar(); _vbar.setVertical(true);\n _vbar.addPropChangeListener(pc -> scrollBarDidPropChange(pc), ScrollBar.Scroll_Prop);\n return _vbar;\n }",
"void setScrollLeft(int scrollLeft);",
"public abstract boolean scroll(Direction direction);",
"QtScrollPanePeer (QtToolkit toolkit, ScrollPane target)\n {\n\tsuper (toolkit, target);\n scrollbarDisplayPolicy = target.getScrollbarDisplayPolicy();\n }",
"public void setPageStyle(String style)\n {\n // ignore\n }",
"PdfViewerScrollBarHorizontal(PdfViewerController controller)\n {\n super(JScrollBar.HORIZONTAL, controller);\n setUI(ui);\n addAdjustmentListener(new AdjustmentListener()\n {\n public void adjustmentValueChanged(AdjustmentEvent e)\n {\n scrollPosition = e.getValue();\n try\n {\n PdfViewerScrollBarHorizontal.this.controller.scrollTo(scrollPosition,\n PdfViewerScrollBarHorizontal.this.controller.getViewportOrigin().y);\n } catch (PdfViewerException ex)\n {\n DebugLogger.log(ex.toString());\n }\n }\n });\n\n addComponentListener(new ComponentListener()\n {\n\n public void componentShown(ComponentEvent e)\n {\n }\n\n public void componentResized(ComponentEvent e)\n {\n update();\n repaint();\n }\n\n public void componentMoved(ComponentEvent e)\n {\n }\n\n public void componentHidden(ComponentEvent e)\n {\n }\n });\n }",
"public void setWordBreakStyle(com.cognos.developer.schemas.raas.Returns__by__Order__Method___x002d__Prompted__Chart.WordBreakEnum wordBreakStyle) {\r\n this.wordBreakStyle = wordBreakStyle;\r\n }",
"public int getStyle() {\n\treturn style;\n }",
"Style getStyle();",
"public void propertyChange(PropertyChangeEvent param1PropertyChangeEvent) {\n/* 1520 */ String str = param1PropertyChangeEvent.getPropertyName();\n/* 1521 */ if (str == \"horizontalScrollBar\" || str == \"verticalScrollBar\")\n/* */ {\n/* */ \n/* 1524 */ if (param1PropertyChangeEvent.getNewValue() instanceof JScrollBar) {\n/* 1525 */ setScrollBarRelations((JScrollBar)param1PropertyChangeEvent.getNewValue());\n/* */ }\n/* */ }\n/* */ }",
"protected void scrollerDidPropChange(PropChange anEvent)\n {\n // Get Property Name\n String pname = anEvent.getPropName();\n\n // Handle Scroller.ScrollX change\n if (pname==Scroller.ScrollX_Prop)\n getHBar().setScroll(_scroller.getScrollX());\n\n // Handle Scroller.ScrollY change\n else if (pname==Scroller.ScrollY_Prop)\n getVBar().setScroll(_scroller.getScrollY());\n\n // Handle Scroller.Width or Scroller.ScrollWidth change\n else if (pname==Width_Prop || pname==Scroller.ScrollWidth_Prop) {\n getHBar().setViewSize(_scroller.getWidth());\n getHBar().setScrollSize(_scroller.getScrollWidth());\n getHBar().setScroll(_scroller.getScrollX());\n }\n\n // Handle Scroller.Height or Scroller.ScrollHeight change\n else if (pname==Scroller.Height_Prop || pname==Scroller.ScrollHeight_Prop) {\n getVBar().setViewSize(_scroller.getHeight());\n getVBar().setScrollSize(_scroller.getScrollHeight());\n getVBar().setScroll(_scroller.getScrollY());\n }\n }",
"public void setScrollable(boolean scrollable) {\n/* 1006 */ throw new RuntimeException(\"Stub!\");\n/* */ }",
"private void setProgressBarColor(int ID){\n if(progress!=null){\n Drawable progressDrawable;\n\n switch (ID){\n case 1: progressDrawable = weakContext.get().getResources().getDrawable(R.drawable.customprogressbar0);\n break;\n case 2 : progressDrawable = weakContext.get().getResources().getDrawable(R.drawable.customprogressbar1);\n break;\n case 3 : progressDrawable = weakContext.get().getResources().getDrawable(R.drawable.customprogressbar2);\n break;\n case 4: progressDrawable = weakContext.get().getResources().getDrawable(R.drawable.customprogressbar3);\n break;\n case 5: progressDrawable = weakContext.get().getResources().getDrawable(R.drawable.customprogressbar0);\n break;\n case 6: progressDrawable = weakContext.get().getResources().getDrawable(R.drawable.customprogressbar1);\n break;\n default: progressDrawable = weakContext.get().getResources().getDrawable(R.drawable.customprogressbar);\n break;\n }\n progress.setProgressDrawable(progressDrawable);\n }\n }",
"String getAllDocumentsScroll(String scroll) {\n\t\t@SuppressWarnings(\"deprecation\")\n\t\tString urlEncode = URLEncoder.encode(scroll);\n\t\tString url = esScrollUrl + urlEncode;\n\t\t@SuppressWarnings(\"unused\")\n\t\tint resCode = doHttpOperation(url, HTTP_GET, null);\n\t\treturn lastResponse;\n\t}",
"public void setStyle(String style) {\r\n this.style = style;\r\n }",
"public void setStyle(String style) {\r\n this.style = style;\r\n }",
"private void updateScrollPosition() {\n int oldTop = scrollTop;\n int oldLeft = scrollLeft;\n scrollTop = DOM.getElementPropertyInt(getElement(), \"scrollTop\");\n scrollLeft = DOM.getElementPropertyInt(getElement(), \"scrollLeft\");\n if (connection != null && !rendering) {\n if (oldTop != scrollTop) {\n connection.updateVariable(id, \"scrollTop\", scrollTop, false);\n }\n if (oldLeft != scrollLeft) {\n connection.updateVariable(id, \"scrollLeft\", scrollLeft, false);\n }\n }\n }",
"public void setOnScrollTo(EventHandler<ScrollToEvent<Integer>> value) {\n\n this.getWrappedControl().setOnScrollTo(value);\n }",
"public void onScrollStateChanged(AbsListView arg0, int scrollState) {\n\t\tcurrentScrollState = scrollState;\n\t\tif (valorUltimo <= 0)\n\t\t\tisScrollCompleted();\n\t}",
"UiStyle getUiStyle();",
"private void drawScrollBarHorizontal(Canvas canvas,int width) {\n int page = getWidth();\n float all = getScrollMaxX() + getWidth();\n float length = page / all * getWidth();\n float leftX = getOffsetX() / all * getWidth();\n mRect.top = getHeight() - mDpUnit * width;\n mRect.bottom = getHeight();\n mRect.right = leftX + length;\n mRect.left = leftX;\n mHorizontalScrollBar.set(mRect);\n drawColor(canvas,mColors.getColor(mEventHandler.holdHorizontalScrollBar() ? ColorScheme.SCROLL_BAR_THUMB_DOWN : ColorScheme.SCROLL_BAR_THUMB),mRect);\n }",
"public void updateStyle()\n {\n this.textOutput.setForeground(new Color(null, ShellPreference.OUTPUT_COLOR_INPUT.getRGB()));\n this.textOutput.setBackground(new Color(null, ShellPreference.OUTPUT_BACKGROUND.getRGB()));\n this.textOutput.setFont(new Font(null, ShellPreference.OUTPUT_FONT.getFontData()));\n this.colorOuput = new Color(null, ShellPreference.OUTPUT_COLOR_OUTPUT.getRGB());\n this.colorError = new Color(null, ShellPreference.OUTPUT_COLOR_ERROR.getRGB());\n\n this.textInput.setForeground(new Color(null, ShellPreference.INPUT_COLOR.getRGB()));\n this.textInput.setBackground(new Color(null, ShellPreference.INPUT_BACKGROUND.getRGB()));\n this.textInput.setFont(new Font(null, ShellPreference.INPUT_FONT.getFontData()));\n\n this.historyMax = ShellPreference.MAX_HISTORY.getInt();\n }",
"public ScrollBar getHBar()\n {\n if (_hbar!=null) return _hbar;\n _hbar = new ScrollBar();\n _hbar.addPropChangeListener(pc -> scrollBarDidPropChange(pc), ScrollBar.Scroll_Prop);\n return _hbar;\n }",
"private void setScrollDefaultState()\n {\n nestedScrollView.fullScroll(View.FOCUS_UP);\n nestedScrollView.scrollTo(0,0);\n appBarLayout.setExpanded(true);\n }",
"public int getStyle() {\r\n\t\treturn this.style;\r\n\t}",
"public void setStyle(String style) {\n this.style = style;\n }",
"private org.gwtproject.user.client.ui.ScrollPanel get_f_ScrollPanel1() {\n return build_f_ScrollPanel1();\n }"
] |
[
"0.68941504",
"0.60963523",
"0.5687767",
"0.5679639",
"0.5581329",
"0.5479532",
"0.54224706",
"0.54158014",
"0.54156995",
"0.536603",
"0.53374267",
"0.5324891",
"0.5320158",
"0.5293643",
"0.5283892",
"0.52608",
"0.5241784",
"0.52132875",
"0.5181762",
"0.5075489",
"0.5057737",
"0.4981111",
"0.49558967",
"0.49376062",
"0.49295166",
"0.49244365",
"0.49067876",
"0.48895785",
"0.48223048",
"0.47901756",
"0.47820702",
"0.47621724",
"0.47557575",
"0.46961248",
"0.46702424",
"0.4625245",
"0.4608426",
"0.45894912",
"0.45883176",
"0.45827448",
"0.45797622",
"0.45771396",
"0.45717368",
"0.4566844",
"0.45632964",
"0.454927",
"0.44969627",
"0.44836468",
"0.44808844",
"0.44779563",
"0.44707325",
"0.44655216",
"0.4454344",
"0.4449291",
"0.44469178",
"0.44322258",
"0.44312662",
"0.4430563",
"0.44142818",
"0.44120362",
"0.44085324",
"0.44053483",
"0.43917212",
"0.438322",
"0.43801805",
"0.43596292",
"0.43548864",
"0.4347726",
"0.4343143",
"0.4325205",
"0.432226",
"0.432043",
"0.43147618",
"0.4298654",
"0.42868686",
"0.42827567",
"0.42762467",
"0.42714158",
"0.4261032",
"0.42593578",
"0.42565626",
"0.42524213",
"0.42496797",
"0.42473027",
"0.4245196",
"0.42423204",
"0.42282394",
"0.42270714",
"0.42270714",
"0.4223683",
"0.42215717",
"0.4215567",
"0.42081535",
"0.4207233",
"0.42037302",
"0.4189798",
"0.41848126",
"0.41840753",
"0.41828543",
"0.41810456"
] |
0.72334635
|
0
|
Determines whether the SearchBar or SearchView appears as part of the TableView. Set to false if the search view will be displayed in the action bar. Default: true
|
public native boolean searchAsChild() /*-{
var jso = this.@com.emitrom.ti4j.core.client.ProxyObject::getJsObj()();
return jso.searchAsChild;
}-*/;
|
{
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
}
|
[
"boolean hasSearchTermView();",
"@Override\n public boolean onSearchRequested() {\n return !isSearchResultView && super.onSearchRequested();\n }",
"@UnsupportedAppUsage\n public boolean isVisible() {\n return mSearchDialog == null? false : mSearchDialog.isShowing();\n }",
"@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n // Inflate the options menu from XML\n MenuInflater inflater = getMenuInflater();\n inflater.inflate(R.menu.options_menu, menu);\n\n // Todo(32) gather all search view code in one place\n\n // further code, initializes SearchView menu item:\n // Get the SearchView and set the searchable configuration\n final SearchManager searchManager = (SearchManager) getSystemService(Context.SEARCH_SERVICE);\n searchView = (SearchView) menu.findItem(R.id.action_search).getActionView();\n // Assumes current activity is the searchable activity\n searchView.setSearchableInfo(searchManager.getSearchableInfo(getComponentName()));\n // further customization of the SearchView\n searchView.setIconifiedByDefault(true);\n searchView.setQueryHint(getString(R.string.search_hint_text_for_search_widget));\n int width = AppUtilities.getDisplayWidth(this);\n searchView.setMaxWidth(width);\n // set a Listener to the SearchView so that the Search query being entered could be persisted\n searchView.setOnQueryTextListener(new SearchView.OnQueryTextListener() {\n /*\n * Method that tracks the state of SearchView (whether the user has submitted the query)\n * */\n @Override\n public boolean onQueryTextSubmit(String query) {\n searchQueryToRestore = query;\n // update the state variable\n searchQueryIsSubmitted = true;\n // remove focus from SearchView\n rootLayout.requestFocus();\n return false;\n }\n\n /*\n * Method that tracks the contents of search query being entered\n * */\n @Override\n public boolean onQueryTextChange(String newText) {\n // store the search query being entered in a global object that will be used to persist data\n // note: intentionally we use another string instead of @searchQueryToRestore, as SearchView\n // query is at first set to null (at the time SearchView is initialised), before setQuery()\n // method is called\n searchQueryToListen = newText;\n return false;\n }\n });\n\n\n // Todo(31) replace to the correct place in the code\n\n // listener that sets boolean values for @searchModeIsOn\n MenuItemCompat.setOnActionExpandListener(menu.findItem(searchView.getId()), new MenuItemCompat.OnActionExpandListener() {\n @Override\n public boolean onMenuItemActionExpand(MenuItem item) {\n searchModeIsOn = true;\n return true;\n }\n\n @Override\n public boolean onMenuItemActionCollapse(MenuItem item) {\n searchModeIsOn = false;\n\n // if no search query has been submitted, just close the search view,\n // else - reload the data\n if(!searchQuerySubmitted.equals(\"\")){\n performNewQuery();\n searchQuerySubmitted = \"\";\n }\n\n return true;\n }\n });\n\n // Restore the state of SearchView (if it was open before orientation change, or before\n // leaving the activity);\n if(searchModeIsOn){\n // expandActionView() expands / gives focus to the SearchView\n // note: it needs to be called before setQuery() method\n menu.findItem(searchView.getId()).expandActionView();\n searchView.setQuery(searchQueryToRestore, false);\n // restore the focus state\n if(searchQueryIsSubmitted){\n // if submitted - remove the focus (also removes the soft keyboard)\n searchView.clearFocus();\n rootLayout.requestFocus();\n }\n }\n return true;\n }",
"boolean hasDynamicSearchAdsSearchTermView();",
"@Override\n public boolean onCreateOptionsMenu(final Menu menu) {\n getMenuInflater().inflate(R.menu.menu, menu);\n final MenuItem notificationsMenuItem = menu.findItem(R.id.action_notifications);\n final MenuItem walletMenuItem = menu.findItem(R.id.action_wallet);\n final MenuItem searchMenuItem = menu.findItem(R.id.action_search);\n final MenuItem homeMenuItem = menu.findItem(R.id.action_home);\n\n //Hide all action buttons\n homeMenuItem.setVisible(false);\n notificationsMenuItem.setVisible(false);\n walletMenuItem.setVisible(false);\n searchMenuItem.setVisible(mSearchViewToShow);\n\n searchView = (SearchView) MenuItemCompat.getActionView(menu.findItem(R.id.action_search));\n SearchManager searchManager = (SearchManager) getSystemService(Context.SEARCH_SERVICE);\n // Assumes current activity is the searchable activity\n searchView.setSearchableInfo(searchManager.getSearchableInfo(getComponentName()));\n// searchView.setIconifiedByDefault(false); // Do not iconify the widget; expand it by default\n\n searchView.setOnQueryTextListener(this);\n searchView.setOnQueryTextFocusChangeListener(new View.OnFocusChangeListener() {\n @Override\n public void onFocusChange(View view, boolean isFocused) {\n searchView.setSuggestionsAdapter(null);\n if (isFocused) {\n findViewById(R.id.layout_search_food).setVisibility(View.VISIBLE);\n } else {\n// findViewById(R.id.layout_search_food).setVisibility(View.GONE);\n }\n }\n });\n\n searchView.setOnCloseListener(new SearchView.OnCloseListener() {\n @Override\n public boolean onClose() {\n findViewById(R.id.layout_search_food).setVisibility(View.GONE);\n return false;\n }\n });\n\n searchView.setQueryHint(getResources().getString(R.string.search_menu_hint));\n\n SearchView.SearchAutoComplete autoCompleteTextView = (SearchView.SearchAutoComplete) searchView.findViewById(R.id.search_src_text);\n if (autoCompleteTextView != null) {\n autoCompleteTextView.setDropDownBackgroundDrawable(getResources().getDrawable(R.drawable.abc_popup_background_mtrl_mult));\n }\n View searchPlate = searchView.findViewById(android.support.v7.appcompat.R.id.search_plate);\n\n if (searchPlate != null) {\n searchPlate.setBackgroundResource(R.drawable.textfield_searchview_holo_light);\n }\n\n return true;\n }",
"public void openSearchView() {\n if (isSearchViewOpen) {\n return;\n }\n\n searchEditText.requestFocus();\n\n AnimatorListenerAdapter listenerAdapter = new AnimatorListenerAdapter() {\n @Override\n public void onAnimationEnd(Animator animation) {\n super.onAnimationEnd(animation);\n if (backgroundView != null) {\n backgroundView.setVisibility(VISIBLE);\n backgroundView.requestFocus();\n }\n //After SearchBar is revealed if keyword is not empty then open suggestions section\n if (!searchEditText.getText().toString().isEmpty()) {\n suggestionsAdapter.filterSuggestions(searchEditText.getText());\n FloatingSearchView.this.onTextChanged(searchEditText.getText());\n }\n }\n };\n\n if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.LOLLIPOP) {\n rootView.setVisibility(View.VISIBLE);\n AnimationUtils.circleRevealView(searchBar, listenerAdapter);\n } else {\n AnimationUtils.fadeInView(rootView);\n }\n\n // Call listener if we have one\n if (searchViewListener != null) {\n searchViewListener.onSearchViewOpen();\n }\n\n isSearchViewOpen = true;\n }",
"@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n MenuInflater menuInflater = getMenuInflater();\n menuInflater.inflate(R.menu.toolbar_menu, menu);\n\n // set the SearchView to be invisible\n final MenuItem searchItem = menu.findItem(R.id.action_search);\n final SearchView searchView = (SearchView) searchItem.getActionView();\n searchItem.setVisible(false);\n searchView.setVisibility(View.GONE);\n\n return true;\n }",
"@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n getMenuInflater().inflate(R.menu.menu_search, menu);\n // Get the SearchView and set the searchable configuration\n SearchManager searchManager = (SearchManager) getSystemService(Context.SEARCH_SERVICE);\n final SearchView searchView = (SearchView) menu.findItem(R.id.action_search).getActionView();\n // Assumes current activity is the searchable activity\n searchView.setSearchableInfo(searchManager.getSearchableInfo(getComponentName()));\n searchView.setIconifiedByDefault(true);\n searchView.onActionViewExpanded();\n searchView.setSubmitButtonEnabled(true);\n // Change submit button\n ImageView submitButton = (ImageView) searchView.findViewById(android.support.v7.appcompat.R.id.search_go_btn);\n submitButton.setImageResource(R.drawable.ic_search_white_24dp);\n final EditText searchEditText = (EditText) searchView.findViewById(android.support.v7.appcompat.R.id.search_src_text);\n searchEditText.setImeOptions(DEFAULT_KEYS_SEARCH_LOCAL);\n //searchEditText.setTextColor(ContextCompat.getColor(this, R.color.md_black_1000));\n //View searchPlate = searchView.findViewById(android.support.v7.appcompat.R.id.search_plate);\n //searchPlate.setBackgroundResource(R.color.md_white_1000);\n searchView.setOnQueryTextListener(new SearchView.OnQueryTextListener() {\n @Override\n public boolean onQueryTextSubmit(String query) {\n executeSearchShow(query);\n searchView.clearFocus();\n return true;\n }\n\n @Override\n public boolean onQueryTextChange(String newText) {\n return false;\n }\n });\n return true;\n }",
"@Override\n\tpublic boolean onSearchRequested () {\n\t\tif (!searchMode)\n\t\t\ttoggleSearch();\n\t\treturn true;\n\t}",
"private void toggleSearchButton() {\n\t\t// Enable \"Search\" button when both input fields are filled in\n\t\tview.toggleSearch(!view.getStartStation().equals(\"\")\n\t\t\t\t&& !view.getEndStation().equals(\"\"));\n\t}",
"private boolean canShowBars() {\n if (mAppBridge != null && mCurrentIndex == 0\n && !mPhotoView.getFilmMode()) {\n return false;\n }\n\n // No bars if it's not allowed.\n if (!mActionBarAllowed) {\n return false;\n }\n\n Configuration config = mActivity.getResources().getConfiguration();\n return config.touchscreen != Configuration.TOUCHSCREEN_NOTOUCH;\n }",
"void showSearch() {\r\n AccelerateDecelerateInterpolator interpolator = new AccelerateDecelerateInterpolator();\r\n // Setup the animation for mSearchView\r\n mSearchView.setPivotY(mSearchView.getHeight());\r\n ObjectAnimator searchAnim = ObjectAnimator.ofFloat(mSearchView, \"scaleY\", 0.1f, 1.0f);\r\n searchAnim.setDuration(100);\r\n searchAnim.addListener(new AnimatorListenerAdapter() {\r\n @Override\r\n public void onAnimationStart(Animator animation) {\r\n // Set the visibility of the SearchView\r\n mSearchView.setVisibility(View.VISIBLE);\r\n\r\n // Request focus\r\n mSearchView.requestFocus();\r\n }\r\n });\r\n\r\n // Setup the animation for mTitle\r\n mTitle.setPivotY(mTitle.getHeight());\r\n ObjectAnimator titleAnim = ObjectAnimator.ofFloat(mTitle, \"scaleY\", 1.0f, 0.0f);\r\n searchAnim.setDuration(50);\r\n\r\n AnimatorSet animSet = new AnimatorSet();\r\n animSet.playSequentially(titleAnim, searchAnim);\r\n animSet.setInterpolator(interpolator);\r\n animSet.addListener(new AnimatorListenerAdapter() {\r\n @Override\r\n public void onAnimationEnd(Animator animation) {\r\n // Hide the app title\r\n mTitle.setVisibility(View.INVISIBLE);\r\n }\r\n });\r\n animSet.start();\r\n\r\n // Change the search icon to a cancel icon\r\n mSearchIcon.setImageDrawable(ContextCompat.getDrawable(this, R.drawable.ic_menu_close_clear_cancel));\r\n\r\n // Show the soft keyboard\r\n InputMethodManager imm = (InputMethodManager)getSystemService(Context.INPUT_METHOD_SERVICE);\r\n imm.showSoftInput(this.getCurrentFocus(), 0);\r\n }",
"boolean hasDisplayKeywordView();",
"@Override\n public void onCreateOptionsMenu(Menu menu, MenuInflater inflater) {\n inflater.inflate(R.menu.menu_home, menu);\n MenuItem item = menu.findItem(R.id.homeSearch);\n\n SearchView searchView = (SearchView) item.getActionView();\n searchView.setOnQueryTextListener(this);\n searchView.setQueryHint(\"Search\");\n searchView.setOnCloseListener(new SearchView.OnCloseListener() {\n @Override\n public boolean onClose() {\n tabLayout.setVisibility(View.VISIBLE);\n homeSearchRecycleView.setVisibility(View.GONE);\n mViewPager.setVisibility(View.VISIBLE);\n return false;\n }\n });\n\n super.onCreateOptionsMenu(menu, inflater);\n }",
"@Override\n public boolean onCreateOptionsMenu(final Menu menu) {\n getMenuInflater().inflate(R.menu.menu_main, menu);\n SearchManager searchManager = (SearchManager) getSystemService(Context.SEARCH_SERVICE);\n mSearchView = (SearchView) menu.findItem(R.id.action_search).getActionView();\n mSearchView.setSearchableInfo(searchManager.getSearchableInfo(getComponentName()));\n mSearchView.setQueryHint(\"Nhập từ tìm kiếm\");\n\n EditText searchPlate = ((EditText) mSearchView.findViewById(R.id.search_src_text));\n searchPlate.setBackgroundResource(R.drawable.underlinetheme_edit_text_holo_light);\n searchPlate.setImeOptions(EditorInfo.IME_ACTION_SEARCH);\n searchPlate.setTextColor(getResources().getColor(R.color.textColorPrimary));\n\n mSearchView.setOnQueryTextListener(new SearchView.OnQueryTextListener() {\n @Override\n public boolean onQueryTextSubmit(String query) {\n Seach(query);\n return false;\n }\n\n @Override\n public boolean onQueryTextChange(String newText) {\n return false;\n }\n });\n\n mTVTitle.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View view) {\n mSearchView.setIconified(false);\n MenuItemCompat.expandActionView(menu.findItem(R.id.action_search));\n mSearchView.requestFocus();\n InputMethodManager lManager = (InputMethodManager) getSystemService(Context.INPUT_METHOD_SERVICE);\n lManager.showSoftInput(mSearchView, 0);\n }\n });\n\n return true;\n }",
"@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tgetMenuInflater().inflate(R.menu.activity_search, menu);\n\t\t\n\t\tif(Build.VERSION.SDK_INT >= Build.VERSION_CODES.HONEYCOMB) {\n\t\t\tSearchManager searchManager = (SearchManager) getSystemService(Context.SEARCH_SERVICE);\n\t\t\tmSearchView = (SearchView) menu.findItem(R.id.search_bar2).getActionView();\n\t\t\tmSearchView.setSearchableInfo(searchManager.getSearchableInfo(getComponentName()));\n\t\t\tmSearchView.setIconifiedByDefault(false);\n\t\t\tmSearchView.setOnQueryTextListener(this);\n\t\t\t\n\t\t}\n\t\treturn true;\n\t}",
"boolean getSearchable();",
"@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n getMenuInflater().inflate(R.menu.menu_search, menu);\n\n // Associate searchable configuration with the SearchView !IMPORTANT\n SearchManager searchManager = (SearchManager) getSystemService(Context.SEARCH_SERVICE);\n searchView = (SearchView) menu.findItem(R.id.action_search)\n .getActionView();\n searchView.setSearchableInfo(searchManager\n .getSearchableInfo(getComponentName()));\n searchView.setMaxWidth(Integer.MAX_VALUE);\n\n // listening to search query text change, every type on input\n searchView.setOnQueryTextListener(new SearchView.OnQueryTextListener() {\n @Override\n public boolean onQueryTextSubmit(String query) {\n // filter recycler view when query submitted\n mAdapter.getFilter().filter(query);\n return false;\n }\n\n @Override\n public boolean onQueryTextChange(String query) {\n // filter recycler view when text is changed\n mAdapter.getFilter().filter(query);\n return false;\n }\n });\n return true;\n }",
"private void setupSearchView(MenuItem searchItem) {\n\t\t if (isAlwaysExpanded()) {\n\t // mSearchView.setIconifiedByDefault(false);\n\t if (mSearchView.getVisibility() == View.VISIBLE) {\n\t\t\t\t mSearchView.setIconified(true);// to Expand the SearchView when clicked\n\t\t\t\t mSearchView.setVisibility(View.INVISIBLE);\n\t } else {\n\t \tmSearchView.setVisibility(View.VISIBLE);\n\t \tmSearchView.setIconified(false);\n\t }\n\t } else {\n\t searchItem.setShowAsActionFlags(MenuItem.SHOW_AS_ACTION_IF_ROOM | MenuItem.SHOW_AS_ACTION_COLLAPSE_ACTION_VIEW);\n\t }\n\n\t SearchManager searchManager = (SearchManager) getSystemService(Context.SEARCH_SERVICE);\n\t if (searchManager != null) {\n\t List<SearchableInfo> searchables = searchManager.getSearchablesInGlobalSearch();\n\n\t SearchableInfo info = searchManager.getSearchableInfo(getComponentName());\n\t for (SearchableInfo inf : searchables) {\n\t if (inf.getSuggestAuthority() != null\n\t && inf.getSuggestAuthority().startsWith(\"applications\")) {\n\t info = inf;\n\t }\n\t }\n\t mSearchView.setSearchableInfo(info);\n\t }\n\n\t mSearchView.setOnQueryTextListener(this);\n\t}",
"public boolean isFiltered()\n\t{\n\t\tfinal TiTableView tableView = getTableView();\n\n\t\tif (tableView != null) {\n\t\t\treturn tableView.isFiltered();\n\t\t}\n\n\t\treturn false;\n\t}",
"private void toggleSearch () {\n\t\tsearchMode = !searchMode;\n\t\t\n\t\tif (searchMode) {\n\t\t\t// Go into search mode\n\t\t\t/*\n\t\t\t * Tween in the search bar and keep visible\n\t\t\t */\n\t\t\tif (flyRevealDown == null)\n\t\t\t\tflyRevealDown = AnimationUtils.loadAnimation(this, R.anim.fly_reveal_down);\n\t\t\tsearch.startAnimation(flyRevealDown);\n\t\t\tsearch.setVisibility(View.VISIBLE);\n\t\t\tfilter.requestFocus();\n\t\t\t\n\t\t\t/*\n\t\t\t * Tween out the new memo bar\n\t\t\t */\n\t\t\tif (fadeOut == null)\n\t\t\t\tfadeOut = AnimationUtils.loadAnimation(this, R.anim.fade_out);\n\t\t\tnewMemo.startAnimation(fadeOut);\n\t\t\tnewMemo.setVisibility(View.GONE);\n\t\t\t\n\t\t\t/*\n\t\t\t * Show the keyboard\n\t\t\t */\n\t\t\tinputMethodManager.showSoftInput(filter, 0);\n\t\t} else {\n\t\t\t// Go out of search mode\n\t\t\t/*\n\t\t\t * Hide the keyboard\n\t\t\t */\n\t\t\tinputMethodManager.hideSoftInputFromInputMethod(filter.getWindowToken(), 0);\n\t\t\t\n\t\t\t/*\n\t\t\t * Tween out the search bar and keep invisible\n\t\t\t */\n\t\t\tif (flyConcealUp == null)\n\t\t\t\tflyConcealUp = AnimationUtils.loadAnimation(this, R.anim.fly_conceal_up);\n\t\t\tfilter.setText(\"\");\n\t\t\tsearch.startAnimation(flyConcealUp);\n\t\t\tsearch.setVisibility(View.GONE);\n\t\t\t\n\t\t\t/*\n\t\t\t * Tween in the new memo bar\n\t\t\t */\n\t\t\tif (fadeIn == null)\n\t\t\t\tfadeIn = AnimationUtils.loadAnimation(this, R.anim.fade_in);\n\t\t\tnewMemo.startAnimation(fadeIn);\n\t\t\tnewMemo.setVisibility(View.VISIBLE);\n\t\t}\n\t}",
"@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n MenuInflater inflater = getMenuInflater();\n inflater.inflate(isSearch ? R.menu.menu_search_toolbar : R.menu.main, menu);\n\n if (isSearch) {\n //Toast.makeText(getApplicationContext(), \"Search \" + isSearch, Toast.LENGTH_SHORT).show();\n final SearchView search = (SearchView) menu.findItem(R.id.action_search).getActionView();\n search.setIconified(false);\n search.setQueryHint(\"검색어를 입력하세요.\");\n\n search.setOnQueryTextListener(new SearchView.OnQueryTextListener() {\n @Override\n public boolean onQueryTextSubmit(String s) {\n return false;\n }\n\n @Override\n public boolean onQueryTextChange(String s) {\n /*switch (viewPager.getCurrentItem()) {\n case 0:\n // f_number.mAdapter.getFilter().filter(s);\n break;\n case 1:\n // f_check.mAdapter.getFilter().filter(s);\n break;\n case 2:\n // f_event.mAdapter.getFilter().filter(s);\n break;\n }*/\n return true;\n }\n });\n search.setOnCloseListener(new SearchView.OnCloseListener() {\n @Override\n public boolean onClose() {\n closeSearch();\n return true;\n }\n });\n }\n\n return true;\n }",
"public boolean isBrowseShown()\r\n\t{\r\n\t\treturn ((this.pageBackingBean.getCurrentUser() != null) || (this.settingEjb\r\n\t\t .getBooleanSettingByName(Constants.SETTING_SEARCH_ALLOW_NON_USERS)))\r\n\t\t && !(this.settingEjb.getBooleanSettingByName(Constants.SETTING_SEARCH_INDEXING_COMMENCED));\r\n\t}",
"public CustomerSearchView displaySearchView() {\r\n\r\n\t\tif(customerSearchView == null) {\r\n\t\t\tcustomerSearchView = new CustomerSearchView() {\r\n\t\t\t\tpublic void cancelAction() {\r\n\t\t\t\t\tdisposeSearchView();\r\n\t\t\t\t}\r\n\t\t\t};\r\n\r\n\t\t\tApplicationMaster.addScreen(customerSearchView);\r\n\t\t}\r\n\r\n\t\tif(customerDetailsView != null && customerDetailsView.isVisible()) {\r\n\t\t\tcustomerDetailsView.setVisible(true);\r\n\t\t}\r\n\t\telse {\r\n\t\t\tcustomerSearchView.setTitle(getValue(\"TTLscrxxxxx001CustomerSearchScreen\"));\r\n\t\t\tcustomerSearchView.setController(this);\r\n\r\n\t\t\tcustomerSearchView.setVisible(true);\r\n\t\t}\r\n\r\n\t\treturn customerSearchView;\r\n\t}",
"@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n getMenuInflater().inflate(R.menu.search_activity, menu);\n\n // Get the SearchView and set the searchable configuration\n SearchManager searchManager = (SearchManager) getSystemService(Context.SEARCH_SERVICE);\n SearchView searchView = (SearchView) menu.findItem(R.id.action_search).getActionView();\n // Assumes current activity is the searchable activity\n searchView.setSearchableInfo(searchManager.getSearchableInfo(getComponentName()));\n searchView.setMaxWidth(Integer.MAX_VALUE);//set search menu as full width\n searchView.setIconifiedByDefault(false);\n\n\n return super.onCreateOptionsMenu( menu );\n }",
"@NonNull public abstract SearchView view();",
"public boolean isSearchable() {\n return (rawData != null && !rawData.optBoolean(Constants.HIDDEN_FIELD)\n && rawData.optBoolean(Constants.SEARCHABLE_FIELD));\n }",
"@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n MenuInflater inflater = getMenuInflater();\n inflater.inflate(R.menu.menu_actionbar_principal, menu);\n // Get the SearchView and set the searchable configuration\n SearchManager searchManager = (SearchManager) getSystemService(Context.SEARCH_SERVICE);\n final SearchView searchView = (SearchView) menu.findItem(R.id.pesquisar).getActionView();\n // Assumes current activity is the searchable activity\n searchView.setSearchableInfo(searchManager.getSearchableInfo(getComponentName()));\n searchView.setIconifiedByDefault(false); // Do not iconify the widget; expand it by default\n searchView.setOnQueryTextListener(new SearchView.OnQueryTextListener() {\n\n @Override\n public boolean onQueryTextChange(String s) {\n\n if (s.length() >= 4) {\n Toast.makeText(getApplicationContext(), \"Procura \" + s, Toast.LENGTH_LONG).show();\n //submitLocationQuery(s);\n }\n return true;\n }\n\n @Override\n public boolean onQueryTextSubmit(String query) {\n // submitLocationQuery(query);\n Toast.makeText(getApplicationContext(), \"Procura tudo \" + query, Toast.LENGTH_LONG).show();\n\n searchView.clearFocus();\n // esconder a caixa de texto de busca\n ///searchView.onActionViewCollapsed();\n return true;\n }\n\n });\n\n return super.onCreateOptionsMenu(menu);\n }",
"@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n getMenuInflater().inflate(R.menu.menu_main, menu);\n\n SearchManager searchManager = (SearchManager) getSystemService(Context.SEARCH_SERVICE);\n MenuItem menuItem = menu.findItem(R.id.app_bar_search);\n SearchView searchView = (SearchView) menuItem.getActionView();\n\n searchView.setSearchableInfo(searchManager.getSearchableInfo(getComponentName()));\n\n searchView.setOnQueryTextListener(new SearchView.OnQueryTextListener() {\n @Override\n public boolean onQueryTextSubmit(String query) {\n // TODO ovde ide implementacija za search\n // https://stackoverflow.com/questions/21585326/implementing-searchview-in-action-bar\n return false;\n }\n\n @Override\n public boolean onQueryTextChange(String newText) {\n return false;\n }\n });\n return true;\n }",
"@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n // Inflate the menu; this adds items to the action bar if it is present.\n getMenuInflater().inflate(R.menu.menu_main, menu);//Menu Resource, Menu\n\n SearchManager searchManager = (SearchManager) getSystemService(Context.SEARCH_SERVICE);\n searchMenuItem = menu.findItem(R.id.action_search);\n searchView = (SearchView) searchMenuItem.getActionView();\n\n searchView.setSearchableInfo(searchManager.getSearchableInfo(getComponentName()));\n searchView.setSubmitButtonEnabled(false);\n searchView.setOnQueryTextListener(new SearchView.OnQueryTextListener() {\n @Override\n public boolean onQueryTextSubmit(String query) {\n return false;\n }\n\n @Override\n public boolean onQueryTextChange(String newText) {\n storageGridViewAdapter.getFilter().filter(newText);\n return true;\n }\n });\n\n return true;\n }",
"@Override\n public boolean onSearchRequested() {\n return super.onSearchRequested();\n }",
"@Override\n public void onCreateOptionsMenu(@NonNull Menu menu, @NonNull MenuInflater inflater) {\n inflater.inflate(R.menu.action_bar_menu,menu);\n MenuItem searchItem = menu.findItem(R.id.search_view);\n SearchManager searchManager = (SearchManager) getActivity().getSystemService(context.SEARCH_SERVICE);\n\n if(searchItem != null)\n searchView = (SearchView)searchItem.getActionView();\n if(searchView != null)\n searchView.setSearchableInfo(searchManager.getSearchableInfo(getActivity().getComponentName()));\n\n searchView.setOnQueryTextListener(new SearchView.OnQueryTextListener() {\n @Override\n public boolean onQueryTextSubmit(String query) {\n return false;\n }\n\n @Override\n public boolean onQueryTextChange(String newText) {\n eventAdapter.getFilter().filter(newText);\n return false;\n }\n });\n super.onCreateOptionsMenu(menu, inflater);\n }",
"@Override\n public void setupSearchBar() {\n mSearchChildView.animSearchView();\n mSearchChildView.setupSearchBar();\n }",
"private void checkSearchViewExists() {\n onView(withId(R.id.searchView)).check(matches(isDisplayed()));\n }",
"public boolean openSearch(){\n return true;\n }",
"void requestSearchViewFocus();",
"@Override\n\tpublic boolean onPrepareOptionsMenu(Menu menu) {\n\t\tboolean drawerOpen = mDrawerLayout.isDrawerOpen(mDrawerList);\n\t\tmenu.findItem(R.id.search).setVisible(!drawerOpen);\n\t\treturn super.onPrepareOptionsMenu(menu);\n\t}",
"@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n // get the device's current orientation\n int orientation = getResources().getConfiguration().orientation;\n\n // display the app's menu only in portrait orientation\n if (orientation == Configuration.ORIENTATION_PORTRAIT) {\n // inflate the menu\n getMenuInflater().inflate(R.menu.menu_main, menu);\n this.menu = menu;\n // Get the SearchView and set the searchable configuration\n SearchManager searchManager = (SearchManager) getSystemService(Context.SEARCH_SERVICE);\n SearchView searchView = (SearchView) menu.findItem(R.id.menu_search).getActionView();\n\n // Assumes current activity is the searchable activity\n searchView.setSearchableInfo(searchManager.getSearchableInfo(getComponentName()));\n searchView.setIconifiedByDefault(false); // Do not iconify the widget; expand it by default\n searchView.setOnQueryTextListener(queryTextListener);\n return true;\n }\n else\n return false;\n }",
"public void initialiseSearchView() {\n text.addTextChangedListener(new TextWatcher() {\n @Override\n public void beforeTextChanged(CharSequence s, int start, int count, int after) {\n // do nothing\n }\n\n @Override\n public void onTextChanged(CharSequence s, int start, int before, int count) {\n if (count > 0) {\n clearButton.setVisibility(View.VISIBLE);\n } else {\n clearButton.setVisibility(View.GONE);\n }\n searchHandler.apply(s.toString());\n }\n\n @Override\n public void afterTextChanged(Editable s) {\n // do nothing\n }\n });\n text.setOnEditorActionListener(new TextView.OnEditorActionListener() {\n @Override\n public boolean onEditorAction(TextView v, int actionId, KeyEvent event) {\n if (actionId == EditorInfo.IME_ACTION_SEARCH) {\n //Still perform a search operation, then hide keyboard & search bar\n searchHandler.apply(v.getText().toString());\n hideSearchBar();\n return true;\n }\n return false;\n }\n });\n\n clearButton.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View v) {\n text.setText(\"\");\n }\n });\n\n closeButton.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View v) {\n hideSearchBar();\n }\n });\n\n clearButton.setVisibility(View.GONE);\n hideSearchBar();\n }",
"@Override public void onCreateOptionsMenu(Menu menu, MenuInflater inflater) {\n MenuItem item = menu.add(\"Search\");\n item.setIcon(R.drawable.searchicon);\n item.setShowAsAction(MenuItem.SHOW_AS_ACTION_IF_ROOM);\n SearchView sv = new SearchView(getActivity());\n sv.setOnQueryTextListener(this);\n item.setActionView(sv);\n }",
"@Override\n public boolean onPrepareOptionsMenu(Menu menu) {\n // If the nav drawer is open, hide action items related to the content view\n boolean drawerOpen = mDrawerLayout.isDrawerOpen(mDrawerList);\n menu.findItem(R.id.action_websearch).setVisible(!drawerOpen);\n return super.onPrepareOptionsMenu(menu);\n }",
"@Override\n public boolean onPrepareOptionsMenu(Menu menu) {\n // If the nav drawer is open, hide action items related to the content view\n boolean drawerOpen = mDrawerLayout.isDrawerOpen(mDrawerList);\n menu.findItem(R.id.action_websearch).setVisible(!drawerOpen);\n return super.onPrepareOptionsMenu(menu);\n }",
"@Override\n public boolean onPrepareOptionsMenu(Menu menu) {\n // If the nav drawer is open, hide action items related to the content view\n boolean drawerOpen = mDrawerLayout.isDrawerOpen(mDrawerList);\n menu.findItem(R.id.action_websearch).setVisible(!drawerOpen);\n return super.onPrepareOptionsMenu(menu);\n }",
"@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n\n\n MenuInflater inflater = getMenuInflater();\n inflater.inflate(R.menu.menu_dashboard, menu);\n\n\n // Associate searchable configuration with the SearchView\n SearchManager searchManager =\n (SearchManager) getSystemService(Context.SEARCH_SERVICE);\n\n SearchView searchView =\n (SearchView) menu.findItem(R.id.search).getActionView();\n\n\n\n /*\n searchView.setSearchableInfo(\n searchManager.getSearchableInfo(getComponentName()));\n */\n\n\n return true;\n\n }",
"void hideSearch() {\r\n AccelerateDecelerateInterpolator interpolator = new AccelerateDecelerateInterpolator();\r\n\r\n // Setup the animation for mSearchView\r\n mSearchView.setPivotY(mSearchView.getHeight());\r\n ObjectAnimator searchAnim = ObjectAnimator.ofFloat(mSearchView, \"scaleY\", 1.0f, 0.0f);\r\n searchAnim.setDuration(100);\r\n searchAnim.addListener(new AnimatorListenerAdapter() {\r\n @Override\r\n public void onAnimationEnd(Animator animation) {\r\n // Set the visibility of the SearchView\r\n mSearchView.setVisibility(View.INVISIBLE);\r\n }\r\n });\r\n\r\n // Setup the animation for mTitle\r\n mTitle.setPivotY(mTitle.getHeight());\r\n ObjectAnimator titleAnim = ObjectAnimator.ofFloat(mTitle, \"scaleY\", 0.1f, 1.0f);\r\n searchAnim.setDuration(100);\r\n\r\n AnimatorSet animSet = new AnimatorSet();\r\n animSet.playSequentially(searchAnim, titleAnim);\r\n animSet.setInterpolator(interpolator);\r\n animSet.addListener(new AnimatorListenerAdapter() {\r\n @Override\r\n public void onAnimationStart(Animator animation) {\r\n // Hide the app title\r\n mTitle.setVisibility(View.VISIBLE);\r\n }\r\n });\r\n animSet.start();\r\n\r\n // Hide the SearchView and show the search icon\r\n mSearchIcon.setImageDrawable(ContextCompat.getDrawable(this, R.drawable.ic_menu_search));\r\n\r\n // Hide the Card allowing the user to search additional recipes online\r\n mSearchMore.setVisibility(View.GONE);\r\n\r\n if (mSearchListener != null) {\r\n // Reset the search filter\r\n mSearchView.setText(\"\");\r\n mSearchListener.onSearch(\"\");\r\n }\r\n\r\n // Hide the soft keyboard\r\n InputMethodManager imm = (InputMethodManager)getSystemService(Context.INPUT_METHOD_SERVICE);\r\n imm.hideSoftInputFromWindow(this.getCurrentFocus().getWindowToken(), 0);\r\n }",
"@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n // Inflate the menu; this adds items to the action bar if it is present.\n getMenuInflater().inflate(R.menu.main, menu);\n searchTv = menu.findItem(R.id.search_tv);\n searchMovie = menu.findItem(R.id.search_movie);\n\n MenuItem searchItem = menu.findItem(R.id.action_search);\n SearchView searchView = (SearchView) searchItem.getActionView();\n\n searchView.setOnQueryTextListener(new SearchView.OnQueryTextListener() {\n @Override\n public boolean onQueryTextSubmit(String query) {\n\n SearchResultsFragment fragment = new SearchResultsFragment();\n Bundle bundle = new Bundle();\n bundle.putString(\"searchQuery\",query);\n bundle.putBoolean(\"searchTv\",searchTv.isChecked());\n bundle.putBoolean(\"searchMovie\",searchMovie.isChecked());\n fragment.setArguments(bundle);\n FragmentManager manager = getSupportFragmentManager();\n manager.popBackStack(\"search\",FragmentManager.POP_BACK_STACK_INCLUSIVE);\n manager.beginTransaction().replace(R.id.main_container, fragment, fragment.getTag()).addToBackStack(\"search\").commit();\n\n\n return false;\n }\n\n @Override\n public boolean onQueryTextChange(String newText) {\n return false;\n }\n });\n\n\n return true;\n }",
"@Override\n\tpublic boolean isSearching() {\n\t\treturn false;\n\t}",
"@Override\n\tpublic boolean isSearching() {\n\t\treturn false;\n\t}",
"@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tgetMenuInflater().inflate(R.menu.main, menu);\n\t\tif (menu != null) {\n\t\t\tmenu.findItem(R.id.action_search).setVisible(false);\n\t\t}\n\t\treturn true;\n\t}",
"public void search(SearchView searchView, final LAdapter searchAdapter, final TextView textView){\n searchView.setOnQueryTextListener(new SearchView.OnQueryTextListener() {\n @Override\n public boolean onQueryTextSubmit(String query) {\n return false;\n }\n\n @Override\n public boolean onQueryTextChange(String newText) {\n searchAdapter.getFilter().filter(newText);\n return false;\n }\n });\n\n // Collapse header when search bar expands\n searchView.setOnSearchClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View v) {\n TextViewCompat.setTextAppearance(textView, R.style.disappear);\n }\n });\n\n // Restore header when search bar closes\n searchView.setOnCloseListener(new SearchView.OnCloseListener() {\n @Override\n public boolean onClose() {\n TextViewCompat.setTextAppearance(textView, R.style.appear);\n return false;\n }\n });\n }",
"@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n MenuInflater inflater = getMenuInflater();\n inflater.inflate(R.menu.search_menu1,menu);\n MenuItem searchItem = menu.findItem(R.id.search);\n\n //Associate searchable configuration with the SearchView\n SearchManager searchManager = (SearchManager)getSystemService(Context.SEARCH_SERVICE);\n SearchView searchView = null;\n\n if (searchItem != null) {\n searchView = (SearchView) searchItem.getActionView();\n }\n if (searchView != null) {\n ComponentName cn = new ComponentName(this, SearchResultActivity.class);\n searchView.setSearchableInfo(searchManager.getSearchableInfo(cn));\n //searchView.setSearchableInfo(searchManager.getSearchableInfo(getComponentName()));\n }\n return super.onCreateOptionsMenu(menu);\n /*\n SearchView searchView = (SearchView)menu.findItem(R.id.search).getActionView();\n searchView.setSearchableInfo(searchManager.getSearchableInfo(getComponentName()));\n return true;\n */\n }",
"@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tMenuInflater inflater = getMenuInflater();\n\t\tinflater.inflate(R.menu.menu_main, menu);\n\n\t\t// Inflate the menu; this adds items to the action bar if it is present.\n\t\tSearchManager searchManager = (SearchManager) getSystemService(Context.SEARCH_SERVICE);\n\t\tSearchView searchView = (SearchView) menu.findItem(R.id.action_search).getActionView();\n\t\tEditText searchEditText = searchView.findViewById(android.support.v7.appcompat.R.id.search_src_text);\n\t\tsearchView.setSearchableInfo(searchManager.getSearchableInfo(getComponentName()));\n\t\tsearchEditText.setHint(getString(R.string.search));\n\t\tsearchEditText.setTextColor(getResources().getColor(R.color.black));\n\t\tsearchEditText.setHintTextColor(getResources().getColor(R.color.grey));\n\n\t\tsearchView.setOnQueryTextListener(new SearchView.OnQueryTextListener() {\n\t\t\t@Override\n\t\t\tpublic boolean onQueryTextSubmit(String query) {\n\t\t\t\tadapter.getFilter().filter(query);\n\t\t\t\treturn false;\n\t\t\t}\n\n\t\t\t@Override\n\t\t\tpublic boolean onQueryTextChange(String newText) {\n\t\t\t\tadapter.getFilter().filter(newText);\n\t\t\t\treturn true;\n\t\t\t}\n\t\t});\n\n\t\tif (searchView.isIconified()) {\n\n\t\t}\n\n\t\treturn true;\n\t}",
"boolean hasPaidOrganicSearchTermView();",
"private void initSearchView() {\n SearchManager searchManager = (SearchManager) getActivity().getSystemService(Context.SEARCH_SERVICE);\n\n searchView.setSearchableInfo(searchManager.getSearchableInfo(getActivity().getComponentName()));\n searchView.setMaxWidth(Integer.MAX_VALUE);\n\n //listening to search query text change\n searchView.setOnQueryTextListener(new SearchView.OnQueryTextListener() {\n @Override\n public boolean onQueryTextSubmit(String query) {\n // filter recycler view when query submitted\n machineAdapter.getFilter().filter(query);\n return false;\n }\n\n @Override\n public boolean onQueryTextChange(String newText) {\n machineAdapter.getFilter().filter(newText);\n return false;\n }\n });\n\n }",
"public void onCreateOptionsMenu(Menu menu, MenuInflater inflater) {\n super.onCreateOptionsMenu(menu, inflater);\n //inflater.inflate(R.menu.menu_buscador,menu);\n MenuItem buscador = menu.findItem(R.id.buscador2);\n MenuItem carrito = menu.findItem(R.id.carrito);\n buscador.setVisible(true);\n carrito.setVisible(false);\n SearchView searchView = (SearchView) MenuItemCompat.getActionView(buscador);\n searchView.setOnQueryTextListener(this);\n MenuItemCompat.setOnActionExpandListener(buscador, new MenuItemCompat.OnActionExpandListener() {\n @Override\n public boolean onMenuItemActionExpand(MenuItem item) {\n return true;\n }\n\n @Override\n public boolean onMenuItemActionCollapse(MenuItem item) {\n adapter.setFilter(lista);\n return true;\n }\n });\n\n }",
"@Override\r\n public boolean onCreateOptionsMenu(Menu icon){\n\r\n MenuInflater expand = getMenuInflater();\r\n\r\n expand.inflate(R.menu.top_menu, icon); //Referencing to the specific menu\r\n\r\n MenuItem search = icon.findItem(R.id.search_bar);\r\n\r\n SearchView searchView = (SearchView) search.getActionView(); //Displays the search view button\r\n\r\n searchView.setOnQueryTextListener(new SearchView.OnQueryTextListener() {\r\n\r\n\r\n @Override\r\n public boolean onQueryTextSubmit(String s) {//Begins filtering here\r\n\r\n adapterDevices.getFilter().filter(s);\r\n\r\n return false;\r\n }\r\n //Sends typed string in search bar to trigger search\r\n\r\n\r\n //Method is triggered if there is text change\r\n @Override\r\n public boolean onQueryTextChange(String s) {\r\n\r\n if(s.equals(\"\")){ //When search bar is empty again the page is reloaded\r\n\r\n Intent refresh = new Intent(getApplicationContext(), MyDevicesActivity.class);\r\n\r\n startActivity(refresh);\r\n\r\n finish();\r\n\r\n }\r\n return false;\r\n }\r\n });\r\n\r\n\r\n return true;\r\n\r\n\r\n }",
"@Override public void onCreateOptionsMenu(Menu menu, MenuInflater inflater) {\n inflater.inflate(R.menu.menu_mainfragment, menu);\n final MenuItem searchButton = menu.findItem(R.id.search);\n searchButton.setShowAsAction(MenuItem.SHOW_AS_ACTION_ALWAYS);\n\n // bind processing of searchview results to this fragment\n // we get the theme for this activity so that text is rendered properly\n Context themectx = ((AppCompatActivity) getActivity()).getSupportActionBar().getThemedContext();\n final SearchView sv = new SearchView(themectx);\n sv.setOnQueryTextListener(new SearchView.OnQueryTextListener() {\n @Override\n public boolean onQueryTextSubmit(String query) {\n Log.d(LOG_TAG_APP, \"submitting query: \" + query);\n search(query);\n sv.onActionViewCollapsed(); // collapses searchbar and hides keyboard\n return true;\n }\n\n @Override\n public boolean onQueryTextChange(String newText) {\n Log.d(LOG_TAG_APP, \"listening for... \" + newText);\n return true;\n }\n });\n sv.setQueryHint(\"Search for an artist...\");\n sv.setOnCloseListener(null);\n sv.setIconifiedByDefault(true);\n\n searchButton.setActionView(sv);\n }",
"@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n MenuInflater inflater = getMenuInflater();\n inflater.inflate(R.menu.menu_search, menu);\n MenuItem searchItem = menu.findItem(R.id.action_search);\n final SearchView searchView = (SearchView) MenuItemCompat.getActionView(searchItem);\n searchView.setOnQueryTextListener(new SearchView.OnQueryTextListener() {\n // When a search is made, calls fetchArticles to make new request\n @Override\n public boolean onQueryTextSubmit(String query) {\n topStories = false;\n filter.setQuery(query);\n gvResults.clearOnScrollListeners();\n setUpRecycler();\n findViewById(R.id.relativeLayout).setVisibility(View.GONE);\n findViewById(R.id.tvHeading).setVisibility(View.GONE);\n fetchArticles(0,true);\n searchView.clearFocus();\n return true;\n }\n\n @Override\n public boolean onQueryTextChange(String newText) {\n return false;\n }\n });\n\n return super.onCreateOptionsMenu(menu);\n }",
"@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n getMenuInflater().inflate(R.menu.menu_search, menu);\n\n // hookup icon_search view in action bar\n MenuItem searchItem = menu.findItem(R.id.action_search);\n searchView = (SearchView) MenuItemCompat.getActionView(searchItem);\n searchView.setOnQueryTextListener(new SearchView.OnQueryTextListener() {\n @Override\n public boolean onQueryTextSubmit(String query) {\n // perform query here\n articleSearch(query, FIRST_PAGE);\n\n // workaround to avoid issues with some emulators and keyboard devices firing twice if a keyboard enter is used\n // see https://code.google.com/p/android/issues/detail?id=24599\n searchView.clearFocus();\n return true;\n }\n\n @Override\n public boolean onQueryTextChange(String newText) {\n return false;\n }\n });\n return super.onCreateOptionsMenu(menu);\n\n }",
"@TargetApi(Build.VERSION_CODES.HONEYCOMB)\n\t@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tgetMenuInflater().inflate(R.menu.main, menu);\n\t\t\n\t\tif (mQuery != null) {\n\t\t\tMenuItem settingsMenuItem = menu.findItem(R.id.settings);\n\t\t\tsettingsMenuItem.setEnabled(false);\n\t\t\tsettingsMenuItem.setVisible(false);\n\t\t}\n\t\t\n\t\tmSearchMenuItem = menu.findItem(R.id.search);\n\t\t\n\t\tif (Utils.hasHoneycomb()) {\n\t\t\tSearchManager searchManager = (SearchManager) getSystemService(Context.SEARCH_SERVICE);\n\t\t\tSearchView searchView = (SearchView) mSearchMenuItem.getActionView();\n\t\t\tsearchView.setSearchableInfo(searchManager.getSearchableInfo(getComponentName()));\n\t\t\tsearchView.setOnQueryTextListener(new OnQueryTextListener() {\n\t\t\t\t@Override\n\t\t public boolean onQueryTextSubmit(String query) {\n\t\t //Do nothing, results for the string supplied are already shown.\n\t\t //Just collapse search widget\n\t\t \tcloseSearch();\n\t\t return false;\n\t\t }\n\t\t @Override\n\t\t public boolean onQueryTextChange(String newText) {\n\t\t return false;\n\t\t }\n\t\t });\n\t\t\tsearchView.setOnSuggestionListener(new OnSuggestionListener() {\n\t\t\t\t@Override\n\t\t\t\tpublic boolean onSuggestionClick(int position) {\n\t\t\t\t\tcloseSearch();\n\t\t\t\t\treturn false;\n\t\t\t\t}\n\t\t\t\t@Override\n\t\t\t\tpublic boolean onSuggestionSelect(int position) {\n\t\t\t\t\treturn false;\n\t\t\t\t}\n\t\t\t});\n\t\t}\n\t\t\n\t\treturn true;\n\t}",
"@Override\n public boolean onPrepareOptionsMenu(Menu menu) {\n // If the nav drawer is open, hide action items related to the content view\n /*boolean drawerOpen = myDrawerLayout.isDrawerOpen(myDrawerList);\n menu.findItem(R.string.action_websearch).setVisible(!drawerOpen);*/\n return super.onPrepareOptionsMenu(menu);\n }",
"@Override\n protected boolean isActionBarBlurred() {\n return true;\n }",
"protected boolean shouldUseActionsInsteadOfButtonBar() {\n DisplayMetrics metrics = new DisplayMetrics();\n getWindowManager().getDefaultDisplay().getMetrics(metrics);\n\n return convertPxToDip(metrics.heightPixels) < 350;\n }",
"@Override\n\tpublic boolean isShowing() {\n\t\treturn false;\n\t}",
"boolean isNilSearchWindowStart();",
"@Override\r\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tgetMenuInflater().inflate(R.menu.main_alumno, menu);\r\n\t\t\r\n\t\tMenuItem searchItem = menu.findItem(R.id.buscarItem);\r\n\t SearchView searchView = (SearchView) MenuItemCompat.getActionView(searchItem);\r\n\t // Configure the search info and add any event listeners\r\n\t //searchView.setQueryHint(\"Buscar curso...\");\r\n\t\treturn true;\r\n\t}",
"@Override\n public boolean isShown() {\n return super.isShown();\n }",
"@Override\r\n public boolean onCreateOptionsMenu(Menu menu) {\n getMenuInflater().inflate(R.menu.main, menu);\r\n SearchManager searchManager = (SearchManager) getSystemService(Context.SEARCH_SERVICE);\r\n SearchView searchView = (SearchView) menu.findItem(R.id.action_search).getActionView();\r\n\r\n searchView.setSearchableInfo(searchManager.getSearchableInfo(getComponentName()));\r\n searchView.setIconifiedByDefault(false);\r\n searchView.setOnQueryTextListener(new SearchView.OnQueryTextListener() {\r\n @Override\r\n public boolean onQueryTextSubmit(String query) {\r\n return false;\r\n }\r\n\r\n @Override\r\n public boolean onQueryTextChange(String newText) {\r\n setSearchFragement();\r\n\r\n List<String> searchedList = search(newText);\r\n adapter = new ArrayAdapter<String>(getApplicationContext(), android.R.layout.simple_list_item_1, searchedList);\r\n final ListView listview = (ListView) findViewById(R.id.listView1);\r\n adapter.getFilter().filter(newText);\r\n listview.setAdapter(adapter);\r\n return false;\r\n }\r\n });\r\n return true;\r\n }",
"@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n getMenuInflater().inflate(R.menu.menu_list_clientes, menu);\n\n //para incorporar el search\n // Associate searchable configuration with the SearchView\n /* SearchManager searchManager = (SearchManager) getSystemService(Context.SEARCH_SERVICE);\n SearchView searchView = (SearchView) menu.findItem(R.id.search).getActionView();// .getActionView();\n searchView.setSearchableInfo(searchManager.getSearchableInfo(getComponentName()));\n searchView.setIconifiedByDefault(false); // Do not iconify the widget; expand it by default\n*/\n\n\n return true;\n }",
"@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n getMenuInflater().inflate(R.menu.main_menu, menu);\n\n // final SearchView searchView = (SearchView) MenuItemCompat.getActionView(menu.findItem(R.id.action_search));\n // SearchManager searchManager = (SearchManager) getSystemService(SEARCH_SERVICE);\n // searchView.setSearchableInfo(searchManager.getSearchableInfo(getComponentName()));\n\n /* final MenuItem searchItem = menu.findItem(R.id.action_search);\n final SearchView searchView = MenuItemCompat.getActionView(searchItem);\n searchView.setOnQueryTextListener(this);\n*/\n return true;\n }",
"@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n getMenuInflater().inflate(R.menu.toolbar, menu);\n MenuItem menuItem = menu.findItem(R.id.search);\n MenuItemCompat.setOnActionExpandListener(menuItem, new MenuItemCompat.OnActionExpandListener() {\n @Override\n public boolean onMenuItemActionExpand(MenuItem menuItem) {\n return true;\n }\n\n @Override\n public boolean onMenuItemActionCollapse(MenuItem menuItem) {\n LifeLabActivity.this.searchLab(\"\");\n return true;\n }\n });\n menuItem.setVisible(true);\n\n SearchManager searchManager =\n (SearchManager) getSystemService(Context.SEARCH_SERVICE);\n final SearchView searchView =\n (SearchView) menu.findItem(R.id.search).getActionView();\n\n searchView.setQueryHint(getResources().getString(R.string.search_hint));\n ((ImageView) searchView.findViewById(android.support.v7.appcompat.R.id.search_button)).setImageResource(R.drawable.search_b);\n searchView.setSearchableInfo(\n searchManager.getSearchableInfo(getComponentName()));\n searchView.setOnQueryTextListener(new SearchView.OnQueryTextListener() {\n\n @Override\n public boolean onQueryTextSubmit(String query) {\n// LifeLabActivity.this.searchLab(query);\n searchData(query);\n return false;\n }\n\n @Override\n public boolean onQueryTextChange(String newText) {\n return false;\n }\n });\n return true;\n }",
"@java.lang.Override\n public boolean hasSearchRequest() {\n return searchRequest_ != null;\n }",
"@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n getMenuInflater().inflate(R.menu.log_in, menu);\n getMenuInflater().inflate(R.menu.searchfile, menu);\n final MenuItem myActionMenuItem = menu.findItem(id.search);\n searchView = (SearchView) myActionMenuItem.getActionView();\n changeSearchViewTextColor(searchView);\n ((EditText) searchView.findViewById(android.support.v7.appcompat.R.id.search_src_text)).setHintTextColor(getColor(color.white));\n searchView.setOnQueryTextListener(new SearchView.OnQueryTextListener() {\n @Override\n public boolean onQueryTextSubmit(String query) {\n if(!searchView.isIconified()){\n searchView.setIconified(true);\n }\n myActionMenuItem.collapseActionView();\n return false;\n }\n\n @Override\n public boolean onQueryTextChange(String newText) {\n final List<ClinicItem> filtermodelist = filter(clinicList, newText);\n adapter.setfilter(filtermodelist);\n return true;\n }\n });\n return true;\n }",
"@Override\n public void onCreateOptionsMenu(Menu menu, MenuInflater menuInflater) {\n super.onCreateOptionsMenu(menu, menuInflater);\n menu.clear();\n menuInflater.inflate(R.menu.search_menu, menu);\n MenuItem searchItem = menu.findItem(R.id.actionSearch);\n SearchView searchView = (SearchView) searchItem.getActionView();\n // below line is to call set on query text listener method.\n searchView.setOnQueryTextListener(new SearchView.OnQueryTextListener() {\n @Override\n public boolean onQueryTextSubmit(String query) {\n return false;\n }\n\n @Override\n public boolean onQueryTextChange(String newText) {\n // inside on query text change method we are\n // calling a method to filter our recycler view.\n filter(newText);\n return true;\n }\n });\n }",
"boolean hasActionBar();",
"private void showSearch() {\n\t\tonSearchRequested();\n\t}",
"public void collapse() {\n searchView.setQuery(\"\", true);\n if (!searchView.isIconified()) {\n searchView.setIconified(true);\n }\n }",
"@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n getMenuInflater().inflate(R.menu.menu_main, menu);\n\n SearchManager searchManager = (SearchManager) getSystemService(Context.SEARCH_SERVICE);\n searchView = (SearchView) menu.findItem(R.id.action_search).getActionView();\n searchMenuItem = menu.findItem(R.id.action_search);\n searchView.setSearchableInfo(searchManager.getSearchableInfo(getComponentName()));\n searchView.setIconifiedByDefault(false);\n\n SearchView.OnQueryTextListener textChangeListener = new SearchView.OnQueryTextListener() {\n @Override\n public boolean onQueryTextChange(String newText) {\n // this is your adapter that will be filtered\n //dataAdapter.getFilter().filter(newText);\n Log.i(TAG, \"on text chnge text: \" + newText);\n\n\n rvAdapter.getFilter().filter(newText);\n rv.scrollToPosition(0);\n\n return true;\n }\n\n @Override\n public boolean onQueryTextSubmit(String query) {\n // this is your adapter that will be filtered\n //dataAdapter.getFilter().filter(query);\n Log.i(TAG, \"on query submit: \" + query);\n return true;\n }\n };\n searchView.setOnQueryTextListener(textChangeListener);\n\n\n return true;\n }",
"@Override\n public boolean onPrepareOptionsMenu(Menu menu) {\n // If the nav drawer is open, hide action items related to the content view\n //boolean drawerOpen = mDrawerLayout.isDrawerOpen(mDrawerList);\n //menu.findItem(R.id.action_websearch).setVisible(!drawerOpen);\n return super.onPrepareOptionsMenu(menu);\n }",
"@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n MenuInflater menuInflater = getMenuInflater();\n menuInflater.inflate(R.menu.action_bar_search, menu);\n\n // Get the search menu.\n// MenuItem searchMenu = menu.findItem(R.id.app_bar_menu_search);\n\n // Get SearchView object.\n// SearchView searchView = (SearchView) MenuItemCompat.getActionView(searchMenu);\n\n // Get SearchView autocomplete object.\n// final SearchView.SearchAutoComplete searchAutoComplete = (SearchView.SearchAutoComplete) searchView.findViewById(android.support.v7.appcompat.R.id.search_src_text);\n// searchAutoComplete.setBackgroundColor(Color.argb(01,79,80,81));\n// searchAutoComplete.setTextColor(Color.WHITE);\n// searchAutoComplete.setDropDownBackgroundResource(android.R.color.white);\n// String dataArr[] = {\"Apple\", \"Amazon\", \"Amd\", \"Microsoft\", \"Microwave\", \"MicroNews\", \"Intel\", \"Intelligence\"};\n// ArrayAdapter<String> newsAdapter = new ArrayAdapter<String>(this, android.R.layout.simple_dropdown_item_1line, dataArr);\n// searchAutoComplete.setAdapter(newsAdapter);\n// searchAutoComplete.setOnItemClickListener(new AdapterView.OnItemClickListener() {\n// @Override\n// public void onItemClick(AdapterView<?> adapterView, View view, int itemIndex, long id) {\n// String queryString = (String) adapterView.getItemAtPosition(itemIndex);\n// searchAutoComplete.setText(\"\" + queryString);\n// Toast.makeText(PostActivity.this, \"you clicked \" + queryString, Toast.LENGTH_LONG).show();\n// }\n// });\n// searchView.setOnQueryTextListener(new SearchView.OnQueryTextListener() {\n// @Override\n// public boolean onQueryTextSubmit(String query) {\n// AlertDialog alertDialog = new AlertDialog.Builder(PostActivity.this).create();\n// alertDialog.setMessage(\"Search keyword is \" + query);\n// alertDialog.show();\n// return false;\n// }\n//\n// @Override\n// public boolean onQueryTextChange(String newText) {\n// return false;\n// }\n// });\n return super.onCreateOptionsMenu(menu);\n }",
"private void showSearchView(String viewName)\n {\n currentSearchView = viewName;\n CardLayout cLayout = (CardLayout) searchPaneWrapper.getLayout();\n cLayout.show(searchPaneWrapper, viewName);\n }",
"@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n getMenuInflater().inflate(R. menu.filter_menu, menu);\n MenuItem searchItem = menu.findItem(R. id.action_search);\n SearchView searchView = (SearchView)\n searchItem.getActionView();\n searchView.setIconifiedByDefault(true);\n searchView.setImeOptions(EditorInfo.IME_ACTION_DONE);\n // SearchView searchView = (SearchView) menu.findItem(R.id.action_search).getActionView();\n searchView.setOnQueryTextListener(new SearchView.OnQueryTextListener() {\n @Override\n public boolean onQueryTextSubmit(String query) {\n\n adapteer.getFilter().filter(query);\n return false;\n }\n\n @Override\n public boolean onQueryTextChange(String newText) {\n // adapter.getFilter().filter(newText);\n // filter recycler view when query submitted\n adapteer.getFilter().filter(newText);\n return false;\n }\n\n\n });\n return true;\n }",
"@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n getMenuInflater().inflate(R.menu.menu_add_friends, menu);\n\n // Associate searchable configuration with the SearchView\n SearchManager searchManager = (SearchManager) getSystemService(Context.SEARCH_SERVICE);\n SearchView searchView = (SearchView) menu.findItem(R.id.action_search).getActionView();\n searchView.setSearchableInfo(searchManager.getSearchableInfo(getComponentName()));\n return true;\n }",
"public boolean hasSearchRequest() {\n return searchRequestBuilder_ != null || searchRequest_ != null;\n }",
"@Override\n public boolean isSearchActive() {\n return dateTime != null && !dateTime.isDisposed() && dateTime.isEnabled();\n }",
"@Override\n public boolean onPrepareOptionsMenu(Menu menu) {\n // If the nav drawer is open, hide action items related to the content view\n// boolean drawerOpen = mDrawerLayout.isDrawerOpen();\n //menu.findItem(R.id.action_websearch).setVisible(!drawerOpen);\n return super.onPrepareOptionsMenu(menu);\n }",
"@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n if (item.getItemId() == R.id.action_searchBar) {\n searchView.showSearch(true);\n searchView.setVisibility(View.VISIBLE);\n }\n //noinspection SimplifiableIfStatement\n// if (id == R.id.action_settings) {\n// startActivity(new Intent(Screen1.this,ReaderActivity.class));\n// }\n\n return super.onOptionsItemSelected(item);\n }",
"@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n getMenuInflater().inflate(R.menu.menu_main, menu);\n\n\n final MenuItem searchItem = menu.findItem(R.id.app_bar_search);\n searchView = (SearchView) MenuItemCompat.getActionView(searchItem);\n //permite modificar el hint que el EditText muestra por defecto\n searchView.setQueryHint(\"Busqueda cliente\");\n\n searchView.setOnCloseListener(new SearchView.OnCloseListener() {\n @Override\n public boolean onClose() {\n if(realiadabusqueda==true){\n listaCuentas=listaaux;\n rellenarListview(listaCuentas);\n\n realiadabusqueda=false;\n }\n\n return false;\n }\n });\n\n searchView.setOnQueryTextListener(new SearchView.OnQueryTextListener() {\n @Override\n public boolean onQueryTextSubmit(String query) {\n listaBusqueda.clear();\n for (Cliente cliente : listaCuentas) {\n String nombreclienteaux = cliente.nombreCliente;\n if (nombreclienteaux.contains(query)) {\n listaBusqueda.add(cliente);\n\n }\n\n }\n\n Toast.makeText(MainActivity.this, \"existen \" + listaBusqueda.size() + \" cuentas para este cliente\", Toast.LENGTH_SHORT).show();\n\n\n\n searchView.setQuery(\"\",false);\n listaaux=listaCuentas;\n listaCuentas=listaBusqueda;\n rellenarListview(listaCuentas);\n\n\n // marco el booleano\n realiadabusqueda=true;\n return true;\n\n }\n @Override\n public boolean onQueryTextChange(String newText) {\n\n\n return true;\n }\n\n\n });\n\n\n return true;\n }",
"public final boolean isFocusSearchDisabled() {\n return mLayoutManager.isFocusSearchDisabled();\n }",
"@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n getMenuInflater().inflate(R.menu.menu_main, menu);\n MenuItem menuItem = menu.findItem(R.id.action_search);\n\n searchView = (SearchView) MenuItemCompat.getActionView(menuItem);\n //since we start highlighted at item 0\n searchView.setQueryHint(\"Search Devices...\");\n searchView.setOnQueryTextListener(new SearchView.OnQueryTextListener() {\n @Override\n public boolean onQueryTextSubmit(String query) {\n return false;\n }\n\n @Override\n public boolean onQueryTextChange(String newText) {\n //search every fragment for the text entered\n // TODO: find a more efficient way to search.\n // maybe search only active tabs, and make sure to filter text upon switching tabs.\n // maybe just use multiple threads\n\n devicesFragment.getDevicesAdapter().getFilter().filter(newText);\n actionsFragment.getActionsAdapter().getFilter().filter(newText);\n return true;\n }\n });\n return true;\n }",
"boolean isInview();",
"@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n getMenuInflater().inflate(R.menu.main2, menu);\n\n SearchManager searchManager =\n (SearchManager) getSystemService(Context.SEARCH_SERVICE);\n final SearchView searchView =\n (SearchView) menu.findItem(R.id.app_bar_search).getActionView();\n searchView.setSearchableInfo(\n searchManager.getSearchableInfo(getComponentName()));\n searchView.setOnQueryTextListener(new SearchView.OnQueryTextListener() {\n @Override\n public boolean onQueryTextSubmit(String query) {\n //Toast.makeText(Main2Activity.this,query,Toast.LENGTH_LONG).show();\n //adapter.filter(query);\n return false;\n }\n\n @Override\n public boolean onQueryTextChange(String newText) {\n adapter.filter(newText);\n return false;\n }\n\n });\n\n\n\n return true;\n }",
"@Override\r\n public boolean onCreateOptionsMenu(Menu menu) {\r\n MenuInflater inflater = getMenuInflater();\r\n inflater.inflate(R.menu.menu_search, menu);\r\n mSearchView = (SearchView) menu.findItem(R.id.search_view).getActionView();\r\n setupSearchView();\r\n return true;\r\n }",
"boolean isSetSearchWindowStart();",
"private void setupSearchView() {\n SearchView search = binding.searchView;\n\n search.setQueryHint(\"Add companies...\");\n search.setIconifiedByDefault(false);\n search.setIconified(false);\n search.clearFocus();\n\n searchAutoComplete = search.findViewById(android.support.v7.appcompat.R.id.search_src_text);\n\n // Styling the search bar\n searchAutoComplete.setHintTextColor(Color.GRAY);\n searchAutoComplete.setTextColor(Color.GRAY);\n\n searchAutoComplete.setOnItemClickListener((adapterView, view, itemIndex, id) -> {\n SearchEntry entry = (SearchEntry) adapterView.getItemAtPosition(itemIndex);\n String ticker = entry.getTicker();\n ArrayList<String> tickers = new ArrayList<>();\n searchAutoComplete.setText(\"\");\n tickers.add(ticker);\n boolean duplicate = false;\n if (comparisonCompaniesAdapter.getDataSet() != null) {\n duplicate = checkDuplicate(comparisonCompaniesAdapter.getDataSet(), ticker);\n }\n if (!duplicate) {\n List<Company> companies = viewModel.getComparisonCompanies().getValue();\n int size = (companies == null) ? 0 : companies.size();\n\n if (size <= 10) {\n viewModel.addToComparisonCompanies(tickers);\n } else {\n Toast.makeText(this, \"Reached comparison limit!\", Toast.LENGTH_LONG).show();\n }\n }\n });\n\n search.setOnQueryTextListener(new SearchView.OnQueryTextListener() {\n @Override\n public boolean onQueryTextSubmit(String query) {\n return false;\n }\n\n @Override\n public boolean onQueryTextChange(String newText) {\n viewModel.loadSearchResults(newText);\n return false;\n }\n });\n }",
"@Override\n \tpublic void setSearchVisible(boolean searchVisible) {\n \t\tif (DisplayUtils.isInTestWebsite(cookies))\n \t\t\tsearchBox.setVisible(searchVisible);\n \t}",
"public void searchBarClick() {\n String searchText = searchView.getText().toString();\n if(searchText.equals(\"Age\")) {\n age.setVisibility(View.VISIBLE);\n sex.setVisibility(View.INVISIBLE);\n cp.setVisibility(View.INVISIBLE);\n trestbps.setVisibility(View.INVISIBLE);\n chol.setVisibility(View.INVISIBLE);\n fbs.setVisibility(View.INVISIBLE);\n restecg.setVisibility(View.INVISIBLE);\n thalach.setVisibility(View.INVISIBLE);\n exang.setVisibility(View.INVISIBLE);\n oldpeak.setVisibility(View.INVISIBLE);\n slope.setVisibility(View.INVISIBLE);\n ca.setVisibility(View.INVISIBLE);\n thal.setVisibility(View.INVISIBLE);\n imageSection.setVisibility(View.INVISIBLE);\n\n pregnancies.setVisibility(View.INVISIBLE);\n glucose.setVisibility(View.INVISIBLE);\n bloodPressure.setVisibility(View.INVISIBLE);\n skinThick.setVisibility(View.INVISIBLE);\n bmi.setVisibility(View.INVISIBLE);\n insulin.setVisibility(View.INVISIBLE);\n diabetes.setVisibility(View.INVISIBLE);\n } else if(searchText.equals(\"Sex\")) {\n age.setVisibility(View.INVISIBLE);\n sex.setVisibility(View.VISIBLE);\n cp.setVisibility(View.INVISIBLE);\n trestbps.setVisibility(View.INVISIBLE);\n chol.setVisibility(View.INVISIBLE);\n fbs.setVisibility(View.INVISIBLE);\n restecg.setVisibility(View.INVISIBLE);\n thalach.setVisibility(View.INVISIBLE);\n exang.setVisibility(View.INVISIBLE);\n oldpeak.setVisibility(View.INVISIBLE);\n slope.setVisibility(View.INVISIBLE);\n ca.setVisibility(View.INVISIBLE);\n thal.setVisibility(View.INVISIBLE);\n imageSection.setVisibility(View.INVISIBLE);\n\n pregnancies.setVisibility(View.INVISIBLE);\n glucose.setVisibility(View.INVISIBLE);\n bloodPressure.setVisibility(View.INVISIBLE);\n skinThick.setVisibility(View.INVISIBLE);\n bmi.setVisibility(View.INVISIBLE);\n insulin.setVisibility(View.INVISIBLE);\n diabetes.setVisibility(View.INVISIBLE);\n } else if(searchText.equals(\"Chest Pain\")) {\n age.setVisibility(View.INVISIBLE);\n sex.setVisibility(View.INVISIBLE);\n cp.setVisibility(View.VISIBLE);\n trestbps.setVisibility(View.INVISIBLE);\n chol.setVisibility(View.INVISIBLE);\n fbs.setVisibility(View.INVISIBLE);\n restecg.setVisibility(View.INVISIBLE);\n thalach.setVisibility(View.INVISIBLE);\n exang.setVisibility(View.INVISIBLE);\n oldpeak.setVisibility(View.INVISIBLE);\n slope.setVisibility(View.INVISIBLE);\n ca.setVisibility(View.INVISIBLE);\n thal.setVisibility(View.INVISIBLE);\n imageSection.setVisibility(View.INVISIBLE);\n\n pregnancies.setVisibility(View.INVISIBLE);\n glucose.setVisibility(View.INVISIBLE);\n bloodPressure.setVisibility(View.INVISIBLE);\n skinThick.setVisibility(View.INVISIBLE);\n bmi.setVisibility(View.INVISIBLE);\n insulin.setVisibility(View.INVISIBLE);\n diabetes.setVisibility(View.INVISIBLE);\n } else if(searchText.equals(\"Resting Blood Pressure\")) {\n age.setVisibility(View.INVISIBLE);\n sex.setVisibility(View.INVISIBLE);\n cp.setVisibility(View.INVISIBLE);\n trestbps.setVisibility(View.VISIBLE);\n chol.setVisibility(View.INVISIBLE);\n fbs.setVisibility(View.INVISIBLE);\n restecg.setVisibility(View.INVISIBLE);\n thalach.setVisibility(View.INVISIBLE);\n exang.setVisibility(View.INVISIBLE);\n oldpeak.setVisibility(View.INVISIBLE);\n slope.setVisibility(View.INVISIBLE);\n ca.setVisibility(View.INVISIBLE);\n thal.setVisibility(View.INVISIBLE);\n imageSection.setVisibility(View.INVISIBLE);\n\n pregnancies.setVisibility(View.INVISIBLE);\n glucose.setVisibility(View.INVISIBLE);\n bloodPressure.setVisibility(View.INVISIBLE);\n skinThick.setVisibility(View.INVISIBLE);\n bmi.setVisibility(View.INVISIBLE);\n insulin.setVisibility(View.INVISIBLE);\n diabetes.setVisibility(View.INVISIBLE);\n } else if(searchText.equals(\"Serum Cholesterol\")) {\n age.setVisibility(View.INVISIBLE);\n sex.setVisibility(View.INVISIBLE);\n cp.setVisibility(View.INVISIBLE);\n trestbps.setVisibility(View.INVISIBLE);\n chol.setVisibility(View.VISIBLE);\n fbs.setVisibility(View.INVISIBLE);\n restecg.setVisibility(View.INVISIBLE);\n thalach.setVisibility(View.INVISIBLE);\n exang.setVisibility(View.INVISIBLE);\n oldpeak.setVisibility(View.INVISIBLE);\n slope.setVisibility(View.INVISIBLE);\n ca.setVisibility(View.INVISIBLE);\n thal.setVisibility(View.INVISIBLE);\n imageSection.setVisibility(View.INVISIBLE);\n\n pregnancies.setVisibility(View.INVISIBLE);\n glucose.setVisibility(View.INVISIBLE);\n bloodPressure.setVisibility(View.INVISIBLE);\n skinThick.setVisibility(View.INVISIBLE);\n bmi.setVisibility(View.INVISIBLE);\n insulin.setVisibility(View.INVISIBLE);\n diabetes.setVisibility(View.INVISIBLE);\n } else if(searchText.equals(\"Fasting Blood Sugar Larger\")) {\n age.setVisibility(View.INVISIBLE);\n sex.setVisibility(View.INVISIBLE);\n cp.setVisibility(View.INVISIBLE);\n trestbps.setVisibility(View.INVISIBLE);\n chol.setVisibility(View.INVISIBLE);\n fbs.setVisibility(View.VISIBLE);\n restecg.setVisibility(View.INVISIBLE);\n thalach.setVisibility(View.INVISIBLE);\n exang.setVisibility(View.INVISIBLE);\n oldpeak.setVisibility(View.INVISIBLE);\n slope.setVisibility(View.INVISIBLE);\n ca.setVisibility(View.INVISIBLE);\n thal.setVisibility(View.INVISIBLE);\n imageSection.setVisibility(View.INVISIBLE);\n\n pregnancies.setVisibility(View.INVISIBLE);\n glucose.setVisibility(View.INVISIBLE);\n bloodPressure.setVisibility(View.INVISIBLE);\n skinThick.setVisibility(View.INVISIBLE);\n bmi.setVisibility(View.INVISIBLE);\n insulin.setVisibility(View.INVISIBLE);\n diabetes.setVisibility(View.INVISIBLE);\n } else if(searchText.equals(\"Resting Electroc. Result\")) {\n age.setVisibility(View.INVISIBLE);\n sex.setVisibility(View.INVISIBLE);\n cp.setVisibility(View.INVISIBLE);\n trestbps.setVisibility(View.INVISIBLE);\n chol.setVisibility(View.INVISIBLE);\n fbs.setVisibility(View.INVISIBLE);\n restecg.setVisibility(View.VISIBLE);\n thalach.setVisibility(View.INVISIBLE);\n exang.setVisibility(View.INVISIBLE);\n oldpeak.setVisibility(View.INVISIBLE);\n slope.setVisibility(View.INVISIBLE);\n ca.setVisibility(View.INVISIBLE);\n thal.setVisibility(View.INVISIBLE);\n imageSection.setVisibility(View.INVISIBLE);\n\n pregnancies.setVisibility(View.INVISIBLE);\n glucose.setVisibility(View.INVISIBLE);\n bloodPressure.setVisibility(View.INVISIBLE);\n skinThick.setVisibility(View.INVISIBLE);\n bmi.setVisibility(View.INVISIBLE);\n insulin.setVisibility(View.INVISIBLE);\n diabetes.setVisibility(View.INVISIBLE);\n } else if(searchText.equals(\"Maximum Heart Rate Achieved\")) {\n age.setVisibility(View.INVISIBLE);\n sex.setVisibility(View.INVISIBLE);\n cp.setVisibility(View.INVISIBLE);\n trestbps.setVisibility(View.INVISIBLE);\n chol.setVisibility(View.INVISIBLE);\n fbs.setVisibility(View.INVISIBLE);\n restecg.setVisibility(View.INVISIBLE);\n thalach.setVisibility(View.VISIBLE);\n exang.setVisibility(View.INVISIBLE);\n oldpeak.setVisibility(View.INVISIBLE);\n slope.setVisibility(View.INVISIBLE);\n ca.setVisibility(View.INVISIBLE);\n thal.setVisibility(View.INVISIBLE);\n imageSection.setVisibility(View.INVISIBLE);\n\n pregnancies.setVisibility(View.INVISIBLE);\n glucose.setVisibility(View.INVISIBLE);\n bloodPressure.setVisibility(View.INVISIBLE);\n skinThick.setVisibility(View.INVISIBLE);\n bmi.setVisibility(View.INVISIBLE);\n insulin.setVisibility(View.INVISIBLE);\n diabetes.setVisibility(View.INVISIBLE);\n } else if(searchText.equals(\"Exercise Induced Angina\")) {\n age.setVisibility(View.INVISIBLE);\n sex.setVisibility(View.INVISIBLE);\n cp.setVisibility(View.INVISIBLE);\n trestbps.setVisibility(View.INVISIBLE);\n chol.setVisibility(View.INVISIBLE);\n fbs.setVisibility(View.INVISIBLE);\n restecg.setVisibility(View.INVISIBLE);\n thalach.setVisibility(View.INVISIBLE);\n exang.setVisibility(View.VISIBLE);\n oldpeak.setVisibility(View.INVISIBLE);\n slope.setVisibility(View.INVISIBLE);\n ca.setVisibility(View.INVISIBLE);\n thal.setVisibility(View.INVISIBLE);\n imageSection.setVisibility(View.INVISIBLE);\n\n pregnancies.setVisibility(View.INVISIBLE);\n glucose.setVisibility(View.INVISIBLE);\n bloodPressure.setVisibility(View.INVISIBLE);\n skinThick.setVisibility(View.INVISIBLE);\n bmi.setVisibility(View.INVISIBLE);\n insulin.setVisibility(View.INVISIBLE);\n diabetes.setVisibility(View.INVISIBLE);\n } else if(searchText.equals(\"ST Depression Induc. ex.\")) {\n age.setVisibility(View.INVISIBLE);\n sex.setVisibility(View.INVISIBLE);\n cp.setVisibility(View.INVISIBLE);\n trestbps.setVisibility(View.INVISIBLE);\n chol.setVisibility(View.INVISIBLE);\n fbs.setVisibility(View.INVISIBLE);\n restecg.setVisibility(View.INVISIBLE);\n thalach.setVisibility(View.INVISIBLE);\n exang.setVisibility(View.INVISIBLE);\n oldpeak.setVisibility(View.VISIBLE);\n slope.setVisibility(View.INVISIBLE);\n ca.setVisibility(View.INVISIBLE);\n thal.setVisibility(View.INVISIBLE);\n imageSection.setVisibility(View.INVISIBLE);\n\n pregnancies.setVisibility(View.INVISIBLE);\n glucose.setVisibility(View.INVISIBLE);\n bloodPressure.setVisibility(View.INVISIBLE);\n skinThick.setVisibility(View.INVISIBLE);\n bmi.setVisibility(View.INVISIBLE);\n insulin.setVisibility(View.INVISIBLE);\n diabetes.setVisibility(View.INVISIBLE);\n } else if(searchText.equals(\"Slope of Peak Exercise ST\")) {\n age.setVisibility(View.INVISIBLE);\n sex.setVisibility(View.INVISIBLE);\n cp.setVisibility(View.INVISIBLE);\n trestbps.setVisibility(View.INVISIBLE);\n chol.setVisibility(View.INVISIBLE);\n fbs.setVisibility(View.INVISIBLE);\n restecg.setVisibility(View.INVISIBLE);\n thalach.setVisibility(View.INVISIBLE);\n exang.setVisibility(View.INVISIBLE);\n oldpeak.setVisibility(View.INVISIBLE);\n slope.setVisibility(View.VISIBLE);\n ca.setVisibility(View.INVISIBLE);\n thal.setVisibility(View.INVISIBLE);\n imageSection.setVisibility(View.INVISIBLE);\n\n pregnancies.setVisibility(View.INVISIBLE);\n glucose.setVisibility(View.INVISIBLE);\n bloodPressure.setVisibility(View.INVISIBLE);\n skinThick.setVisibility(View.INVISIBLE);\n bmi.setVisibility(View.INVISIBLE);\n insulin.setVisibility(View.INVISIBLE);\n diabetes.setVisibility(View.INVISIBLE);\n } else if(searchText.equals(\"Number of Major Vessel\")) {\n age.setVisibility(View.INVISIBLE);\n sex.setVisibility(View.INVISIBLE);\n cp.setVisibility(View.INVISIBLE);\n trestbps.setVisibility(View.INVISIBLE);\n chol.setVisibility(View.INVISIBLE);\n fbs.setVisibility(View.INVISIBLE);\n restecg.setVisibility(View.INVISIBLE);\n thalach.setVisibility(View.INVISIBLE);\n exang.setVisibility(View.INVISIBLE);\n oldpeak.setVisibility(View.INVISIBLE);\n slope.setVisibility(View.INVISIBLE);\n ca.setVisibility(View.VISIBLE);\n thal.setVisibility(View.INVISIBLE);\n imageSection.setVisibility(View.INVISIBLE);\n\n pregnancies.setVisibility(View.INVISIBLE);\n glucose.setVisibility(View.INVISIBLE);\n bloodPressure.setVisibility(View.INVISIBLE);\n skinThick.setVisibility(View.INVISIBLE);\n bmi.setVisibility(View.INVISIBLE);\n insulin.setVisibility(View.INVISIBLE);\n diabetes.setVisibility(View.INVISIBLE);\n } else if(searchText.equals(\"Thalassemia\")) {\n age.setVisibility(View.INVISIBLE);\n sex.setVisibility(View.INVISIBLE);\n cp.setVisibility(View.INVISIBLE);\n trestbps.setVisibility(View.INVISIBLE);\n chol.setVisibility(View.INVISIBLE);\n fbs.setVisibility(View.INVISIBLE);\n restecg.setVisibility(View.INVISIBLE);\n thalach.setVisibility(View.INVISIBLE);\n exang.setVisibility(View.INVISIBLE);\n oldpeak.setVisibility(View.INVISIBLE);\n slope.setVisibility(View.INVISIBLE);\n ca.setVisibility(View.INVISIBLE);\n thal.setVisibility(View.VISIBLE);\n imageSection.setVisibility(View.INVISIBLE);\n\n pregnancies.setVisibility(View.INVISIBLE);\n glucose.setVisibility(View.INVISIBLE);\n bloodPressure.setVisibility(View.INVISIBLE);\n skinThick.setVisibility(View.INVISIBLE);\n bmi.setVisibility(View.INVISIBLE);\n insulin.setVisibility(View.INVISIBLE);\n diabetes.setVisibility(View.INVISIBLE);\n } else if(searchText.equals(\"Pregnancies\")) {\n age.setVisibility(View.INVISIBLE);\n sex.setVisibility(View.INVISIBLE);\n cp.setVisibility(View.INVISIBLE);\n trestbps.setVisibility(View.INVISIBLE);\n chol.setVisibility(View.INVISIBLE);\n fbs.setVisibility(View.INVISIBLE);\n restecg.setVisibility(View.INVISIBLE);\n thalach.setVisibility(View.INVISIBLE);\n exang.setVisibility(View.INVISIBLE);\n oldpeak.setVisibility(View.INVISIBLE);\n slope.setVisibility(View.INVISIBLE);\n ca.setVisibility(View.INVISIBLE);\n thal.setVisibility(View.INVISIBLE);\n imageSection.setVisibility(View.INVISIBLE);\n\n pregnancies.setVisibility(View.VISIBLE);\n glucose.setVisibility(View.INVISIBLE);\n bloodPressure.setVisibility(View.INVISIBLE);\n skinThick.setVisibility(View.INVISIBLE);\n bmi.setVisibility(View.INVISIBLE);\n insulin.setVisibility(View.INVISIBLE);\n diabetes.setVisibility(View.INVISIBLE);\n } else if(searchText.equals(\"Glucose\")) {\n age.setVisibility(View.INVISIBLE);\n sex.setVisibility(View.INVISIBLE);\n cp.setVisibility(View.INVISIBLE);\n trestbps.setVisibility(View.INVISIBLE);\n chol.setVisibility(View.INVISIBLE);\n fbs.setVisibility(View.INVISIBLE);\n restecg.setVisibility(View.INVISIBLE);\n thalach.setVisibility(View.INVISIBLE);\n exang.setVisibility(View.INVISIBLE);\n oldpeak.setVisibility(View.INVISIBLE);\n slope.setVisibility(View.INVISIBLE);\n ca.setVisibility(View.INVISIBLE);\n thal.setVisibility(View.INVISIBLE);\n imageSection.setVisibility(View.INVISIBLE);\n\n pregnancies.setVisibility(View.INVISIBLE);\n glucose.setVisibility(View.VISIBLE);\n bloodPressure.setVisibility(View.INVISIBLE);\n skinThick.setVisibility(View.INVISIBLE);\n bmi.setVisibility(View.INVISIBLE);\n insulin.setVisibility(View.INVISIBLE);\n diabetes.setVisibility(View.INVISIBLE);\n } else if(searchText.equals(\"Blood Pressure\")) {\n age.setVisibility(View.INVISIBLE);\n sex.setVisibility(View.INVISIBLE);\n cp.setVisibility(View.INVISIBLE);\n trestbps.setVisibility(View.INVISIBLE);\n chol.setVisibility(View.INVISIBLE);\n fbs.setVisibility(View.INVISIBLE);\n restecg.setVisibility(View.INVISIBLE);\n thalach.setVisibility(View.INVISIBLE);\n exang.setVisibility(View.INVISIBLE);\n oldpeak.setVisibility(View.INVISIBLE);\n slope.setVisibility(View.INVISIBLE);\n ca.setVisibility(View.INVISIBLE);\n thal.setVisibility(View.INVISIBLE);\n imageSection.setVisibility(View.INVISIBLE);\n\n pregnancies.setVisibility(View.INVISIBLE);\n glucose.setVisibility(View.INVISIBLE);\n bloodPressure.setVisibility(View.VISIBLE);\n skinThick.setVisibility(View.INVISIBLE);\n bmi.setVisibility(View.INVISIBLE);\n insulin.setVisibility(View.INVISIBLE);\n diabetes.setVisibility(View.INVISIBLE);\n } else if(searchText.equals(\"Skin Thickness\")) {\n age.setVisibility(View.INVISIBLE);\n sex.setVisibility(View.INVISIBLE);\n cp.setVisibility(View.INVISIBLE);\n trestbps.setVisibility(View.INVISIBLE);\n chol.setVisibility(View.INVISIBLE);\n fbs.setVisibility(View.INVISIBLE);\n restecg.setVisibility(View.INVISIBLE);\n thalach.setVisibility(View.INVISIBLE);\n exang.setVisibility(View.INVISIBLE);\n oldpeak.setVisibility(View.INVISIBLE);\n slope.setVisibility(View.INVISIBLE);\n ca.setVisibility(View.INVISIBLE);\n thal.setVisibility(View.INVISIBLE);\n imageSection.setVisibility(View.INVISIBLE);\n\n pregnancies.setVisibility(View.INVISIBLE);\n glucose.setVisibility(View.INVISIBLE);\n bloodPressure.setVisibility(View.INVISIBLE);\n skinThick.setVisibility(View.VISIBLE);\n bmi.setVisibility(View.INVISIBLE);\n insulin.setVisibility(View.INVISIBLE);\n diabetes.setVisibility(View.INVISIBLE);\n } else if(searchText.equals(\"Insulin\")) {\n age.setVisibility(View.INVISIBLE);\n sex.setVisibility(View.INVISIBLE);\n cp.setVisibility(View.INVISIBLE);\n trestbps.setVisibility(View.INVISIBLE);\n chol.setVisibility(View.INVISIBLE);\n fbs.setVisibility(View.INVISIBLE);\n restecg.setVisibility(View.INVISIBLE);\n thalach.setVisibility(View.INVISIBLE);\n exang.setVisibility(View.INVISIBLE);\n oldpeak.setVisibility(View.INVISIBLE);\n slope.setVisibility(View.INVISIBLE);\n ca.setVisibility(View.INVISIBLE);\n thal.setVisibility(View.INVISIBLE);\n imageSection.setVisibility(View.INVISIBLE);\n\n pregnancies.setVisibility(View.INVISIBLE);\n glucose.setVisibility(View.INVISIBLE);\n bloodPressure.setVisibility(View.INVISIBLE);\n skinThick.setVisibility(View.INVISIBLE);\n bmi.setVisibility(View.INVISIBLE);\n insulin.setVisibility(View.VISIBLE);\n diabetes.setVisibility(View.INVISIBLE);\n } else if(searchText.equals(\"BMI\")) {\n age.setVisibility(View.INVISIBLE);\n sex.setVisibility(View.INVISIBLE);\n cp.setVisibility(View.INVISIBLE);\n trestbps.setVisibility(View.INVISIBLE);\n chol.setVisibility(View.INVISIBLE);\n fbs.setVisibility(View.INVISIBLE);\n restecg.setVisibility(View.INVISIBLE);\n thalach.setVisibility(View.INVISIBLE);\n exang.setVisibility(View.INVISIBLE);\n oldpeak.setVisibility(View.INVISIBLE);\n slope.setVisibility(View.INVISIBLE);\n ca.setVisibility(View.INVISIBLE);\n thal.setVisibility(View.INVISIBLE);\n imageSection.setVisibility(View.INVISIBLE);\n\n pregnancies.setVisibility(View.INVISIBLE);\n glucose.setVisibility(View.INVISIBLE);\n bloodPressure.setVisibility(View.INVISIBLE);\n skinThick.setVisibility(View.INVISIBLE);\n bmi.setVisibility(View.VISIBLE);\n insulin.setVisibility(View.INVISIBLE);\n diabetes.setVisibility(View.INVISIBLE);\n } else if(searchText.equals(\"Diabetes Pedigree Function\")) {\n age.setVisibility(View.INVISIBLE);\n sex.setVisibility(View.INVISIBLE);\n cp.setVisibility(View.INVISIBLE);\n trestbps.setVisibility(View.INVISIBLE);\n chol.setVisibility(View.INVISIBLE);\n fbs.setVisibility(View.INVISIBLE);\n restecg.setVisibility(View.INVISIBLE);\n thalach.setVisibility(View.INVISIBLE);\n exang.setVisibility(View.INVISIBLE);\n oldpeak.setVisibility(View.INVISIBLE);\n slope.setVisibility(View.INVISIBLE);\n ca.setVisibility(View.INVISIBLE);\n thal.setVisibility(View.INVISIBLE);\n imageSection.setVisibility(View.INVISIBLE);\n\n pregnancies.setVisibility(View.INVISIBLE);\n glucose.setVisibility(View.INVISIBLE);\n bloodPressure.setVisibility(View.INVISIBLE);\n skinThick.setVisibility(View.INVISIBLE);\n bmi.setVisibility(View.INVISIBLE);\n insulin.setVisibility(View.INVISIBLE);\n diabetes.setVisibility(View.VISIBLE);\n } else {\n age.setVisibility(View.INVISIBLE);\n sex.setVisibility(View.INVISIBLE);\n cp.setVisibility(View.INVISIBLE);\n trestbps.setVisibility(View.INVISIBLE);\n chol.setVisibility(View.INVISIBLE);\n fbs.setVisibility(View.INVISIBLE);\n restecg.setVisibility(View.INVISIBLE);\n thalach.setVisibility(View.INVISIBLE);\n exang.setVisibility(View.INVISIBLE);\n oldpeak.setVisibility(View.INVISIBLE);\n slope.setVisibility(View.INVISIBLE);\n ca.setVisibility(View.INVISIBLE);\n thal.setVisibility(View.INVISIBLE);\n imageSection.setVisibility(View.INVISIBLE);\n\n pregnancies.setVisibility(View.INVISIBLE);\n glucose.setVisibility(View.INVISIBLE);\n bloodPressure.setVisibility(View.INVISIBLE);\n skinThick.setVisibility(View.INVISIBLE);\n bmi.setVisibility(View.INVISIBLE);\n insulin.setVisibility(View.INVISIBLE);\n diabetes.setVisibility(View.INVISIBLE);\n }\n }",
"@Override\n protected boolean isAppropriate() {\n return true; // always show\n }",
"@SuppressLint(\"NewApi\")\n\t@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tsuper.onCreateOptionsMenu(menu);\n\t\tgetMenuInflater().inflate(R.menu.activity_main_viewer, menu);\n\t\tSearchManager sMan = (SearchManager) getSystemService(Context.SEARCH_SERVICE);\n\t\tLog.v(CLASS_NAME, \"Search manager acquired\");\n\t\tMenuItem searchItem = menu.findItem(R.id.search);\n\t\tif (searchItem == null) {\n\t\t\tLog.v(CLASS_NAME, \"searchItem null\");\n\t\t}\n\t\tLog.v(CLASS_NAME, searchItem.toString());\n\t\tSearchView sView = (SearchView) MenuItemCompat\n\t\t\t\t.getActionView(searchItem);\n\t\tif (sView == null) {\n\t\t\tLog.v(CLASS_NAME, \"sView Null!\");\n\t\t}\n\t\tLog.v(CLASS_NAME, \"Search view acquired\");\n\t\tSearchableInfo info = sMan.getSearchableInfo(getComponentName());\n\t\tLog.v(CLASS_NAME, \"Search info acquired: \" + info.toString());\n\t\tsView.setSearchableInfo(info);\n\t\tLog.v(CLASS_NAME, \"Searchable Info set\");\n\t\tsView.setIconifiedByDefault(true);\n\t\tLog.v(CLASS_NAME, \"Iconified by default set\");\n\t\treturn true;\n\t}",
"public boolean isVBarShowing() { return getVBar().getParent()!=null; }"
] |
[
"0.6400807",
"0.6364153",
"0.61434543",
"0.60093385",
"0.6006697",
"0.5992868",
"0.58206266",
"0.57640797",
"0.5629552",
"0.56098425",
"0.5584559",
"0.55603206",
"0.5519551",
"0.5505976",
"0.54857713",
"0.5476976",
"0.5465224",
"0.5464336",
"0.54586154",
"0.54436475",
"0.5443081",
"0.54419535",
"0.5415597",
"0.54106706",
"0.5407366",
"0.54001343",
"0.5398195",
"0.5389445",
"0.5384073",
"0.53762233",
"0.5368843",
"0.536398",
"0.5360451",
"0.5348271",
"0.5329505",
"0.5327259",
"0.531919",
"0.5317196",
"0.5312922",
"0.5310857",
"0.5297633",
"0.52939206",
"0.52939206",
"0.52939206",
"0.52894604",
"0.5275389",
"0.52736753",
"0.52724713",
"0.52724713",
"0.5263891",
"0.5261746",
"0.5259239",
"0.52553076",
"0.5253911",
"0.5251409",
"0.52365386",
"0.52140623",
"0.52133495",
"0.5211846",
"0.52091515",
"0.5207602",
"0.51963377",
"0.5192679",
"0.5188822",
"0.5187915",
"0.5185759",
"0.51821625",
"0.51724285",
"0.5168731",
"0.51684016",
"0.5167501",
"0.5160265",
"0.51567686",
"0.51558334",
"0.5155685",
"0.5141883",
"0.51410127",
"0.51344043",
"0.5124452",
"0.51086247",
"0.5102686",
"0.5102639",
"0.5096296",
"0.5094268",
"0.5086447",
"0.5084815",
"0.5082411",
"0.50819707",
"0.5080009",
"0.50760853",
"0.5070812",
"0.50582004",
"0.5055227",
"0.5048411",
"0.504343",
"0.50412524",
"0.5038613",
"0.503231",
"0.5031965",
"0.5031595",
"0.50205"
] |
0.0
|
-1
|
Determines whether the SearchBar or SearchView appears as part of the TableView. Set to false if the search view will be displayed in the action bar. Default: true
|
public native void setSearchAsChild(boolean value) /*-{
var jso = this.@com.emitrom.ti4j.core.client.ProxyObject::getJsObj()();
jso.searchAsChild = value;
}-*/;
|
{
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
}
|
[
"boolean hasSearchTermView();",
"@Override\n public boolean onSearchRequested() {\n return !isSearchResultView && super.onSearchRequested();\n }",
"@UnsupportedAppUsage\n public boolean isVisible() {\n return mSearchDialog == null? false : mSearchDialog.isShowing();\n }",
"@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n // Inflate the options menu from XML\n MenuInflater inflater = getMenuInflater();\n inflater.inflate(R.menu.options_menu, menu);\n\n // Todo(32) gather all search view code in one place\n\n // further code, initializes SearchView menu item:\n // Get the SearchView and set the searchable configuration\n final SearchManager searchManager = (SearchManager) getSystemService(Context.SEARCH_SERVICE);\n searchView = (SearchView) menu.findItem(R.id.action_search).getActionView();\n // Assumes current activity is the searchable activity\n searchView.setSearchableInfo(searchManager.getSearchableInfo(getComponentName()));\n // further customization of the SearchView\n searchView.setIconifiedByDefault(true);\n searchView.setQueryHint(getString(R.string.search_hint_text_for_search_widget));\n int width = AppUtilities.getDisplayWidth(this);\n searchView.setMaxWidth(width);\n // set a Listener to the SearchView so that the Search query being entered could be persisted\n searchView.setOnQueryTextListener(new SearchView.OnQueryTextListener() {\n /*\n * Method that tracks the state of SearchView (whether the user has submitted the query)\n * */\n @Override\n public boolean onQueryTextSubmit(String query) {\n searchQueryToRestore = query;\n // update the state variable\n searchQueryIsSubmitted = true;\n // remove focus from SearchView\n rootLayout.requestFocus();\n return false;\n }\n\n /*\n * Method that tracks the contents of search query being entered\n * */\n @Override\n public boolean onQueryTextChange(String newText) {\n // store the search query being entered in a global object that will be used to persist data\n // note: intentionally we use another string instead of @searchQueryToRestore, as SearchView\n // query is at first set to null (at the time SearchView is initialised), before setQuery()\n // method is called\n searchQueryToListen = newText;\n return false;\n }\n });\n\n\n // Todo(31) replace to the correct place in the code\n\n // listener that sets boolean values for @searchModeIsOn\n MenuItemCompat.setOnActionExpandListener(menu.findItem(searchView.getId()), new MenuItemCompat.OnActionExpandListener() {\n @Override\n public boolean onMenuItemActionExpand(MenuItem item) {\n searchModeIsOn = true;\n return true;\n }\n\n @Override\n public boolean onMenuItemActionCollapse(MenuItem item) {\n searchModeIsOn = false;\n\n // if no search query has been submitted, just close the search view,\n // else - reload the data\n if(!searchQuerySubmitted.equals(\"\")){\n performNewQuery();\n searchQuerySubmitted = \"\";\n }\n\n return true;\n }\n });\n\n // Restore the state of SearchView (if it was open before orientation change, or before\n // leaving the activity);\n if(searchModeIsOn){\n // expandActionView() expands / gives focus to the SearchView\n // note: it needs to be called before setQuery() method\n menu.findItem(searchView.getId()).expandActionView();\n searchView.setQuery(searchQueryToRestore, false);\n // restore the focus state\n if(searchQueryIsSubmitted){\n // if submitted - remove the focus (also removes the soft keyboard)\n searchView.clearFocus();\n rootLayout.requestFocus();\n }\n }\n return true;\n }",
"boolean hasDynamicSearchAdsSearchTermView();",
"@Override\n public boolean onCreateOptionsMenu(final Menu menu) {\n getMenuInflater().inflate(R.menu.menu, menu);\n final MenuItem notificationsMenuItem = menu.findItem(R.id.action_notifications);\n final MenuItem walletMenuItem = menu.findItem(R.id.action_wallet);\n final MenuItem searchMenuItem = menu.findItem(R.id.action_search);\n final MenuItem homeMenuItem = menu.findItem(R.id.action_home);\n\n //Hide all action buttons\n homeMenuItem.setVisible(false);\n notificationsMenuItem.setVisible(false);\n walletMenuItem.setVisible(false);\n searchMenuItem.setVisible(mSearchViewToShow);\n\n searchView = (SearchView) MenuItemCompat.getActionView(menu.findItem(R.id.action_search));\n SearchManager searchManager = (SearchManager) getSystemService(Context.SEARCH_SERVICE);\n // Assumes current activity is the searchable activity\n searchView.setSearchableInfo(searchManager.getSearchableInfo(getComponentName()));\n// searchView.setIconifiedByDefault(false); // Do not iconify the widget; expand it by default\n\n searchView.setOnQueryTextListener(this);\n searchView.setOnQueryTextFocusChangeListener(new View.OnFocusChangeListener() {\n @Override\n public void onFocusChange(View view, boolean isFocused) {\n searchView.setSuggestionsAdapter(null);\n if (isFocused) {\n findViewById(R.id.layout_search_food).setVisibility(View.VISIBLE);\n } else {\n// findViewById(R.id.layout_search_food).setVisibility(View.GONE);\n }\n }\n });\n\n searchView.setOnCloseListener(new SearchView.OnCloseListener() {\n @Override\n public boolean onClose() {\n findViewById(R.id.layout_search_food).setVisibility(View.GONE);\n return false;\n }\n });\n\n searchView.setQueryHint(getResources().getString(R.string.search_menu_hint));\n\n SearchView.SearchAutoComplete autoCompleteTextView = (SearchView.SearchAutoComplete) searchView.findViewById(R.id.search_src_text);\n if (autoCompleteTextView != null) {\n autoCompleteTextView.setDropDownBackgroundDrawable(getResources().getDrawable(R.drawable.abc_popup_background_mtrl_mult));\n }\n View searchPlate = searchView.findViewById(android.support.v7.appcompat.R.id.search_plate);\n\n if (searchPlate != null) {\n searchPlate.setBackgroundResource(R.drawable.textfield_searchview_holo_light);\n }\n\n return true;\n }",
"public void openSearchView() {\n if (isSearchViewOpen) {\n return;\n }\n\n searchEditText.requestFocus();\n\n AnimatorListenerAdapter listenerAdapter = new AnimatorListenerAdapter() {\n @Override\n public void onAnimationEnd(Animator animation) {\n super.onAnimationEnd(animation);\n if (backgroundView != null) {\n backgroundView.setVisibility(VISIBLE);\n backgroundView.requestFocus();\n }\n //After SearchBar is revealed if keyword is not empty then open suggestions section\n if (!searchEditText.getText().toString().isEmpty()) {\n suggestionsAdapter.filterSuggestions(searchEditText.getText());\n FloatingSearchView.this.onTextChanged(searchEditText.getText());\n }\n }\n };\n\n if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.LOLLIPOP) {\n rootView.setVisibility(View.VISIBLE);\n AnimationUtils.circleRevealView(searchBar, listenerAdapter);\n } else {\n AnimationUtils.fadeInView(rootView);\n }\n\n // Call listener if we have one\n if (searchViewListener != null) {\n searchViewListener.onSearchViewOpen();\n }\n\n isSearchViewOpen = true;\n }",
"@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n MenuInflater menuInflater = getMenuInflater();\n menuInflater.inflate(R.menu.toolbar_menu, menu);\n\n // set the SearchView to be invisible\n final MenuItem searchItem = menu.findItem(R.id.action_search);\n final SearchView searchView = (SearchView) searchItem.getActionView();\n searchItem.setVisible(false);\n searchView.setVisibility(View.GONE);\n\n return true;\n }",
"@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n getMenuInflater().inflate(R.menu.menu_search, menu);\n // Get the SearchView and set the searchable configuration\n SearchManager searchManager = (SearchManager) getSystemService(Context.SEARCH_SERVICE);\n final SearchView searchView = (SearchView) menu.findItem(R.id.action_search).getActionView();\n // Assumes current activity is the searchable activity\n searchView.setSearchableInfo(searchManager.getSearchableInfo(getComponentName()));\n searchView.setIconifiedByDefault(true);\n searchView.onActionViewExpanded();\n searchView.setSubmitButtonEnabled(true);\n // Change submit button\n ImageView submitButton = (ImageView) searchView.findViewById(android.support.v7.appcompat.R.id.search_go_btn);\n submitButton.setImageResource(R.drawable.ic_search_white_24dp);\n final EditText searchEditText = (EditText) searchView.findViewById(android.support.v7.appcompat.R.id.search_src_text);\n searchEditText.setImeOptions(DEFAULT_KEYS_SEARCH_LOCAL);\n //searchEditText.setTextColor(ContextCompat.getColor(this, R.color.md_black_1000));\n //View searchPlate = searchView.findViewById(android.support.v7.appcompat.R.id.search_plate);\n //searchPlate.setBackgroundResource(R.color.md_white_1000);\n searchView.setOnQueryTextListener(new SearchView.OnQueryTextListener() {\n @Override\n public boolean onQueryTextSubmit(String query) {\n executeSearchShow(query);\n searchView.clearFocus();\n return true;\n }\n\n @Override\n public boolean onQueryTextChange(String newText) {\n return false;\n }\n });\n return true;\n }",
"@Override\n\tpublic boolean onSearchRequested () {\n\t\tif (!searchMode)\n\t\t\ttoggleSearch();\n\t\treturn true;\n\t}",
"private void toggleSearchButton() {\n\t\t// Enable \"Search\" button when both input fields are filled in\n\t\tview.toggleSearch(!view.getStartStation().equals(\"\")\n\t\t\t\t&& !view.getEndStation().equals(\"\"));\n\t}",
"private boolean canShowBars() {\n if (mAppBridge != null && mCurrentIndex == 0\n && !mPhotoView.getFilmMode()) {\n return false;\n }\n\n // No bars if it's not allowed.\n if (!mActionBarAllowed) {\n return false;\n }\n\n Configuration config = mActivity.getResources().getConfiguration();\n return config.touchscreen != Configuration.TOUCHSCREEN_NOTOUCH;\n }",
"void showSearch() {\r\n AccelerateDecelerateInterpolator interpolator = new AccelerateDecelerateInterpolator();\r\n // Setup the animation for mSearchView\r\n mSearchView.setPivotY(mSearchView.getHeight());\r\n ObjectAnimator searchAnim = ObjectAnimator.ofFloat(mSearchView, \"scaleY\", 0.1f, 1.0f);\r\n searchAnim.setDuration(100);\r\n searchAnim.addListener(new AnimatorListenerAdapter() {\r\n @Override\r\n public void onAnimationStart(Animator animation) {\r\n // Set the visibility of the SearchView\r\n mSearchView.setVisibility(View.VISIBLE);\r\n\r\n // Request focus\r\n mSearchView.requestFocus();\r\n }\r\n });\r\n\r\n // Setup the animation for mTitle\r\n mTitle.setPivotY(mTitle.getHeight());\r\n ObjectAnimator titleAnim = ObjectAnimator.ofFloat(mTitle, \"scaleY\", 1.0f, 0.0f);\r\n searchAnim.setDuration(50);\r\n\r\n AnimatorSet animSet = new AnimatorSet();\r\n animSet.playSequentially(titleAnim, searchAnim);\r\n animSet.setInterpolator(interpolator);\r\n animSet.addListener(new AnimatorListenerAdapter() {\r\n @Override\r\n public void onAnimationEnd(Animator animation) {\r\n // Hide the app title\r\n mTitle.setVisibility(View.INVISIBLE);\r\n }\r\n });\r\n animSet.start();\r\n\r\n // Change the search icon to a cancel icon\r\n mSearchIcon.setImageDrawable(ContextCompat.getDrawable(this, R.drawable.ic_menu_close_clear_cancel));\r\n\r\n // Show the soft keyboard\r\n InputMethodManager imm = (InputMethodManager)getSystemService(Context.INPUT_METHOD_SERVICE);\r\n imm.showSoftInput(this.getCurrentFocus(), 0);\r\n }",
"boolean hasDisplayKeywordView();",
"@Override\n public void onCreateOptionsMenu(Menu menu, MenuInflater inflater) {\n inflater.inflate(R.menu.menu_home, menu);\n MenuItem item = menu.findItem(R.id.homeSearch);\n\n SearchView searchView = (SearchView) item.getActionView();\n searchView.setOnQueryTextListener(this);\n searchView.setQueryHint(\"Search\");\n searchView.setOnCloseListener(new SearchView.OnCloseListener() {\n @Override\n public boolean onClose() {\n tabLayout.setVisibility(View.VISIBLE);\n homeSearchRecycleView.setVisibility(View.GONE);\n mViewPager.setVisibility(View.VISIBLE);\n return false;\n }\n });\n\n super.onCreateOptionsMenu(menu, inflater);\n }",
"@Override\n public boolean onCreateOptionsMenu(final Menu menu) {\n getMenuInflater().inflate(R.menu.menu_main, menu);\n SearchManager searchManager = (SearchManager) getSystemService(Context.SEARCH_SERVICE);\n mSearchView = (SearchView) menu.findItem(R.id.action_search).getActionView();\n mSearchView.setSearchableInfo(searchManager.getSearchableInfo(getComponentName()));\n mSearchView.setQueryHint(\"Nhập từ tìm kiếm\");\n\n EditText searchPlate = ((EditText) mSearchView.findViewById(R.id.search_src_text));\n searchPlate.setBackgroundResource(R.drawable.underlinetheme_edit_text_holo_light);\n searchPlate.setImeOptions(EditorInfo.IME_ACTION_SEARCH);\n searchPlate.setTextColor(getResources().getColor(R.color.textColorPrimary));\n\n mSearchView.setOnQueryTextListener(new SearchView.OnQueryTextListener() {\n @Override\n public boolean onQueryTextSubmit(String query) {\n Seach(query);\n return false;\n }\n\n @Override\n public boolean onQueryTextChange(String newText) {\n return false;\n }\n });\n\n mTVTitle.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View view) {\n mSearchView.setIconified(false);\n MenuItemCompat.expandActionView(menu.findItem(R.id.action_search));\n mSearchView.requestFocus();\n InputMethodManager lManager = (InputMethodManager) getSystemService(Context.INPUT_METHOD_SERVICE);\n lManager.showSoftInput(mSearchView, 0);\n }\n });\n\n return true;\n }",
"boolean getSearchable();",
"@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tgetMenuInflater().inflate(R.menu.activity_search, menu);\n\t\t\n\t\tif(Build.VERSION.SDK_INT >= Build.VERSION_CODES.HONEYCOMB) {\n\t\t\tSearchManager searchManager = (SearchManager) getSystemService(Context.SEARCH_SERVICE);\n\t\t\tmSearchView = (SearchView) menu.findItem(R.id.search_bar2).getActionView();\n\t\t\tmSearchView.setSearchableInfo(searchManager.getSearchableInfo(getComponentName()));\n\t\t\tmSearchView.setIconifiedByDefault(false);\n\t\t\tmSearchView.setOnQueryTextListener(this);\n\t\t\t\n\t\t}\n\t\treturn true;\n\t}",
"@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n getMenuInflater().inflate(R.menu.menu_search, menu);\n\n // Associate searchable configuration with the SearchView !IMPORTANT\n SearchManager searchManager = (SearchManager) getSystemService(Context.SEARCH_SERVICE);\n searchView = (SearchView) menu.findItem(R.id.action_search)\n .getActionView();\n searchView.setSearchableInfo(searchManager\n .getSearchableInfo(getComponentName()));\n searchView.setMaxWidth(Integer.MAX_VALUE);\n\n // listening to search query text change, every type on input\n searchView.setOnQueryTextListener(new SearchView.OnQueryTextListener() {\n @Override\n public boolean onQueryTextSubmit(String query) {\n // filter recycler view when query submitted\n mAdapter.getFilter().filter(query);\n return false;\n }\n\n @Override\n public boolean onQueryTextChange(String query) {\n // filter recycler view when text is changed\n mAdapter.getFilter().filter(query);\n return false;\n }\n });\n return true;\n }",
"public boolean isFiltered()\n\t{\n\t\tfinal TiTableView tableView = getTableView();\n\n\t\tif (tableView != null) {\n\t\t\treturn tableView.isFiltered();\n\t\t}\n\n\t\treturn false;\n\t}",
"private void setupSearchView(MenuItem searchItem) {\n\t\t if (isAlwaysExpanded()) {\n\t // mSearchView.setIconifiedByDefault(false);\n\t if (mSearchView.getVisibility() == View.VISIBLE) {\n\t\t\t\t mSearchView.setIconified(true);// to Expand the SearchView when clicked\n\t\t\t\t mSearchView.setVisibility(View.INVISIBLE);\n\t } else {\n\t \tmSearchView.setVisibility(View.VISIBLE);\n\t \tmSearchView.setIconified(false);\n\t }\n\t } else {\n\t searchItem.setShowAsActionFlags(MenuItem.SHOW_AS_ACTION_IF_ROOM | MenuItem.SHOW_AS_ACTION_COLLAPSE_ACTION_VIEW);\n\t }\n\n\t SearchManager searchManager = (SearchManager) getSystemService(Context.SEARCH_SERVICE);\n\t if (searchManager != null) {\n\t List<SearchableInfo> searchables = searchManager.getSearchablesInGlobalSearch();\n\n\t SearchableInfo info = searchManager.getSearchableInfo(getComponentName());\n\t for (SearchableInfo inf : searchables) {\n\t if (inf.getSuggestAuthority() != null\n\t && inf.getSuggestAuthority().startsWith(\"applications\")) {\n\t info = inf;\n\t }\n\t }\n\t mSearchView.setSearchableInfo(info);\n\t }\n\n\t mSearchView.setOnQueryTextListener(this);\n\t}",
"private void toggleSearch () {\n\t\tsearchMode = !searchMode;\n\t\t\n\t\tif (searchMode) {\n\t\t\t// Go into search mode\n\t\t\t/*\n\t\t\t * Tween in the search bar and keep visible\n\t\t\t */\n\t\t\tif (flyRevealDown == null)\n\t\t\t\tflyRevealDown = AnimationUtils.loadAnimation(this, R.anim.fly_reveal_down);\n\t\t\tsearch.startAnimation(flyRevealDown);\n\t\t\tsearch.setVisibility(View.VISIBLE);\n\t\t\tfilter.requestFocus();\n\t\t\t\n\t\t\t/*\n\t\t\t * Tween out the new memo bar\n\t\t\t */\n\t\t\tif (fadeOut == null)\n\t\t\t\tfadeOut = AnimationUtils.loadAnimation(this, R.anim.fade_out);\n\t\t\tnewMemo.startAnimation(fadeOut);\n\t\t\tnewMemo.setVisibility(View.GONE);\n\t\t\t\n\t\t\t/*\n\t\t\t * Show the keyboard\n\t\t\t */\n\t\t\tinputMethodManager.showSoftInput(filter, 0);\n\t\t} else {\n\t\t\t// Go out of search mode\n\t\t\t/*\n\t\t\t * Hide the keyboard\n\t\t\t */\n\t\t\tinputMethodManager.hideSoftInputFromInputMethod(filter.getWindowToken(), 0);\n\t\t\t\n\t\t\t/*\n\t\t\t * Tween out the search bar and keep invisible\n\t\t\t */\n\t\t\tif (flyConcealUp == null)\n\t\t\t\tflyConcealUp = AnimationUtils.loadAnimation(this, R.anim.fly_conceal_up);\n\t\t\tfilter.setText(\"\");\n\t\t\tsearch.startAnimation(flyConcealUp);\n\t\t\tsearch.setVisibility(View.GONE);\n\t\t\t\n\t\t\t/*\n\t\t\t * Tween in the new memo bar\n\t\t\t */\n\t\t\tif (fadeIn == null)\n\t\t\t\tfadeIn = AnimationUtils.loadAnimation(this, R.anim.fade_in);\n\t\t\tnewMemo.startAnimation(fadeIn);\n\t\t\tnewMemo.setVisibility(View.VISIBLE);\n\t\t}\n\t}",
"@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n MenuInflater inflater = getMenuInflater();\n inflater.inflate(isSearch ? R.menu.menu_search_toolbar : R.menu.main, menu);\n\n if (isSearch) {\n //Toast.makeText(getApplicationContext(), \"Search \" + isSearch, Toast.LENGTH_SHORT).show();\n final SearchView search = (SearchView) menu.findItem(R.id.action_search).getActionView();\n search.setIconified(false);\n search.setQueryHint(\"검색어를 입력하세요.\");\n\n search.setOnQueryTextListener(new SearchView.OnQueryTextListener() {\n @Override\n public boolean onQueryTextSubmit(String s) {\n return false;\n }\n\n @Override\n public boolean onQueryTextChange(String s) {\n /*switch (viewPager.getCurrentItem()) {\n case 0:\n // f_number.mAdapter.getFilter().filter(s);\n break;\n case 1:\n // f_check.mAdapter.getFilter().filter(s);\n break;\n case 2:\n // f_event.mAdapter.getFilter().filter(s);\n break;\n }*/\n return true;\n }\n });\n search.setOnCloseListener(new SearchView.OnCloseListener() {\n @Override\n public boolean onClose() {\n closeSearch();\n return true;\n }\n });\n }\n\n return true;\n }",
"public boolean isBrowseShown()\r\n\t{\r\n\t\treturn ((this.pageBackingBean.getCurrentUser() != null) || (this.settingEjb\r\n\t\t .getBooleanSettingByName(Constants.SETTING_SEARCH_ALLOW_NON_USERS)))\r\n\t\t && !(this.settingEjb.getBooleanSettingByName(Constants.SETTING_SEARCH_INDEXING_COMMENCED));\r\n\t}",
"public CustomerSearchView displaySearchView() {\r\n\r\n\t\tif(customerSearchView == null) {\r\n\t\t\tcustomerSearchView = new CustomerSearchView() {\r\n\t\t\t\tpublic void cancelAction() {\r\n\t\t\t\t\tdisposeSearchView();\r\n\t\t\t\t}\r\n\t\t\t};\r\n\r\n\t\t\tApplicationMaster.addScreen(customerSearchView);\r\n\t\t}\r\n\r\n\t\tif(customerDetailsView != null && customerDetailsView.isVisible()) {\r\n\t\t\tcustomerDetailsView.setVisible(true);\r\n\t\t}\r\n\t\telse {\r\n\t\t\tcustomerSearchView.setTitle(getValue(\"TTLscrxxxxx001CustomerSearchScreen\"));\r\n\t\t\tcustomerSearchView.setController(this);\r\n\r\n\t\t\tcustomerSearchView.setVisible(true);\r\n\t\t}\r\n\r\n\t\treturn customerSearchView;\r\n\t}",
"@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n getMenuInflater().inflate(R.menu.search_activity, menu);\n\n // Get the SearchView and set the searchable configuration\n SearchManager searchManager = (SearchManager) getSystemService(Context.SEARCH_SERVICE);\n SearchView searchView = (SearchView) menu.findItem(R.id.action_search).getActionView();\n // Assumes current activity is the searchable activity\n searchView.setSearchableInfo(searchManager.getSearchableInfo(getComponentName()));\n searchView.setMaxWidth(Integer.MAX_VALUE);//set search menu as full width\n searchView.setIconifiedByDefault(false);\n\n\n return super.onCreateOptionsMenu( menu );\n }",
"@NonNull public abstract SearchView view();",
"public boolean isSearchable() {\n return (rawData != null && !rawData.optBoolean(Constants.HIDDEN_FIELD)\n && rawData.optBoolean(Constants.SEARCHABLE_FIELD));\n }",
"@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n MenuInflater inflater = getMenuInflater();\n inflater.inflate(R.menu.menu_actionbar_principal, menu);\n // Get the SearchView and set the searchable configuration\n SearchManager searchManager = (SearchManager) getSystemService(Context.SEARCH_SERVICE);\n final SearchView searchView = (SearchView) menu.findItem(R.id.pesquisar).getActionView();\n // Assumes current activity is the searchable activity\n searchView.setSearchableInfo(searchManager.getSearchableInfo(getComponentName()));\n searchView.setIconifiedByDefault(false); // Do not iconify the widget; expand it by default\n searchView.setOnQueryTextListener(new SearchView.OnQueryTextListener() {\n\n @Override\n public boolean onQueryTextChange(String s) {\n\n if (s.length() >= 4) {\n Toast.makeText(getApplicationContext(), \"Procura \" + s, Toast.LENGTH_LONG).show();\n //submitLocationQuery(s);\n }\n return true;\n }\n\n @Override\n public boolean onQueryTextSubmit(String query) {\n // submitLocationQuery(query);\n Toast.makeText(getApplicationContext(), \"Procura tudo \" + query, Toast.LENGTH_LONG).show();\n\n searchView.clearFocus();\n // esconder a caixa de texto de busca\n ///searchView.onActionViewCollapsed();\n return true;\n }\n\n });\n\n return super.onCreateOptionsMenu(menu);\n }",
"@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n getMenuInflater().inflate(R.menu.menu_main, menu);\n\n SearchManager searchManager = (SearchManager) getSystemService(Context.SEARCH_SERVICE);\n MenuItem menuItem = menu.findItem(R.id.app_bar_search);\n SearchView searchView = (SearchView) menuItem.getActionView();\n\n searchView.setSearchableInfo(searchManager.getSearchableInfo(getComponentName()));\n\n searchView.setOnQueryTextListener(new SearchView.OnQueryTextListener() {\n @Override\n public boolean onQueryTextSubmit(String query) {\n // TODO ovde ide implementacija za search\n // https://stackoverflow.com/questions/21585326/implementing-searchview-in-action-bar\n return false;\n }\n\n @Override\n public boolean onQueryTextChange(String newText) {\n return false;\n }\n });\n return true;\n }",
"@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n // Inflate the menu; this adds items to the action bar if it is present.\n getMenuInflater().inflate(R.menu.menu_main, menu);//Menu Resource, Menu\n\n SearchManager searchManager = (SearchManager) getSystemService(Context.SEARCH_SERVICE);\n searchMenuItem = menu.findItem(R.id.action_search);\n searchView = (SearchView) searchMenuItem.getActionView();\n\n searchView.setSearchableInfo(searchManager.getSearchableInfo(getComponentName()));\n searchView.setSubmitButtonEnabled(false);\n searchView.setOnQueryTextListener(new SearchView.OnQueryTextListener() {\n @Override\n public boolean onQueryTextSubmit(String query) {\n return false;\n }\n\n @Override\n public boolean onQueryTextChange(String newText) {\n storageGridViewAdapter.getFilter().filter(newText);\n return true;\n }\n });\n\n return true;\n }",
"@Override\n public boolean onSearchRequested() {\n return super.onSearchRequested();\n }",
"@Override\n public void onCreateOptionsMenu(@NonNull Menu menu, @NonNull MenuInflater inflater) {\n inflater.inflate(R.menu.action_bar_menu,menu);\n MenuItem searchItem = menu.findItem(R.id.search_view);\n SearchManager searchManager = (SearchManager) getActivity().getSystemService(context.SEARCH_SERVICE);\n\n if(searchItem != null)\n searchView = (SearchView)searchItem.getActionView();\n if(searchView != null)\n searchView.setSearchableInfo(searchManager.getSearchableInfo(getActivity().getComponentName()));\n\n searchView.setOnQueryTextListener(new SearchView.OnQueryTextListener() {\n @Override\n public boolean onQueryTextSubmit(String query) {\n return false;\n }\n\n @Override\n public boolean onQueryTextChange(String newText) {\n eventAdapter.getFilter().filter(newText);\n return false;\n }\n });\n super.onCreateOptionsMenu(menu, inflater);\n }",
"@Override\n public void setupSearchBar() {\n mSearchChildView.animSearchView();\n mSearchChildView.setupSearchBar();\n }",
"private void checkSearchViewExists() {\n onView(withId(R.id.searchView)).check(matches(isDisplayed()));\n }",
"public boolean openSearch(){\n return true;\n }",
"void requestSearchViewFocus();",
"@Override\n\tpublic boolean onPrepareOptionsMenu(Menu menu) {\n\t\tboolean drawerOpen = mDrawerLayout.isDrawerOpen(mDrawerList);\n\t\tmenu.findItem(R.id.search).setVisible(!drawerOpen);\n\t\treturn super.onPrepareOptionsMenu(menu);\n\t}",
"@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n // get the device's current orientation\n int orientation = getResources().getConfiguration().orientation;\n\n // display the app's menu only in portrait orientation\n if (orientation == Configuration.ORIENTATION_PORTRAIT) {\n // inflate the menu\n getMenuInflater().inflate(R.menu.menu_main, menu);\n this.menu = menu;\n // Get the SearchView and set the searchable configuration\n SearchManager searchManager = (SearchManager) getSystemService(Context.SEARCH_SERVICE);\n SearchView searchView = (SearchView) menu.findItem(R.id.menu_search).getActionView();\n\n // Assumes current activity is the searchable activity\n searchView.setSearchableInfo(searchManager.getSearchableInfo(getComponentName()));\n searchView.setIconifiedByDefault(false); // Do not iconify the widget; expand it by default\n searchView.setOnQueryTextListener(queryTextListener);\n return true;\n }\n else\n return false;\n }",
"public void initialiseSearchView() {\n text.addTextChangedListener(new TextWatcher() {\n @Override\n public void beforeTextChanged(CharSequence s, int start, int count, int after) {\n // do nothing\n }\n\n @Override\n public void onTextChanged(CharSequence s, int start, int before, int count) {\n if (count > 0) {\n clearButton.setVisibility(View.VISIBLE);\n } else {\n clearButton.setVisibility(View.GONE);\n }\n searchHandler.apply(s.toString());\n }\n\n @Override\n public void afterTextChanged(Editable s) {\n // do nothing\n }\n });\n text.setOnEditorActionListener(new TextView.OnEditorActionListener() {\n @Override\n public boolean onEditorAction(TextView v, int actionId, KeyEvent event) {\n if (actionId == EditorInfo.IME_ACTION_SEARCH) {\n //Still perform a search operation, then hide keyboard & search bar\n searchHandler.apply(v.getText().toString());\n hideSearchBar();\n return true;\n }\n return false;\n }\n });\n\n clearButton.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View v) {\n text.setText(\"\");\n }\n });\n\n closeButton.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View v) {\n hideSearchBar();\n }\n });\n\n clearButton.setVisibility(View.GONE);\n hideSearchBar();\n }",
"@Override public void onCreateOptionsMenu(Menu menu, MenuInflater inflater) {\n MenuItem item = menu.add(\"Search\");\n item.setIcon(R.drawable.searchicon);\n item.setShowAsAction(MenuItem.SHOW_AS_ACTION_IF_ROOM);\n SearchView sv = new SearchView(getActivity());\n sv.setOnQueryTextListener(this);\n item.setActionView(sv);\n }",
"@Override\n public boolean onPrepareOptionsMenu(Menu menu) {\n // If the nav drawer is open, hide action items related to the content view\n boolean drawerOpen = mDrawerLayout.isDrawerOpen(mDrawerList);\n menu.findItem(R.id.action_websearch).setVisible(!drawerOpen);\n return super.onPrepareOptionsMenu(menu);\n }",
"@Override\n public boolean onPrepareOptionsMenu(Menu menu) {\n // If the nav drawer is open, hide action items related to the content view\n boolean drawerOpen = mDrawerLayout.isDrawerOpen(mDrawerList);\n menu.findItem(R.id.action_websearch).setVisible(!drawerOpen);\n return super.onPrepareOptionsMenu(menu);\n }",
"@Override\n public boolean onPrepareOptionsMenu(Menu menu) {\n // If the nav drawer is open, hide action items related to the content view\n boolean drawerOpen = mDrawerLayout.isDrawerOpen(mDrawerList);\n menu.findItem(R.id.action_websearch).setVisible(!drawerOpen);\n return super.onPrepareOptionsMenu(menu);\n }",
"@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n\n\n MenuInflater inflater = getMenuInflater();\n inflater.inflate(R.menu.menu_dashboard, menu);\n\n\n // Associate searchable configuration with the SearchView\n SearchManager searchManager =\n (SearchManager) getSystemService(Context.SEARCH_SERVICE);\n\n SearchView searchView =\n (SearchView) menu.findItem(R.id.search).getActionView();\n\n\n\n /*\n searchView.setSearchableInfo(\n searchManager.getSearchableInfo(getComponentName()));\n */\n\n\n return true;\n\n }",
"void hideSearch() {\r\n AccelerateDecelerateInterpolator interpolator = new AccelerateDecelerateInterpolator();\r\n\r\n // Setup the animation for mSearchView\r\n mSearchView.setPivotY(mSearchView.getHeight());\r\n ObjectAnimator searchAnim = ObjectAnimator.ofFloat(mSearchView, \"scaleY\", 1.0f, 0.0f);\r\n searchAnim.setDuration(100);\r\n searchAnim.addListener(new AnimatorListenerAdapter() {\r\n @Override\r\n public void onAnimationEnd(Animator animation) {\r\n // Set the visibility of the SearchView\r\n mSearchView.setVisibility(View.INVISIBLE);\r\n }\r\n });\r\n\r\n // Setup the animation for mTitle\r\n mTitle.setPivotY(mTitle.getHeight());\r\n ObjectAnimator titleAnim = ObjectAnimator.ofFloat(mTitle, \"scaleY\", 0.1f, 1.0f);\r\n searchAnim.setDuration(100);\r\n\r\n AnimatorSet animSet = new AnimatorSet();\r\n animSet.playSequentially(searchAnim, titleAnim);\r\n animSet.setInterpolator(interpolator);\r\n animSet.addListener(new AnimatorListenerAdapter() {\r\n @Override\r\n public void onAnimationStart(Animator animation) {\r\n // Hide the app title\r\n mTitle.setVisibility(View.VISIBLE);\r\n }\r\n });\r\n animSet.start();\r\n\r\n // Hide the SearchView and show the search icon\r\n mSearchIcon.setImageDrawable(ContextCompat.getDrawable(this, R.drawable.ic_menu_search));\r\n\r\n // Hide the Card allowing the user to search additional recipes online\r\n mSearchMore.setVisibility(View.GONE);\r\n\r\n if (mSearchListener != null) {\r\n // Reset the search filter\r\n mSearchView.setText(\"\");\r\n mSearchListener.onSearch(\"\");\r\n }\r\n\r\n // Hide the soft keyboard\r\n InputMethodManager imm = (InputMethodManager)getSystemService(Context.INPUT_METHOD_SERVICE);\r\n imm.hideSoftInputFromWindow(this.getCurrentFocus().getWindowToken(), 0);\r\n }",
"@Override\n\tpublic boolean isSearching() {\n\t\treturn false;\n\t}",
"@Override\n\tpublic boolean isSearching() {\n\t\treturn false;\n\t}",
"@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n // Inflate the menu; this adds items to the action bar if it is present.\n getMenuInflater().inflate(R.menu.main, menu);\n searchTv = menu.findItem(R.id.search_tv);\n searchMovie = menu.findItem(R.id.search_movie);\n\n MenuItem searchItem = menu.findItem(R.id.action_search);\n SearchView searchView = (SearchView) searchItem.getActionView();\n\n searchView.setOnQueryTextListener(new SearchView.OnQueryTextListener() {\n @Override\n public boolean onQueryTextSubmit(String query) {\n\n SearchResultsFragment fragment = new SearchResultsFragment();\n Bundle bundle = new Bundle();\n bundle.putString(\"searchQuery\",query);\n bundle.putBoolean(\"searchTv\",searchTv.isChecked());\n bundle.putBoolean(\"searchMovie\",searchMovie.isChecked());\n fragment.setArguments(bundle);\n FragmentManager manager = getSupportFragmentManager();\n manager.popBackStack(\"search\",FragmentManager.POP_BACK_STACK_INCLUSIVE);\n manager.beginTransaction().replace(R.id.main_container, fragment, fragment.getTag()).addToBackStack(\"search\").commit();\n\n\n return false;\n }\n\n @Override\n public boolean onQueryTextChange(String newText) {\n return false;\n }\n });\n\n\n return true;\n }",
"@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tgetMenuInflater().inflate(R.menu.main, menu);\n\t\tif (menu != null) {\n\t\t\tmenu.findItem(R.id.action_search).setVisible(false);\n\t\t}\n\t\treturn true;\n\t}",
"public void search(SearchView searchView, final LAdapter searchAdapter, final TextView textView){\n searchView.setOnQueryTextListener(new SearchView.OnQueryTextListener() {\n @Override\n public boolean onQueryTextSubmit(String query) {\n return false;\n }\n\n @Override\n public boolean onQueryTextChange(String newText) {\n searchAdapter.getFilter().filter(newText);\n return false;\n }\n });\n\n // Collapse header when search bar expands\n searchView.setOnSearchClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View v) {\n TextViewCompat.setTextAppearance(textView, R.style.disappear);\n }\n });\n\n // Restore header when search bar closes\n searchView.setOnCloseListener(new SearchView.OnCloseListener() {\n @Override\n public boolean onClose() {\n TextViewCompat.setTextAppearance(textView, R.style.appear);\n return false;\n }\n });\n }",
"@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n MenuInflater inflater = getMenuInflater();\n inflater.inflate(R.menu.search_menu1,menu);\n MenuItem searchItem = menu.findItem(R.id.search);\n\n //Associate searchable configuration with the SearchView\n SearchManager searchManager = (SearchManager)getSystemService(Context.SEARCH_SERVICE);\n SearchView searchView = null;\n\n if (searchItem != null) {\n searchView = (SearchView) searchItem.getActionView();\n }\n if (searchView != null) {\n ComponentName cn = new ComponentName(this, SearchResultActivity.class);\n searchView.setSearchableInfo(searchManager.getSearchableInfo(cn));\n //searchView.setSearchableInfo(searchManager.getSearchableInfo(getComponentName()));\n }\n return super.onCreateOptionsMenu(menu);\n /*\n SearchView searchView = (SearchView)menu.findItem(R.id.search).getActionView();\n searchView.setSearchableInfo(searchManager.getSearchableInfo(getComponentName()));\n return true;\n */\n }",
"@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tMenuInflater inflater = getMenuInflater();\n\t\tinflater.inflate(R.menu.menu_main, menu);\n\n\t\t// Inflate the menu; this adds items to the action bar if it is present.\n\t\tSearchManager searchManager = (SearchManager) getSystemService(Context.SEARCH_SERVICE);\n\t\tSearchView searchView = (SearchView) menu.findItem(R.id.action_search).getActionView();\n\t\tEditText searchEditText = searchView.findViewById(android.support.v7.appcompat.R.id.search_src_text);\n\t\tsearchView.setSearchableInfo(searchManager.getSearchableInfo(getComponentName()));\n\t\tsearchEditText.setHint(getString(R.string.search));\n\t\tsearchEditText.setTextColor(getResources().getColor(R.color.black));\n\t\tsearchEditText.setHintTextColor(getResources().getColor(R.color.grey));\n\n\t\tsearchView.setOnQueryTextListener(new SearchView.OnQueryTextListener() {\n\t\t\t@Override\n\t\t\tpublic boolean onQueryTextSubmit(String query) {\n\t\t\t\tadapter.getFilter().filter(query);\n\t\t\t\treturn false;\n\t\t\t}\n\n\t\t\t@Override\n\t\t\tpublic boolean onQueryTextChange(String newText) {\n\t\t\t\tadapter.getFilter().filter(newText);\n\t\t\t\treturn true;\n\t\t\t}\n\t\t});\n\n\t\tif (searchView.isIconified()) {\n\n\t\t}\n\n\t\treturn true;\n\t}",
"boolean hasPaidOrganicSearchTermView();",
"private void initSearchView() {\n SearchManager searchManager = (SearchManager) getActivity().getSystemService(Context.SEARCH_SERVICE);\n\n searchView.setSearchableInfo(searchManager.getSearchableInfo(getActivity().getComponentName()));\n searchView.setMaxWidth(Integer.MAX_VALUE);\n\n //listening to search query text change\n searchView.setOnQueryTextListener(new SearchView.OnQueryTextListener() {\n @Override\n public boolean onQueryTextSubmit(String query) {\n // filter recycler view when query submitted\n machineAdapter.getFilter().filter(query);\n return false;\n }\n\n @Override\n public boolean onQueryTextChange(String newText) {\n machineAdapter.getFilter().filter(newText);\n return false;\n }\n });\n\n }",
"public void onCreateOptionsMenu(Menu menu, MenuInflater inflater) {\n super.onCreateOptionsMenu(menu, inflater);\n //inflater.inflate(R.menu.menu_buscador,menu);\n MenuItem buscador = menu.findItem(R.id.buscador2);\n MenuItem carrito = menu.findItem(R.id.carrito);\n buscador.setVisible(true);\n carrito.setVisible(false);\n SearchView searchView = (SearchView) MenuItemCompat.getActionView(buscador);\n searchView.setOnQueryTextListener(this);\n MenuItemCompat.setOnActionExpandListener(buscador, new MenuItemCompat.OnActionExpandListener() {\n @Override\n public boolean onMenuItemActionExpand(MenuItem item) {\n return true;\n }\n\n @Override\n public boolean onMenuItemActionCollapse(MenuItem item) {\n adapter.setFilter(lista);\n return true;\n }\n });\n\n }",
"@Override\r\n public boolean onCreateOptionsMenu(Menu icon){\n\r\n MenuInflater expand = getMenuInflater();\r\n\r\n expand.inflate(R.menu.top_menu, icon); //Referencing to the specific menu\r\n\r\n MenuItem search = icon.findItem(R.id.search_bar);\r\n\r\n SearchView searchView = (SearchView) search.getActionView(); //Displays the search view button\r\n\r\n searchView.setOnQueryTextListener(new SearchView.OnQueryTextListener() {\r\n\r\n\r\n @Override\r\n public boolean onQueryTextSubmit(String s) {//Begins filtering here\r\n\r\n adapterDevices.getFilter().filter(s);\r\n\r\n return false;\r\n }\r\n //Sends typed string in search bar to trigger search\r\n\r\n\r\n //Method is triggered if there is text change\r\n @Override\r\n public boolean onQueryTextChange(String s) {\r\n\r\n if(s.equals(\"\")){ //When search bar is empty again the page is reloaded\r\n\r\n Intent refresh = new Intent(getApplicationContext(), MyDevicesActivity.class);\r\n\r\n startActivity(refresh);\r\n\r\n finish();\r\n\r\n }\r\n return false;\r\n }\r\n });\r\n\r\n\r\n return true;\r\n\r\n\r\n }",
"@Override public void onCreateOptionsMenu(Menu menu, MenuInflater inflater) {\n inflater.inflate(R.menu.menu_mainfragment, menu);\n final MenuItem searchButton = menu.findItem(R.id.search);\n searchButton.setShowAsAction(MenuItem.SHOW_AS_ACTION_ALWAYS);\n\n // bind processing of searchview results to this fragment\n // we get the theme for this activity so that text is rendered properly\n Context themectx = ((AppCompatActivity) getActivity()).getSupportActionBar().getThemedContext();\n final SearchView sv = new SearchView(themectx);\n sv.setOnQueryTextListener(new SearchView.OnQueryTextListener() {\n @Override\n public boolean onQueryTextSubmit(String query) {\n Log.d(LOG_TAG_APP, \"submitting query: \" + query);\n search(query);\n sv.onActionViewCollapsed(); // collapses searchbar and hides keyboard\n return true;\n }\n\n @Override\n public boolean onQueryTextChange(String newText) {\n Log.d(LOG_TAG_APP, \"listening for... \" + newText);\n return true;\n }\n });\n sv.setQueryHint(\"Search for an artist...\");\n sv.setOnCloseListener(null);\n sv.setIconifiedByDefault(true);\n\n searchButton.setActionView(sv);\n }",
"@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n MenuInflater inflater = getMenuInflater();\n inflater.inflate(R.menu.menu_search, menu);\n MenuItem searchItem = menu.findItem(R.id.action_search);\n final SearchView searchView = (SearchView) MenuItemCompat.getActionView(searchItem);\n searchView.setOnQueryTextListener(new SearchView.OnQueryTextListener() {\n // When a search is made, calls fetchArticles to make new request\n @Override\n public boolean onQueryTextSubmit(String query) {\n topStories = false;\n filter.setQuery(query);\n gvResults.clearOnScrollListeners();\n setUpRecycler();\n findViewById(R.id.relativeLayout).setVisibility(View.GONE);\n findViewById(R.id.tvHeading).setVisibility(View.GONE);\n fetchArticles(0,true);\n searchView.clearFocus();\n return true;\n }\n\n @Override\n public boolean onQueryTextChange(String newText) {\n return false;\n }\n });\n\n return super.onCreateOptionsMenu(menu);\n }",
"@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n getMenuInflater().inflate(R.menu.menu_search, menu);\n\n // hookup icon_search view in action bar\n MenuItem searchItem = menu.findItem(R.id.action_search);\n searchView = (SearchView) MenuItemCompat.getActionView(searchItem);\n searchView.setOnQueryTextListener(new SearchView.OnQueryTextListener() {\n @Override\n public boolean onQueryTextSubmit(String query) {\n // perform query here\n articleSearch(query, FIRST_PAGE);\n\n // workaround to avoid issues with some emulators and keyboard devices firing twice if a keyboard enter is used\n // see https://code.google.com/p/android/issues/detail?id=24599\n searchView.clearFocus();\n return true;\n }\n\n @Override\n public boolean onQueryTextChange(String newText) {\n return false;\n }\n });\n return super.onCreateOptionsMenu(menu);\n\n }",
"@TargetApi(Build.VERSION_CODES.HONEYCOMB)\n\t@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tgetMenuInflater().inflate(R.menu.main, menu);\n\t\t\n\t\tif (mQuery != null) {\n\t\t\tMenuItem settingsMenuItem = menu.findItem(R.id.settings);\n\t\t\tsettingsMenuItem.setEnabled(false);\n\t\t\tsettingsMenuItem.setVisible(false);\n\t\t}\n\t\t\n\t\tmSearchMenuItem = menu.findItem(R.id.search);\n\t\t\n\t\tif (Utils.hasHoneycomb()) {\n\t\t\tSearchManager searchManager = (SearchManager) getSystemService(Context.SEARCH_SERVICE);\n\t\t\tSearchView searchView = (SearchView) mSearchMenuItem.getActionView();\n\t\t\tsearchView.setSearchableInfo(searchManager.getSearchableInfo(getComponentName()));\n\t\t\tsearchView.setOnQueryTextListener(new OnQueryTextListener() {\n\t\t\t\t@Override\n\t\t public boolean onQueryTextSubmit(String query) {\n\t\t //Do nothing, results for the string supplied are already shown.\n\t\t //Just collapse search widget\n\t\t \tcloseSearch();\n\t\t return false;\n\t\t }\n\t\t @Override\n\t\t public boolean onQueryTextChange(String newText) {\n\t\t return false;\n\t\t }\n\t\t });\n\t\t\tsearchView.setOnSuggestionListener(new OnSuggestionListener() {\n\t\t\t\t@Override\n\t\t\t\tpublic boolean onSuggestionClick(int position) {\n\t\t\t\t\tcloseSearch();\n\t\t\t\t\treturn false;\n\t\t\t\t}\n\t\t\t\t@Override\n\t\t\t\tpublic boolean onSuggestionSelect(int position) {\n\t\t\t\t\treturn false;\n\t\t\t\t}\n\t\t\t});\n\t\t}\n\t\t\n\t\treturn true;\n\t}",
"@Override\n public boolean onPrepareOptionsMenu(Menu menu) {\n // If the nav drawer is open, hide action items related to the content view\n /*boolean drawerOpen = myDrawerLayout.isDrawerOpen(myDrawerList);\n menu.findItem(R.string.action_websearch).setVisible(!drawerOpen);*/\n return super.onPrepareOptionsMenu(menu);\n }",
"@Override\n protected boolean isActionBarBlurred() {\n return true;\n }",
"@Override\n\tpublic boolean isShowing() {\n\t\treturn false;\n\t}",
"protected boolean shouldUseActionsInsteadOfButtonBar() {\n DisplayMetrics metrics = new DisplayMetrics();\n getWindowManager().getDefaultDisplay().getMetrics(metrics);\n\n return convertPxToDip(metrics.heightPixels) < 350;\n }",
"boolean isNilSearchWindowStart();",
"@Override\r\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tgetMenuInflater().inflate(R.menu.main_alumno, menu);\r\n\t\t\r\n\t\tMenuItem searchItem = menu.findItem(R.id.buscarItem);\r\n\t SearchView searchView = (SearchView) MenuItemCompat.getActionView(searchItem);\r\n\t // Configure the search info and add any event listeners\r\n\t //searchView.setQueryHint(\"Buscar curso...\");\r\n\t\treturn true;\r\n\t}",
"@Override\n public boolean isShown() {\n return super.isShown();\n }",
"@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n getMenuInflater().inflate(R.menu.menu_list_clientes, menu);\n\n //para incorporar el search\n // Associate searchable configuration with the SearchView\n /* SearchManager searchManager = (SearchManager) getSystemService(Context.SEARCH_SERVICE);\n SearchView searchView = (SearchView) menu.findItem(R.id.search).getActionView();// .getActionView();\n searchView.setSearchableInfo(searchManager.getSearchableInfo(getComponentName()));\n searchView.setIconifiedByDefault(false); // Do not iconify the widget; expand it by default\n*/\n\n\n return true;\n }",
"@Override\r\n public boolean onCreateOptionsMenu(Menu menu) {\n getMenuInflater().inflate(R.menu.main, menu);\r\n SearchManager searchManager = (SearchManager) getSystemService(Context.SEARCH_SERVICE);\r\n SearchView searchView = (SearchView) menu.findItem(R.id.action_search).getActionView();\r\n\r\n searchView.setSearchableInfo(searchManager.getSearchableInfo(getComponentName()));\r\n searchView.setIconifiedByDefault(false);\r\n searchView.setOnQueryTextListener(new SearchView.OnQueryTextListener() {\r\n @Override\r\n public boolean onQueryTextSubmit(String query) {\r\n return false;\r\n }\r\n\r\n @Override\r\n public boolean onQueryTextChange(String newText) {\r\n setSearchFragement();\r\n\r\n List<String> searchedList = search(newText);\r\n adapter = new ArrayAdapter<String>(getApplicationContext(), android.R.layout.simple_list_item_1, searchedList);\r\n final ListView listview = (ListView) findViewById(R.id.listView1);\r\n adapter.getFilter().filter(newText);\r\n listview.setAdapter(adapter);\r\n return false;\r\n }\r\n });\r\n return true;\r\n }",
"@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n getMenuInflater().inflate(R.menu.main_menu, menu);\n\n // final SearchView searchView = (SearchView) MenuItemCompat.getActionView(menu.findItem(R.id.action_search));\n // SearchManager searchManager = (SearchManager) getSystemService(SEARCH_SERVICE);\n // searchView.setSearchableInfo(searchManager.getSearchableInfo(getComponentName()));\n\n /* final MenuItem searchItem = menu.findItem(R.id.action_search);\n final SearchView searchView = MenuItemCompat.getActionView(searchItem);\n searchView.setOnQueryTextListener(this);\n*/\n return true;\n }",
"@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n getMenuInflater().inflate(R.menu.toolbar, menu);\n MenuItem menuItem = menu.findItem(R.id.search);\n MenuItemCompat.setOnActionExpandListener(menuItem, new MenuItemCompat.OnActionExpandListener() {\n @Override\n public boolean onMenuItemActionExpand(MenuItem menuItem) {\n return true;\n }\n\n @Override\n public boolean onMenuItemActionCollapse(MenuItem menuItem) {\n LifeLabActivity.this.searchLab(\"\");\n return true;\n }\n });\n menuItem.setVisible(true);\n\n SearchManager searchManager =\n (SearchManager) getSystemService(Context.SEARCH_SERVICE);\n final SearchView searchView =\n (SearchView) menu.findItem(R.id.search).getActionView();\n\n searchView.setQueryHint(getResources().getString(R.string.search_hint));\n ((ImageView) searchView.findViewById(android.support.v7.appcompat.R.id.search_button)).setImageResource(R.drawable.search_b);\n searchView.setSearchableInfo(\n searchManager.getSearchableInfo(getComponentName()));\n searchView.setOnQueryTextListener(new SearchView.OnQueryTextListener() {\n\n @Override\n public boolean onQueryTextSubmit(String query) {\n// LifeLabActivity.this.searchLab(query);\n searchData(query);\n return false;\n }\n\n @Override\n public boolean onQueryTextChange(String newText) {\n return false;\n }\n });\n return true;\n }",
"@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n getMenuInflater().inflate(R.menu.log_in, menu);\n getMenuInflater().inflate(R.menu.searchfile, menu);\n final MenuItem myActionMenuItem = menu.findItem(id.search);\n searchView = (SearchView) myActionMenuItem.getActionView();\n changeSearchViewTextColor(searchView);\n ((EditText) searchView.findViewById(android.support.v7.appcompat.R.id.search_src_text)).setHintTextColor(getColor(color.white));\n searchView.setOnQueryTextListener(new SearchView.OnQueryTextListener() {\n @Override\n public boolean onQueryTextSubmit(String query) {\n if(!searchView.isIconified()){\n searchView.setIconified(true);\n }\n myActionMenuItem.collapseActionView();\n return false;\n }\n\n @Override\n public boolean onQueryTextChange(String newText) {\n final List<ClinicItem> filtermodelist = filter(clinicList, newText);\n adapter.setfilter(filtermodelist);\n return true;\n }\n });\n return true;\n }",
"@Override\n public void onCreateOptionsMenu(Menu menu, MenuInflater menuInflater) {\n super.onCreateOptionsMenu(menu, menuInflater);\n menu.clear();\n menuInflater.inflate(R.menu.search_menu, menu);\n MenuItem searchItem = menu.findItem(R.id.actionSearch);\n SearchView searchView = (SearchView) searchItem.getActionView();\n // below line is to call set on query text listener method.\n searchView.setOnQueryTextListener(new SearchView.OnQueryTextListener() {\n @Override\n public boolean onQueryTextSubmit(String query) {\n return false;\n }\n\n @Override\n public boolean onQueryTextChange(String newText) {\n // inside on query text change method we are\n // calling a method to filter our recycler view.\n filter(newText);\n return true;\n }\n });\n }",
"@java.lang.Override\n public boolean hasSearchRequest() {\n return searchRequest_ != null;\n }",
"private void showSearch() {\n\t\tonSearchRequested();\n\t}",
"boolean hasActionBar();",
"public void collapse() {\n searchView.setQuery(\"\", true);\n if (!searchView.isIconified()) {\n searchView.setIconified(true);\n }\n }",
"@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n getMenuInflater().inflate(R.menu.menu_main, menu);\n\n SearchManager searchManager = (SearchManager) getSystemService(Context.SEARCH_SERVICE);\n searchView = (SearchView) menu.findItem(R.id.action_search).getActionView();\n searchMenuItem = menu.findItem(R.id.action_search);\n searchView.setSearchableInfo(searchManager.getSearchableInfo(getComponentName()));\n searchView.setIconifiedByDefault(false);\n\n SearchView.OnQueryTextListener textChangeListener = new SearchView.OnQueryTextListener() {\n @Override\n public boolean onQueryTextChange(String newText) {\n // this is your adapter that will be filtered\n //dataAdapter.getFilter().filter(newText);\n Log.i(TAG, \"on text chnge text: \" + newText);\n\n\n rvAdapter.getFilter().filter(newText);\n rv.scrollToPosition(0);\n\n return true;\n }\n\n @Override\n public boolean onQueryTextSubmit(String query) {\n // this is your adapter that will be filtered\n //dataAdapter.getFilter().filter(query);\n Log.i(TAG, \"on query submit: \" + query);\n return true;\n }\n };\n searchView.setOnQueryTextListener(textChangeListener);\n\n\n return true;\n }",
"@Override\n public boolean onPrepareOptionsMenu(Menu menu) {\n // If the nav drawer is open, hide action items related to the content view\n //boolean drawerOpen = mDrawerLayout.isDrawerOpen(mDrawerList);\n //menu.findItem(R.id.action_websearch).setVisible(!drawerOpen);\n return super.onPrepareOptionsMenu(menu);\n }",
"private void showSearchView(String viewName)\n {\n currentSearchView = viewName;\n CardLayout cLayout = (CardLayout) searchPaneWrapper.getLayout();\n cLayout.show(searchPaneWrapper, viewName);\n }",
"@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n MenuInflater menuInflater = getMenuInflater();\n menuInflater.inflate(R.menu.action_bar_search, menu);\n\n // Get the search menu.\n// MenuItem searchMenu = menu.findItem(R.id.app_bar_menu_search);\n\n // Get SearchView object.\n// SearchView searchView = (SearchView) MenuItemCompat.getActionView(searchMenu);\n\n // Get SearchView autocomplete object.\n// final SearchView.SearchAutoComplete searchAutoComplete = (SearchView.SearchAutoComplete) searchView.findViewById(android.support.v7.appcompat.R.id.search_src_text);\n// searchAutoComplete.setBackgroundColor(Color.argb(01,79,80,81));\n// searchAutoComplete.setTextColor(Color.WHITE);\n// searchAutoComplete.setDropDownBackgroundResource(android.R.color.white);\n// String dataArr[] = {\"Apple\", \"Amazon\", \"Amd\", \"Microsoft\", \"Microwave\", \"MicroNews\", \"Intel\", \"Intelligence\"};\n// ArrayAdapter<String> newsAdapter = new ArrayAdapter<String>(this, android.R.layout.simple_dropdown_item_1line, dataArr);\n// searchAutoComplete.setAdapter(newsAdapter);\n// searchAutoComplete.setOnItemClickListener(new AdapterView.OnItemClickListener() {\n// @Override\n// public void onItemClick(AdapterView<?> adapterView, View view, int itemIndex, long id) {\n// String queryString = (String) adapterView.getItemAtPosition(itemIndex);\n// searchAutoComplete.setText(\"\" + queryString);\n// Toast.makeText(PostActivity.this, \"you clicked \" + queryString, Toast.LENGTH_LONG).show();\n// }\n// });\n// searchView.setOnQueryTextListener(new SearchView.OnQueryTextListener() {\n// @Override\n// public boolean onQueryTextSubmit(String query) {\n// AlertDialog alertDialog = new AlertDialog.Builder(PostActivity.this).create();\n// alertDialog.setMessage(\"Search keyword is \" + query);\n// alertDialog.show();\n// return false;\n// }\n//\n// @Override\n// public boolean onQueryTextChange(String newText) {\n// return false;\n// }\n// });\n return super.onCreateOptionsMenu(menu);\n }",
"@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n getMenuInflater().inflate(R. menu.filter_menu, menu);\n MenuItem searchItem = menu.findItem(R. id.action_search);\n SearchView searchView = (SearchView)\n searchItem.getActionView();\n searchView.setIconifiedByDefault(true);\n searchView.setImeOptions(EditorInfo.IME_ACTION_DONE);\n // SearchView searchView = (SearchView) menu.findItem(R.id.action_search).getActionView();\n searchView.setOnQueryTextListener(new SearchView.OnQueryTextListener() {\n @Override\n public boolean onQueryTextSubmit(String query) {\n\n adapteer.getFilter().filter(query);\n return false;\n }\n\n @Override\n public boolean onQueryTextChange(String newText) {\n // adapter.getFilter().filter(newText);\n // filter recycler view when query submitted\n adapteer.getFilter().filter(newText);\n return false;\n }\n\n\n });\n return true;\n }",
"@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n getMenuInflater().inflate(R.menu.menu_add_friends, menu);\n\n // Associate searchable configuration with the SearchView\n SearchManager searchManager = (SearchManager) getSystemService(Context.SEARCH_SERVICE);\n SearchView searchView = (SearchView) menu.findItem(R.id.action_search).getActionView();\n searchView.setSearchableInfo(searchManager.getSearchableInfo(getComponentName()));\n return true;\n }",
"@Override\n public boolean isSearchActive() {\n return dateTime != null && !dateTime.isDisposed() && dateTime.isEnabled();\n }",
"public boolean hasSearchRequest() {\n return searchRequestBuilder_ != null || searchRequest_ != null;\n }",
"@Override\n public boolean onPrepareOptionsMenu(Menu menu) {\n // If the nav drawer is open, hide action items related to the content view\n// boolean drawerOpen = mDrawerLayout.isDrawerOpen();\n //menu.findItem(R.id.action_websearch).setVisible(!drawerOpen);\n return super.onPrepareOptionsMenu(menu);\n }",
"@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n if (item.getItemId() == R.id.action_searchBar) {\n searchView.showSearch(true);\n searchView.setVisibility(View.VISIBLE);\n }\n //noinspection SimplifiableIfStatement\n// if (id == R.id.action_settings) {\n// startActivity(new Intent(Screen1.this,ReaderActivity.class));\n// }\n\n return super.onOptionsItemSelected(item);\n }",
"@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n getMenuInflater().inflate(R.menu.menu_main, menu);\n\n\n final MenuItem searchItem = menu.findItem(R.id.app_bar_search);\n searchView = (SearchView) MenuItemCompat.getActionView(searchItem);\n //permite modificar el hint que el EditText muestra por defecto\n searchView.setQueryHint(\"Busqueda cliente\");\n\n searchView.setOnCloseListener(new SearchView.OnCloseListener() {\n @Override\n public boolean onClose() {\n if(realiadabusqueda==true){\n listaCuentas=listaaux;\n rellenarListview(listaCuentas);\n\n realiadabusqueda=false;\n }\n\n return false;\n }\n });\n\n searchView.setOnQueryTextListener(new SearchView.OnQueryTextListener() {\n @Override\n public boolean onQueryTextSubmit(String query) {\n listaBusqueda.clear();\n for (Cliente cliente : listaCuentas) {\n String nombreclienteaux = cliente.nombreCliente;\n if (nombreclienteaux.contains(query)) {\n listaBusqueda.add(cliente);\n\n }\n\n }\n\n Toast.makeText(MainActivity.this, \"existen \" + listaBusqueda.size() + \" cuentas para este cliente\", Toast.LENGTH_SHORT).show();\n\n\n\n searchView.setQuery(\"\",false);\n listaaux=listaCuentas;\n listaCuentas=listaBusqueda;\n rellenarListview(listaCuentas);\n\n\n // marco el booleano\n realiadabusqueda=true;\n return true;\n\n }\n @Override\n public boolean onQueryTextChange(String newText) {\n\n\n return true;\n }\n\n\n });\n\n\n return true;\n }",
"public final boolean isFocusSearchDisabled() {\n return mLayoutManager.isFocusSearchDisabled();\n }",
"@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n getMenuInflater().inflate(R.menu.menu_main, menu);\n MenuItem menuItem = menu.findItem(R.id.action_search);\n\n searchView = (SearchView) MenuItemCompat.getActionView(menuItem);\n //since we start highlighted at item 0\n searchView.setQueryHint(\"Search Devices...\");\n searchView.setOnQueryTextListener(new SearchView.OnQueryTextListener() {\n @Override\n public boolean onQueryTextSubmit(String query) {\n return false;\n }\n\n @Override\n public boolean onQueryTextChange(String newText) {\n //search every fragment for the text entered\n // TODO: find a more efficient way to search.\n // maybe search only active tabs, and make sure to filter text upon switching tabs.\n // maybe just use multiple threads\n\n devicesFragment.getDevicesAdapter().getFilter().filter(newText);\n actionsFragment.getActionsAdapter().getFilter().filter(newText);\n return true;\n }\n });\n return true;\n }",
"boolean isInview();",
"@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n getMenuInflater().inflate(R.menu.main2, menu);\n\n SearchManager searchManager =\n (SearchManager) getSystemService(Context.SEARCH_SERVICE);\n final SearchView searchView =\n (SearchView) menu.findItem(R.id.app_bar_search).getActionView();\n searchView.setSearchableInfo(\n searchManager.getSearchableInfo(getComponentName()));\n searchView.setOnQueryTextListener(new SearchView.OnQueryTextListener() {\n @Override\n public boolean onQueryTextSubmit(String query) {\n //Toast.makeText(Main2Activity.this,query,Toast.LENGTH_LONG).show();\n //adapter.filter(query);\n return false;\n }\n\n @Override\n public boolean onQueryTextChange(String newText) {\n adapter.filter(newText);\n return false;\n }\n\n });\n\n\n\n return true;\n }",
"@Override\r\n public boolean onCreateOptionsMenu(Menu menu) {\r\n MenuInflater inflater = getMenuInflater();\r\n inflater.inflate(R.menu.menu_search, menu);\r\n mSearchView = (SearchView) menu.findItem(R.id.search_view).getActionView();\r\n setupSearchView();\r\n return true;\r\n }",
"boolean isSetSearchWindowStart();",
"private void setupSearchView() {\n SearchView search = binding.searchView;\n\n search.setQueryHint(\"Add companies...\");\n search.setIconifiedByDefault(false);\n search.setIconified(false);\n search.clearFocus();\n\n searchAutoComplete = search.findViewById(android.support.v7.appcompat.R.id.search_src_text);\n\n // Styling the search bar\n searchAutoComplete.setHintTextColor(Color.GRAY);\n searchAutoComplete.setTextColor(Color.GRAY);\n\n searchAutoComplete.setOnItemClickListener((adapterView, view, itemIndex, id) -> {\n SearchEntry entry = (SearchEntry) adapterView.getItemAtPosition(itemIndex);\n String ticker = entry.getTicker();\n ArrayList<String> tickers = new ArrayList<>();\n searchAutoComplete.setText(\"\");\n tickers.add(ticker);\n boolean duplicate = false;\n if (comparisonCompaniesAdapter.getDataSet() != null) {\n duplicate = checkDuplicate(comparisonCompaniesAdapter.getDataSet(), ticker);\n }\n if (!duplicate) {\n List<Company> companies = viewModel.getComparisonCompanies().getValue();\n int size = (companies == null) ? 0 : companies.size();\n\n if (size <= 10) {\n viewModel.addToComparisonCompanies(tickers);\n } else {\n Toast.makeText(this, \"Reached comparison limit!\", Toast.LENGTH_LONG).show();\n }\n }\n });\n\n search.setOnQueryTextListener(new SearchView.OnQueryTextListener() {\n @Override\n public boolean onQueryTextSubmit(String query) {\n return false;\n }\n\n @Override\n public boolean onQueryTextChange(String newText) {\n viewModel.loadSearchResults(newText);\n return false;\n }\n });\n }",
"@Override\n \tpublic void setSearchVisible(boolean searchVisible) {\n \t\tif (DisplayUtils.isInTestWebsite(cookies))\n \t\t\tsearchBox.setVisible(searchVisible);\n \t}",
"@Override\n protected boolean isAppropriate() {\n return true; // always show\n }",
"public void searchBarClick() {\n String searchText = searchView.getText().toString();\n if(searchText.equals(\"Age\")) {\n age.setVisibility(View.VISIBLE);\n sex.setVisibility(View.INVISIBLE);\n cp.setVisibility(View.INVISIBLE);\n trestbps.setVisibility(View.INVISIBLE);\n chol.setVisibility(View.INVISIBLE);\n fbs.setVisibility(View.INVISIBLE);\n restecg.setVisibility(View.INVISIBLE);\n thalach.setVisibility(View.INVISIBLE);\n exang.setVisibility(View.INVISIBLE);\n oldpeak.setVisibility(View.INVISIBLE);\n slope.setVisibility(View.INVISIBLE);\n ca.setVisibility(View.INVISIBLE);\n thal.setVisibility(View.INVISIBLE);\n imageSection.setVisibility(View.INVISIBLE);\n\n pregnancies.setVisibility(View.INVISIBLE);\n glucose.setVisibility(View.INVISIBLE);\n bloodPressure.setVisibility(View.INVISIBLE);\n skinThick.setVisibility(View.INVISIBLE);\n bmi.setVisibility(View.INVISIBLE);\n insulin.setVisibility(View.INVISIBLE);\n diabetes.setVisibility(View.INVISIBLE);\n } else if(searchText.equals(\"Sex\")) {\n age.setVisibility(View.INVISIBLE);\n sex.setVisibility(View.VISIBLE);\n cp.setVisibility(View.INVISIBLE);\n trestbps.setVisibility(View.INVISIBLE);\n chol.setVisibility(View.INVISIBLE);\n fbs.setVisibility(View.INVISIBLE);\n restecg.setVisibility(View.INVISIBLE);\n thalach.setVisibility(View.INVISIBLE);\n exang.setVisibility(View.INVISIBLE);\n oldpeak.setVisibility(View.INVISIBLE);\n slope.setVisibility(View.INVISIBLE);\n ca.setVisibility(View.INVISIBLE);\n thal.setVisibility(View.INVISIBLE);\n imageSection.setVisibility(View.INVISIBLE);\n\n pregnancies.setVisibility(View.INVISIBLE);\n glucose.setVisibility(View.INVISIBLE);\n bloodPressure.setVisibility(View.INVISIBLE);\n skinThick.setVisibility(View.INVISIBLE);\n bmi.setVisibility(View.INVISIBLE);\n insulin.setVisibility(View.INVISIBLE);\n diabetes.setVisibility(View.INVISIBLE);\n } else if(searchText.equals(\"Chest Pain\")) {\n age.setVisibility(View.INVISIBLE);\n sex.setVisibility(View.INVISIBLE);\n cp.setVisibility(View.VISIBLE);\n trestbps.setVisibility(View.INVISIBLE);\n chol.setVisibility(View.INVISIBLE);\n fbs.setVisibility(View.INVISIBLE);\n restecg.setVisibility(View.INVISIBLE);\n thalach.setVisibility(View.INVISIBLE);\n exang.setVisibility(View.INVISIBLE);\n oldpeak.setVisibility(View.INVISIBLE);\n slope.setVisibility(View.INVISIBLE);\n ca.setVisibility(View.INVISIBLE);\n thal.setVisibility(View.INVISIBLE);\n imageSection.setVisibility(View.INVISIBLE);\n\n pregnancies.setVisibility(View.INVISIBLE);\n glucose.setVisibility(View.INVISIBLE);\n bloodPressure.setVisibility(View.INVISIBLE);\n skinThick.setVisibility(View.INVISIBLE);\n bmi.setVisibility(View.INVISIBLE);\n insulin.setVisibility(View.INVISIBLE);\n diabetes.setVisibility(View.INVISIBLE);\n } else if(searchText.equals(\"Resting Blood Pressure\")) {\n age.setVisibility(View.INVISIBLE);\n sex.setVisibility(View.INVISIBLE);\n cp.setVisibility(View.INVISIBLE);\n trestbps.setVisibility(View.VISIBLE);\n chol.setVisibility(View.INVISIBLE);\n fbs.setVisibility(View.INVISIBLE);\n restecg.setVisibility(View.INVISIBLE);\n thalach.setVisibility(View.INVISIBLE);\n exang.setVisibility(View.INVISIBLE);\n oldpeak.setVisibility(View.INVISIBLE);\n slope.setVisibility(View.INVISIBLE);\n ca.setVisibility(View.INVISIBLE);\n thal.setVisibility(View.INVISIBLE);\n imageSection.setVisibility(View.INVISIBLE);\n\n pregnancies.setVisibility(View.INVISIBLE);\n glucose.setVisibility(View.INVISIBLE);\n bloodPressure.setVisibility(View.INVISIBLE);\n skinThick.setVisibility(View.INVISIBLE);\n bmi.setVisibility(View.INVISIBLE);\n insulin.setVisibility(View.INVISIBLE);\n diabetes.setVisibility(View.INVISIBLE);\n } else if(searchText.equals(\"Serum Cholesterol\")) {\n age.setVisibility(View.INVISIBLE);\n sex.setVisibility(View.INVISIBLE);\n cp.setVisibility(View.INVISIBLE);\n trestbps.setVisibility(View.INVISIBLE);\n chol.setVisibility(View.VISIBLE);\n fbs.setVisibility(View.INVISIBLE);\n restecg.setVisibility(View.INVISIBLE);\n thalach.setVisibility(View.INVISIBLE);\n exang.setVisibility(View.INVISIBLE);\n oldpeak.setVisibility(View.INVISIBLE);\n slope.setVisibility(View.INVISIBLE);\n ca.setVisibility(View.INVISIBLE);\n thal.setVisibility(View.INVISIBLE);\n imageSection.setVisibility(View.INVISIBLE);\n\n pregnancies.setVisibility(View.INVISIBLE);\n glucose.setVisibility(View.INVISIBLE);\n bloodPressure.setVisibility(View.INVISIBLE);\n skinThick.setVisibility(View.INVISIBLE);\n bmi.setVisibility(View.INVISIBLE);\n insulin.setVisibility(View.INVISIBLE);\n diabetes.setVisibility(View.INVISIBLE);\n } else if(searchText.equals(\"Fasting Blood Sugar Larger\")) {\n age.setVisibility(View.INVISIBLE);\n sex.setVisibility(View.INVISIBLE);\n cp.setVisibility(View.INVISIBLE);\n trestbps.setVisibility(View.INVISIBLE);\n chol.setVisibility(View.INVISIBLE);\n fbs.setVisibility(View.VISIBLE);\n restecg.setVisibility(View.INVISIBLE);\n thalach.setVisibility(View.INVISIBLE);\n exang.setVisibility(View.INVISIBLE);\n oldpeak.setVisibility(View.INVISIBLE);\n slope.setVisibility(View.INVISIBLE);\n ca.setVisibility(View.INVISIBLE);\n thal.setVisibility(View.INVISIBLE);\n imageSection.setVisibility(View.INVISIBLE);\n\n pregnancies.setVisibility(View.INVISIBLE);\n glucose.setVisibility(View.INVISIBLE);\n bloodPressure.setVisibility(View.INVISIBLE);\n skinThick.setVisibility(View.INVISIBLE);\n bmi.setVisibility(View.INVISIBLE);\n insulin.setVisibility(View.INVISIBLE);\n diabetes.setVisibility(View.INVISIBLE);\n } else if(searchText.equals(\"Resting Electroc. Result\")) {\n age.setVisibility(View.INVISIBLE);\n sex.setVisibility(View.INVISIBLE);\n cp.setVisibility(View.INVISIBLE);\n trestbps.setVisibility(View.INVISIBLE);\n chol.setVisibility(View.INVISIBLE);\n fbs.setVisibility(View.INVISIBLE);\n restecg.setVisibility(View.VISIBLE);\n thalach.setVisibility(View.INVISIBLE);\n exang.setVisibility(View.INVISIBLE);\n oldpeak.setVisibility(View.INVISIBLE);\n slope.setVisibility(View.INVISIBLE);\n ca.setVisibility(View.INVISIBLE);\n thal.setVisibility(View.INVISIBLE);\n imageSection.setVisibility(View.INVISIBLE);\n\n pregnancies.setVisibility(View.INVISIBLE);\n glucose.setVisibility(View.INVISIBLE);\n bloodPressure.setVisibility(View.INVISIBLE);\n skinThick.setVisibility(View.INVISIBLE);\n bmi.setVisibility(View.INVISIBLE);\n insulin.setVisibility(View.INVISIBLE);\n diabetes.setVisibility(View.INVISIBLE);\n } else if(searchText.equals(\"Maximum Heart Rate Achieved\")) {\n age.setVisibility(View.INVISIBLE);\n sex.setVisibility(View.INVISIBLE);\n cp.setVisibility(View.INVISIBLE);\n trestbps.setVisibility(View.INVISIBLE);\n chol.setVisibility(View.INVISIBLE);\n fbs.setVisibility(View.INVISIBLE);\n restecg.setVisibility(View.INVISIBLE);\n thalach.setVisibility(View.VISIBLE);\n exang.setVisibility(View.INVISIBLE);\n oldpeak.setVisibility(View.INVISIBLE);\n slope.setVisibility(View.INVISIBLE);\n ca.setVisibility(View.INVISIBLE);\n thal.setVisibility(View.INVISIBLE);\n imageSection.setVisibility(View.INVISIBLE);\n\n pregnancies.setVisibility(View.INVISIBLE);\n glucose.setVisibility(View.INVISIBLE);\n bloodPressure.setVisibility(View.INVISIBLE);\n skinThick.setVisibility(View.INVISIBLE);\n bmi.setVisibility(View.INVISIBLE);\n insulin.setVisibility(View.INVISIBLE);\n diabetes.setVisibility(View.INVISIBLE);\n } else if(searchText.equals(\"Exercise Induced Angina\")) {\n age.setVisibility(View.INVISIBLE);\n sex.setVisibility(View.INVISIBLE);\n cp.setVisibility(View.INVISIBLE);\n trestbps.setVisibility(View.INVISIBLE);\n chol.setVisibility(View.INVISIBLE);\n fbs.setVisibility(View.INVISIBLE);\n restecg.setVisibility(View.INVISIBLE);\n thalach.setVisibility(View.INVISIBLE);\n exang.setVisibility(View.VISIBLE);\n oldpeak.setVisibility(View.INVISIBLE);\n slope.setVisibility(View.INVISIBLE);\n ca.setVisibility(View.INVISIBLE);\n thal.setVisibility(View.INVISIBLE);\n imageSection.setVisibility(View.INVISIBLE);\n\n pregnancies.setVisibility(View.INVISIBLE);\n glucose.setVisibility(View.INVISIBLE);\n bloodPressure.setVisibility(View.INVISIBLE);\n skinThick.setVisibility(View.INVISIBLE);\n bmi.setVisibility(View.INVISIBLE);\n insulin.setVisibility(View.INVISIBLE);\n diabetes.setVisibility(View.INVISIBLE);\n } else if(searchText.equals(\"ST Depression Induc. ex.\")) {\n age.setVisibility(View.INVISIBLE);\n sex.setVisibility(View.INVISIBLE);\n cp.setVisibility(View.INVISIBLE);\n trestbps.setVisibility(View.INVISIBLE);\n chol.setVisibility(View.INVISIBLE);\n fbs.setVisibility(View.INVISIBLE);\n restecg.setVisibility(View.INVISIBLE);\n thalach.setVisibility(View.INVISIBLE);\n exang.setVisibility(View.INVISIBLE);\n oldpeak.setVisibility(View.VISIBLE);\n slope.setVisibility(View.INVISIBLE);\n ca.setVisibility(View.INVISIBLE);\n thal.setVisibility(View.INVISIBLE);\n imageSection.setVisibility(View.INVISIBLE);\n\n pregnancies.setVisibility(View.INVISIBLE);\n glucose.setVisibility(View.INVISIBLE);\n bloodPressure.setVisibility(View.INVISIBLE);\n skinThick.setVisibility(View.INVISIBLE);\n bmi.setVisibility(View.INVISIBLE);\n insulin.setVisibility(View.INVISIBLE);\n diabetes.setVisibility(View.INVISIBLE);\n } else if(searchText.equals(\"Slope of Peak Exercise ST\")) {\n age.setVisibility(View.INVISIBLE);\n sex.setVisibility(View.INVISIBLE);\n cp.setVisibility(View.INVISIBLE);\n trestbps.setVisibility(View.INVISIBLE);\n chol.setVisibility(View.INVISIBLE);\n fbs.setVisibility(View.INVISIBLE);\n restecg.setVisibility(View.INVISIBLE);\n thalach.setVisibility(View.INVISIBLE);\n exang.setVisibility(View.INVISIBLE);\n oldpeak.setVisibility(View.INVISIBLE);\n slope.setVisibility(View.VISIBLE);\n ca.setVisibility(View.INVISIBLE);\n thal.setVisibility(View.INVISIBLE);\n imageSection.setVisibility(View.INVISIBLE);\n\n pregnancies.setVisibility(View.INVISIBLE);\n glucose.setVisibility(View.INVISIBLE);\n bloodPressure.setVisibility(View.INVISIBLE);\n skinThick.setVisibility(View.INVISIBLE);\n bmi.setVisibility(View.INVISIBLE);\n insulin.setVisibility(View.INVISIBLE);\n diabetes.setVisibility(View.INVISIBLE);\n } else if(searchText.equals(\"Number of Major Vessel\")) {\n age.setVisibility(View.INVISIBLE);\n sex.setVisibility(View.INVISIBLE);\n cp.setVisibility(View.INVISIBLE);\n trestbps.setVisibility(View.INVISIBLE);\n chol.setVisibility(View.INVISIBLE);\n fbs.setVisibility(View.INVISIBLE);\n restecg.setVisibility(View.INVISIBLE);\n thalach.setVisibility(View.INVISIBLE);\n exang.setVisibility(View.INVISIBLE);\n oldpeak.setVisibility(View.INVISIBLE);\n slope.setVisibility(View.INVISIBLE);\n ca.setVisibility(View.VISIBLE);\n thal.setVisibility(View.INVISIBLE);\n imageSection.setVisibility(View.INVISIBLE);\n\n pregnancies.setVisibility(View.INVISIBLE);\n glucose.setVisibility(View.INVISIBLE);\n bloodPressure.setVisibility(View.INVISIBLE);\n skinThick.setVisibility(View.INVISIBLE);\n bmi.setVisibility(View.INVISIBLE);\n insulin.setVisibility(View.INVISIBLE);\n diabetes.setVisibility(View.INVISIBLE);\n } else if(searchText.equals(\"Thalassemia\")) {\n age.setVisibility(View.INVISIBLE);\n sex.setVisibility(View.INVISIBLE);\n cp.setVisibility(View.INVISIBLE);\n trestbps.setVisibility(View.INVISIBLE);\n chol.setVisibility(View.INVISIBLE);\n fbs.setVisibility(View.INVISIBLE);\n restecg.setVisibility(View.INVISIBLE);\n thalach.setVisibility(View.INVISIBLE);\n exang.setVisibility(View.INVISIBLE);\n oldpeak.setVisibility(View.INVISIBLE);\n slope.setVisibility(View.INVISIBLE);\n ca.setVisibility(View.INVISIBLE);\n thal.setVisibility(View.VISIBLE);\n imageSection.setVisibility(View.INVISIBLE);\n\n pregnancies.setVisibility(View.INVISIBLE);\n glucose.setVisibility(View.INVISIBLE);\n bloodPressure.setVisibility(View.INVISIBLE);\n skinThick.setVisibility(View.INVISIBLE);\n bmi.setVisibility(View.INVISIBLE);\n insulin.setVisibility(View.INVISIBLE);\n diabetes.setVisibility(View.INVISIBLE);\n } else if(searchText.equals(\"Pregnancies\")) {\n age.setVisibility(View.INVISIBLE);\n sex.setVisibility(View.INVISIBLE);\n cp.setVisibility(View.INVISIBLE);\n trestbps.setVisibility(View.INVISIBLE);\n chol.setVisibility(View.INVISIBLE);\n fbs.setVisibility(View.INVISIBLE);\n restecg.setVisibility(View.INVISIBLE);\n thalach.setVisibility(View.INVISIBLE);\n exang.setVisibility(View.INVISIBLE);\n oldpeak.setVisibility(View.INVISIBLE);\n slope.setVisibility(View.INVISIBLE);\n ca.setVisibility(View.INVISIBLE);\n thal.setVisibility(View.INVISIBLE);\n imageSection.setVisibility(View.INVISIBLE);\n\n pregnancies.setVisibility(View.VISIBLE);\n glucose.setVisibility(View.INVISIBLE);\n bloodPressure.setVisibility(View.INVISIBLE);\n skinThick.setVisibility(View.INVISIBLE);\n bmi.setVisibility(View.INVISIBLE);\n insulin.setVisibility(View.INVISIBLE);\n diabetes.setVisibility(View.INVISIBLE);\n } else if(searchText.equals(\"Glucose\")) {\n age.setVisibility(View.INVISIBLE);\n sex.setVisibility(View.INVISIBLE);\n cp.setVisibility(View.INVISIBLE);\n trestbps.setVisibility(View.INVISIBLE);\n chol.setVisibility(View.INVISIBLE);\n fbs.setVisibility(View.INVISIBLE);\n restecg.setVisibility(View.INVISIBLE);\n thalach.setVisibility(View.INVISIBLE);\n exang.setVisibility(View.INVISIBLE);\n oldpeak.setVisibility(View.INVISIBLE);\n slope.setVisibility(View.INVISIBLE);\n ca.setVisibility(View.INVISIBLE);\n thal.setVisibility(View.INVISIBLE);\n imageSection.setVisibility(View.INVISIBLE);\n\n pregnancies.setVisibility(View.INVISIBLE);\n glucose.setVisibility(View.VISIBLE);\n bloodPressure.setVisibility(View.INVISIBLE);\n skinThick.setVisibility(View.INVISIBLE);\n bmi.setVisibility(View.INVISIBLE);\n insulin.setVisibility(View.INVISIBLE);\n diabetes.setVisibility(View.INVISIBLE);\n } else if(searchText.equals(\"Blood Pressure\")) {\n age.setVisibility(View.INVISIBLE);\n sex.setVisibility(View.INVISIBLE);\n cp.setVisibility(View.INVISIBLE);\n trestbps.setVisibility(View.INVISIBLE);\n chol.setVisibility(View.INVISIBLE);\n fbs.setVisibility(View.INVISIBLE);\n restecg.setVisibility(View.INVISIBLE);\n thalach.setVisibility(View.INVISIBLE);\n exang.setVisibility(View.INVISIBLE);\n oldpeak.setVisibility(View.INVISIBLE);\n slope.setVisibility(View.INVISIBLE);\n ca.setVisibility(View.INVISIBLE);\n thal.setVisibility(View.INVISIBLE);\n imageSection.setVisibility(View.INVISIBLE);\n\n pregnancies.setVisibility(View.INVISIBLE);\n glucose.setVisibility(View.INVISIBLE);\n bloodPressure.setVisibility(View.VISIBLE);\n skinThick.setVisibility(View.INVISIBLE);\n bmi.setVisibility(View.INVISIBLE);\n insulin.setVisibility(View.INVISIBLE);\n diabetes.setVisibility(View.INVISIBLE);\n } else if(searchText.equals(\"Skin Thickness\")) {\n age.setVisibility(View.INVISIBLE);\n sex.setVisibility(View.INVISIBLE);\n cp.setVisibility(View.INVISIBLE);\n trestbps.setVisibility(View.INVISIBLE);\n chol.setVisibility(View.INVISIBLE);\n fbs.setVisibility(View.INVISIBLE);\n restecg.setVisibility(View.INVISIBLE);\n thalach.setVisibility(View.INVISIBLE);\n exang.setVisibility(View.INVISIBLE);\n oldpeak.setVisibility(View.INVISIBLE);\n slope.setVisibility(View.INVISIBLE);\n ca.setVisibility(View.INVISIBLE);\n thal.setVisibility(View.INVISIBLE);\n imageSection.setVisibility(View.INVISIBLE);\n\n pregnancies.setVisibility(View.INVISIBLE);\n glucose.setVisibility(View.INVISIBLE);\n bloodPressure.setVisibility(View.INVISIBLE);\n skinThick.setVisibility(View.VISIBLE);\n bmi.setVisibility(View.INVISIBLE);\n insulin.setVisibility(View.INVISIBLE);\n diabetes.setVisibility(View.INVISIBLE);\n } else if(searchText.equals(\"Insulin\")) {\n age.setVisibility(View.INVISIBLE);\n sex.setVisibility(View.INVISIBLE);\n cp.setVisibility(View.INVISIBLE);\n trestbps.setVisibility(View.INVISIBLE);\n chol.setVisibility(View.INVISIBLE);\n fbs.setVisibility(View.INVISIBLE);\n restecg.setVisibility(View.INVISIBLE);\n thalach.setVisibility(View.INVISIBLE);\n exang.setVisibility(View.INVISIBLE);\n oldpeak.setVisibility(View.INVISIBLE);\n slope.setVisibility(View.INVISIBLE);\n ca.setVisibility(View.INVISIBLE);\n thal.setVisibility(View.INVISIBLE);\n imageSection.setVisibility(View.INVISIBLE);\n\n pregnancies.setVisibility(View.INVISIBLE);\n glucose.setVisibility(View.INVISIBLE);\n bloodPressure.setVisibility(View.INVISIBLE);\n skinThick.setVisibility(View.INVISIBLE);\n bmi.setVisibility(View.INVISIBLE);\n insulin.setVisibility(View.VISIBLE);\n diabetes.setVisibility(View.INVISIBLE);\n } else if(searchText.equals(\"BMI\")) {\n age.setVisibility(View.INVISIBLE);\n sex.setVisibility(View.INVISIBLE);\n cp.setVisibility(View.INVISIBLE);\n trestbps.setVisibility(View.INVISIBLE);\n chol.setVisibility(View.INVISIBLE);\n fbs.setVisibility(View.INVISIBLE);\n restecg.setVisibility(View.INVISIBLE);\n thalach.setVisibility(View.INVISIBLE);\n exang.setVisibility(View.INVISIBLE);\n oldpeak.setVisibility(View.INVISIBLE);\n slope.setVisibility(View.INVISIBLE);\n ca.setVisibility(View.INVISIBLE);\n thal.setVisibility(View.INVISIBLE);\n imageSection.setVisibility(View.INVISIBLE);\n\n pregnancies.setVisibility(View.INVISIBLE);\n glucose.setVisibility(View.INVISIBLE);\n bloodPressure.setVisibility(View.INVISIBLE);\n skinThick.setVisibility(View.INVISIBLE);\n bmi.setVisibility(View.VISIBLE);\n insulin.setVisibility(View.INVISIBLE);\n diabetes.setVisibility(View.INVISIBLE);\n } else if(searchText.equals(\"Diabetes Pedigree Function\")) {\n age.setVisibility(View.INVISIBLE);\n sex.setVisibility(View.INVISIBLE);\n cp.setVisibility(View.INVISIBLE);\n trestbps.setVisibility(View.INVISIBLE);\n chol.setVisibility(View.INVISIBLE);\n fbs.setVisibility(View.INVISIBLE);\n restecg.setVisibility(View.INVISIBLE);\n thalach.setVisibility(View.INVISIBLE);\n exang.setVisibility(View.INVISIBLE);\n oldpeak.setVisibility(View.INVISIBLE);\n slope.setVisibility(View.INVISIBLE);\n ca.setVisibility(View.INVISIBLE);\n thal.setVisibility(View.INVISIBLE);\n imageSection.setVisibility(View.INVISIBLE);\n\n pregnancies.setVisibility(View.INVISIBLE);\n glucose.setVisibility(View.INVISIBLE);\n bloodPressure.setVisibility(View.INVISIBLE);\n skinThick.setVisibility(View.INVISIBLE);\n bmi.setVisibility(View.INVISIBLE);\n insulin.setVisibility(View.INVISIBLE);\n diabetes.setVisibility(View.VISIBLE);\n } else {\n age.setVisibility(View.INVISIBLE);\n sex.setVisibility(View.INVISIBLE);\n cp.setVisibility(View.INVISIBLE);\n trestbps.setVisibility(View.INVISIBLE);\n chol.setVisibility(View.INVISIBLE);\n fbs.setVisibility(View.INVISIBLE);\n restecg.setVisibility(View.INVISIBLE);\n thalach.setVisibility(View.INVISIBLE);\n exang.setVisibility(View.INVISIBLE);\n oldpeak.setVisibility(View.INVISIBLE);\n slope.setVisibility(View.INVISIBLE);\n ca.setVisibility(View.INVISIBLE);\n thal.setVisibility(View.INVISIBLE);\n imageSection.setVisibility(View.INVISIBLE);\n\n pregnancies.setVisibility(View.INVISIBLE);\n glucose.setVisibility(View.INVISIBLE);\n bloodPressure.setVisibility(View.INVISIBLE);\n skinThick.setVisibility(View.INVISIBLE);\n bmi.setVisibility(View.INVISIBLE);\n insulin.setVisibility(View.INVISIBLE);\n diabetes.setVisibility(View.INVISIBLE);\n }\n }",
"@SuppressLint(\"NewApi\")\n\t@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tsuper.onCreateOptionsMenu(menu);\n\t\tgetMenuInflater().inflate(R.menu.activity_main_viewer, menu);\n\t\tSearchManager sMan = (SearchManager) getSystemService(Context.SEARCH_SERVICE);\n\t\tLog.v(CLASS_NAME, \"Search manager acquired\");\n\t\tMenuItem searchItem = menu.findItem(R.id.search);\n\t\tif (searchItem == null) {\n\t\t\tLog.v(CLASS_NAME, \"searchItem null\");\n\t\t}\n\t\tLog.v(CLASS_NAME, searchItem.toString());\n\t\tSearchView sView = (SearchView) MenuItemCompat\n\t\t\t\t.getActionView(searchItem);\n\t\tif (sView == null) {\n\t\t\tLog.v(CLASS_NAME, \"sView Null!\");\n\t\t}\n\t\tLog.v(CLASS_NAME, \"Search view acquired\");\n\t\tSearchableInfo info = sMan.getSearchableInfo(getComponentName());\n\t\tLog.v(CLASS_NAME, \"Search info acquired: \" + info.toString());\n\t\tsView.setSearchableInfo(info);\n\t\tLog.v(CLASS_NAME, \"Searchable Info set\");\n\t\tsView.setIconifiedByDefault(true);\n\t\tLog.v(CLASS_NAME, \"Iconified by default set\");\n\t\treturn true;\n\t}",
"public boolean isVBarShowing() { return getVBar().getParent()!=null; }"
] |
[
"0.64008147",
"0.636376",
"0.61439145",
"0.60080945",
"0.60071886",
"0.5991784",
"0.5820947",
"0.57646304",
"0.56281847",
"0.5609572",
"0.5584415",
"0.5559674",
"0.5519955",
"0.5506996",
"0.54851675",
"0.54763407",
"0.5466236",
"0.54650664",
"0.5458325",
"0.5443995",
"0.54429996",
"0.5442727",
"0.54149723",
"0.54107875",
"0.5407715",
"0.53998715",
"0.53981763",
"0.5389404",
"0.53831774",
"0.5375427",
"0.53681743",
"0.53636825",
"0.5359966",
"0.53475577",
"0.5328166",
"0.53273606",
"0.5318566",
"0.531669",
"0.53128284",
"0.53106827",
"0.52971274",
"0.52932024",
"0.52932024",
"0.52932024",
"0.5289166",
"0.5276287",
"0.5273222",
"0.5273222",
"0.5272977",
"0.526434",
"0.5261975",
"0.52585334",
"0.5254555",
"0.5254148",
"0.525155",
"0.5236856",
"0.5213164",
"0.52125764",
"0.5211514",
"0.5208497",
"0.5206975",
"0.5195885",
"0.51921624",
"0.5190226",
"0.5187478",
"0.51852703",
"0.5182681",
"0.5173594",
"0.5168689",
"0.51684994",
"0.5166775",
"0.5159398",
"0.515586",
"0.5155462",
"0.5155042",
"0.5141581",
"0.5140345",
"0.51359844",
"0.51242965",
"0.5107828",
"0.51035655",
"0.51017046",
"0.50959265",
"0.5094085",
"0.5084517",
"0.50839925",
"0.50817096",
"0.5081127",
"0.5080228",
"0.50754976",
"0.50699455",
"0.50585926",
"0.5054472",
"0.5047942",
"0.50429916",
"0.50415444",
"0.5040747",
"0.5034071",
"0.5033136",
"0.50312334",
"0.50203496"
] |
0.0
|
-1
|
Number of sections in this table view.
|
public native int getSectionCount() /*-{
var jso = this.@com.emitrom.ti4j.core.client.ProxyObject::getJsObj()();
return jso.sectionCount;
}-*/;
|
{
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
}
|
[
"@Kroll.getProperty\n\tpublic int getSectionCount()\n\t{\n\t\treturn getSections().length;\n\t}",
"public int getCount() {\n \t\tint total = 0;\n \t\tfor(Adapter adapter : this.sections.values())\n \t\t\ttotal += adapter.getCount() + 1;\n \t\treturn total;\n \t}",
"@Override\n\tpublic int getGroupCount() {\n\t\treturn sections.size();\n\t}",
"public synchronized int getSectionCount() {\n if (sections != null) {\n return sections.length;\n } else if (PropertyArray.get(props, SECTIONS) != null) {\n return parseSectionCount(PropertyArray.get(props, SECTIONS));\n } else {\n // hum, test props are never discarded, so we have no sections\n return 0;\n }\n }",
"public int getNumRows() {\n\t\treturn this.subset.length;\n\t}",
"public int getNumRows() { return numRows; }",
"int getCellsCount();",
"public int getNumRows() {\n return numRows;\n }",
"public int getNumRows() {\n return numRows;\n }",
"public int getNumRows() { \t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t// Getter for the number of rows\n\t\treturn numRows; \n\t}",
"public int getNumRows() {\n\t\treturn numRows;\n\t}",
"private int numRows(){\n return attrTable.getModel().getRowCount();\n }",
"public static int size() {\n return cells.size();\n }",
"public int getNumberOfCells() {\n return tableCellList.size();\n }",
"public int size() {\n return numberOfRows();\n }",
"public int getNumRows() {\n\t\treturn NUM_ROWS; \n\t}",
"public int getNumRows() { return index.size(); }",
"public int getCellsCount() {\n return cells_.size();\n }",
"public int getCellsCount() {\n if (cellsBuilder_ == null) {\n return cells_.size();\n } else {\n return cellsBuilder_.getCount();\n }\n }",
"public int numberOfSegments() {\n\t\treturn count;\n\t}",
"public int size() {\r\n return cells.size();\r\n }",
"int getColumnsCount();",
"int getColumnsCount();",
"public abstract int getNumOfRows();",
"public int size() {\n\treturn slices*rows*columns;\n}",
"public int getnRows() {\n return nRows;\n }",
"public int getnRows() {\n return nRows;\n }",
"public abstract int getViewRowCount();",
"public static int friendCount(){\n return showing.size() - sections.size();\n }",
"public int getRows() {\n\t\treturn NUM_OF_ROWS;\n\t}",
"public int numberOfSegments() {\n return segments.size();\n }",
"public abstract int getNumRows();",
"int getRowsCount();",
"public int getTotalRows();",
"public int get_nr_of_segments() {\n return nr_of_segments;\n }",
"public int getNumberOfEntries()\r\n\t{\r\n\t\treturn tr.size();\r\n\t}",
"public int getViewTypeCount() {\n \t\tint total = 1;\n \t\tfor(Adapter adapter : this.sections.values())\n \t\t\ttotal += adapter.getViewTypeCount();\n \t\treturn total;\n \t}",
"public int numberOfSegments() {\n return nOfSegs;\n }",
"public int numberOfSegments() {\r\n return numberOfSegments;\r\n }",
"public int lines( )\n {\n int lin = 0;\n\n if( table != null )\n {\n lin = table.length;\n } //end\n return(lin);\n }",
"public int rows() {\n\treturn rows;\n}",
"public int getRowCount() {\r\n\t\treturn(noOfRows);\r\n\t}",
"public int getNumberOfRows() {\n return this.numberOfRows;\n }",
"public abstract int getNumColumns();",
"public int columnCount() {\n\t\treturn n_;\n\t}",
"@Override\n\tpublic int size() {\n\t\tint tamano = 0;\n\t\tint i = 0;\n\t\tIterator it = tabla.iterator();\n\t\twhile (it.hasNext()) {\n\t\t\tit.next();\n\t\t\ttamano += tabla.get(i).keySet().size();\n\t\t\ti++;\n\t\t}\n\t\treturn tamano;\n\t}",
"public int getNumColumns() { return columns.length; }",
"public int getRowCount()\n {\n // Get level of the node to be displayed\n int rowCount = displayNode.getLevel();\n \n // Add number of children\n rowCount = rowCount + displayNode.getChildCount();\n \n // Increment by 1 if the root node is being displayed\n if (rootVisible) \n { \n rowCount++; \n }\n \n // Return number of rows\n return rowCount;\n }",
"public int getRowsCount() {\n return rows_.size();\n }",
"public int numberOfSegments() { \n\t\treturn numOfSeg;\n\t}",
"public int getRowCount()\n {\n return numRows;\n }",
"public int numberOfSegments() {\n return numOfSegments;\n }",
"int tableSize();",
"public int getRowsCount() {\n return rows_.size();\n }",
"public int rowCount() {\n\t\treturn n_;\n\t}",
"int getNumSegments();",
"@Override\n\t\t\t\tpublic int getViewRowCount() {\n\t\t\t\t\treturn model.getListaBase().size();\n\t\t\t\t}",
"public int totalRowsCount();",
"@Override\n public int getNumOfPageRows() {\n return 10;\n }",
"int getTablesCount();",
"public int numberOfSegments() {\n return this.segments.length;\n }",
"public int numberOfSegments() {\n return lineSegments.size();\n }",
"public int numberOfSegments() {\n return lineSegments.size();\n }",
"public int getRowCount() {\n return noeuds.size();\n }",
"public int tableSize() {\n return this.table.length;\n }",
"int getTotalsRowCount();",
"public int getLevelTableListCount() {\n return levelTableList_.size();\n }",
"public int getNumRows() {\n\n if (columns.length < 1) {\n return 0;\n }\n\n return columns[0].getNumRows();\n }",
"public int getRows()\n\t{\n\t\treturn rows;\n\t}",
"public int getNumRows () {\n\t\treturn numrows_;\n\t}",
"public static int count() {\n return segmentList.size();\n }",
"int getColumnCount();",
"int getColumnCount();",
"public static int getTableRowCount() {\n\t\treturn TABLE_ROW_COUNT;\n\t}",
"public int getRows() {\n\t\treturn rows;\n\t}",
"public int getRows() {\n\t\treturn rows;\n\t}",
"public int getRows() {\n return rows;\n }",
"public int size(){\n\t\treturn howMany; \n\t}",
"public int getLevelTableListCount() {\n return levelTableList_.size();\n }",
"public int numberOfSegments() {\n return 0;\n }",
"public int getCount() {\n\t\treturn mNumRows;\n\t}",
"public int sizeOfTbodyArray()\n {\n synchronized (monitor())\n {\n check_orphaned();\n return get_store().count_elements(TBODY$10);\n }\n }",
"@Override\n\t\tpublic int getRowCount() \n\t\t{\n\t\t\treturn tables.size();\n\t\t}",
"public int getColumnCount();",
"public int getRowCount() {\n\t\treturn(data.length);\n\t}",
"public int getNumberOfColumns(){\n\t\treturn number_columns;\n\t}",
"@Override\r\n public int getRowCount() {\n return fixHashtables.length;\r\n }",
"@Override\n\t\tpublic int getRowCount() {\n\t\t\treturn app.graph.verticesCount;\n\t\t}",
"public abstract int numColumns();",
"private int numCols(){\n return attrTable.getModel().getColumnCount();\n }",
"public int getPagesDisplayed() {\n return getTableModelSource().getTableModel().getPageCount();\n }",
"public int getNumberOfEntries();",
"@Override\n\tpublic int getChildrenCount(int sectionPosition) {\n\t\treturn sections.get(sectionPosition).getArrayChildren().size();\n\t}",
"@Override\n public int getCount() {\n return NUMBER_OF_TABS;\n }",
"public int numberOfSegments() {\n return lineSegs.length;\n }",
"public int getCount() {\n if(data.size()<=0) return 1;\n return data.size();\n }",
"int getLevelTableListCount();",
"public int numberOfRows(){\n SQLiteDatabase db = this.getReadableDatabase();\n int numRows = (int) DatabaseUtils.queryNumEntries(db,TABLE_NAME);\n return numRows;\n }",
"int getRowsAmount();",
"public int getNumTable() {\n\t\treturn numTable;\n\t}"
] |
[
"0.75591993",
"0.74579644",
"0.7017626",
"0.69510394",
"0.6560977",
"0.65422475",
"0.6520446",
"0.6498923",
"0.6498923",
"0.64908105",
"0.64768714",
"0.6431918",
"0.6407966",
"0.6402006",
"0.63843346",
"0.6381299",
"0.63613856",
"0.63470024",
"0.63467324",
"0.6340252",
"0.63269967",
"0.629589",
"0.629589",
"0.62685245",
"0.6261289",
"0.62463367",
"0.62463367",
"0.6245652",
"0.6243108",
"0.62400264",
"0.6239667",
"0.62247443",
"0.61899066",
"0.6187046",
"0.6178308",
"0.61768705",
"0.6174724",
"0.6160126",
"0.61587363",
"0.61438435",
"0.6142919",
"0.6129077",
"0.6128397",
"0.61207545",
"0.6119241",
"0.611316",
"0.61124414",
"0.61118644",
"0.6111374",
"0.6103802",
"0.61001253",
"0.6099289",
"0.60815775",
"0.60774165",
"0.6076895",
"0.6076285",
"0.6055364",
"0.6044857",
"0.6040027",
"0.6033527",
"0.60159165",
"0.6015277",
"0.6015277",
"0.6012423",
"0.6002431",
"0.5992477",
"0.5985604",
"0.598448",
"0.5984286",
"0.59799755",
"0.5978939",
"0.5977686",
"0.5977686",
"0.5975953",
"0.5972963",
"0.5972963",
"0.5965285",
"0.5962591",
"0.59568197",
"0.5954945",
"0.5954944",
"0.5952288",
"0.5951442",
"0.5942966",
"0.59426945",
"0.59383327",
"0.59379846",
"0.59372175",
"0.592924",
"0.5922802",
"0.5920268",
"0.59182733",
"0.59156126",
"0.5915405",
"0.59153897",
"0.5914017",
"0.59055406",
"0.59034556",
"0.5903029",
"0.5901848"
] |
0.6565135
|
4
|
Sections of this table. In Release 3.0, this property is readonly on Android. Due to a known issue, TIMOB12616, the sections property should not be used for adding sections on iOS.
|
public native List<TableViewSection> getSections() /*-{
var jso = this.@com.emitrom.ti4j.core.client.ProxyObject::getJsObj()();
var obj = jso.sections;
return @com.emitrom.ti4j.mobile.client.ui.TableViewSection::fromJsArray(Lcom/google/gwt/core/client/JavaScriptObject;)(obj);
}-*/;
|
{
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
}
|
[
"@Override\r\n public final @Nonnull List<Section> getSections() {\r\n return ImmutableList.copyOf(sections);\r\n }",
"@Override\n\tpublic Object[] getSections() {\n\t\treturn sections;\n\t}",
"@Kroll.getProperty\n\tpublic TableViewSectionProxy[] getSections()\n\t{\n\t\treturn this.sections.toArray(new TableViewSectionProxy[0]);\n\t}",
"@Override\n public Object[] getSections() {\n return sectionHeaders;\n }",
"@Override\n public Object[] getSections() {\n return null;\n }",
"@Override\n public Object[] getSections () {\n return alphaIndexer.getSections();\n }",
"public abstract Collection<String> getSections();",
"@Override\n\t\tpublic Object[] getSections()\n\t\t{\n\t\t\treturn mAlphabetIndexer.getSections();\n\t\t}",
"public native void appendSection(List<TableViewSection> sections) /*-{\n\t\tvar jso = this.@com.emitrom.ti4j.core.client.ProxyObject::getJsObj()();\n\t\tjso\n\t\t\t\t.appendSection(@com.emitrom.ti4j.mobile.client.ui.TableViewSection::fromList(Ljava/util/List;)(sections));\n }-*/;",
"@Override\n public Object[] getSections() {\n if (getService().getAllMoviesSelectedSortIndex() == 0) {\n return actualSections.toArray();\n }\n if (getService().getAllMoviesSelectedSortIndex() == 2) {\n return actualSections.toArray();\n }\n return null;\n }",
"public Map<SectionId, RenderableSection> getRenderableSections() {\n\t\treturn renderableSections;\n\t}",
"@Override\n\tpublic int getGroupCount() {\n\t\treturn sections.size();\n\t}",
"public boolean isSectionMode ()\r\n {\r\n return sectionMode;\r\n }",
"public native void setSections(List<TableViewSection> values) /*-{\n\t\tvar jso = this.@com.emitrom.ti4j.core.client.ProxyObject::getJsObj()();\n\t\tjso.sections = @com.emitrom.ti4j.mobile.client.ui.TableViewSection::fromList(Ljava/util/List;)(values);\n }-*/;",
"@Override\n\tpublic List<IRange> getSectionRanges() {\n\t\treturn null;\n\t}",
"@Override\n public int getItemCount() {\n return structuredContentSections.size();\n }",
"@Kroll.getProperty\n\tpublic int getSectionCount()\n\t{\n\t\treturn getSections().length;\n\t}",
"public String getSection() {\n return section;\n }",
"public String getSection() {\n return section;\n }",
"public List<String> getSections(){\n return new ArrayList<>(Arrays.asList(lab, tutorial, discussion));\n }",
"public native void appendSection(List<TableViewSection> sections, TableViewAnimation animation) /*-{\n\t\tvar jso = this.@com.emitrom.ti4j.core.client.ProxyObject::getJsObj()();\n\t\tjso\n\t\t\t\t.appendSection(\n\t\t\t\t\t\t@com.emitrom.ti4j.mobile.client.ui.TableViewSection::fromList(Ljava/util/List;)(sections),\n\t\t\t\t\t\tanimation.@com.emitrom.ti4j.core.client.ProxyObject::getJsObj()());\n }-*/;",
"public List<WebPage> getSections() {\r\n\t\treturn secDao.findAll();\r\n\t}",
"String getSection() {\n\t\treturn this.mSection;\n\t}",
"public List<WebPage> getSections(HttpSession session) {\r\n\t\tUtilHttpSession hos = new UtilHttpSession(session);\r\n\t\tUsers user = getUser(hos.getloggedUserId());\r\n\t\tif(user.getProfile().getUpId().equals(1)){\r\n\t\t\treturn getSections();\r\n\t\t}\r\n\t\telse{\r\n\t\t\tList<WebPage> sections = new ArrayList<WebPage>();\r\n\t\t\tSet<AProfilePages> app = user.getProfile().getAProfilePageses();\r\n\t\t\tfor (Iterator<AProfilePages> iterator = app.iterator(); iterator.hasNext();) {\r\n\t\t\t\tAProfilePages profilePages = (AProfilePages) iterator.next();\r\n\t\t\t\tif(profilePages.getWebPage().getPageType().equals(PageType.SECTION())){\r\n\t\t\t\t\tsections.add((Section)getSection(profilePages.getWebPage().getWpId()));\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\treturn sections;\t\r\n\t\t}\r\n\t\t\r\n\t}",
"SectionsType createSectionsType();",
"public String getSection(){\n return sectionsText;\n }",
"public String getSection(){\n return mSection;\n }",
"public Map<SectionId, CollidingSection> getCollidingSections() {\n\t\treturn collidingSections;\n\t}",
"public Section getSection() {\n return _section;\n }",
"void getAllSections(Vector<Integer> sectionIDs, Vector<Integer> sectionLinIDs, Vector<String> sectionCodes, String empresa);",
"public IMAGE_SECTION_HEADER[] getSectionHeader() { return peFileSections; }",
"Section getSection();",
"SectionList createSectionList();",
"public Section[] getSections() throws FilteringInterruptedException\n {\n if (lastTableSections != null)\n {\n // null out the previous section data\n for (int i = 0; i < lastTableSections.length; i++)\n lastTableSections[i].setEmpty();\n lastTableSections = null;\n }\n\n // Blocking is allowed if we are currently filtering and no sections\n // have yet been returned.\n if (isRunning() && !haveReceivedSections)\n {\n synchronized (sectionMonitor)\n {\n try\n {\n // We'll wait until we are interrupted, a section comes in,\n // or the filter is stopped.\n\t\t\t\t\t// Added for findbugs issues fix - start\n\t\t\t\t\t// condition added in the while to wait on the correct condition\n \twhile(!m_completed)\n \t{\n sectionMonitor.wait();\n }\n\t\t\t\t\t// Added for findbugs issues fix - end\n }\n catch (InterruptedException e)\n {\n }\n\n // TODO (TomH) We need to throw this exception if filtering\n // was interrupted before any data was filtered. This could\n // be because the filter was cancelled.\n if (haveReceivedSections == false) throw new FilteringInterruptedException();\n }\n }\n\n lastTableSections = tableSections;\n return tableSections;\n }",
"public final boolean isSection() {\n return !children.isEmpty();\n }",
"protected boolean loadSections() \n\t{\n\t\tpageTable = new TranslationEntry[numPages];\n\t\tfor(int i=0; i < numPages; ++i)\n\t\t{\n\t\t\tpageTable[i] = new TranslationEntry(i, -1, false, false, false, false);\n\t\t}\n\t\treturn true;\n\t}",
"protected boolean loadSections() { System.out.println(\"LOADSECTIONS\");\n\t\tif (numPages > Machine.processor().getNumPhysPages()) {\n\t\t\tcoff.close();\n\t\t\tLib.debug(dbgProcess, \"\\tinsufficient physical memory\");\n\t\t\treturn false;\n\t\t}\n\t\tint[] physicalPages = UserKernel.allocateSpecificNumPages(numPages);\n\t\tpageTable = new TranslationEntry[numPages];\n\n\t\t// load all the coff sections\n\t\tfor (int s=0; s<coff.getNumSections(); s++) {\n\t\t\tCoffSection section = coff.getSection(s);\n\n\t\t\tLib.debug(dbgProcess, \"\\tinitializing \" + section.getName()\n\t\t\t\t\t+ \" section (\" + section.getLength() + \" pages)\");\n\t\t\t//Go through each page of the coff section\n\t\t\tfor(int i=0; i<section.getLength(); i++){\n\t\t\t\tint vpn = section.getFirstVPN() + i;\n\t\t\t\tint ppn = physicalPages[vpn];//map vpn tp physical page number\n\t\t\t\t//find that page in memory\n\t\t\t\tpageTable[vpn] = new TranslationEntry(vpn, ppn, true, section.isReadOnly(), false, false);\n\t\t\t\t//Load the page from physical memory\n\t\t\t\tsection.loadPage(i,ppn);\n\t\t\t}\n\t\t}\n\t\t//For all the rest of the pages, just set them to new unwritable sections\n\t\tfor(int i=numPages-stackPages-1; i<numPages; i++){\n\t\t\tpageTable[i] = new TranslationEntry(i, physicalPages[i], true, false, false, false);\n\t\t}\n\t\treturn true;\n\t}",
"public String getSectionType() {\n\treturn sectionType;\n }",
"public static List<Section> getAllSections(int userId) {\r\n\t\t@SuppressWarnings(\"unchecked\")\r\n\t\tList<Section> sections=(List)HibernateTemplate.getObjectListByQuery(\"From Section where userId=\" + userId);\r\n\t\treturn sections;\r\n\t}",
"public synchronized int getSectionCount() {\n if (sections != null) {\n return sections.length;\n } else if (PropertyArray.get(props, SECTIONS) != null) {\n return parseSectionCount(PropertyArray.get(props, SECTIONS));\n } else {\n // hum, test props are never discarded, so we have no sections\n return 0;\n }\n }",
"protected int getSectionLevel() {\n return this.headingLevel;\n }",
"Section createSection();",
"@Kroll.getProperty\n\tpublic Object[] getData()\n\t// clang-format on\n\t{\n\t\treturn this.sections.toArray();\n\t}",
"public String getSectionName() {\n return mSectionName;\n }",
"public String getSectionName() {\n return mSectionName;\n }",
"protected boolean loadSections() {\n\t\tpageTable = new TranslationEntry[numPages];\n\t\t//set all translation entry to invalid\n\t\tfor (int i = 0; i < pageTable.length; i++) {\n\t\t\t//pageTable[i] = new TranslationEntry(i, UserKernel.getNextPage(), false, false, false, false);\n\t\t\tpageTable[i] = new TranslationEntry(i, 0, false, false, false, false);\n\n\t\t}\n\n\t\treturn true;\n\t}",
"public int removeAll (Section[] sectionArr) throws DataAccessException;",
"public int getSectionCode() {\n return sectionCode;\n }",
"void handleSection(Section nativeSection, Object appData)\n {\n // Create a section\n Section sec = nativeSection;\n\n synchronized (sectionMonitor)\n {\n try\n {\n \tint sectionNumber;\n \t\n if(!sec.section_syntax_indicator())\n { \n \t// If section_syntac_indicator is false\n \t// There is only one section\n \t// Private data bytes immediately follow the\n \t// private_section_length field\n // Allocate the table sections array \n \tsectionNumber = 0;\n \t\n if (tableSections == null)\n {\n tableSections = new Section[1];\n tableSections[0] = null;\n\n sectionCounter = 0;\n numSections = 1;\n if (log.isDebugEnabled())\n {\n log.debug(\"TableSectionFilter::handleSection tableVersion: \" + tableVersion\n + \" sectionCounter: \" + sectionCounter + \" numSections: \" + numSections);\n }\n } \t\n }\n else\n { \n\t sectionNumber = sec.section_number();\n\t\n if (log.isDebugEnabled())\n {\n log.debug(\"TableSectionFilter: handleSection sec.section_number(): \" + sectionNumber\n + \" sec.version_number(): \" + sec.version_number());\n }\n\t\n\t // Allocate the table sections array using the size found\n\t // in the section itself.\n\t if (tableSections == null)\n\t {\n\t tableSections = new Section[sec.last_section_number() + 1];\n\t for (int i = 0; i <= sec.last_section_number(); i++)\n\t tableSections[i] = null;\n\t\n\t // Save off the version number for comparison against\n\t // future sections we receive.\n\t tableVersion = sec.version_number();\n\t sectionCounter = 0;\n\t numSections = sec.last_section_number() + 1;\n if (log.isDebugEnabled())\n {\n log.debug(\"TableSectionFilter::handleSection tableVersion: \" + tableVersion\n + \" sectionCounter: \" + sectionCounter + \" numSections: \" + numSections);\n\t }\n\t }\n\t \n\t if(sectionNumber > numSections)\n\t {\n if (log.isErrorEnabled())\n {\n log.error(\"TableSectionFilter::handleSection - Error occured, section number (\" \n \t\t + sectionNumber \n \t\t + \")\" \n \t\t + \" may not be greater than the number of sections (\" \n \t\t + numSections \n \t\t + \")\" + \" - Ignoring section...\"); \n }\n\t return;\n\t }\n\t \n\t // Check if the table version has changed\n\t if (tableVersion != sec.version_number())\n\t {\n\t // If the version number has changed then generate a version\n\t // change event\n\t // discard this section and continue filtering\n\n if (log.isDebugEnabled())\n {\n log.debug(\"TableSectionFilter::handleSection posting a VersionChangeDetectedEvent...\"\n + \" tableVersion: \" + tableVersion + \" sec.version_number(): \" + sec.version_number());\n }\n\t // Send VersionChangeDetectedEvent only once\n\t if (!sentVersionChangeEvent)\n\t {\n\t notifySectionFilterListener(new VersionChangeDetectedEvent(this, appData, tableVersion,\n\t sec.version_number()));\n\t sentVersionChangeEvent = true;\n\t }\n\t return;\n\t } \t \n } \n\n // Store this section in our array\n // need to verify this here.\n if (sec != null && tableSections[sectionNumber] == null)\n {\n tableSections[sectionNumber] = sec;\n\n sectionCounter++;\n haveReceivedSections = true;\n\n // Signal the sectionMonitor in case someone is blocking on\n // the getSections method.\n\t\t\t\t\t// Added for findbugs issues fix - start\n m_completed = true;\n\t\t\t\t\t// Added for findbugs issues fix - end\n sectionMonitor.notifyAll();\n\n if (log.isDebugEnabled())\n {\n log.debug(\"TableSectionFilter::handleSection calling notifySectionFilterListener-SectionAvailableEvent for section \"\n + sectionNumber);\n }\n // If the table is not complete, just alert listeners that a\n // new\n // section is available\n notifySectionFilterListener(new SectionAvailableEvent(this, appData));\n }\n }\n catch (NoDataAvailableException e)\n {\n return;\n }\n\n }\n if (log.isDebugEnabled())\n {\n log.debug(\"TableSectionFilter::sectionCounter: \" + sectionCounter + \" numSections: \" + numSections);\n }\n\n // Check if Table is complete!\n\n if (sectionCounter >= numSections)\n {\n stopFiltering();\n if (log.isDebugEnabled())\n {\n log.debug(\"TableSectionFilter: posting a EndOfFilteringEvent...\");\n }\n notifySectionFilterListener(new EndOfFilteringEvent(this, appData));\n }\n }",
"public void CreateSectionItems(TagView sectionItems, String category) {\n List<SectionItem> sectionItemsList = new ArrayList<SectionItem>();\n\n SectionItem sectionItem = new SectionItem();\n sectionItem.setCategoryItem(sectionItems);\n sectionItemsList.add(sectionItem);\n\n SetItemsWithHeaders(sectionItemsList, category);\n\n }",
"public ArrayList<HashMap<String, String>> getIniContent() {\n return this.sections;\n }",
"public String getSectionName() {\r\n\t\treturn this.sectionName;\r\n\t}",
"public void addColumnSectionId() {\n addColumnInPrimarySection(ColumnMetaData.KEY_SECTION_ID);\n }",
"public List<Section> findAll () throws DataAccessException;",
"public Collection<TrackRailsSingleNodeElement> getSections(IntVector3 blockPos) {\n return new CollectionWrapper(blockPos);\n }",
"List<T> getSectionItems(int sectionIndex);",
"public void addSection(String sectionId) {\n\t\t\r\n\t}",
"public static SectionSets createFromSections (Collection<Section> sections)\r\n {\r\n SectionSets sectionSets = new SectionSets();\r\n sectionSets.sets = new ArrayList<>();\r\n sectionSets.sets.add(sections);\r\n\r\n return sectionSets;\r\n }",
"public SectionsPagerAdapter getSectionsPagerAdapterRef() {\n return mSectionsPagerAdapter;\n }",
"public String[] getAuthorizedSections(Section sec) {\n\t\tString[] lst = authorizedSections.get(sec);\n\t\treturn lst != null ? lst : authorizedSections.get(BROWSE_SECTION);\n\t}",
"float getSectionHeaderHeight(int section);",
"public native int getSectionCount() /*-{\n\t\tvar jso = this.@com.emitrom.ti4j.core.client.ProxyObject::getJsObj()();\n\t\treturn jso.sectionCount;\n }-*/;",
"public GraphSection getSection() {\r\n\t\treturn section;\r\n\t}",
"public void setSectionNo(String sectionNo)\r\n\t{\r\n\t\tthis.sectionNo = sectionNo;\r\n\t}",
"public static synchronized ArrayList<QASections> fetchSectionsList(\n\t\t\tContext context, String query) throws SQLException,\n\t\t\tNullPointerException {\n\n\t\tQADatabaseHelper dbHelper = QADatabaseHelper.getInstance(context);\n\t\tSQLiteDatabase db = dbHelper.getReadableDatabase();\n\n\t\tArrayList<QASections> sectionsList = null;\n\n\t\tCursor cursor = null;\n\t\ttry {\n\t\t\tcursor = db.rawQuery(query, null);\n\t\t} catch (Exception exception) {\n\t\t\texception.printStackTrace();\n\t\t}\n\t\tcursor.moveToFirst();\n\t\tif (cursor != null && cursor.getCount() > QAConstants.DB_EMPTY) {\n\t\t\tsectionsList = new ArrayList<QASections>();\n\t\t\tfor (cursor.moveToFirst(); !cursor.isAfterLast(); cursor\n\t\t\t\t\t.moveToNext()) {\n\t\t\t\tQASections section = new QASections();\n\n\t\t\t\tsection.setPrimaryKey(cursor.getInt(cursor\n\t\t\t\t\t\t.getColumnIndex(SECTIONS_COLUMN_NAME_PRIMARY_KEY)));\n\t\t\t\tsection.setSectionName(cursor.getString(cursor\n\t\t\t\t\t\t.getColumnIndex(SECTIONS_COLUMN_NAME_SECTION_NAME)));\n\t\t\t\tsection.setImageUrl(cursor.getString(cursor\n\t\t\t\t\t\t.getColumnIndex(SECTIONS_COLUMN_NAME_IMAGE_URL)));\n\t\t\t\tsection.setUpdatedAt(cursor.getString(cursor\n\t\t\t\t\t\t.getColumnIndex(SECTIONS_COLUMN_NAME_UPDATED_AT)));\n\t\t\t\tsectionsList.add(section);\n\t\t\t}\n\t\t}\n\t\tcursor.close();\n\t\treturn sectionsList;\n\t}",
"List<ArrangementSectionRule> getExtendedSectionRules();",
"public synchronized String[] getSectionTitles() {\n if (props == null) {\n try {\n reload();\n } catch (Fault f) {\n // should this maybe be a JavaTestError?\n return null;\n }\n }\n\n // look for what we need from easiest to hardest source\n String names = PropertyArray.get(props, SECTIONS);\n\n if (names != null) {\n // it is cached\n return StringArray.split(names);\n } else if (sections != null) {\n // TR is not immutable yet, probably\n int numSections = getSectionCount();\n String[] data = new String[numSections];\n\n for (int i = 0; i < numSections; i++) {\n data[i] = sections[i].getTitle();\n }\n\n return data;\n } else {\n // hum, bad. No sections exist and this data isn't cached\n // the test probably has not run\n return null;\n }\n }",
"public void setSection(String section) {\n if(section==null){\n section=\"\";\n }\n this.section = section;\n }",
"public Section getSection() {\n\treturn belongedSection.clone();\n }",
"@Test\n\tpublic void testSectionsLoaded() throws Exception {\n\t\ttry {\n\t\t\tcmService.getSection(\"biology_101_01_lec01\");\n\t\t} catch (IdNotFoundException ide) {\n\t\t\tAssert.fail();\n\t\t}\n\t}",
"public void setSection(final String section) {\n this.section = section;\n }",
"public void setSectionID(Integer sectionID){\n this.sectionID = sectionID;\n }",
"@Test\n public void testGetSectionList() {\n System.out.println(\"getSectionList\");\n \n instance.addSection(null);\n \n ArrayList result = instance.getSectionList();\n assertTrue(\"Incorrect Length\", result.size() == 1);\n assertNull(\"Incorrect data\", result.get(0));\n \n // TODO review the generated test code and remove the default call to fail.\n // fail(\"The test case is a prototype.\");\n }",
"public List<Section> findByFilter (Section section, Pagination pagination) throws DataAccessException;",
"public interface TableSectionBuilder extends ElementBuilderBase<TableSectionBuilder> {\n\n String UNSUPPORTED_HTML =\n \"Table section elements do not support setting inner html or text. \"\n + \"Use startTR() instead to append a table row to the section.\";\n\n /**\n * Horizontal alignment of data in cells. See the align attribute for HTMLTheadElement for\n * details.\n */\n TableSectionBuilder align(String align);\n\n /**\n * Alignment character for cells in a column.\n *\n * @see <a href=\"http://www.w3.org/TR/1999/REC-html401-19991224/struct/tables.html#adef-char\">W3C\n * HTML Specification</a>\n */\n TableSectionBuilder ch(String ch);\n\n /**\n * Offset of alignment character.\n *\n * @see <a\n * href=\"http://www.w3.org/TR/1999/REC-html401-19991224/struct/tables.html#adef-charoff\">W3C\n * HTML Specification</a>\n */\n TableSectionBuilder chOff(String chOff);\n\n /**\n * Vertical alignment of data in cells. See the valign attribute for HTMLTheadElement for details.\n */\n TableSectionBuilder vAlign(String vAlign);\n}",
"private void initSections() {\n sections = new HashMap<>();\n addSection(JsonFailuresInput.class, new JsonFailuresInput(inputProgram, jsonObject));\n addSection(JsonTransformationCollectionInput.class,\n new JsonTransformationCollectionInput(inputProgram, jsonObject));\n addSection(JsonHeaderInput.class, new JsonHeaderInput(inputProgram, jsonObject, verifyProject));\n }",
"@Test\n public void testSection() {\n \n Report instance = new Report();\n\n ArrayList<Section> section = new ArrayList<Section>();\n \n Section section1 = new Section();\n Section section2 = new Section();\n \n assertNotSame(section1, section2);\n\n /**************/\n /** Phase 1 **/\n /**************/\n // Test of getter\n assertEquals(section, instance.getSection());\n\n /**************/\n /** Phase 2 **/\n /**************/\n\n section.add(section1);\n section.add(section2);\n\n instance.setSection(section);\n\n // Test of setter\n assertEquals(section, instance.getSection());\n\n /**************/\n /** Phase 3 **/\n /**************/\n Report instance2 = new Report();\n\n instance2.addSection(section1);\n instance2.addSection(section2);\n\n assertEquals(section, instance.getSection());\n }",
"public boolean isSection(String key)\n {\n return getSection(key) != null;\n }",
"@Test\n\tpublic void testGoodSectionTokens() {\n\t\tassertEquals( SectionHeaderToken.fromIdentifier( sectionStart ), SectionHeaderToken.SECTION_START );\n\t\tassertEquals( SectionHeaderToken.fromIdentifier( sectionHeader ), SectionHeaderToken.SECTION_HEADER );\n\t\tassertEquals( SectionHeaderToken.fromIdentifier( sectionSplit ), SectionHeaderToken.SECTION_SPLIT );\n\t}",
"public static void invoiceSectionPermissionsList(com.azure.resourcemanager.billing.BillingManager manager) {\n manager\n .billingPermissions()\n .listByInvoiceSections(\n \"{billingAccountName}\",\n \"{billingProfileName}\",\n \"{invoiceSectionName}\",\n com.azure.core.util.Context.NONE);\n }",
"public static synchronized void insertSections(Context context,\n\t\t\tList<ParseObject> sectionsList, String tableName)\n\t\t\tthrows SQLException, NullPointerException {\n\t\tQADatabaseHelper dbHelper = QADatabaseHelper.getInstance(context);\n\t\tSQLiteDatabase db = dbHelper.getWritableDatabase();\n\t\tContentValues values = new ContentValues();\n\n\t\tfor (ParseObject section : sectionsList) {\n\t\t\tvalues.put(SECTIONS_COLUMN_NAME_PRIMARY_KEY,\n\t\t\t\t\tsection.getInt(SECTIONS_COLUMN_NAME_PRIMARY_KEY));\n\t\t\tvalues.put(SECTIONS_COLUMN_NAME_SECTION_NAME,\n\t\t\t\t\tsection.getString(SECTIONS_COLUMN_NAME_SECTION_NAME));\n\t\t\tvalues.put(SECTIONS_COLUMN_NAME_IMAGE_URL,\n\t\t\t\t\tsection.getString(SECTIONS_COLUMN_NAME_IMAGE_URL));\n\n\t\t\tFormatter formatter = new Formatter();\n\t\t\tCalendar calendar = Calendar.getInstance();\n\t\t\tformatter.format(\"%tc\", calendar);\n\t\t\tformatter.close();\n\n\t\t\tDate originalDate = calendar.getTime();\n\n\t\t\tvalues.put(SECTIONS_COLUMN_NAME_UPDATED_AT, originalDate.toString());\n\t\t\ttry {\n\t\t\t\tdb.replace(tableName, null, values);\n\t\t\t} catch (Exception exception) {\n\t\t\t\texception.printStackTrace();\n\t\t\t}\n\t\t}\n\t\tdb.close();\n\t}",
"public int getCount() {\n \t\tint total = 0;\n \t\tfor(Adapter adapter : this.sections.values())\n \t\t\ttotal += adapter.getCount() + 1;\n \t\treturn total;\n \t}",
"public List<SectionBean> populateallSection(String sql ){\n\t\t\t\tList<SectionBean> retlist = jdbcTemplate.query(sql,ParameterizedBeanPropertyRowMapper.newInstance(SectionBean.class));\n\t\t\t\t\treturn retlist;\n\t\t }",
"private void resetSections() {\n\t\tdescription.setVisibility(View.GONE);\n\t\tlocation.setVisibility(View.GONE);\n\t\thighlights.setVisibility(View.GONE);\n\t\tinclusions.setVisibility(View.GONE);\n\t\texclusions.setVisibility(View.GONE);\n\t\tknowBeforeYouBook.setVisibility(View.GONE);\n\t\tcancellation.setVisibility(View.GONE);\n\t}",
"public Builder section_type(String section_type) {\n this.section_type = section_type;\n return this;\n }",
"public List<SectionModel> getType(List<Integer> sections) {\n List<SectionModel> models = new ArrayList<>();\n for (SectionModel model : sectionModels) {\n if (sections.contains(model.section_id))\n models.add(model);\n }\n return models;\n }",
"private SectionSets ()\r\n {\r\n }",
"private static int[] parseSectionHeader(ByteArrayInputStream stream) throws EOFException\n {\n int tableId = EASMessage.parseUnsignedByte(stream);\n int sectionLength = EASMessage.parseUnsignedShort(stream);\n int bytesAvailable = stream.available();\n int tableIdExtension = EASMessage.parseUnsignedShort(stream);\n int sequenceNumber = EASMessage.parseUnsignedByte(stream);\n int sectionNumber = EASMessage.parseUnsignedByte(stream);\n int lastSectionNumber = EASMessage.parseUnsignedByte(stream);\n int protocolVersion = EASMessage.parseUnsignedByte(stream);\n\n // included for completeness, should never occur since this table_ID\n // value is how we got here\n if (tableId != EASMessage.EA_TABLE_ID)\n {\n String message = \"SCTE-18: table_ID is not a cable emergency alert message:<0x\"\n + Integer.toHexString(tableId) + \">\";\n throw new IllegalStateException(message);\n }\n\n // no else-ifs constructs as we want to see all non-compliance issues\n if (log.isWarnEnabled())\n {\n String prefix = \"SCTE-18[sn=\" + ((sequenceNumber >> 1) & 0x1F) + \"]: \";\n\n if ((sectionLength & 0x8000) == 0)\n {\n if (log.isWarnEnabled())\n {\n log.warn(prefix + \"section_syntax_indicator not set\");\n }\n }\n if ((sectionLength &= 0xFFF) < 43 || sectionLength > 4093)\n {\n if (log.isWarnEnabled())\n {\n log.warn(prefix + \"section_length not in range of 43..4093:<\" + sectionLength + \">\");\n }\n }\n if (sectionLength != bytesAvailable)\n {\n if (log.isWarnEnabled())\n {\n log.warn(prefix + \"section_length:<\" + sectionLength + \"> doesn't equal available bytes:<\"\n + bytesAvailable + \">\");\n }\n }\n if (tableIdExtension != 0)\n {\n if (log.isWarnEnabled())\n {\n log.warn(prefix + \"table_id_extension is non-zero:<0x\"\n + Integer.toHexString(tableIdExtension) + \">\");\n }\n }\n if ((sequenceNumber & 0x01) == 0)\n {\n if (log.isWarnEnabled())\n {\n log.warn(prefix + \"current_next_indicator is not set\");\n }\n }\n if (sectionNumber != 0)\n {\n if (log.isWarnEnabled())\n {\n log.warn(prefix + \"section_number is non-zero:<\" + sectionNumber + \">\");\n }\n }\n if (lastSectionNumber != 0)\n {\n if (log.isWarnEnabled())\n {\n log.warn(prefix + \"last_section_number is non-zero:<\" + lastSectionNumber + \">\");\n }\n }\n }\n\n int[] fields = new int[2];\n fields[0] = (sequenceNumber >> 1) & 0x1F;\n fields[1] = protocolVersion;\n return fields;\n }",
"protected void unloadSections() {\n\t\tsuper.unloadSections();\n\t}",
"public boolean isAllowedEnterSection(String section)\r\n {\r\n Identity userIdentity = securityService.findLoggedInIdentity();\r\n if (section.equals(SECTION_PILOT)) return rolesContainRole(userIdentity, \"PILOT\");\r\n if (section.equals(SECTION_GENERAL)) return rolesContainRole(userIdentity, \"GENERAL\");\r\n if (section.equals(SECTION_ADMIN)) return rolesContainRole(userIdentity, \"ADMIN\");\r\n return false;\r\n }",
"public AIlogicalSerial subSection(int i);",
"public void setSectionCode(int sectionCode) {\n this.sectionCode = sectionCode;\n }",
"public void setSectionType(final String sectionType) {\n\tthis.sectionType = sectionType;\n }",
"protected void unloadSections() \n\t{\n\t\tsuper.unloadSections();\n\t}",
"public void setSectionName(String sectionName) {\r\n\t\tthis.sectionName = sectionName;\r\n\t}",
"@Override\n\tpublic IDataItem getSection(List<IRange> section)\n\t\t\tthrows InvalidRangeException {\n\t\treturn null;\n\t}",
"public TeleversementDeLotSectionsHitTest() {\r\n\t\tsuper();\r\n\t}",
"@Transactional\n\t@Override\n\tpublic void updateEmptySectionGroups() {\n\t\tList<SectionGroup> emptySectionGroups = sectionGroupService.findEmpty();\n\n\t\t// Generate termCode+subjectCode pairs to query DW for to get relevant sections\n\t\tList<SubjectTermCode> subjectTermCodes = jdbcTemplate.query(\"SELECT DISTINCT sg.TermCode, c.SubjectCode\" +\n\t\t\t\t\t\t\" FROM SectionGroups sg\" +\n\t\t\t\t\t\t\" LEFT JOIN Courses c ON sg.CourseId = c.Id\" +\n\t\t\t\t\t\t\" LEFT JOIN Sections st ON sg.Id = st.sectionGroupId\" +\n\t\t\t\t\t\t\" WHERE st.Id IS NULL;\",\n\t\t\t\t(rs, rowNum) -> new SubjectTermCode(\n\t\t\t\t\t\trs.getString(\"SubjectCode\"),\n\t\t\t\t\t\trs.getString(\"TermCode\")\n\t\t\t\t)\n\t\t);\n\n\t\t// Query DW for potentially matching sections\n\t\tList<DwSection> allDwSections = new ArrayList<>();\n\n\t\tfor (SubjectTermCode subjectTermCode : subjectTermCodes) {\n\t\t\tList<DwSection> slotDwSections = dwRepository.getSectionsBySubjectCodeAndTermCode(subjectTermCode.subjectCode, subjectTermCode.termCode);\n\t\t\tallDwSections.addAll(slotDwSections);\n\t\t}\n\n\t\t// Identify which dwSections match an IPA emptySectionGroup, and persist section/activities\n\t\tfor (DwSection dwSection : allDwSections) {\n\t\t\t// Convert dw sequenceNumber to sequencePattern\n\t\t\tCharacter dwSequenceNumberStart = dwSection.getSequenceNumber().charAt(0);\n\t\t\tString sequencePattern = null;\n\n\t\t\tif (Character.isLetter(dwSequenceNumberStart)) {\n\t\t\t\tsequencePattern = String.valueOf(dwSequenceNumberStart);\n\t\t\t} else {\n\t\t\t\tsequencePattern = dwSection.getSequenceNumber();\n\t\t\t}\n\n\t\t\t// Generate matchingKey for dwSection, example: '201610-ART-001-A'\n\t\t\tString dwMatchingKey = dwSection.getTermCode() + \"-\" + dwSection.getSubjectCode() + \"-\" + dwSection.getCourseNumber() + \"-\" + sequencePattern;\n\n\t\t\t// Find matching ipa sectionGroup\n\t\t\tfor (SectionGroup sectionGroup : emptySectionGroups) {\n\t\t\t\tString ipaMatchingKey = sectionGroup.getTermCode() + \"-\" + sectionGroup.getCourse().getSubjectCode() + \"-\" + sectionGroup.getCourse().getCourseNumber() + \"-\" + sectionGroup.getCourse().getSequencePattern();\n\n\t\t\t\tif (ipaMatchingKey.equals(dwMatchingKey)) {\n\t\t\t\t\t// Create section\n\t\t\t\t\tSection section = new Section();\n\t\t\t\t\tsection.setSectionGroup(sectionGroup);\n\n\t\t\t\t\tsection.setCrn(dwSection.getCrn());\n\t\t\t\t\tsection.setSequenceNumber(dwSection.getSequenceNumber());\n\t\t\t\t\tsection.setSeats(dwSection.getMaximumEnrollment());\n\n\t\t\t\t\t// Using sectionRepository as this sync needs to bypass the 'term lock' validation\n\t\t\t\t\tsection = sectionService.save(section);\n\n\t\t\t\t\t// Create activities\n\t\t\t\t\tfor (DwActivity dwActivity : dwSection.getActivities()) {\n\t\t\t\t\t\tActivity activity = activityService.createFromDwActivity(dwActivity);\n\n\t\t\t\t\t\tTerm term = termService.getOneByTermCode(sectionGroup.getTermCode());\n\n\t\t\t\t\t\tactivity.setEndDate(term.getEndDate());\n\t\t\t\t\t\tactivity.setBeginDate(term.getStartDate());\n\t\t\t\t\t\tactivity.setSection(section);\n\n\t\t\t\t\t\ttry {\n\t\t\t\t\t\t\tactivityService.saveActivity(activity);\n\t\t\t\t\t\t} catch (javax.validation.ConstraintViolationException e) {\n\t\t\t\t\t\t\tlog.error(\"Could not save activity based on DW activity:\" + dwActivity);\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\n\t\t// Identify activities that exist on all sections, and move them to the sectionGroup sharedActivities\n\t\tfor (SectionGroup sectionGroup : emptySectionGroups) {\n\t\t\tsectionGroupService.identifyAndCondenseSharedActivities(sectionGroup);\n\t\t}\n\t}",
"SectionType createSectionType();",
"@Test\n public void testRemoveSection() {\n System.out.println(\"removeSection\");\n int position = 0;\n \n if (instance.getNumberOfSections() > 0) \n instance.removeSection(position);\n else {\n instance.addSection(new Section(1, null, null, null, position));\n instance.removeSection(0);\n }\n int result = instance.getNumberOfSections();\n assertTrue (\"Was not removed\", result == 0);\n // TODO review the generated test code and remove the default call to fail.\n // fail(\"The test case is a prototype.\");\n }"
] |
[
"0.70985645",
"0.7007529",
"0.6944946",
"0.66604125",
"0.66546774",
"0.6453281",
"0.63870066",
"0.6343112",
"0.62512094",
"0.6200355",
"0.61662054",
"0.60857433",
"0.6065376",
"0.60175544",
"0.59316295",
"0.5882851",
"0.58776987",
"0.58606744",
"0.58606744",
"0.5853654",
"0.5849372",
"0.5789679",
"0.5772226",
"0.57664514",
"0.5761653",
"0.5759512",
"0.5751058",
"0.5725536",
"0.5717469",
"0.5649516",
"0.56127536",
"0.55919063",
"0.5560598",
"0.55320716",
"0.55258775",
"0.5518459",
"0.5491874",
"0.5472715",
"0.54610264",
"0.5442762",
"0.54084855",
"0.54027677",
"0.5397677",
"0.53885394",
"0.53885394",
"0.538543",
"0.5345584",
"0.53446376",
"0.5314173",
"0.52874166",
"0.5276147",
"0.52134734",
"0.5208601",
"0.516438",
"0.51564324",
"0.51487994",
"0.5146942",
"0.5144779",
"0.51145",
"0.5114236",
"0.5076008",
"0.5071593",
"0.5048992",
"0.50270474",
"0.50249714",
"0.5021538",
"0.5006986",
"0.49955225",
"0.4979954",
"0.49629074",
"0.4962284",
"0.4958584",
"0.49447042",
"0.4943915",
"0.49416816",
"0.49128532",
"0.48918352",
"0.4889962",
"0.4883056",
"0.48799214",
"0.4873243",
"0.48517618",
"0.48462513",
"0.48425636",
"0.48422098",
"0.48406503",
"0.4832898",
"0.48315996",
"0.48038667",
"0.478976",
"0.47895765",
"0.4785132",
"0.47798958",
"0.4767003",
"0.47641993",
"0.4715372",
"0.47033235",
"0.47026846",
"0.46967345",
"0.46960995"
] |
0.7376711
|
0
|
Sections of this table. In Release 3.0, this property is readonly on Android. Due to a known issue, TIMOB12616, the sections property should not be used for adding sections on iOS.
|
public native void setSections(List<TableViewSection> values) /*-{
var jso = this.@com.emitrom.ti4j.core.client.ProxyObject::getJsObj()();
jso.sections = @com.emitrom.ti4j.mobile.client.ui.TableViewSection::fromList(Ljava/util/List;)(values);
}-*/;
|
{
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
}
|
[
"public native List<TableViewSection> getSections() /*-{\n\t\tvar jso = this.@com.emitrom.ti4j.core.client.ProxyObject::getJsObj()();\n\t\tvar obj = jso.sections;\n\t\treturn @com.emitrom.ti4j.mobile.client.ui.TableViewSection::fromJsArray(Lcom/google/gwt/core/client/JavaScriptObject;)(obj);\n }-*/;",
"@Override\r\n public final @Nonnull List<Section> getSections() {\r\n return ImmutableList.copyOf(sections);\r\n }",
"@Override\n\tpublic Object[] getSections() {\n\t\treturn sections;\n\t}",
"@Kroll.getProperty\n\tpublic TableViewSectionProxy[] getSections()\n\t{\n\t\treturn this.sections.toArray(new TableViewSectionProxy[0]);\n\t}",
"@Override\n public Object[] getSections() {\n return sectionHeaders;\n }",
"@Override\n public Object[] getSections() {\n return null;\n }",
"@Override\n public Object[] getSections () {\n return alphaIndexer.getSections();\n }",
"public abstract Collection<String> getSections();",
"@Override\n\t\tpublic Object[] getSections()\n\t\t{\n\t\t\treturn mAlphabetIndexer.getSections();\n\t\t}",
"public native void appendSection(List<TableViewSection> sections) /*-{\n\t\tvar jso = this.@com.emitrom.ti4j.core.client.ProxyObject::getJsObj()();\n\t\tjso\n\t\t\t\t.appendSection(@com.emitrom.ti4j.mobile.client.ui.TableViewSection::fromList(Ljava/util/List;)(sections));\n }-*/;",
"@Override\n public Object[] getSections() {\n if (getService().getAllMoviesSelectedSortIndex() == 0) {\n return actualSections.toArray();\n }\n if (getService().getAllMoviesSelectedSortIndex() == 2) {\n return actualSections.toArray();\n }\n return null;\n }",
"public Map<SectionId, RenderableSection> getRenderableSections() {\n\t\treturn renderableSections;\n\t}",
"@Override\n\tpublic int getGroupCount() {\n\t\treturn sections.size();\n\t}",
"public boolean isSectionMode ()\r\n {\r\n return sectionMode;\r\n }",
"@Override\n\tpublic List<IRange> getSectionRanges() {\n\t\treturn null;\n\t}",
"@Override\n public int getItemCount() {\n return structuredContentSections.size();\n }",
"@Kroll.getProperty\n\tpublic int getSectionCount()\n\t{\n\t\treturn getSections().length;\n\t}",
"public String getSection() {\n return section;\n }",
"public String getSection() {\n return section;\n }",
"public List<String> getSections(){\n return new ArrayList<>(Arrays.asList(lab, tutorial, discussion));\n }",
"public native void appendSection(List<TableViewSection> sections, TableViewAnimation animation) /*-{\n\t\tvar jso = this.@com.emitrom.ti4j.core.client.ProxyObject::getJsObj()();\n\t\tjso\n\t\t\t\t.appendSection(\n\t\t\t\t\t\t@com.emitrom.ti4j.mobile.client.ui.TableViewSection::fromList(Ljava/util/List;)(sections),\n\t\t\t\t\t\tanimation.@com.emitrom.ti4j.core.client.ProxyObject::getJsObj()());\n }-*/;",
"public List<WebPage> getSections() {\r\n\t\treturn secDao.findAll();\r\n\t}",
"String getSection() {\n\t\treturn this.mSection;\n\t}",
"public List<WebPage> getSections(HttpSession session) {\r\n\t\tUtilHttpSession hos = new UtilHttpSession(session);\r\n\t\tUsers user = getUser(hos.getloggedUserId());\r\n\t\tif(user.getProfile().getUpId().equals(1)){\r\n\t\t\treturn getSections();\r\n\t\t}\r\n\t\telse{\r\n\t\t\tList<WebPage> sections = new ArrayList<WebPage>();\r\n\t\t\tSet<AProfilePages> app = user.getProfile().getAProfilePageses();\r\n\t\t\tfor (Iterator<AProfilePages> iterator = app.iterator(); iterator.hasNext();) {\r\n\t\t\t\tAProfilePages profilePages = (AProfilePages) iterator.next();\r\n\t\t\t\tif(profilePages.getWebPage().getPageType().equals(PageType.SECTION())){\r\n\t\t\t\t\tsections.add((Section)getSection(profilePages.getWebPage().getWpId()));\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\treturn sections;\t\r\n\t\t}\r\n\t\t\r\n\t}",
"SectionsType createSectionsType();",
"public String getSection(){\n return sectionsText;\n }",
"public String getSection(){\n return mSection;\n }",
"public Map<SectionId, CollidingSection> getCollidingSections() {\n\t\treturn collidingSections;\n\t}",
"public Section getSection() {\n return _section;\n }",
"void getAllSections(Vector<Integer> sectionIDs, Vector<Integer> sectionLinIDs, Vector<String> sectionCodes, String empresa);",
"public IMAGE_SECTION_HEADER[] getSectionHeader() { return peFileSections; }",
"Section getSection();",
"SectionList createSectionList();",
"public Section[] getSections() throws FilteringInterruptedException\n {\n if (lastTableSections != null)\n {\n // null out the previous section data\n for (int i = 0; i < lastTableSections.length; i++)\n lastTableSections[i].setEmpty();\n lastTableSections = null;\n }\n\n // Blocking is allowed if we are currently filtering and no sections\n // have yet been returned.\n if (isRunning() && !haveReceivedSections)\n {\n synchronized (sectionMonitor)\n {\n try\n {\n // We'll wait until we are interrupted, a section comes in,\n // or the filter is stopped.\n\t\t\t\t\t// Added for findbugs issues fix - start\n\t\t\t\t\t// condition added in the while to wait on the correct condition\n \twhile(!m_completed)\n \t{\n sectionMonitor.wait();\n }\n\t\t\t\t\t// Added for findbugs issues fix - end\n }\n catch (InterruptedException e)\n {\n }\n\n // TODO (TomH) We need to throw this exception if filtering\n // was interrupted before any data was filtered. This could\n // be because the filter was cancelled.\n if (haveReceivedSections == false) throw new FilteringInterruptedException();\n }\n }\n\n lastTableSections = tableSections;\n return tableSections;\n }",
"public final boolean isSection() {\n return !children.isEmpty();\n }",
"protected boolean loadSections() \n\t{\n\t\tpageTable = new TranslationEntry[numPages];\n\t\tfor(int i=0; i < numPages; ++i)\n\t\t{\n\t\t\tpageTable[i] = new TranslationEntry(i, -1, false, false, false, false);\n\t\t}\n\t\treturn true;\n\t}",
"protected boolean loadSections() { System.out.println(\"LOADSECTIONS\");\n\t\tif (numPages > Machine.processor().getNumPhysPages()) {\n\t\t\tcoff.close();\n\t\t\tLib.debug(dbgProcess, \"\\tinsufficient physical memory\");\n\t\t\treturn false;\n\t\t}\n\t\tint[] physicalPages = UserKernel.allocateSpecificNumPages(numPages);\n\t\tpageTable = new TranslationEntry[numPages];\n\n\t\t// load all the coff sections\n\t\tfor (int s=0; s<coff.getNumSections(); s++) {\n\t\t\tCoffSection section = coff.getSection(s);\n\n\t\t\tLib.debug(dbgProcess, \"\\tinitializing \" + section.getName()\n\t\t\t\t\t+ \" section (\" + section.getLength() + \" pages)\");\n\t\t\t//Go through each page of the coff section\n\t\t\tfor(int i=0; i<section.getLength(); i++){\n\t\t\t\tint vpn = section.getFirstVPN() + i;\n\t\t\t\tint ppn = physicalPages[vpn];//map vpn tp physical page number\n\t\t\t\t//find that page in memory\n\t\t\t\tpageTable[vpn] = new TranslationEntry(vpn, ppn, true, section.isReadOnly(), false, false);\n\t\t\t\t//Load the page from physical memory\n\t\t\t\tsection.loadPage(i,ppn);\n\t\t\t}\n\t\t}\n\t\t//For all the rest of the pages, just set them to new unwritable sections\n\t\tfor(int i=numPages-stackPages-1; i<numPages; i++){\n\t\t\tpageTable[i] = new TranslationEntry(i, physicalPages[i], true, false, false, false);\n\t\t}\n\t\treturn true;\n\t}",
"public String getSectionType() {\n\treturn sectionType;\n }",
"public static List<Section> getAllSections(int userId) {\r\n\t\t@SuppressWarnings(\"unchecked\")\r\n\t\tList<Section> sections=(List)HibernateTemplate.getObjectListByQuery(\"From Section where userId=\" + userId);\r\n\t\treturn sections;\r\n\t}",
"public synchronized int getSectionCount() {\n if (sections != null) {\n return sections.length;\n } else if (PropertyArray.get(props, SECTIONS) != null) {\n return parseSectionCount(PropertyArray.get(props, SECTIONS));\n } else {\n // hum, test props are never discarded, so we have no sections\n return 0;\n }\n }",
"protected int getSectionLevel() {\n return this.headingLevel;\n }",
"Section createSection();",
"@Kroll.getProperty\n\tpublic Object[] getData()\n\t// clang-format on\n\t{\n\t\treturn this.sections.toArray();\n\t}",
"public String getSectionName() {\n return mSectionName;\n }",
"public String getSectionName() {\n return mSectionName;\n }",
"protected boolean loadSections() {\n\t\tpageTable = new TranslationEntry[numPages];\n\t\t//set all translation entry to invalid\n\t\tfor (int i = 0; i < pageTable.length; i++) {\n\t\t\t//pageTable[i] = new TranslationEntry(i, UserKernel.getNextPage(), false, false, false, false);\n\t\t\tpageTable[i] = new TranslationEntry(i, 0, false, false, false, false);\n\n\t\t}\n\n\t\treturn true;\n\t}",
"public int getSectionCode() {\n return sectionCode;\n }",
"public int removeAll (Section[] sectionArr) throws DataAccessException;",
"void handleSection(Section nativeSection, Object appData)\n {\n // Create a section\n Section sec = nativeSection;\n\n synchronized (sectionMonitor)\n {\n try\n {\n \tint sectionNumber;\n \t\n if(!sec.section_syntax_indicator())\n { \n \t// If section_syntac_indicator is false\n \t// There is only one section\n \t// Private data bytes immediately follow the\n \t// private_section_length field\n // Allocate the table sections array \n \tsectionNumber = 0;\n \t\n if (tableSections == null)\n {\n tableSections = new Section[1];\n tableSections[0] = null;\n\n sectionCounter = 0;\n numSections = 1;\n if (log.isDebugEnabled())\n {\n log.debug(\"TableSectionFilter::handleSection tableVersion: \" + tableVersion\n + \" sectionCounter: \" + sectionCounter + \" numSections: \" + numSections);\n }\n } \t\n }\n else\n { \n\t sectionNumber = sec.section_number();\n\t\n if (log.isDebugEnabled())\n {\n log.debug(\"TableSectionFilter: handleSection sec.section_number(): \" + sectionNumber\n + \" sec.version_number(): \" + sec.version_number());\n }\n\t\n\t // Allocate the table sections array using the size found\n\t // in the section itself.\n\t if (tableSections == null)\n\t {\n\t tableSections = new Section[sec.last_section_number() + 1];\n\t for (int i = 0; i <= sec.last_section_number(); i++)\n\t tableSections[i] = null;\n\t\n\t // Save off the version number for comparison against\n\t // future sections we receive.\n\t tableVersion = sec.version_number();\n\t sectionCounter = 0;\n\t numSections = sec.last_section_number() + 1;\n if (log.isDebugEnabled())\n {\n log.debug(\"TableSectionFilter::handleSection tableVersion: \" + tableVersion\n + \" sectionCounter: \" + sectionCounter + \" numSections: \" + numSections);\n\t }\n\t }\n\t \n\t if(sectionNumber > numSections)\n\t {\n if (log.isErrorEnabled())\n {\n log.error(\"TableSectionFilter::handleSection - Error occured, section number (\" \n \t\t + sectionNumber \n \t\t + \")\" \n \t\t + \" may not be greater than the number of sections (\" \n \t\t + numSections \n \t\t + \")\" + \" - Ignoring section...\"); \n }\n\t return;\n\t }\n\t \n\t // Check if the table version has changed\n\t if (tableVersion != sec.version_number())\n\t {\n\t // If the version number has changed then generate a version\n\t // change event\n\t // discard this section and continue filtering\n\n if (log.isDebugEnabled())\n {\n log.debug(\"TableSectionFilter::handleSection posting a VersionChangeDetectedEvent...\"\n + \" tableVersion: \" + tableVersion + \" sec.version_number(): \" + sec.version_number());\n }\n\t // Send VersionChangeDetectedEvent only once\n\t if (!sentVersionChangeEvent)\n\t {\n\t notifySectionFilterListener(new VersionChangeDetectedEvent(this, appData, tableVersion,\n\t sec.version_number()));\n\t sentVersionChangeEvent = true;\n\t }\n\t return;\n\t } \t \n } \n\n // Store this section in our array\n // need to verify this here.\n if (sec != null && tableSections[sectionNumber] == null)\n {\n tableSections[sectionNumber] = sec;\n\n sectionCounter++;\n haveReceivedSections = true;\n\n // Signal the sectionMonitor in case someone is blocking on\n // the getSections method.\n\t\t\t\t\t// Added for findbugs issues fix - start\n m_completed = true;\n\t\t\t\t\t// Added for findbugs issues fix - end\n sectionMonitor.notifyAll();\n\n if (log.isDebugEnabled())\n {\n log.debug(\"TableSectionFilter::handleSection calling notifySectionFilterListener-SectionAvailableEvent for section \"\n + sectionNumber);\n }\n // If the table is not complete, just alert listeners that a\n // new\n // section is available\n notifySectionFilterListener(new SectionAvailableEvent(this, appData));\n }\n }\n catch (NoDataAvailableException e)\n {\n return;\n }\n\n }\n if (log.isDebugEnabled())\n {\n log.debug(\"TableSectionFilter::sectionCounter: \" + sectionCounter + \" numSections: \" + numSections);\n }\n\n // Check if Table is complete!\n\n if (sectionCounter >= numSections)\n {\n stopFiltering();\n if (log.isDebugEnabled())\n {\n log.debug(\"TableSectionFilter: posting a EndOfFilteringEvent...\");\n }\n notifySectionFilterListener(new EndOfFilteringEvent(this, appData));\n }\n }",
"public void CreateSectionItems(TagView sectionItems, String category) {\n List<SectionItem> sectionItemsList = new ArrayList<SectionItem>();\n\n SectionItem sectionItem = new SectionItem();\n sectionItem.setCategoryItem(sectionItems);\n sectionItemsList.add(sectionItem);\n\n SetItemsWithHeaders(sectionItemsList, category);\n\n }",
"public ArrayList<HashMap<String, String>> getIniContent() {\n return this.sections;\n }",
"public String getSectionName() {\r\n\t\treturn this.sectionName;\r\n\t}",
"public void addColumnSectionId() {\n addColumnInPrimarySection(ColumnMetaData.KEY_SECTION_ID);\n }",
"public List<Section> findAll () throws DataAccessException;",
"public Collection<TrackRailsSingleNodeElement> getSections(IntVector3 blockPos) {\n return new CollectionWrapper(blockPos);\n }",
"List<T> getSectionItems(int sectionIndex);",
"public void addSection(String sectionId) {\n\t\t\r\n\t}",
"public static SectionSets createFromSections (Collection<Section> sections)\r\n {\r\n SectionSets sectionSets = new SectionSets();\r\n sectionSets.sets = new ArrayList<>();\r\n sectionSets.sets.add(sections);\r\n\r\n return sectionSets;\r\n }",
"public SectionsPagerAdapter getSectionsPagerAdapterRef() {\n return mSectionsPagerAdapter;\n }",
"public String[] getAuthorizedSections(Section sec) {\n\t\tString[] lst = authorizedSections.get(sec);\n\t\treturn lst != null ? lst : authorizedSections.get(BROWSE_SECTION);\n\t}",
"float getSectionHeaderHeight(int section);",
"public native int getSectionCount() /*-{\n\t\tvar jso = this.@com.emitrom.ti4j.core.client.ProxyObject::getJsObj()();\n\t\treturn jso.sectionCount;\n }-*/;",
"public GraphSection getSection() {\r\n\t\treturn section;\r\n\t}",
"public void setSectionNo(String sectionNo)\r\n\t{\r\n\t\tthis.sectionNo = sectionNo;\r\n\t}",
"public static synchronized ArrayList<QASections> fetchSectionsList(\n\t\t\tContext context, String query) throws SQLException,\n\t\t\tNullPointerException {\n\n\t\tQADatabaseHelper dbHelper = QADatabaseHelper.getInstance(context);\n\t\tSQLiteDatabase db = dbHelper.getReadableDatabase();\n\n\t\tArrayList<QASections> sectionsList = null;\n\n\t\tCursor cursor = null;\n\t\ttry {\n\t\t\tcursor = db.rawQuery(query, null);\n\t\t} catch (Exception exception) {\n\t\t\texception.printStackTrace();\n\t\t}\n\t\tcursor.moveToFirst();\n\t\tif (cursor != null && cursor.getCount() > QAConstants.DB_EMPTY) {\n\t\t\tsectionsList = new ArrayList<QASections>();\n\t\t\tfor (cursor.moveToFirst(); !cursor.isAfterLast(); cursor\n\t\t\t\t\t.moveToNext()) {\n\t\t\t\tQASections section = new QASections();\n\n\t\t\t\tsection.setPrimaryKey(cursor.getInt(cursor\n\t\t\t\t\t\t.getColumnIndex(SECTIONS_COLUMN_NAME_PRIMARY_KEY)));\n\t\t\t\tsection.setSectionName(cursor.getString(cursor\n\t\t\t\t\t\t.getColumnIndex(SECTIONS_COLUMN_NAME_SECTION_NAME)));\n\t\t\t\tsection.setImageUrl(cursor.getString(cursor\n\t\t\t\t\t\t.getColumnIndex(SECTIONS_COLUMN_NAME_IMAGE_URL)));\n\t\t\t\tsection.setUpdatedAt(cursor.getString(cursor\n\t\t\t\t\t\t.getColumnIndex(SECTIONS_COLUMN_NAME_UPDATED_AT)));\n\t\t\t\tsectionsList.add(section);\n\t\t\t}\n\t\t}\n\t\tcursor.close();\n\t\treturn sectionsList;\n\t}",
"List<ArrangementSectionRule> getExtendedSectionRules();",
"public synchronized String[] getSectionTitles() {\n if (props == null) {\n try {\n reload();\n } catch (Fault f) {\n // should this maybe be a JavaTestError?\n return null;\n }\n }\n\n // look for what we need from easiest to hardest source\n String names = PropertyArray.get(props, SECTIONS);\n\n if (names != null) {\n // it is cached\n return StringArray.split(names);\n } else if (sections != null) {\n // TR is not immutable yet, probably\n int numSections = getSectionCount();\n String[] data = new String[numSections];\n\n for (int i = 0; i < numSections; i++) {\n data[i] = sections[i].getTitle();\n }\n\n return data;\n } else {\n // hum, bad. No sections exist and this data isn't cached\n // the test probably has not run\n return null;\n }\n }",
"public void setSection(String section) {\n if(section==null){\n section=\"\";\n }\n this.section = section;\n }",
"public Section getSection() {\n\treturn belongedSection.clone();\n }",
"@Test\n\tpublic void testSectionsLoaded() throws Exception {\n\t\ttry {\n\t\t\tcmService.getSection(\"biology_101_01_lec01\");\n\t\t} catch (IdNotFoundException ide) {\n\t\t\tAssert.fail();\n\t\t}\n\t}",
"public void setSection(final String section) {\n this.section = section;\n }",
"public void setSectionID(Integer sectionID){\n this.sectionID = sectionID;\n }",
"@Test\n public void testGetSectionList() {\n System.out.println(\"getSectionList\");\n \n instance.addSection(null);\n \n ArrayList result = instance.getSectionList();\n assertTrue(\"Incorrect Length\", result.size() == 1);\n assertNull(\"Incorrect data\", result.get(0));\n \n // TODO review the generated test code and remove the default call to fail.\n // fail(\"The test case is a prototype.\");\n }",
"public List<Section> findByFilter (Section section, Pagination pagination) throws DataAccessException;",
"public interface TableSectionBuilder extends ElementBuilderBase<TableSectionBuilder> {\n\n String UNSUPPORTED_HTML =\n \"Table section elements do not support setting inner html or text. \"\n + \"Use startTR() instead to append a table row to the section.\";\n\n /**\n * Horizontal alignment of data in cells. See the align attribute for HTMLTheadElement for\n * details.\n */\n TableSectionBuilder align(String align);\n\n /**\n * Alignment character for cells in a column.\n *\n * @see <a href=\"http://www.w3.org/TR/1999/REC-html401-19991224/struct/tables.html#adef-char\">W3C\n * HTML Specification</a>\n */\n TableSectionBuilder ch(String ch);\n\n /**\n * Offset of alignment character.\n *\n * @see <a\n * href=\"http://www.w3.org/TR/1999/REC-html401-19991224/struct/tables.html#adef-charoff\">W3C\n * HTML Specification</a>\n */\n TableSectionBuilder chOff(String chOff);\n\n /**\n * Vertical alignment of data in cells. See the valign attribute for HTMLTheadElement for details.\n */\n TableSectionBuilder vAlign(String vAlign);\n}",
"private void initSections() {\n sections = new HashMap<>();\n addSection(JsonFailuresInput.class, new JsonFailuresInput(inputProgram, jsonObject));\n addSection(JsonTransformationCollectionInput.class,\n new JsonTransformationCollectionInput(inputProgram, jsonObject));\n addSection(JsonHeaderInput.class, new JsonHeaderInput(inputProgram, jsonObject, verifyProject));\n }",
"@Test\n public void testSection() {\n \n Report instance = new Report();\n\n ArrayList<Section> section = new ArrayList<Section>();\n \n Section section1 = new Section();\n Section section2 = new Section();\n \n assertNotSame(section1, section2);\n\n /**************/\n /** Phase 1 **/\n /**************/\n // Test of getter\n assertEquals(section, instance.getSection());\n\n /**************/\n /** Phase 2 **/\n /**************/\n\n section.add(section1);\n section.add(section2);\n\n instance.setSection(section);\n\n // Test of setter\n assertEquals(section, instance.getSection());\n\n /**************/\n /** Phase 3 **/\n /**************/\n Report instance2 = new Report();\n\n instance2.addSection(section1);\n instance2.addSection(section2);\n\n assertEquals(section, instance.getSection());\n }",
"public boolean isSection(String key)\n {\n return getSection(key) != null;\n }",
"@Test\n\tpublic void testGoodSectionTokens() {\n\t\tassertEquals( SectionHeaderToken.fromIdentifier( sectionStart ), SectionHeaderToken.SECTION_START );\n\t\tassertEquals( SectionHeaderToken.fromIdentifier( sectionHeader ), SectionHeaderToken.SECTION_HEADER );\n\t\tassertEquals( SectionHeaderToken.fromIdentifier( sectionSplit ), SectionHeaderToken.SECTION_SPLIT );\n\t}",
"public static void invoiceSectionPermissionsList(com.azure.resourcemanager.billing.BillingManager manager) {\n manager\n .billingPermissions()\n .listByInvoiceSections(\n \"{billingAccountName}\",\n \"{billingProfileName}\",\n \"{invoiceSectionName}\",\n com.azure.core.util.Context.NONE);\n }",
"public static synchronized void insertSections(Context context,\n\t\t\tList<ParseObject> sectionsList, String tableName)\n\t\t\tthrows SQLException, NullPointerException {\n\t\tQADatabaseHelper dbHelper = QADatabaseHelper.getInstance(context);\n\t\tSQLiteDatabase db = dbHelper.getWritableDatabase();\n\t\tContentValues values = new ContentValues();\n\n\t\tfor (ParseObject section : sectionsList) {\n\t\t\tvalues.put(SECTIONS_COLUMN_NAME_PRIMARY_KEY,\n\t\t\t\t\tsection.getInt(SECTIONS_COLUMN_NAME_PRIMARY_KEY));\n\t\t\tvalues.put(SECTIONS_COLUMN_NAME_SECTION_NAME,\n\t\t\t\t\tsection.getString(SECTIONS_COLUMN_NAME_SECTION_NAME));\n\t\t\tvalues.put(SECTIONS_COLUMN_NAME_IMAGE_URL,\n\t\t\t\t\tsection.getString(SECTIONS_COLUMN_NAME_IMAGE_URL));\n\n\t\t\tFormatter formatter = new Formatter();\n\t\t\tCalendar calendar = Calendar.getInstance();\n\t\t\tformatter.format(\"%tc\", calendar);\n\t\t\tformatter.close();\n\n\t\t\tDate originalDate = calendar.getTime();\n\n\t\t\tvalues.put(SECTIONS_COLUMN_NAME_UPDATED_AT, originalDate.toString());\n\t\t\ttry {\n\t\t\t\tdb.replace(tableName, null, values);\n\t\t\t} catch (Exception exception) {\n\t\t\t\texception.printStackTrace();\n\t\t\t}\n\t\t}\n\t\tdb.close();\n\t}",
"public int getCount() {\n \t\tint total = 0;\n \t\tfor(Adapter adapter : this.sections.values())\n \t\t\ttotal += adapter.getCount() + 1;\n \t\treturn total;\n \t}",
"public List<SectionBean> populateallSection(String sql ){\n\t\t\t\tList<SectionBean> retlist = jdbcTemplate.query(sql,ParameterizedBeanPropertyRowMapper.newInstance(SectionBean.class));\n\t\t\t\t\treturn retlist;\n\t\t }",
"public Builder section_type(String section_type) {\n this.section_type = section_type;\n return this;\n }",
"private void resetSections() {\n\t\tdescription.setVisibility(View.GONE);\n\t\tlocation.setVisibility(View.GONE);\n\t\thighlights.setVisibility(View.GONE);\n\t\tinclusions.setVisibility(View.GONE);\n\t\texclusions.setVisibility(View.GONE);\n\t\tknowBeforeYouBook.setVisibility(View.GONE);\n\t\tcancellation.setVisibility(View.GONE);\n\t}",
"public List<SectionModel> getType(List<Integer> sections) {\n List<SectionModel> models = new ArrayList<>();\n for (SectionModel model : sectionModels) {\n if (sections.contains(model.section_id))\n models.add(model);\n }\n return models;\n }",
"private SectionSets ()\r\n {\r\n }",
"private static int[] parseSectionHeader(ByteArrayInputStream stream) throws EOFException\n {\n int tableId = EASMessage.parseUnsignedByte(stream);\n int sectionLength = EASMessage.parseUnsignedShort(stream);\n int bytesAvailable = stream.available();\n int tableIdExtension = EASMessage.parseUnsignedShort(stream);\n int sequenceNumber = EASMessage.parseUnsignedByte(stream);\n int sectionNumber = EASMessage.parseUnsignedByte(stream);\n int lastSectionNumber = EASMessage.parseUnsignedByte(stream);\n int protocolVersion = EASMessage.parseUnsignedByte(stream);\n\n // included for completeness, should never occur since this table_ID\n // value is how we got here\n if (tableId != EASMessage.EA_TABLE_ID)\n {\n String message = \"SCTE-18: table_ID is not a cable emergency alert message:<0x\"\n + Integer.toHexString(tableId) + \">\";\n throw new IllegalStateException(message);\n }\n\n // no else-ifs constructs as we want to see all non-compliance issues\n if (log.isWarnEnabled())\n {\n String prefix = \"SCTE-18[sn=\" + ((sequenceNumber >> 1) & 0x1F) + \"]: \";\n\n if ((sectionLength & 0x8000) == 0)\n {\n if (log.isWarnEnabled())\n {\n log.warn(prefix + \"section_syntax_indicator not set\");\n }\n }\n if ((sectionLength &= 0xFFF) < 43 || sectionLength > 4093)\n {\n if (log.isWarnEnabled())\n {\n log.warn(prefix + \"section_length not in range of 43..4093:<\" + sectionLength + \">\");\n }\n }\n if (sectionLength != bytesAvailable)\n {\n if (log.isWarnEnabled())\n {\n log.warn(prefix + \"section_length:<\" + sectionLength + \"> doesn't equal available bytes:<\"\n + bytesAvailable + \">\");\n }\n }\n if (tableIdExtension != 0)\n {\n if (log.isWarnEnabled())\n {\n log.warn(prefix + \"table_id_extension is non-zero:<0x\"\n + Integer.toHexString(tableIdExtension) + \">\");\n }\n }\n if ((sequenceNumber & 0x01) == 0)\n {\n if (log.isWarnEnabled())\n {\n log.warn(prefix + \"current_next_indicator is not set\");\n }\n }\n if (sectionNumber != 0)\n {\n if (log.isWarnEnabled())\n {\n log.warn(prefix + \"section_number is non-zero:<\" + sectionNumber + \">\");\n }\n }\n if (lastSectionNumber != 0)\n {\n if (log.isWarnEnabled())\n {\n log.warn(prefix + \"last_section_number is non-zero:<\" + lastSectionNumber + \">\");\n }\n }\n }\n\n int[] fields = new int[2];\n fields[0] = (sequenceNumber >> 1) & 0x1F;\n fields[1] = protocolVersion;\n return fields;\n }",
"protected void unloadSections() {\n\t\tsuper.unloadSections();\n\t}",
"public boolean isAllowedEnterSection(String section)\r\n {\r\n Identity userIdentity = securityService.findLoggedInIdentity();\r\n if (section.equals(SECTION_PILOT)) return rolesContainRole(userIdentity, \"PILOT\");\r\n if (section.equals(SECTION_GENERAL)) return rolesContainRole(userIdentity, \"GENERAL\");\r\n if (section.equals(SECTION_ADMIN)) return rolesContainRole(userIdentity, \"ADMIN\");\r\n return false;\r\n }",
"public AIlogicalSerial subSection(int i);",
"public void setSectionCode(int sectionCode) {\n this.sectionCode = sectionCode;\n }",
"public void setSectionType(final String sectionType) {\n\tthis.sectionType = sectionType;\n }",
"protected void unloadSections() \n\t{\n\t\tsuper.unloadSections();\n\t}",
"public void setSectionName(String sectionName) {\r\n\t\tthis.sectionName = sectionName;\r\n\t}",
"@Override\n\tpublic IDataItem getSection(List<IRange> section)\n\t\t\tthrows InvalidRangeException {\n\t\treturn null;\n\t}",
"public TeleversementDeLotSectionsHitTest() {\r\n\t\tsuper();\r\n\t}",
"@Transactional\n\t@Override\n\tpublic void updateEmptySectionGroups() {\n\t\tList<SectionGroup> emptySectionGroups = sectionGroupService.findEmpty();\n\n\t\t// Generate termCode+subjectCode pairs to query DW for to get relevant sections\n\t\tList<SubjectTermCode> subjectTermCodes = jdbcTemplate.query(\"SELECT DISTINCT sg.TermCode, c.SubjectCode\" +\n\t\t\t\t\t\t\" FROM SectionGroups sg\" +\n\t\t\t\t\t\t\" LEFT JOIN Courses c ON sg.CourseId = c.Id\" +\n\t\t\t\t\t\t\" LEFT JOIN Sections st ON sg.Id = st.sectionGroupId\" +\n\t\t\t\t\t\t\" WHERE st.Id IS NULL;\",\n\t\t\t\t(rs, rowNum) -> new SubjectTermCode(\n\t\t\t\t\t\trs.getString(\"SubjectCode\"),\n\t\t\t\t\t\trs.getString(\"TermCode\")\n\t\t\t\t)\n\t\t);\n\n\t\t// Query DW for potentially matching sections\n\t\tList<DwSection> allDwSections = new ArrayList<>();\n\n\t\tfor (SubjectTermCode subjectTermCode : subjectTermCodes) {\n\t\t\tList<DwSection> slotDwSections = dwRepository.getSectionsBySubjectCodeAndTermCode(subjectTermCode.subjectCode, subjectTermCode.termCode);\n\t\t\tallDwSections.addAll(slotDwSections);\n\t\t}\n\n\t\t// Identify which dwSections match an IPA emptySectionGroup, and persist section/activities\n\t\tfor (DwSection dwSection : allDwSections) {\n\t\t\t// Convert dw sequenceNumber to sequencePattern\n\t\t\tCharacter dwSequenceNumberStart = dwSection.getSequenceNumber().charAt(0);\n\t\t\tString sequencePattern = null;\n\n\t\t\tif (Character.isLetter(dwSequenceNumberStart)) {\n\t\t\t\tsequencePattern = String.valueOf(dwSequenceNumberStart);\n\t\t\t} else {\n\t\t\t\tsequencePattern = dwSection.getSequenceNumber();\n\t\t\t}\n\n\t\t\t// Generate matchingKey for dwSection, example: '201610-ART-001-A'\n\t\t\tString dwMatchingKey = dwSection.getTermCode() + \"-\" + dwSection.getSubjectCode() + \"-\" + dwSection.getCourseNumber() + \"-\" + sequencePattern;\n\n\t\t\t// Find matching ipa sectionGroup\n\t\t\tfor (SectionGroup sectionGroup : emptySectionGroups) {\n\t\t\t\tString ipaMatchingKey = sectionGroup.getTermCode() + \"-\" + sectionGroup.getCourse().getSubjectCode() + \"-\" + sectionGroup.getCourse().getCourseNumber() + \"-\" + sectionGroup.getCourse().getSequencePattern();\n\n\t\t\t\tif (ipaMatchingKey.equals(dwMatchingKey)) {\n\t\t\t\t\t// Create section\n\t\t\t\t\tSection section = new Section();\n\t\t\t\t\tsection.setSectionGroup(sectionGroup);\n\n\t\t\t\t\tsection.setCrn(dwSection.getCrn());\n\t\t\t\t\tsection.setSequenceNumber(dwSection.getSequenceNumber());\n\t\t\t\t\tsection.setSeats(dwSection.getMaximumEnrollment());\n\n\t\t\t\t\t// Using sectionRepository as this sync needs to bypass the 'term lock' validation\n\t\t\t\t\tsection = sectionService.save(section);\n\n\t\t\t\t\t// Create activities\n\t\t\t\t\tfor (DwActivity dwActivity : dwSection.getActivities()) {\n\t\t\t\t\t\tActivity activity = activityService.createFromDwActivity(dwActivity);\n\n\t\t\t\t\t\tTerm term = termService.getOneByTermCode(sectionGroup.getTermCode());\n\n\t\t\t\t\t\tactivity.setEndDate(term.getEndDate());\n\t\t\t\t\t\tactivity.setBeginDate(term.getStartDate());\n\t\t\t\t\t\tactivity.setSection(section);\n\n\t\t\t\t\t\ttry {\n\t\t\t\t\t\t\tactivityService.saveActivity(activity);\n\t\t\t\t\t\t} catch (javax.validation.ConstraintViolationException e) {\n\t\t\t\t\t\t\tlog.error(\"Could not save activity based on DW activity:\" + dwActivity);\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\n\t\t// Identify activities that exist on all sections, and move them to the sectionGroup sharedActivities\n\t\tfor (SectionGroup sectionGroup : emptySectionGroups) {\n\t\t\tsectionGroupService.identifyAndCondenseSharedActivities(sectionGroup);\n\t\t}\n\t}",
"SectionType createSectionType();",
"@Test\n public void testRemoveSection() {\n System.out.println(\"removeSection\");\n int position = 0;\n \n if (instance.getNumberOfSections() > 0) \n instance.removeSection(position);\n else {\n instance.addSection(new Section(1, null, null, null, position));\n instance.removeSection(0);\n }\n int result = instance.getNumberOfSections();\n assertTrue (\"Was not removed\", result == 0);\n // TODO review the generated test code and remove the default call to fail.\n // fail(\"The test case is a prototype.\");\n }"
] |
[
"0.7376779",
"0.7099775",
"0.70088893",
"0.69458145",
"0.66622037",
"0.6656656",
"0.6455186",
"0.63878953",
"0.6345025",
"0.6250979",
"0.6201818",
"0.6166637",
"0.60869384",
"0.6067039",
"0.59324706",
"0.5884162",
"0.5879567",
"0.5862651",
"0.5862651",
"0.58548117",
"0.5849533",
"0.5789203",
"0.57740986",
"0.5765966",
"0.57631993",
"0.57611406",
"0.5753052",
"0.57269835",
"0.5719675",
"0.5649621",
"0.5615254",
"0.5593296",
"0.5561484",
"0.5532473",
"0.5526821",
"0.55190957",
"0.54925203",
"0.54751194",
"0.5461277",
"0.54446095",
"0.5410988",
"0.5404234",
"0.5399747",
"0.5390208",
"0.5390208",
"0.5385898",
"0.53466445",
"0.53453606",
"0.53156537",
"0.5288414",
"0.5278064",
"0.52153295",
"0.52111864",
"0.5163674",
"0.5157384",
"0.51484036",
"0.51478744",
"0.51450235",
"0.5116109",
"0.51152825",
"0.50773174",
"0.507308",
"0.5051282",
"0.5027663",
"0.5025389",
"0.50223243",
"0.50094664",
"0.49964705",
"0.49815935",
"0.49637696",
"0.49629122",
"0.49596265",
"0.4945647",
"0.4943292",
"0.49421167",
"0.4914386",
"0.48927233",
"0.48913276",
"0.48848128",
"0.48806486",
"0.48736483",
"0.48529273",
"0.48456946",
"0.48432627",
"0.48430797",
"0.4840337",
"0.4835858",
"0.48330384",
"0.4803794",
"0.47904593",
"0.4788795",
"0.47857147",
"0.4781132",
"0.47668847",
"0.47649303",
"0.4715647",
"0.47045425",
"0.47037408",
"0.46986783",
"0.46960953"
] |
0.60181224
|
14
|
Append a row to the table, optionally with animation
|
public native void appendRow(List<TableViewRow> rows) /*-{
var jso = this.@com.emitrom.ti4j.core.client.ProxyObject::getJsObj()();
jso
.appendRow(@com.emitrom.ti4j.mobile.client.ui.TableViewRow::fromList(Ljava/util/List;)(rows));
}-*/;
|
{
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
}
|
[
"public native void insertRowAfter(int index, TableViewRow row, TableViewAnimation animation) /*-{\n\t\tvar jso = this.@com.emitrom.ti4j.core.client.ProxyObject::getJsObj()();\n\t\tjso\n\t\t\t\t.insertRowAfter(\n\t\t\t\t\t\tindex,\n\t\t\t\t\t\trow.@com.emitrom.ti4j.core.client.ProxyObject::getJsObj()(),\n\t\t\t\t\t\tanimation.@com.emitrom.ti4j.core.client.ProxyObject::getJsObj()());\n }-*/;",
"public native void appendRow(List<TableViewRow> rows, TableViewAnimation animation) /*-{\n\t\tvar jso = this.@com.emitrom.ti4j.core.client.ProxyObject::getJsObj()();\n\t\tjso\n\t\t\t\t.appendRow(\n\t\t\t\t\t\t@com.emitrom.ti4j.mobile.client.ui.TableViewRow::fromList(Ljava/util/List;)(rows),\n\t\t\t\t\t\tanimation.@com.emitrom.ti4j.core.client.ProxyObject::getJsObj()());\n }-*/;",
"public void addRow() {\n tableModel.insertRow(this.getRowCount(), new String[]{});\n this.setModel(tableModel);\n\n }",
"@Kroll.method\n\tpublic void appendRow(Object rows, @Kroll.argument(optional = true) KrollDict animation)\n\t{\n\t\tfinal List<TableViewRowProxy> rowList = new ArrayList<>();\n\n\t\tif (rows instanceof Object[]) {\n\n\t\t\t// Handle array of rows.\n\t\t\tfor (Object rowObj : (Object[]) rows) {\n\t\t\t\tfinal TableViewRowProxy row = processRow(rowObj);\n\n\t\t\t\tif (row != null) {\n\t\t\t\t\trowList.add(row);\n\t\t\t\t}\n\t\t\t}\n\t\t} else {\n\t\t\tfinal TableViewRowProxy row = processRow(rows);\n\n\t\t\t// Handle single row.\n\t\t\tif (row != null) {\n\t\t\t\trowList.add(row);\n\t\t\t}\n\t\t}\n\t\tif (rowList.size() == 0) {\n\t\t\treturn;\n\t\t}\n\n\t\t// Prevent updating rows during iteration.\n\t\tshouldUpdate = false;\n\n\t\t// Append rows to last section.\n\t\tfor (TableViewRowProxy row : rowList) {\n\n\t\t\t// Create section if one does not exist.\n\t\t\t// Or create new section if `headerTitle` is specified.\n\t\t\tif (this.sections.size() == 0\n\t\t\t\t|| row.hasPropertyAndNotNull(TiC.PROPERTY_HEADER)\n\t\t\t\t|| row.hasPropertyAndNotNull(TiC.PROPERTY_HEADER_TITLE)\n\t\t\t) {\n\t\t\t\tfinal TableViewSectionProxy section = new TableViewSectionProxy();\n\n\t\t\t\t// Set `headerTitle` of section from row.\n\t\t\t\tsection.setProperty(TiC.PROPERTY_HEADER_TITLE,\n\t\t\t\t\trow.getProperties().optString(TiC.PROPERTY_HEADER_TITLE,\n\t\t\t\t\t\trow.getProperties().getString(TiC.PROPERTY_HEADER)));\n\n\t\t\t\tsection.setParent(this);\n\t\t\t\tthis.sections.add(section);\n\t\t\t}\n\n\t\t\t// Obtain last section.\n\t\t\tfinal TableViewSectionProxy section = this.sections.get(this.sections.size() - 1);\n\n\t\t\t// Override footer of section.\n\t\t\tsection.setProperty(TiC.PROPERTY_FOOTER_TITLE,\n\t\t\t\trow.getProperties().optString(TiC.PROPERTY_FOOTER_TITLE,\n\t\t\t\t\trow.getProperties().getString(TiC.PROPERTY_FOOTER)));\n\n\t\t\t// Add row to section.\n\t\t\tsection.add(row);\n\t\t}\n\n\t\t// Allow updating rows after iteration.\n\t\tshouldUpdate = true;\n\t\tupdate();\n\t}",
"private void addRow() {\n\t\t\n\t\tArrayList<Invader> lastRow = enemyArray.get(enemyArray.size() - 1);\n\t\tArrayList<Invader> newRow = new ArrayList<Invader>();\n\t\t\t\n\t\tfor (int i = 0; i < 10; i++) {\n\t\t\tnewRow.add(new Invader(\n\t\t\t\t\tlastRow.get(i).getX(),\n\t\t\t\t\tlastRow.get(i).getY() + 40,\n\t\t\t\t\tPLAYER_WIDTH,\n\t\t\t\t\tPLAYER_WIDTH,\n\t\t\t\t\t2));\n\t\t}\n\t\t\n\t\tenemyArray.add(newRow);\n\t}",
"public void addNewRow(Vector row) throws IllegalStateException{\r\n if(flagAddStatusRow){\r\n row.add(numberOfcolumns, new Integer(IS_INSERTED)); //Set status for row is add new\r\n }else{\r\n row.setElementAt(new Integer(IS_NO_CHANGE), numberOfcolumns);\r\n }\r\n data.add(row);\r\n }",
"public void addRow(TableViewRow row) {\n this.rows.add(row);\n }",
"public void addRow(Spedizione spedizione){\n spedizioni.add(spedizione);\n fireTableChanged(new TableModelEvent(this));\n }",
"public native void insertRowBefore(int index, TableViewRow row, TableViewAnimation animation) /*-{\n\t\tvar jso = this.@com.emitrom.ti4j.core.client.ProxyObject::getJsObj()();\n\t\tjso\n\t\t\t\t.insertRowBefore(\n\t\t\t\t\t\tindex,\n\t\t\t\t\t\trow.@com.emitrom.ti4j.core.client.ProxyObject::getJsObj()(),\n\t\t\t\t\t\tanimation.@com.emitrom.ti4j.core.client.ProxyObject::getJsObj()());\n }-*/;",
"@Kroll.method\n\tpublic void insertRowAfter(int index, Object rowObj, @Kroll.argument(optional = true) KrollDict animation)\n\t{\n\t\tfinal TableViewRowProxy existingRow = getRowByIndex(index);\n\n\t\tif (existingRow != null) {\n\t\t\tfinal TiViewProxy parent = existingRow.getParent();\n\n\t\t\tif (parent != null) {\n\t\t\t\tif (parent instanceof TableViewSectionProxy) {\n\t\t\t\t\tfinal TableViewSectionProxy section = (TableViewSectionProxy) parent;\n\t\t\t\t\tfinal TableViewRowProxy row = processRow(rowObj);\n\n\t\t\t\t\tif (row == null) {\n\t\t\t\t\t\treturn;\n\t\t\t\t\t}\n\n\t\t\t\t\t// Row is in section, modify section rows.\n\t\t\t\t\tsection.add(existingRow.getIndexInSection() + 1, row);\n\n\t\t\t\t\t// Notify TableView of update.\n\t\t\t\t\tupdate();\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}",
"public void newRow();",
"public void addRow(Row row) {\r\n\t\trows.add(row);\r\n\t}",
"public void addRow(String rowName);",
"protected void addRow(TextButton buttonToAdd)\n {\n table.add(buttonToAdd).width(centre/3.0f);\n table.row();\n }",
"Row createRow();",
"public void addRow(ResultRow row) {\r\n rows.add(row);\r\n }",
"public void addRow(Row r) {\n\t\tcontainingRows.add(r);\n\t}",
"public void addRow () {\n CSVRow row = CSVRow.createEmptyLine(nbOfColumns, this);\n addRow(row);\n }",
"private void addTableRow(String[] cols){\n final TableRow tr = (TableRow) inflater.inflate(R.layout.word_table_row, tableLayout, false);\n tr.setClickable(true);\n final TableRow tr1 = (TableRow) inflater.inflate(R.layout.word_table_row1, tableLayout, false);\n //tr1.setClickable(true);\n final TextView posView = (TextView)tr.findViewById(R.id.wordPos);\n final TextView descriptionView = (TextView)tr.findViewById(R.id.wordDescription);\n final TextView glossView = (TextView) tr1.findViewById(R.id.wordGloss);\n final TextView glossView1 = (TextView) tr1.findViewById(R.id.wordGloss1);\n\n // set the background color to indicate if the row was selected\n View.OnClickListener clickListener = new View.OnClickListener() {\n public void onClick(View v) {\n Drawable background = posView.getBackground();\n int backColor = ContextCompat.getColor(context, R.color.row_background);\n if ((background instanceof ColorDrawable)) {\n int currentBackColor = ((ColorDrawable) background).getColor();\n if (currentBackColor == rowSelectColor)\n backColor = rowBackColor;\n //else if (currentBackColor == rowHighlightColor)\n // backColor = rowHighlightColor;\n else\n backColor = rowSelectColor;\n }\n posView.setBackgroundColor(backColor);\n descriptionView.setBackgroundColor(backColor);\n glossView.setBackgroundColor(backColor);\n tr.setBackgroundColor(backColor);\n tr1.setBackgroundColor(backColor);\n }\n };\n\n tr.setOnClickListener(clickListener);\n tr1.setOnClickListener(clickListener);\n\n // set the background color and text of the table row\n int backColor = rowBackColor;\n posView.setText(fromHtml(cols[0])); posView.setBackgroundColor(backColor);\n descriptionView.setText(fromHtml(cols[1])); descriptionView.setBackgroundColor(backColor);\n glossView.setText(fromHtml(cols[2])); glossView.setBackgroundColor(backColor);\n glossView1.setText(cols[3]);\n rows.add(tr); // save the collection of rows\n rows.add(tr1);\n tableLayout.addView(tr);\n tableLayout.addView(tr1);\n }",
"@Kroll.method\n\tpublic void insertRowBefore(int index, Object rowObj, @Kroll.argument(optional = true) KrollDict animation)\n\t{\n\t\tfinal TableViewRowProxy existingRow = getRowByIndex(index);\n\n\t\tif (existingRow != null) {\n\t\t\tfinal TiViewProxy parent = existingRow.getParent();\n\n\t\t\tif (parent != null) {\n\t\t\t\tif (parent instanceof TableViewSectionProxy) {\n\t\t\t\t\tfinal TableViewSectionProxy section = (TableViewSectionProxy) parent;\n\t\t\t\t\tfinal TableViewRowProxy row = processRow(rowObj);\n\n\t\t\t\t\tif (row == null) {\n\t\t\t\t\t\treturn;\n\t\t\t\t\t}\n\n\t\t\t\t\t// Row is in section, modify section rows.\n\t\t\t\t\tsection.add(existingRow.getIndexInSection(), row);\n\n\t\t\t\t\t// Notify TableView of update.\n\t\t\t\t\tupdate();\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}",
"private void addEmptyRow()\n {\n TableLayout table = (TableLayout) findViewById(R.id.lossesTable);\n TableRow row = new TableRow(this);\n\n TextView emptyView1 = new TextView(this);\n ((BadBudgetApplication)this.getApplication()).initializeTableCell(emptyView1, \"\", R.drawable.emptyborder);\n TextView emptyView2 = new TextView(this);\n ((BadBudgetApplication)this.getApplication()).initializeTableCell(emptyView2, \"\", R.drawable.emptyborder);\n TextView emptyView3 = new TextView(this);\n ((BadBudgetApplication)this.getApplication()).initializeTableCell(emptyView3, \"\", R.drawable.emptyborder);\n TextView emptyView4 = new TextView(this);\n ((BadBudgetApplication)this.getApplication()).initializeTableCell(emptyView4, \"\", R.drawable.emptyborder);\n\n row.addView(emptyView1);\n row.addView(emptyView2);\n row.addView(emptyView3);\n row.addView(emptyView4);\n\n table.addView(row);\n }",
"@Override\n\tpublic void addRow() {\n\t\tif(this.numCols == 0){\n\t\t\tthis.numCols++;\n\t\t}\n\t\tthis.numRows++;\n\t}",
"protected void addRowAttributes(TableRowBuilder row) {\n }",
"private void addRowTable(int cycle, int agentId, String message) {\n ((DefaultTableModel) this.table.getModel()).addRow(new Object[]{Integer.toString(cycle),\n Integer.toString(agentId), message});\n\n // https://stackoverflow.com/questions/5147768/scroll-jscrollpane-to-bottom\n var scrollBar = scrollPane.getVerticalScrollBar();\n AdjustmentListener downScroller = new AdjustmentListener() {\n @Override\n public void adjustmentValueChanged(AdjustmentEvent e) {\n e.getAdjustable().setValue(e.getAdjustable().getMaximum());\n scrollBar.removeAdjustmentListener(this);\n }\n };\n scrollBar.addAdjustmentListener(downScroller);\n }",
"public void addDefaultRowToTables(){\n DefaultTableModel model = (DefaultTableModel) jTable1.getModel();\n ArrayList<Student>templist = ListStudents();\n int noOfRows = ThreadLocalRandom.current().nextInt(0,5);\n Object rowData[] = new Object[3];\n \n if(noOfRows != 0){\n for(int i =1; i<=noOfRows; i++){\n \n rowData[0] = templist.get(i-1).userName;\n if (templist.get(i-1).paused == false){\n rowData[1] = \"Unpaused\";\n }\n Student s = new Student(templist.get(i-1).userName,templist.get(i-1).passWord,templist.get(i-1).email);\n students.add(s);\n model.addRow(rowData);\n } \n }\n if(students.isEmpty()){\n jLabel1.setVisible(true);\n } else{\n jLabel1.setVisible(false);\n }\n \n \n \n \n }",
"@Override\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\taddRow();\n\t\t\t}",
"public boolean addRow(TableRow row) {\n\n if (row.getContent().size() != columns.size())\n throw new IllegalArgumentException(\"El nombre de columnes de la nova fila no coincideix amb les de la taula\");\n\n for (String column : getColumnNames())\n if (!row.getContent().containsKey(column))\n throw new IllegalArgumentException(\"La nova fila no conté la columna: \" + column);\n\n return dataStructure.add(row);\n }",
"int addRow(RowData row_data) throws IOException;",
"@Override\n\t\t\tpublic void actionPerformed(ActionEvent arg0) {\n\t\t\t\taddRow();\n\t\t\t}",
"public Builder addRow(\n int index, io.dstore.engine.procedures.MiCheckPerformanceAd.Response.Row value) {\n if (rowBuilder_ == null) {\n if (value == null) {\n throw new NullPointerException();\n }\n ensureRowIsMutable();\n row_.add(index, value);\n onChanged();\n } else {\n rowBuilder_.addMessage(index, value);\n }\n return this;\n }",
"public native void updateRow(TableViewRow row, TableViewAnimation animation) /*-{\n\t\tvar jso = this.@com.emitrom.ti4j.core.client.ProxyObject::getJsObj()();\n\t\tjso\n\t\t\t\t.updateRow(\n\t\t\t\t\t\trow.@com.emitrom.ti4j.core.client.ProxyObject::getJsObj()(),\n\t\t\t\t\t\tanimation.@com.emitrom.ti4j.core.client.ProxyObject::getJsObj()());\n }-*/;",
"public void AddRow(String Table, String Value)\r\n {\n }",
"public void addRow(EntityBean e) {\n rows.add(e);\n updateTotalPageNumbers();\n }",
"public int addRow() {\n\t\t// Create a new row with nothing in it\n\t\tList row = new ArrayList();\n\t\treturn(addRow(row));\n\t}",
"private void addRow() {\n ArrayList<EscapeBlock> row = new ArrayList<>();\n grid.add(row);\n \n for (int j = 0; j < gridWidth; j++) {\n EscapeBlock block = new EscapeBlock(j, gridHeight);\n block.setLocation(margin + j * (Block.length+1) ,\n margin + topMargin + gridHeight * (Block.length+1)); \n \n this.add(block); // add to the JPanel \n row.add(block); // and to the row\n }\n \n gridHeight++;\n }",
"public void add(String[] row) {\r\n\t\tthis.df.add(row);\r\n\t}",
"public Builder addRow(io.dstore.engine.procedures.MiCheckPerformanceAd.Response.Row value) {\n if (rowBuilder_ == null) {\n if (value == null) {\n throw new NullPointerException();\n }\n ensureRowIsMutable();\n row_.add(value);\n onChanged();\n } else {\n rowBuilder_.addMessage(value);\n }\n return this;\n }",
"public static void rowPlus() {\n\t\tnRow++;\n\t\tbuildBoard();\n\t\tfor (int c = 0; c < nCol; c++)\n\t\t\tboard[c][nRow - 1] = pItem.getItem(rnd[c][nRow - 1] = random.nextDouble());\n\t\tRightPanel.updateTextBoardInfo();\n\t}",
"void addRowsLock();",
"public int addRow(List row) {\n\t\tdata.add(row);\n\t\tfireTableRowsInserted(data.size()-1, data.size()-1);\n\t\treturn(data.size() -1);\n\t}",
"Row<T> createRow(final T element);",
"public Builder addRows(\n String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n ensureRowsIsMutable();\n rows_.add(value);\n onChanged();\n return this;\n }",
"Rows createRows();",
"private void addRows() {\n this.SaleList.forEach(Factura -> {\n this.modelo.addRow(new Object[]{\n Factura.getId_Factura(),\n Factura.getPersona().getNombre(),\n Factura.getFecha().getTimestamp(),\n Factura.getCorreo(),\n Factura.getGran_Total()});\n });\n }",
"protected abstract E newRow();",
"public void addData(View view) {\n int numCompanies = companies.length;\n TableLayout tl = view.findViewById(R.id.tableLayout);\n Log.d(\"TableViewFragment\", \"addData() invoked\");\n for (int i = 0; i < numCompanies; i++) {\n Log.d(\"TableViewFragment\", \"addData()\" + (i));\n TableRow tr = new TableRow(getContext());\n tr.setLayoutParams(getLayoutParams());\n tr.addView(getTextView(i + 1, companies[i], Color.WHITE, Typeface.NORMAL, ContextCompat.getColor(getContext(), R.color.colorAccent)));\n tr.addView(getTextView(i + numCompanies, os[i], Color.WHITE, Typeface.NORMAL, ContextCompat.getColor(getContext(), R.color.colorAccent)));\n tl.addView(tr, getTblLayoutParams());\n }\n }",
"private void addNewLine(String timeAndDate, int steps) {\n\n String stepsString = Integer.toString(steps);\n\n TableRow newRow = new TableRow(this);\n\n // Create the Left hand side\n TextView left = new TextView(this);\n left.setText(timeAndDate);\n left.setGravity(Gravity.START);\n left.setPadding(10,5, 10,5);\n left.setTextSize(15);\n\n // Create the right hand side\n TextView right = new TextView(this);\n right.setText(stepsString);\n right.setGravity(Gravity.END);\n right.setPadding(10,5,10,5);\n right.setTextSize(15);\n\n // Add the TextView Components to the row\n newRow.addView(left);\n newRow.addView(right);\n\n // Add row to the TableLayout\n table.addView(newRow,new TableLayout.LayoutParams(TableLayout.LayoutParams.WRAP_CONTENT,\n TableLayout.LayoutParams.WRAP_CONTENT));\n\n // Create Line to separate rows and add to end of the new row\n View line = new View(this);\n line.setLayoutParams(new TableRow.LayoutParams(TableRow.LayoutParams.MATCH_PARENT,1));\n line.setBackgroundColor(Color.BLACK);\n table.addView(line);\n\n // Scroll to the newly added row\n scrollTo(newRow);\n }",
"public void addRow (int index)\n\t{\n\t\tm_data.rows.add(index, new ArrayList<Object>());\n\t\tm_data.rowsMeta.add(index, null);\n\t}",
"public void addHeaders() {\n TableLayout tl = findViewById(R.id.table);\n TableRow tr = new TableRow(this);\n tr.setLayoutParams(getLayoutParams());\n if (!haverford) {\n tr.addView(getTextView(0, \"Leave Bryn Mawr\", Color.WHITE, Typeface.BOLD, Color.BLUE));\n tr.addView(getTextView(0, \"Arrive Haverford\", Color.WHITE, Typeface.BOLD, Color.BLUE));\n } else {\n tr.addView(getTextView(0, \"Leave Haverford\", Color.WHITE, Typeface.BOLD, Color.BLUE));\n tr.addView(getTextView(0, \"Arrive Bryn Mawr\", Color.WHITE, Typeface.BOLD, Color.BLUE));\n }\n tl.addView(tr, getTblLayoutParams());\n }",
"public Builder addRow(\n int index, io.dstore.engine.procedures.OmModifyCampaignsAd.Response.Row value) {\n if (rowBuilder_ == null) {\n if (value == null) {\n throw new NullPointerException();\n }\n ensureRowIsMutable();\n row_.add(index, value);\n onChanged();\n } else {\n rowBuilder_.addMessage(index, value);\n }\n return this;\n }",
"public void insertRow(int index) {\n\t\tString[] array = new String[getColumnCount()];\n\t\tArrays.fill(array, \"\"); //$NON-NLS-1$\n\t\tinput.add(index, new ArrayList<String>(Arrays.asList(array)));\n\t\ttableViewer.refresh(false);\n\t\tfireTableModified();\n\t}",
"private void selectTableRow () {\n int selectedRow = itemTable.getSelectedRow();\n if (selectedRow >= 0 && selectedRow < clubEventList.size()) {\n boolean modOK = modIfChanged();\n if (modOK) {\n position = clubEventList.positionUsingListIndex (selectedRow);\n positionAndDisplay();\n }\n }\n }",
"public void absInsertRowAt(Vector row, int index) {\n if (row == null) {\n row = new Vector(getModel().getColumnCount());\n }\n ((DefaultTableModel) getModel()).insertRow(index, row);\n }",
"public void actionPerformed(ActionEvent event){\n tableModel.addRow(blank);\r\n }",
"public Builder addRow(\n int index, io.dstore.engine.procedures.ImModifyNodeCharacsAd.Response.Row value) {\n if (rowBuilder_ == null) {\n if (value == null) {\n throw new NullPointerException();\n }\n ensureRowIsMutable();\n row_.add(index, value);\n onChanged();\n } else {\n rowBuilder_.addMessage(index, value);\n }\n return this;\n }",
"private AppendRowsTask appendRow(\n final int sequence,\n final List<String> row) {\n final ApplicationSettings settings = ApplicationSettings.getInstance(Sms2GSheetService.this);\n String accountName = settings.getAccountName();\n if ((accountName == null) || (accountName.isEmpty())) {\n return null;\n }\n\n // Initialize credentials and service object.\n GoogleAccountCredential credential = GoogleAccountCredential.usingOAuth2(Sms2GSheetService.this, Arrays.asList(Helper.SCOPES))\n .setBackOff(new ExponentialBackOff());\n\n credential.setSelectedAccountName(accountName);\n\n return new AppendRowsTask(credential, new GoogleSheetsAppendResponseReceiver() {\n @Override\n public AppendValuesResponse append_rows(Sheets sheets) throws IOException {\n String range;\n range = Helper.SHEET_RANGE;\n ValueRange values = new ValueRange();\n values.setMajorDimension(\"ROWS\");\n List<List<Object>> vls;\n vls = new ArrayList<>();\n ArrayList<Object> ro = new ArrayList<>();\n if (row != null) {\n for (String rr : row) {\n ro.add(rr);\n }\n }\n vls.add(ro);\n values.setValues(vls);\n Sheets.Spreadsheets.Values.Append r = sheets.spreadsheets().values().append(\n settings.getSpreadsheetId(), range, values);\n r.setValueInputOption(\"RAW\");\n AppendValuesResponse response = r.execute();\n Log.i(TAG, response.toString());\n return response;\n }\n\n @Override\n public void onStart() {\n }\n\n @Override\n public void onStop() {\n }\n\n @Override\n public void onAppend(AppendValuesResponse response) {\n if (response == null) {\n Helper.showNotificationError(Sms2GSheetService.this, getString(R.string.err_no_response));\n Log.e(TAG, getString(R.string.err_no_response));\n } else {\n Log.i(TAG, getString(R.string.msg_response) + response.toString());\n }\n if (mSMSRows != null) {\n if (!mSMSRows.containsKey(sequence)) {\n Log.e(TAG, \"Invalid sequence\");\n } else {\n mSMSRows.remove(sequence);\n }\n }\n }\n\n @Override\n public void onCancel(Exception error) {\n if (error instanceof GooglePlayServicesAvailabilityIOException) {\n Helper.showNotificationError(Sms2GSheetService.this, getString(R.string.err_no_playservices));\n Log.e(TAG, getString(R.string.err_no_playservices));\n } else if (error instanceof UserRecoverableAuthIOException) {\n Helper.showNotificationError(Sms2GSheetService.this, getString(R.string.err_no_credentials));\n Log.e(TAG, getString(R.string.err_no_credentials));\n } else {\n Helper.showNotificationError(Sms2GSheetService.this, getString(R.string.err_message) + error.getMessage());\n Log.e(TAG, getString(R.string.err_message) + error.getMessage());\n }\n }\n });\n }",
"public Builder addRow(io.dstore.engine.procedures.OmModifyCampaignsAd.Response.Row value) {\n if (rowBuilder_ == null) {\n if (value == null) {\n throw new NullPointerException();\n }\n ensureRowIsMutable();\n row_.add(value);\n onChanged();\n } else {\n rowBuilder_.addMessage(value);\n }\n return this;\n }",
"TableRow componentATableRow(){\n\n TableRow componentATableRow = new TableRow(this.context);\n View view = this.headerObjects.get(0);\n componentATableRow.addView(view);\n\n return componentATableRow;\n }",
"void newRow(List<C> row) throws Exception;",
"private void addHeaders(){\n\n /** Create a TableRow dynamically **/\n tr = new TableRow(this);\n tr.setLayoutParams(new TableRow.LayoutParams(\n TableRow.LayoutParams.MATCH_PARENT,\n TableRow.LayoutParams.WRAP_CONTENT));\n\n /** Creating a TextView to add to the row **/\n TextView item = new TextView(this);\n item.setText(\"Recipe\");\n item.setWidth(320);\n item.setBackgroundColor(getResources().getColor(R.color.colorPrimary));\n item.setTextColor(Color.WHITE);\n item.setTypeface(Typeface.DEFAULT, Typeface.BOLD);\n item.setPadding(5, 5, 5, 0);\n tr.addView(item); // Adding textView to tablerow.\n\n\n // Add the TableRow to the TableLayout\n tl.addView(tr, new TableLayout.LayoutParams(\n TableRow.LayoutParams.MATCH_PARENT,\n TableRow.LayoutParams.WRAP_CONTENT));\n\n\n }",
"public void addRow(final Object[] rowData) {\n\t\t((DefaultTableModel) this.model).addRow(rowData);\n\t}",
"public boolean addRow(BMessage message){\n return addRow(MessageListItem.fromBMessage(message, userID, maxWidth, customDateFormat));\n }",
"public void addRow(Patient o)\n\t{\n\t\tthis.data.add(o);\n\t\tthis.fireTableChanged(null);\n\t}",
"public void addRow(ResultSetRow row) throws SQLException {\n/* 231 */ notSupported();\n/* */ }",
"@Override\n public final void buildRow(T rowValue, int absRowIndex) {\n setRowInfo(absRowIndex, rowValue);\n buildRowImpl(rowValue, absRowIndex);\n }",
"public boolean buildTable() {\n int count = table.getChildCount();\n for (int i = 0; i < count; i++) {\n View child = table.getChildAt(i);\n if (child instanceof TableRow) ((ViewGroup) child).removeAllViews();\n }\n\n //Dynamically adds rows based on the size of the destinations array\n for(int i = 0; i < orderedDestinations.size(); i++){\n // Inflates the search_results_table_row_attributes.xml file\n TableRow row = (TableRow) inflater.inflate(R.layout.search_results_table_row_attributes, null);\n\n //Finds oritentation and alters the row width if in landscape\n if(getResources().getConfiguration().orientation == 2) {\n LinearLayout ll = ((LinearLayout)row.findViewById(R.id.layout_contents));\n ll.getLayoutParams().width = 1700;\n ll.requestLayout();\n }\n\n //adds contents of the destination to the row\n ((TextView)row.findViewById(R.id.desti)).setText((i+1) + \") \" + orderedDestinations.get(i).name);\n ((TextView)row.findViewById(R.id.address)).setText(orderedDestinations.get(i).address);\n table.addView(row);\n }\n return true;\n }",
"public Builder addRow(\n int index, com.google.devtools.kythe.proto.Filecontext.ContextDependentVersion.Row value) {\n if (rowBuilder_ == null) {\n if (value == null) {\n throw new NullPointerException();\n }\n ensureRowIsMutable();\n row_.add(index, value);\n onChanged();\n } else {\n rowBuilder_.addMessage(index, value);\n }\n return this;\n }",
"private void addButtonActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_addButtonActionPerformed\n\n AttlistTableModel tm = (AttlistTableModel) attrTable.getModel();\n tm.addRow();\n int actualIndex = numRows() - 1;\n attrTable.getSelectionModel().setSelectionInterval(actualIndex, actualIndex);\n }",
"public void addRow(DataFile fileInfo, FileState state) {\n\n if (fileInfo != null && (state == FileState.NO_COPY || state == FileState.HAS_COPY || state == FileState.DOWNLOADING)\n || state == FileState.CORRUPTED) {\n data.add(new DataRowModel(fileInfo, state));\n } else {\n log.error(\"Row was not added - invalid data format!\");\n }\n fireTableDataChanged();\n }",
"public void addRow(DataRow dataRow) {\n this.dataRows.add(dataRow);\n }",
"protected void addRowAttributes(TableRowBuilder row, T rowValue) {\n addRowAttributes(row);\n }",
"private void addTotalRow(Frequency totalRowFreq)\n {\n double total = getLossTotal(totalRowFreq);\n\n TableLayout table = (TableLayout) findViewById(R.id.lossesTable);\n TableRow row = new TableRow(this);\n\n TextView totalView = new TextView(this);\n ((BadBudgetApplication)this.getApplication()).initializeTableCell(totalView, getString(R.string.table_total), R.drawable.bordertbl);\n\n final TextView totalAmountView = new TextView(this);\n this.totalAmountView = totalAmountView;\n String totalAmountString = BadBudgetApplication.roundedDoubleBB(total);\n ((BadBudgetApplication)this.getApplication()).initializeTableCell(totalAmountView, totalAmountString, R.drawable.bordertbl);\n\n final TextView frequencyView = new TextView(this);\n this.totalFreqView = frequencyView;\n\n frequencyView.setOnClickListener(new View.OnClickListener() {\n\n public void onClick(View v)\n {\n Frequency currentToggleFreq = BadBudgetApplication.freqFromShortHand(frequencyView.getText().toString());\n Frequency convertToggleFreq = BadBudgetApplication.getNextToggleFreq(currentToggleFreq);\n double convertTotal = getLossTotal(convertToggleFreq);\n frequencyView.setText(BadBudgetApplication.shortHandFreq(convertToggleFreq));\n totalAmountView.setText(BadBudgetApplication.roundedDoubleBB(convertTotal));\n }\n\n });\n\n String frequencyString = BadBudgetApplication.shortHandFreq(totalRowFreq);\n ((BadBudgetApplication)this.getApplication()).initializeTableCell(frequencyView, frequencyString, R.drawable.bordertbl);\n frequencyView.setPaintFlags(frequencyView.getPaintFlags()|Paint.UNDERLINE_TEXT_FLAG);\n\n TextView notAppView = new TextView(this);\n ((BadBudgetApplication)this.getApplication()).initializeTableCell(notAppView, \"\", R.drawable.borderfull);\n\n row.addView(totalView);\n row.addView(totalAmountView);\n row.addView(frequencyView);\n row.addView(notAppView);\n\n table.addView(row);\n }",
"public Builder addRow(io.dstore.engine.procedures.ImModifyNodeCharacsAd.Response.Row value) {\n if (rowBuilder_ == null) {\n if (value == null) {\n throw new NullPointerException();\n }\n ensureRowIsMutable();\n row_.add(value);\n onChanged();\n } else {\n rowBuilder_.addMessage(value);\n }\n return this;\n }",
"public void actionPerformed(ActionEvent e) {\n model.addRow();\n }",
"private static void assembleRosterTable(){\n for (int i = 0; i < 10; i++) {\n rosterTable.insertRow(i);\n }\n }",
"private void addRow(EMultipleAnswerType eMultipleAnswerType, String title, boolean answer){\n final View row;\n\n // *Setting the row xml:\n if(eMultipleAnswerType == EMultipleAnswerType.SINGLE_CHOICE){\n row = layoutInflater.inflate(ROW_SINGLE_CHOICE_LAYOUT, null);\n } else {\n row = layoutInflater.inflate(ROW_MULTIPLE_CHOICE_LAYOUT, null);\n }\n\n // *Hiding removeBtn:\n ImageButton removeBtn = (ImageButton) row.findViewById(ROW_REMOVE_BTN_ID);\n removeBtn.setVisibility(View.GONE);\n\n // *RadioButton listener:\n final CompoundButton compoundButton = (CompoundButton) row.findViewById(ROW_COMPOUND_BTN_ID);\n compoundButtonController.addCompoundButton(compoundButton);\n\n // *Fill the text and check state of the row:\n compoundButton.setText(title);\n compoundButton.setChecked(answer);\n\n rowContainer.addView(row);\n }",
"public Builder addRow(\n int index, io.dstore.engine.procedures.FoModifyForumsInCategoriesAd.Response.Row value) {\n if (rowBuilder_ == null) {\n if (value == null) {\n throw new NullPointerException();\n }\n ensureRowIsMutable();\n row_.add(index, value);\n onChanged();\n } else {\n rowBuilder_.addMessage(index, value);\n }\n return this;\n }",
"private HBox buttonRow() {\n\t\tOK = new ButtonMaker().makeButton(\"OK\", e -> {\n\t\t\t//TODO: implement once animation factory has been finalized.\n\t\t\tAnimationEvent animationEvent = factory.makeAnimationEvent(name.getText(), Integer.parseInt(duration.getText()));\n\t\t\t//TODO: use reflection to automate this (but tricky with the extra parameter in path effect)\n\t\t\tif(pathSelector.selectEffect.isSelected()) {\n\t\t\t\tfactory.makePathEffect((String) pathSelector.getValue(), pathSelector.isReverse(), animationEvent);\n\t\t\t}\n\t\t\tif(rotationSelector.selectEffect.isSelected()) {\n\t\t\t\tfactory.makeRotateEffect((Double)rotationSelector.getValue(), animationEvent);\n\t\t\t}\n\t\t\tif(scaleSelector.selectEffect.isSelected()) {\n\t\t\t\tfactory.makeScaleAnimationEffect((Double)scaleSelector.getValue(), animationEvent);\n\t\t\t}\n\t\t\tif(imageSelector.selectEffect.isSelected()) {\n\t\t\t\tfactory.makeImageAnimationEffect((List<String>)imageSelector.getValue(), imageSelector.getNumberOfCycles(), animationEvent);\n\t\t\t}\n\t\t});\n\t\tpreview = new ButtonMaker().makeButton(\"Preview\", e -> {\n\t\t\t//TODO: allow users to preview their animation\n\n\t\t});\n\t\treturn GUIUtils.makeRow(OK, preview);\n\t}",
"public TableRow() {\n\t\tthis.cells = new ArrayList<TableCell>();\n\t}",
"public void addRow(String data){//adds a new row of data to the table\n\t\t\t\tif(row_count<100){//checks to see if there is space left in the current datum for an additional rows\n\t\t\t\t\tif(row_count<50){//halvs the data for more efficiant row insertion\n\t\t\t\t\t\tif(row_count<10){//checks to see if it is in the first inner datum\n\t\t\t\t\t\t\tif(dataarr!=null){//makes suhure there is an innerdatum to send the data to\n\t\t\t\t\t\t\t\tdataarr[0].addRow(data);\n\t\t\t\t\t\t\t}else{//if there is not an inner datum in the current spot this adds a new one\n\t\t\t\t\t\t\t\tdataarr[0]=new InnerDatum();\n\t\t\t\t\t\t\t\tdataarr[0].addRow(data);\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}else if(row_count<20){//checks to see if it is in the second inner datum\n\t\t\t\t\t\t\tf(dataarr!=null){//makes suhure there is an innerdatum to send the data to\n\t\t\t\t\t\t\t\tdataarr[1].addRow(data);\n\t\t\t\t\t\t\t}else{//if there is not an inner datum in the current spot this adds a new one\n\t\t\t\t\t\t\t\tdataarr[1]=new InnerDatum();\n\t\t\t\t\t\t\t\tdataarr[1].addRow(data);\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}else if(row_count<30){//checks to see if it is in the third inner datum\n\t\t\t\t\t\t\tif(dataarr!=null){//makes suhure there is an innerdatum to send the data to\n\t\t\t\t\t\t\t\tdataarr[2].addRow(data);\n\t\t\t\t\t\t\t}else{//if there is not an inner datum in the current spot this adds a new one\n\t\t\t\t\t\t\t\tdataarr[2]=new InnerDatum();\n\t\t\t\t\t\t\t\tdataarr[2].addRow(data);\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}else if(row_count<40){//checks to see if it is in the fourth inner datum\n\t\t\t\t\t\t\tif(dataarr!=null){//makes suhure there is an innerdatum to send the data to\n\t\t\t\t\t\t\t\tdataarr[3].addRow(data);\n\t\t\t\t\t\t\t}else{//if there is not an inner datum in the current spot this adds a new one\n\t\t\t\t\t\t\t\tdataarr[3]=new InnerDatum();\n\t\t\t\t\t\t\t\tdataarr[3].addRow(data);\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}else{//checks to see if it is in the fifth inner datum\n\t\t\t\t\t\t\tif(dataarr!=null){//makes suhure there is an innerdatum to send the data to\n\t\t\t\t\t\t\t\tdataarr[4].addRow(data);\n\t\t\t\t\t\t\t}else{//if there is not an inner datum in the current spot this adds a new one\n\t\t\t\t\t\t\t\tdataarr[4]=new InnerDatum();\n\t\t\t\t\t\t\t\tdataarr[4].addRow(data);\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t}else{\t\n\t\t\t\t\t\tif(row_count<60){//checks to see if it is in the sixth inner datum\n\t\t\t\t\t\t\tif(dataarr!=null){//makes suhure there is an innerdatum to send the data to\n\t\t\t\t\t\t\t\tdataarr[5].addRow(data);\n\t\t\t\t\t\t\t}else{//if there is not an inner datum in the current spot this adds a new one\n\t\t\t\t\t\t\t\tdataarr[5]=new InnerDatum();\n\t\t\t\t\t\t\t\tdataarr[5].addRow(data);\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}else if(row_count<70){//checks to see if it is in the seventh inner datum\n\t\t\t\t\t\t\tif(dataarr!=null){//makes suhure there is an innerdatum to send the data to\n\t\t\t\t\t\t\t\tdataarr[6].addRow(data);\n\t\t\t\t\t\t\t}else{//if there is not an inner datum in the current spot this adds a new one\n\t\t\t\t\t\t\t\tdataarr[6]=new InnerDatum();\n\t\t\t\t\t\t\t\tdataarr[6].addRow(data);\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}else if(row_count<80){//checks to see if it is in the eighth inner datum\n\t\t\t\t\t\t\tif(dataarr!=null){//makes suhure there is an innerdatum to send the data to\n\t\t\t\t\t\t\t\tdataarr[7].addRow(data);\n\t\t\t\t\t\t\t}else{//if there is not an inner datum in the current spot this adds a new one\n\t\t\t\t\t\t\t\tdataarr[7]=new InnerDatum();\n\t\t\t\t\t\t\t\tdataarr[7].addRow(data);\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}else if(row_count<90){//checks to see if it is in the ninth inner datum\n\t\t\t\t\t\t\tif(dataarr!=null){//makes suhure there is an innerdatum to send the data to\n\t\t\t\t\t\t\t\tdataarr[8].addRow(data);\n\t\t\t\t\t\t\t}else{//if there is not an inner datum in the current spot this adds a new one\n\t\t\t\t\t\t\t\tdataarr[8]=new InnerDatum();\n\t\t\t\t\t\t\t\tdataarr[8].addRow(data);\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}else{//checks to see if it is in the tenth inner datum\n\t\t\t\t\t\t\tif(dataarr!=null){//makes suhure there is an innerdatum to send the data to\n\t\t\t\t\t\t\t\tdataarr[9].addRow(data);\n\t\t\t\t\t\t\t}else{//if there is not an inner datum in the current spot this adds a new one\n\t\t\t\t\t\t\t\tdataarr[9]=new InnerDatum();\n\t\t\t\t\t\t\t\tdataarr[9].addRow(data);\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}else{//acctivated when there is no room left in the current outer datum}\n\t\t\t\t\tif(next==null){//checks to see if there is a next outer datum\n\t\t\t\t\t\tnext=new OuterDatum();\t\n\t\t\t\t\t}\n\t\t\t\t\tnext.addRow(data);\n\t\t\t\t}\n\t\t\t}",
"@Override\n public void tableRows_()\n {\n }",
"public TableRow build_row(String item_name, String quantity, String price){\n\n //Converts pixel to dp\n int padding_in_dp = 10;\n final float scale = getResources().getDisplayMetrics().density;\n int padd_bottom = (int) (padding_in_dp * scale + 0.5f);\n\n TableRow row = new TableRow(getContext());\n\n TextView item_view = build_view(item_name, 6, false, true, row);\n TextView quantity_view = build_view(quantity, 3,true, false, row);\n TextView price_view = build_view(price,3,true, false, row);\n TextView delete_view = build_view(\"x\",1, true, true, row);\n\n row.addView(item_view);\n row.addView(quantity_view);\n row.addView(price_view);\n row.addView(delete_view);\n\n row.setPadding(0,0,0,padd_bottom);\n\n return row;\n }",
"public void absIncrementRowAt(int index) {\n int lastIndex = getModel().getRowCount() - 1;\n if ((index < 0) || (index >= lastIndex)) {\n return;\n }\n\n Vector[] va = getAllRowsData();\n\n Vector vTemp = va[index];\n va[index] = va[index + 1];\n va[index + 1] = vTemp;\n\n setRows(va);\n }",
"private void addPersonUIRow(String name) {\n TableRow tr = new TableRow(getContext());\n TableRow.LayoutParams trTlp = new TableRow.LayoutParams(\n 0,\n TableLayout.LayoutParams.WRAP_CONTENT\n );\n tr.setLayoutParams(trTlp);\n\n //create name view\n TextView nameView = new TextView(getContext());\n nameView.setText(name);\n nameView.setTextSize(20);\n TableRow.LayoutParams tlp1 = new TableRow.LayoutParams(\n TableLayout.LayoutParams.WRAP_CONTENT,\n TableLayout.LayoutParams.MATCH_PARENT\n );\n tlp1.column=0;\n nameView.setLayoutParams(tlp1);\n\n //TODO: switch add on toggle listener\n Switch sw = new Switch(getContext());\n TableRow.LayoutParams tlp2 = new TableRow.LayoutParams(\n TableLayout.LayoutParams.WRAP_CONTENT,\n TableLayout.LayoutParams.MATCH_PARENT\n );\n tlp2.column=1;\n tlp2.gravity=Gravity.CENTER_HORIZONTAL;\n sw.setTextOff(\"OFF\");\n sw.setTextOn(\"ON\");\n sw.setHeight(20);\n //before listener so that it won't fire off\n if (faceTable.containsKey(name)){\n sw.setChecked(true);\n }\n sw.setOnCheckedChangeListener(this);\n sw.setLayoutParams(tlp2);\n\n //create sub view\n TextView subView = new TextView(getContext());\n subView.setText(\"\");\n subView.setTextSize(20);\n TableRow.LayoutParams tlp3 = new TableRow.LayoutParams(\n TableLayout.LayoutParams.WRAP_CONTENT,\n TableLayout.LayoutParams.MATCH_PARENT\n );\n tlp3.column=2;\n subView.setLayoutParams(tlp3);\n subView.setVisibility(View.INVISIBLE);\n if (faceTable.containsKey(name)){\n subView.setText(faceTable.get(name));\n subView.setVisibility(View.VISIBLE);\n }\n\n //create delete button\n ImageView deleteView = new ImageView(getContext());\n deleteView.setImageResource(R.drawable.ic_delete_black_24dp);\n TableRow.LayoutParams tlp4 = new TableRow.LayoutParams(\n TableLayout.LayoutParams.WRAP_CONTENT,\n TableLayout.LayoutParams.MATCH_PARENT\n );\n tlp4.column=3;\n deleteView.setLayoutParams(tlp4);\n deleteView.setOnClickListener(new ImageView.OnClickListener() {\n @Override\n public void onClick(View v) {\n String toBeRemovedName=null;\n PersonUIRow toBeRemovedRow=null;\n //find the name of the person to be removed\n for (PersonUIRow uiRow: personUIList){\n if (uiRow.deleteView == v){\n toBeRemovedName = (String) uiRow.nameView.getText();\n toBeRemovedRow = uiRow;\n break;\n }\n }\n if (null != toBeRemovedName){\n GabrielConfigurationAsyncTask task =\n new GabrielConfigurationAsyncTask(getActivity(),\n getMyAcitivty().currentServerIp,\n GabrielClientActivity.VIDEO_STREAM_PORT,\n GabrielClientActivity.RESULT_RECEIVING_PORT,\n Const.GABRIEL_CONFIGURATION_REMOVE_PERSON);\n task.execute(toBeRemovedName);\n trainedPeople.remove(toBeRemovedName);\n }\n\n //remove current line\n if (null != toBeRemovedRow){\n personUIList.remove(toBeRemovedRow);\n tb.removeView(toBeRemovedRow.tr);\n } else {\n Log.e(TAG, \"delete icon clicked, but didn't find any row to remove\");\n }\n\n }\n });\n\n tr.addView(nameView);\n tr.addView(sw);\n tr.addView(subView);\n tr.addView(deleteView);\n\n tb.addView(tr,\n new TableLayout.LayoutParams(TableLayout.LayoutParams.MATCH_PARENT,\n TableLayout.LayoutParams.WRAP_CONTENT));\n\n PersonUIRow uiRow = new PersonUIRow(tr,nameView, sw, subView, deleteView);\n personUIList.add(uiRow);\n }",
"public void joinTable(List<AccountingLineTableRow> rows) {\n throw new IllegalStateException(\"Line elements may not join a table directly; the specified rendering is incorrect\");\n }",
"private ContainerTag generateTableRow(HtmlData rowData) {\n ContainerTag row = tr();\n for (String entry : rowData.getFields()) {\n row.with(td(entry));\n }\n return row;\n }",
"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 Builder addRow(\n int index, io.dstore.engine.procedures.StGetPageVisitsAd.Response.Row value) {\n if (rowBuilder_ == null) {\n if (value == null) {\n throw new NullPointerException();\n }\n ensureRowIsMutable();\n row_.add(index, value);\n onChanged();\n } else {\n rowBuilder_.addMessage(index, value);\n }\n return this;\n }",
"public String onNew() {\n final DataTableCRUDRow<R> row = getModel().createRow(getModel().newElementInstance());\n getModel().getRows().add(0, row);\n getModel().setRowClicked(row);\n row.setNewRow(true);\n row.setReadonly(false);\n return \"\";\n }",
"public void addRow(double[] rowValues) {\n rows++;\n matrix.add(rowValues);\n }",
"TableRow componentBTableRow(){\n\n TableRow componentBTableRow = new TableRow(this.context);\n int headerFieldCount = this.headerObjects.size();\n\n TableRow.LayoutParams params = new TableRow.LayoutParams(LayoutParams.WRAP_CONTENT,LayoutParams.MATCH_PARENT);\n// params.setMargins(-1, 0, 0, 0);\n\n for(int x=0; x<(headerFieldCount-1); x++){\n View view = headerObjects.get(x+1);\n\n componentBTableRow.addView(view, params);\n }\n\n\n return componentBTableRow;\n }",
"public abstract void append(int data, int row, int column);",
"public void addRow (ArrayList<Object> l, int index)\n\t{\n\t\tm_data.rows.add(index, l);\n\t\tm_data.rowsMeta.add(index, null);\n\t}",
"private void insertButtonActionPerformed(java.awt.event.ActionEvent evt) {// GEN\n // -\n // FIRST\n // :\n // event_insertButtonActionPerformed\n int rowIndex = headerTable.getSelectedRow();\n if (rowIndex > -1) {\n insertRow(rowIndex);\n } else {\n insertRow(_tableModel.getRowCount());\n }\n }",
"private void createRow( String name )\n {\n logger.log(Level.FINE, \"Creating Row\");\n\n JLabel label = new JLabel( name, SwingConstants.RIGHT );\n if (!isHeadless)\n label.setFont(new Font(\"Monospaced\", Font.PLAIN, 15));\n label.setHorizontalAlignment(SwingConstants.CENTER);\n label.setBorder(BorderFactory.createMatteBorder(0, 0, 1, 0, Color.DARK_GRAY));\n if (name.equals(PROFIT_LOSS))\n bottomPanel.add(label, BorderLayout.NORTH);\n else\n leftPanel.add(label);\n\n JTextField field = new JTextField( 30 );\n field.setEditable(false);\n if (!isHeadless)\n field.setFont(new Font(\"Serif\", Font.BOLD, 30));\n field.setBorder(BorderFactory.createMatteBorder(0, 0, 1, 0, Color.DARK_GRAY));\n field.setHorizontalAlignment(SwingConstants.CENTER);\n if (name.equals(PROFIT_LOSS)) {\n if (!isHeadless)\n field.setFont(new Font(\"Monospaced\", Font.BOLD, 55));\n bottomPanel.add(field, BorderLayout.CENTER);\n } else\n rightPanel.add(field);\n\n fields.put(name, field);\n\n logger.log(Level.FINE, \"Created Row\");\n\n }",
"public void addRow(File photoFile, final Bitmap photoBmp) {\r\n\r\n final PhotoListViewAdapter adapter = (PhotoListViewAdapter) getAdapter();\r\n\r\n /**\r\n * Stores the starting bounds and the corresponding bitmap drawables of\r\n * every cell present in the ListView before the data set change takes\r\n * place.\r\n */\r\n final HashMap<Long, Rect> listViewItemBounds = new HashMap<Long, Rect>();\r\n final HashMap<Long, BitmapDrawable> listViewItemDrawables = new HashMap<Long, BitmapDrawable>();\r\n\r\n int firstVisiblePosition = getFirstVisiblePosition();\r\n for (int i = 0; i < getChildCount(); ++i) {\r\n View child = getChildAt(i);\r\n int position = firstVisiblePosition + i;\r\n long itemID = adapter.getItemId(position);\r\n Rect startRect = new Rect(child.getLeft(), child.getTop(), child.getRight(),\r\n child.getBottom());\r\n listViewItemBounds.put(itemID, startRect);\r\n listViewItemDrawables.put(itemID, getBitmapDrawableFromView(child));\r\n }\r\n\r\n /**\r\n * Adds the new object to the data set, thereby modifying the adapter,\r\n * as well as adding a stable Id for that specified object.\r\n */\r\n // mData.add(0, newObj);\r\n // adapter.addStableIdForDataAtPosition(0);\r\n adapter.addItem(photoFile);\r\n adapter.notifyDataSetChanged();\r\n\r\n final ViewTreeObserver observer = getViewTreeObserver();\r\n observer.addOnPreDrawListener(new ViewTreeObserver.OnPreDrawListener() {\r\n public boolean onPreDraw() {\r\n observer.removeOnPreDrawListener(this);\r\n\r\n ArrayList<Animator> animations = new ArrayList<Animator>();\r\n\r\n final View newCell = getChildAt(0);\r\n final ImageView imgView = (ImageView) newCell.findViewById(R.id.bwc_iv_line_frame);\r\n final ImageView copyImgView = new ImageView(mContext);\r\n\r\n int firstVisiblePosition = getFirstVisiblePosition();\r\n final boolean shouldAnimateInNewRow = shouldAnimateInNewRow();\r\n final boolean shouldAnimateInImage = shouldAnimateInNewImage();\r\n\r\n if (shouldAnimateInNewRow) {\r\n /** Fades in the text of the first cell. */\r\n // TextView textView =\r\n // (TextView)newCell.findViewById(R.id.text_view);\r\n // ObjectAnimator textAlphaAnimator =\r\n // ObjectAnimator.ofFloat(textView,\r\n // View.ALPHA, 0.0f, 1.0f);\r\n // animations.add(textAlphaAnimator);\r\n\r\n /**\r\n * Animates in the extra hover view corresponding to the\r\n * image in the top row of the ListView.\r\n */\r\n if (shouldAnimateInImage) {\r\n\r\n int width = imgView.getWidth();\r\n int height = imgView.getHeight();\r\n int realH = height - imgView.getPaddingTop() - imgView.getPaddingBottom();\r\n int realW = width - imgView.getPaddingLeft() - imgView.getPaddingRight();\r\n\r\n Point photoViewLoc = getLocationOnScreen(imgView);\r\n Point layoutLoc = getLocationOnScreen(mLayout);\r\n\r\n Bitmap bitmap = PhotoListViewAdapter.createListImageFromPhoto(photoBmp, 1);\r\n copyImgView.setImageBitmap(bitmap);\r\n int padding = imgView.getPaddingLeft();\r\n copyImgView.setX(photoViewLoc.x - layoutLoc.x + padding);\r\n copyImgView.setY(-realH);\r\n\r\n imgView.setVisibility(View.INVISIBLE);\r\n copyImgView.setScaleType(ImageView.ScaleType.FIT_CENTER);\r\n ObjectAnimator imgViewTranslation = ObjectAnimator.ofFloat(copyImgView,\r\n View.Y, photoViewLoc.y - layoutLoc.y + imgView.getPaddingTop());\r\n\r\n PropertyValuesHolder imgViewScaleY = PropertyValuesHolder.ofFloat(\r\n View.SCALE_Y, 0.5f, 1.0f);\r\n PropertyValuesHolder imgViewScaleX = PropertyValuesHolder.ofFloat(\r\n View.SCALE_X, 0.5f, 1.0f);\r\n ObjectAnimator imgViewScaleAnimator = ObjectAnimator\r\n .ofPropertyValuesHolder(copyImgView, imgViewScaleX, imgViewScaleY);\r\n imgViewScaleAnimator.setInterpolator(sOvershootInterpolator);\r\n animations.add(imgViewTranslation);\r\n animations.add(imgViewScaleAnimator);\r\n\r\n RelativeLayout.LayoutParams params = new RelativeLayout.LayoutParams(realW,\r\n realH);\r\n\r\n mLayout.addView(copyImgView, params);\r\n }\r\n }\r\n\r\n /**\r\n * Loops through all the current visible cells in the ListView\r\n * and animates all of them into their post layout positions\r\n * from their original positions.\r\n */\r\n for (int i = 0; i < getChildCount(); i++) {\r\n View child = getChildAt(i);\r\n int position = firstVisiblePosition + i;\r\n long itemId = adapter.getItemId(position);\r\n Rect startRect = listViewItemBounds.get(itemId);\r\n int top = child.getTop();\r\n if (startRect != null) {\r\n /**\r\n * If the cell was visible before the data set change\r\n * and after the data set change, then animate the cell\r\n * between the two positions.\r\n */\r\n int startTop = startRect.top;\r\n int delta = startTop - top;\r\n ObjectAnimator animation = ObjectAnimator.ofFloat(child,\r\n View.TRANSLATION_Y, delta, 0);\r\n // animation.setStartDelay(ANIM_PHASE_1_DURATION);\r\n animations.add(animation);\r\n } else {\r\n /**\r\n * If the cell was not visible (or present) before the\r\n * data set change but is visible after the data set\r\n * change, then use its height to determine the delta by\r\n * which it should be animated.\r\n */\r\n int childHeight = child.getHeight() + getDividerHeight();\r\n int startTop = top + (i > 0 ? childHeight : -childHeight);\r\n int delta = startTop - top;\r\n ObjectAnimator animation = ObjectAnimator.ofFloat(child,\r\n View.TRANSLATION_Y, delta, 0);\r\n // animation.setStartDelay(ANIM_PHASE_1_DURATION);\r\n animations.add(animation);\r\n }\r\n listViewItemBounds.remove(itemId);\r\n listViewItemDrawables.remove(itemId);\r\n }\r\n\r\n /**\r\n * Loops through all the cells that were visible before the data\r\n * set changed but not after, and keeps track of their\r\n * corresponding drawables. The bounds of each drawable are then\r\n * animated from the original state to the new one (off the\r\n * screen). By storing all the drawables that meet this\r\n * criteria, they can be redrawn on top of the ListView via\r\n * dispatchDraw as they are animating.\r\n */\r\n for (Long itemId : listViewItemBounds.keySet()) {\r\n BitmapDrawable bitmapDrawable = listViewItemDrawables.get(itemId);\r\n Rect startBounds = listViewItemBounds.get(itemId);\r\n bitmapDrawable.setBounds(startBounds);\r\n\r\n int childHeight = startBounds.bottom - startBounds.top + getDividerHeight();\r\n Rect endBounds = new Rect(startBounds);\r\n endBounds.offset(0, childHeight);\r\n\r\n ObjectAnimator animation = ObjectAnimator.ofObject(bitmapDrawable, \"bounds\",\r\n sBoundsEvaluator, startBounds, endBounds);\r\n animation.addUpdateListener(new ValueAnimator.AnimatorUpdateListener() {\r\n private Rect mLastBound = null;\r\n private Rect mCurrentBound = new Rect();\r\n\r\n @Override\r\n public void onAnimationUpdate(ValueAnimator valueAnimator) {\r\n Rect bounds = (Rect) valueAnimator.getAnimatedValue();\r\n mCurrentBound.set(bounds);\r\n if (mLastBound != null) {\r\n mCurrentBound.union(mLastBound);\r\n }\r\n mLastBound = bounds;\r\n invalidate(mCurrentBound);\r\n }\r\n });\r\n\r\n listViewItemBounds.remove(itemId);\r\n listViewItemDrawables.remove(itemId);\r\n\r\n mCellBitmapDrawables.add(bitmapDrawable);\r\n animations.add(animation);\r\n }\r\n\r\n /**\r\n * Animates all the cells from their old position to their new\r\n * position at the same time.\r\n */\r\n setEnabled(false);\r\n mRowAdditionAnimListener.onRowAdditionAnimationStart();\r\n AnimatorSet set = new AnimatorSet();\r\n set.setDuration(NEW_ROW_DURATION);\r\n set.playTogether(animations);\r\n set.addListener(new AnimatorListenerAdapter() {\r\n @Override\r\n public void onAnimationEnd(Animator animation) {\r\n mCellBitmapDrawables.clear();\r\n imgView.setVisibility(View.VISIBLE);\r\n mLayout.removeView(copyImgView);\r\n mRowAdditionAnimListener.onRowAdditionAnimationEnd();\r\n setEnabled(true);\r\n invalidate();\r\n }\r\n });\r\n set.start();\r\n\r\n listViewItemBounds.clear();\r\n listViewItemDrawables.clear();\r\n return true;\r\n }\r\n });\r\n }",
"public Builder addRow(io.dstore.engine.procedures.FoModifyForumsInCategoriesAd.Response.Row value) {\n if (rowBuilder_ == null) {\n if (value == null) {\n throw new NullPointerException();\n }\n ensureRowIsMutable();\n row_.add(value);\n onChanged();\n } else {\n rowBuilder_.addMessage(value);\n }\n return this;\n }",
"public interface IRowEvent\r\n{\r\n\r\n\t/**\r\n\t * This method is called before appending the\r\n\t * row template to the table template\r\n\t * @param rs Recordset used to fill the table, the record\r\n\t * position will the the current record\r\n\t * @param rowTemplate Row buffer\r\n\t * @return Modified row template\r\n\t * @throws Throwable\r\n\t */\r\n\tpublic String onNewRow(Recordset rs, String rowTemplate) \r\n\t\tthrows Throwable;\r\n\r\n}",
"protected abstract void buildRowImpl(T rowValue, int absRowIndex);",
"public Builder addRow(io.dstore.engine.procedures.StGetPageVisitsAd.Response.Row value) {\n if (rowBuilder_ == null) {\n if (value == null) {\n throw new NullPointerException();\n }\n ensureRowIsMutable();\n row_.add(value);\n onChanged();\n } else {\n rowBuilder_.addMessage(value);\n }\n return this;\n }"
] |
[
"0.69417834",
"0.6749156",
"0.66258013",
"0.6578557",
"0.6471899",
"0.64325374",
"0.6339085",
"0.6270827",
"0.6253873",
"0.6225062",
"0.6209418",
"0.613314",
"0.6116576",
"0.61038494",
"0.6073821",
"0.6040296",
"0.59489393",
"0.58142287",
"0.58062476",
"0.57949424",
"0.5777803",
"0.5763829",
"0.57595706",
"0.5748918",
"0.5728767",
"0.57015955",
"0.5689682",
"0.5663791",
"0.56553155",
"0.56445044",
"0.5644386",
"0.56361663",
"0.561526",
"0.5615092",
"0.561003",
"0.5553533",
"0.55509907",
"0.55396",
"0.5528092",
"0.5512237",
"0.5506629",
"0.5490293",
"0.5485225",
"0.54685396",
"0.5459623",
"0.545144",
"0.5444718",
"0.54435617",
"0.54314923",
"0.5397897",
"0.53878313",
"0.53807837",
"0.53740716",
"0.5372447",
"0.53716874",
"0.53610474",
"0.5353643",
"0.53464943",
"0.53462094",
"0.5339853",
"0.53369933",
"0.5333173",
"0.5330588",
"0.5319871",
"0.5310258",
"0.5303694",
"0.5244082",
"0.52307916",
"0.5225061",
"0.5218614",
"0.5212914",
"0.51969147",
"0.5189633",
"0.5184464",
"0.51833576",
"0.51688683",
"0.5167597",
"0.51670057",
"0.51604646",
"0.51568264",
"0.5153507",
"0.514279",
"0.5135709",
"0.5130023",
"0.5129572",
"0.51281554",
"0.5126107",
"0.51249015",
"0.51213944",
"0.5110396",
"0.51056355",
"0.51002026",
"0.5093993",
"0.509057",
"0.50859606",
"0.50832635",
"0.5072839",
"0.5068962",
"0.5066257",
"0.50653905"
] |
0.5589965
|
35
|
Append a row to the table, optionally with animation
|
public native void appendRow(List<TableViewRow> rows, TableViewAnimation animation) /*-{
var jso = this.@com.emitrom.ti4j.core.client.ProxyObject::getJsObj()();
jso
.appendRow(
@com.emitrom.ti4j.mobile.client.ui.TableViewRow::fromList(Ljava/util/List;)(rows),
animation.@com.emitrom.ti4j.core.client.ProxyObject::getJsObj()());
}-*/;
|
{
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
}
|
[
"public native void insertRowAfter(int index, TableViewRow row, TableViewAnimation animation) /*-{\n\t\tvar jso = this.@com.emitrom.ti4j.core.client.ProxyObject::getJsObj()();\n\t\tjso\n\t\t\t\t.insertRowAfter(\n\t\t\t\t\t\tindex,\n\t\t\t\t\t\trow.@com.emitrom.ti4j.core.client.ProxyObject::getJsObj()(),\n\t\t\t\t\t\tanimation.@com.emitrom.ti4j.core.client.ProxyObject::getJsObj()());\n }-*/;",
"public void addRow() {\n tableModel.insertRow(this.getRowCount(), new String[]{});\n this.setModel(tableModel);\n\n }",
"@Kroll.method\n\tpublic void appendRow(Object rows, @Kroll.argument(optional = true) KrollDict animation)\n\t{\n\t\tfinal List<TableViewRowProxy> rowList = new ArrayList<>();\n\n\t\tif (rows instanceof Object[]) {\n\n\t\t\t// Handle array of rows.\n\t\t\tfor (Object rowObj : (Object[]) rows) {\n\t\t\t\tfinal TableViewRowProxy row = processRow(rowObj);\n\n\t\t\t\tif (row != null) {\n\t\t\t\t\trowList.add(row);\n\t\t\t\t}\n\t\t\t}\n\t\t} else {\n\t\t\tfinal TableViewRowProxy row = processRow(rows);\n\n\t\t\t// Handle single row.\n\t\t\tif (row != null) {\n\t\t\t\trowList.add(row);\n\t\t\t}\n\t\t}\n\t\tif (rowList.size() == 0) {\n\t\t\treturn;\n\t\t}\n\n\t\t// Prevent updating rows during iteration.\n\t\tshouldUpdate = false;\n\n\t\t// Append rows to last section.\n\t\tfor (TableViewRowProxy row : rowList) {\n\n\t\t\t// Create section if one does not exist.\n\t\t\t// Or create new section if `headerTitle` is specified.\n\t\t\tif (this.sections.size() == 0\n\t\t\t\t|| row.hasPropertyAndNotNull(TiC.PROPERTY_HEADER)\n\t\t\t\t|| row.hasPropertyAndNotNull(TiC.PROPERTY_HEADER_TITLE)\n\t\t\t) {\n\t\t\t\tfinal TableViewSectionProxy section = new TableViewSectionProxy();\n\n\t\t\t\t// Set `headerTitle` of section from row.\n\t\t\t\tsection.setProperty(TiC.PROPERTY_HEADER_TITLE,\n\t\t\t\t\trow.getProperties().optString(TiC.PROPERTY_HEADER_TITLE,\n\t\t\t\t\t\trow.getProperties().getString(TiC.PROPERTY_HEADER)));\n\n\t\t\t\tsection.setParent(this);\n\t\t\t\tthis.sections.add(section);\n\t\t\t}\n\n\t\t\t// Obtain last section.\n\t\t\tfinal TableViewSectionProxy section = this.sections.get(this.sections.size() - 1);\n\n\t\t\t// Override footer of section.\n\t\t\tsection.setProperty(TiC.PROPERTY_FOOTER_TITLE,\n\t\t\t\trow.getProperties().optString(TiC.PROPERTY_FOOTER_TITLE,\n\t\t\t\t\trow.getProperties().getString(TiC.PROPERTY_FOOTER)));\n\n\t\t\t// Add row to section.\n\t\t\tsection.add(row);\n\t\t}\n\n\t\t// Allow updating rows after iteration.\n\t\tshouldUpdate = true;\n\t\tupdate();\n\t}",
"private void addRow() {\n\t\t\n\t\tArrayList<Invader> lastRow = enemyArray.get(enemyArray.size() - 1);\n\t\tArrayList<Invader> newRow = new ArrayList<Invader>();\n\t\t\t\n\t\tfor (int i = 0; i < 10; i++) {\n\t\t\tnewRow.add(new Invader(\n\t\t\t\t\tlastRow.get(i).getX(),\n\t\t\t\t\tlastRow.get(i).getY() + 40,\n\t\t\t\t\tPLAYER_WIDTH,\n\t\t\t\t\tPLAYER_WIDTH,\n\t\t\t\t\t2));\n\t\t}\n\t\t\n\t\tenemyArray.add(newRow);\n\t}",
"public void addNewRow(Vector row) throws IllegalStateException{\r\n if(flagAddStatusRow){\r\n row.add(numberOfcolumns, new Integer(IS_INSERTED)); //Set status for row is add new\r\n }else{\r\n row.setElementAt(new Integer(IS_NO_CHANGE), numberOfcolumns);\r\n }\r\n data.add(row);\r\n }",
"public void addRow(TableViewRow row) {\n this.rows.add(row);\n }",
"public void addRow(Spedizione spedizione){\n spedizioni.add(spedizione);\n fireTableChanged(new TableModelEvent(this));\n }",
"public native void insertRowBefore(int index, TableViewRow row, TableViewAnimation animation) /*-{\n\t\tvar jso = this.@com.emitrom.ti4j.core.client.ProxyObject::getJsObj()();\n\t\tjso\n\t\t\t\t.insertRowBefore(\n\t\t\t\t\t\tindex,\n\t\t\t\t\t\trow.@com.emitrom.ti4j.core.client.ProxyObject::getJsObj()(),\n\t\t\t\t\t\tanimation.@com.emitrom.ti4j.core.client.ProxyObject::getJsObj()());\n }-*/;",
"@Kroll.method\n\tpublic void insertRowAfter(int index, Object rowObj, @Kroll.argument(optional = true) KrollDict animation)\n\t{\n\t\tfinal TableViewRowProxy existingRow = getRowByIndex(index);\n\n\t\tif (existingRow != null) {\n\t\t\tfinal TiViewProxy parent = existingRow.getParent();\n\n\t\t\tif (parent != null) {\n\t\t\t\tif (parent instanceof TableViewSectionProxy) {\n\t\t\t\t\tfinal TableViewSectionProxy section = (TableViewSectionProxy) parent;\n\t\t\t\t\tfinal TableViewRowProxy row = processRow(rowObj);\n\n\t\t\t\t\tif (row == null) {\n\t\t\t\t\t\treturn;\n\t\t\t\t\t}\n\n\t\t\t\t\t// Row is in section, modify section rows.\n\t\t\t\t\tsection.add(existingRow.getIndexInSection() + 1, row);\n\n\t\t\t\t\t// Notify TableView of update.\n\t\t\t\t\tupdate();\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}",
"public void newRow();",
"public void addRow(Row row) {\r\n\t\trows.add(row);\r\n\t}",
"public void addRow(String rowName);",
"protected void addRow(TextButton buttonToAdd)\n {\n table.add(buttonToAdd).width(centre/3.0f);\n table.row();\n }",
"Row createRow();",
"public void addRow(ResultRow row) {\r\n rows.add(row);\r\n }",
"public void addRow(Row r) {\n\t\tcontainingRows.add(r);\n\t}",
"public void addRow () {\n CSVRow row = CSVRow.createEmptyLine(nbOfColumns, this);\n addRow(row);\n }",
"private void addTableRow(String[] cols){\n final TableRow tr = (TableRow) inflater.inflate(R.layout.word_table_row, tableLayout, false);\n tr.setClickable(true);\n final TableRow tr1 = (TableRow) inflater.inflate(R.layout.word_table_row1, tableLayout, false);\n //tr1.setClickable(true);\n final TextView posView = (TextView)tr.findViewById(R.id.wordPos);\n final TextView descriptionView = (TextView)tr.findViewById(R.id.wordDescription);\n final TextView glossView = (TextView) tr1.findViewById(R.id.wordGloss);\n final TextView glossView1 = (TextView) tr1.findViewById(R.id.wordGloss1);\n\n // set the background color to indicate if the row was selected\n View.OnClickListener clickListener = new View.OnClickListener() {\n public void onClick(View v) {\n Drawable background = posView.getBackground();\n int backColor = ContextCompat.getColor(context, R.color.row_background);\n if ((background instanceof ColorDrawable)) {\n int currentBackColor = ((ColorDrawable) background).getColor();\n if (currentBackColor == rowSelectColor)\n backColor = rowBackColor;\n //else if (currentBackColor == rowHighlightColor)\n // backColor = rowHighlightColor;\n else\n backColor = rowSelectColor;\n }\n posView.setBackgroundColor(backColor);\n descriptionView.setBackgroundColor(backColor);\n glossView.setBackgroundColor(backColor);\n tr.setBackgroundColor(backColor);\n tr1.setBackgroundColor(backColor);\n }\n };\n\n tr.setOnClickListener(clickListener);\n tr1.setOnClickListener(clickListener);\n\n // set the background color and text of the table row\n int backColor = rowBackColor;\n posView.setText(fromHtml(cols[0])); posView.setBackgroundColor(backColor);\n descriptionView.setText(fromHtml(cols[1])); descriptionView.setBackgroundColor(backColor);\n glossView.setText(fromHtml(cols[2])); glossView.setBackgroundColor(backColor);\n glossView1.setText(cols[3]);\n rows.add(tr); // save the collection of rows\n rows.add(tr1);\n tableLayout.addView(tr);\n tableLayout.addView(tr1);\n }",
"@Kroll.method\n\tpublic void insertRowBefore(int index, Object rowObj, @Kroll.argument(optional = true) KrollDict animation)\n\t{\n\t\tfinal TableViewRowProxy existingRow = getRowByIndex(index);\n\n\t\tif (existingRow != null) {\n\t\t\tfinal TiViewProxy parent = existingRow.getParent();\n\n\t\t\tif (parent != null) {\n\t\t\t\tif (parent instanceof TableViewSectionProxy) {\n\t\t\t\t\tfinal TableViewSectionProxy section = (TableViewSectionProxy) parent;\n\t\t\t\t\tfinal TableViewRowProxy row = processRow(rowObj);\n\n\t\t\t\t\tif (row == null) {\n\t\t\t\t\t\treturn;\n\t\t\t\t\t}\n\n\t\t\t\t\t// Row is in section, modify section rows.\n\t\t\t\t\tsection.add(existingRow.getIndexInSection(), row);\n\n\t\t\t\t\t// Notify TableView of update.\n\t\t\t\t\tupdate();\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}",
"private void addEmptyRow()\n {\n TableLayout table = (TableLayout) findViewById(R.id.lossesTable);\n TableRow row = new TableRow(this);\n\n TextView emptyView1 = new TextView(this);\n ((BadBudgetApplication)this.getApplication()).initializeTableCell(emptyView1, \"\", R.drawable.emptyborder);\n TextView emptyView2 = new TextView(this);\n ((BadBudgetApplication)this.getApplication()).initializeTableCell(emptyView2, \"\", R.drawable.emptyborder);\n TextView emptyView3 = new TextView(this);\n ((BadBudgetApplication)this.getApplication()).initializeTableCell(emptyView3, \"\", R.drawable.emptyborder);\n TextView emptyView4 = new TextView(this);\n ((BadBudgetApplication)this.getApplication()).initializeTableCell(emptyView4, \"\", R.drawable.emptyborder);\n\n row.addView(emptyView1);\n row.addView(emptyView2);\n row.addView(emptyView3);\n row.addView(emptyView4);\n\n table.addView(row);\n }",
"@Override\n\tpublic void addRow() {\n\t\tif(this.numCols == 0){\n\t\t\tthis.numCols++;\n\t\t}\n\t\tthis.numRows++;\n\t}",
"protected void addRowAttributes(TableRowBuilder row) {\n }",
"private void addRowTable(int cycle, int agentId, String message) {\n ((DefaultTableModel) this.table.getModel()).addRow(new Object[]{Integer.toString(cycle),\n Integer.toString(agentId), message});\n\n // https://stackoverflow.com/questions/5147768/scroll-jscrollpane-to-bottom\n var scrollBar = scrollPane.getVerticalScrollBar();\n AdjustmentListener downScroller = new AdjustmentListener() {\n @Override\n public void adjustmentValueChanged(AdjustmentEvent e) {\n e.getAdjustable().setValue(e.getAdjustable().getMaximum());\n scrollBar.removeAdjustmentListener(this);\n }\n };\n scrollBar.addAdjustmentListener(downScroller);\n }",
"public void addDefaultRowToTables(){\n DefaultTableModel model = (DefaultTableModel) jTable1.getModel();\n ArrayList<Student>templist = ListStudents();\n int noOfRows = ThreadLocalRandom.current().nextInt(0,5);\n Object rowData[] = new Object[3];\n \n if(noOfRows != 0){\n for(int i =1; i<=noOfRows; i++){\n \n rowData[0] = templist.get(i-1).userName;\n if (templist.get(i-1).paused == false){\n rowData[1] = \"Unpaused\";\n }\n Student s = new Student(templist.get(i-1).userName,templist.get(i-1).passWord,templist.get(i-1).email);\n students.add(s);\n model.addRow(rowData);\n } \n }\n if(students.isEmpty()){\n jLabel1.setVisible(true);\n } else{\n jLabel1.setVisible(false);\n }\n \n \n \n \n }",
"@Override\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\taddRow();\n\t\t\t}",
"public boolean addRow(TableRow row) {\n\n if (row.getContent().size() != columns.size())\n throw new IllegalArgumentException(\"El nombre de columnes de la nova fila no coincideix amb les de la taula\");\n\n for (String column : getColumnNames())\n if (!row.getContent().containsKey(column))\n throw new IllegalArgumentException(\"La nova fila no conté la columna: \" + column);\n\n return dataStructure.add(row);\n }",
"int addRow(RowData row_data) throws IOException;",
"@Override\n\t\t\tpublic void actionPerformed(ActionEvent arg0) {\n\t\t\t\taddRow();\n\t\t\t}",
"public Builder addRow(\n int index, io.dstore.engine.procedures.MiCheckPerformanceAd.Response.Row value) {\n if (rowBuilder_ == null) {\n if (value == null) {\n throw new NullPointerException();\n }\n ensureRowIsMutable();\n row_.add(index, value);\n onChanged();\n } else {\n rowBuilder_.addMessage(index, value);\n }\n return this;\n }",
"public native void updateRow(TableViewRow row, TableViewAnimation animation) /*-{\n\t\tvar jso = this.@com.emitrom.ti4j.core.client.ProxyObject::getJsObj()();\n\t\tjso\n\t\t\t\t.updateRow(\n\t\t\t\t\t\trow.@com.emitrom.ti4j.core.client.ProxyObject::getJsObj()(),\n\t\t\t\t\t\tanimation.@com.emitrom.ti4j.core.client.ProxyObject::getJsObj()());\n }-*/;",
"public void AddRow(String Table, String Value)\r\n {\n }",
"public void addRow(EntityBean e) {\n rows.add(e);\n updateTotalPageNumbers();\n }",
"public int addRow() {\n\t\t// Create a new row with nothing in it\n\t\tList row = new ArrayList();\n\t\treturn(addRow(row));\n\t}",
"private void addRow() {\n ArrayList<EscapeBlock> row = new ArrayList<>();\n grid.add(row);\n \n for (int j = 0; j < gridWidth; j++) {\n EscapeBlock block = new EscapeBlock(j, gridHeight);\n block.setLocation(margin + j * (Block.length+1) ,\n margin + topMargin + gridHeight * (Block.length+1)); \n \n this.add(block); // add to the JPanel \n row.add(block); // and to the row\n }\n \n gridHeight++;\n }",
"public native void appendRow(List<TableViewRow> rows) /*-{\n\t\tvar jso = this.@com.emitrom.ti4j.core.client.ProxyObject::getJsObj()();\n\t\tjso\n\t\t\t\t.appendRow(@com.emitrom.ti4j.mobile.client.ui.TableViewRow::fromList(Ljava/util/List;)(rows));\n }-*/;",
"public void add(String[] row) {\r\n\t\tthis.df.add(row);\r\n\t}",
"public Builder addRow(io.dstore.engine.procedures.MiCheckPerformanceAd.Response.Row value) {\n if (rowBuilder_ == null) {\n if (value == null) {\n throw new NullPointerException();\n }\n ensureRowIsMutable();\n row_.add(value);\n onChanged();\n } else {\n rowBuilder_.addMessage(value);\n }\n return this;\n }",
"public static void rowPlus() {\n\t\tnRow++;\n\t\tbuildBoard();\n\t\tfor (int c = 0; c < nCol; c++)\n\t\t\tboard[c][nRow - 1] = pItem.getItem(rnd[c][nRow - 1] = random.nextDouble());\n\t\tRightPanel.updateTextBoardInfo();\n\t}",
"void addRowsLock();",
"public int addRow(List row) {\n\t\tdata.add(row);\n\t\tfireTableRowsInserted(data.size()-1, data.size()-1);\n\t\treturn(data.size() -1);\n\t}",
"Row<T> createRow(final T element);",
"public Builder addRows(\n String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n ensureRowsIsMutable();\n rows_.add(value);\n onChanged();\n return this;\n }",
"Rows createRows();",
"private void addRows() {\n this.SaleList.forEach(Factura -> {\n this.modelo.addRow(new Object[]{\n Factura.getId_Factura(),\n Factura.getPersona().getNombre(),\n Factura.getFecha().getTimestamp(),\n Factura.getCorreo(),\n Factura.getGran_Total()});\n });\n }",
"protected abstract E newRow();",
"public void addData(View view) {\n int numCompanies = companies.length;\n TableLayout tl = view.findViewById(R.id.tableLayout);\n Log.d(\"TableViewFragment\", \"addData() invoked\");\n for (int i = 0; i < numCompanies; i++) {\n Log.d(\"TableViewFragment\", \"addData()\" + (i));\n TableRow tr = new TableRow(getContext());\n tr.setLayoutParams(getLayoutParams());\n tr.addView(getTextView(i + 1, companies[i], Color.WHITE, Typeface.NORMAL, ContextCompat.getColor(getContext(), R.color.colorAccent)));\n tr.addView(getTextView(i + numCompanies, os[i], Color.WHITE, Typeface.NORMAL, ContextCompat.getColor(getContext(), R.color.colorAccent)));\n tl.addView(tr, getTblLayoutParams());\n }\n }",
"private void addNewLine(String timeAndDate, int steps) {\n\n String stepsString = Integer.toString(steps);\n\n TableRow newRow = new TableRow(this);\n\n // Create the Left hand side\n TextView left = new TextView(this);\n left.setText(timeAndDate);\n left.setGravity(Gravity.START);\n left.setPadding(10,5, 10,5);\n left.setTextSize(15);\n\n // Create the right hand side\n TextView right = new TextView(this);\n right.setText(stepsString);\n right.setGravity(Gravity.END);\n right.setPadding(10,5,10,5);\n right.setTextSize(15);\n\n // Add the TextView Components to the row\n newRow.addView(left);\n newRow.addView(right);\n\n // Add row to the TableLayout\n table.addView(newRow,new TableLayout.LayoutParams(TableLayout.LayoutParams.WRAP_CONTENT,\n TableLayout.LayoutParams.WRAP_CONTENT));\n\n // Create Line to separate rows and add to end of the new row\n View line = new View(this);\n line.setLayoutParams(new TableRow.LayoutParams(TableRow.LayoutParams.MATCH_PARENT,1));\n line.setBackgroundColor(Color.BLACK);\n table.addView(line);\n\n // Scroll to the newly added row\n scrollTo(newRow);\n }",
"public void addRow (int index)\n\t{\n\t\tm_data.rows.add(index, new ArrayList<Object>());\n\t\tm_data.rowsMeta.add(index, null);\n\t}",
"public void addHeaders() {\n TableLayout tl = findViewById(R.id.table);\n TableRow tr = new TableRow(this);\n tr.setLayoutParams(getLayoutParams());\n if (!haverford) {\n tr.addView(getTextView(0, \"Leave Bryn Mawr\", Color.WHITE, Typeface.BOLD, Color.BLUE));\n tr.addView(getTextView(0, \"Arrive Haverford\", Color.WHITE, Typeface.BOLD, Color.BLUE));\n } else {\n tr.addView(getTextView(0, \"Leave Haverford\", Color.WHITE, Typeface.BOLD, Color.BLUE));\n tr.addView(getTextView(0, \"Arrive Bryn Mawr\", Color.WHITE, Typeface.BOLD, Color.BLUE));\n }\n tl.addView(tr, getTblLayoutParams());\n }",
"public Builder addRow(\n int index, io.dstore.engine.procedures.OmModifyCampaignsAd.Response.Row value) {\n if (rowBuilder_ == null) {\n if (value == null) {\n throw new NullPointerException();\n }\n ensureRowIsMutable();\n row_.add(index, value);\n onChanged();\n } else {\n rowBuilder_.addMessage(index, value);\n }\n return this;\n }",
"public void insertRow(int index) {\n\t\tString[] array = new String[getColumnCount()];\n\t\tArrays.fill(array, \"\"); //$NON-NLS-1$\n\t\tinput.add(index, new ArrayList<String>(Arrays.asList(array)));\n\t\ttableViewer.refresh(false);\n\t\tfireTableModified();\n\t}",
"private void selectTableRow () {\n int selectedRow = itemTable.getSelectedRow();\n if (selectedRow >= 0 && selectedRow < clubEventList.size()) {\n boolean modOK = modIfChanged();\n if (modOK) {\n position = clubEventList.positionUsingListIndex (selectedRow);\n positionAndDisplay();\n }\n }\n }",
"public void absInsertRowAt(Vector row, int index) {\n if (row == null) {\n row = new Vector(getModel().getColumnCount());\n }\n ((DefaultTableModel) getModel()).insertRow(index, row);\n }",
"public void actionPerformed(ActionEvent event){\n tableModel.addRow(blank);\r\n }",
"public Builder addRow(\n int index, io.dstore.engine.procedures.ImModifyNodeCharacsAd.Response.Row value) {\n if (rowBuilder_ == null) {\n if (value == null) {\n throw new NullPointerException();\n }\n ensureRowIsMutable();\n row_.add(index, value);\n onChanged();\n } else {\n rowBuilder_.addMessage(index, value);\n }\n return this;\n }",
"private AppendRowsTask appendRow(\n final int sequence,\n final List<String> row) {\n final ApplicationSettings settings = ApplicationSettings.getInstance(Sms2GSheetService.this);\n String accountName = settings.getAccountName();\n if ((accountName == null) || (accountName.isEmpty())) {\n return null;\n }\n\n // Initialize credentials and service object.\n GoogleAccountCredential credential = GoogleAccountCredential.usingOAuth2(Sms2GSheetService.this, Arrays.asList(Helper.SCOPES))\n .setBackOff(new ExponentialBackOff());\n\n credential.setSelectedAccountName(accountName);\n\n return new AppendRowsTask(credential, new GoogleSheetsAppendResponseReceiver() {\n @Override\n public AppendValuesResponse append_rows(Sheets sheets) throws IOException {\n String range;\n range = Helper.SHEET_RANGE;\n ValueRange values = new ValueRange();\n values.setMajorDimension(\"ROWS\");\n List<List<Object>> vls;\n vls = new ArrayList<>();\n ArrayList<Object> ro = new ArrayList<>();\n if (row != null) {\n for (String rr : row) {\n ro.add(rr);\n }\n }\n vls.add(ro);\n values.setValues(vls);\n Sheets.Spreadsheets.Values.Append r = sheets.spreadsheets().values().append(\n settings.getSpreadsheetId(), range, values);\n r.setValueInputOption(\"RAW\");\n AppendValuesResponse response = r.execute();\n Log.i(TAG, response.toString());\n return response;\n }\n\n @Override\n public void onStart() {\n }\n\n @Override\n public void onStop() {\n }\n\n @Override\n public void onAppend(AppendValuesResponse response) {\n if (response == null) {\n Helper.showNotificationError(Sms2GSheetService.this, getString(R.string.err_no_response));\n Log.e(TAG, getString(R.string.err_no_response));\n } else {\n Log.i(TAG, getString(R.string.msg_response) + response.toString());\n }\n if (mSMSRows != null) {\n if (!mSMSRows.containsKey(sequence)) {\n Log.e(TAG, \"Invalid sequence\");\n } else {\n mSMSRows.remove(sequence);\n }\n }\n }\n\n @Override\n public void onCancel(Exception error) {\n if (error instanceof GooglePlayServicesAvailabilityIOException) {\n Helper.showNotificationError(Sms2GSheetService.this, getString(R.string.err_no_playservices));\n Log.e(TAG, getString(R.string.err_no_playservices));\n } else if (error instanceof UserRecoverableAuthIOException) {\n Helper.showNotificationError(Sms2GSheetService.this, getString(R.string.err_no_credentials));\n Log.e(TAG, getString(R.string.err_no_credentials));\n } else {\n Helper.showNotificationError(Sms2GSheetService.this, getString(R.string.err_message) + error.getMessage());\n Log.e(TAG, getString(R.string.err_message) + error.getMessage());\n }\n }\n });\n }",
"public Builder addRow(io.dstore.engine.procedures.OmModifyCampaignsAd.Response.Row value) {\n if (rowBuilder_ == null) {\n if (value == null) {\n throw new NullPointerException();\n }\n ensureRowIsMutable();\n row_.add(value);\n onChanged();\n } else {\n rowBuilder_.addMessage(value);\n }\n return this;\n }",
"TableRow componentATableRow(){\n\n TableRow componentATableRow = new TableRow(this.context);\n View view = this.headerObjects.get(0);\n componentATableRow.addView(view);\n\n return componentATableRow;\n }",
"void newRow(List<C> row) throws Exception;",
"private void addHeaders(){\n\n /** Create a TableRow dynamically **/\n tr = new TableRow(this);\n tr.setLayoutParams(new TableRow.LayoutParams(\n TableRow.LayoutParams.MATCH_PARENT,\n TableRow.LayoutParams.WRAP_CONTENT));\n\n /** Creating a TextView to add to the row **/\n TextView item = new TextView(this);\n item.setText(\"Recipe\");\n item.setWidth(320);\n item.setBackgroundColor(getResources().getColor(R.color.colorPrimary));\n item.setTextColor(Color.WHITE);\n item.setTypeface(Typeface.DEFAULT, Typeface.BOLD);\n item.setPadding(5, 5, 5, 0);\n tr.addView(item); // Adding textView to tablerow.\n\n\n // Add the TableRow to the TableLayout\n tl.addView(tr, new TableLayout.LayoutParams(\n TableRow.LayoutParams.MATCH_PARENT,\n TableRow.LayoutParams.WRAP_CONTENT));\n\n\n }",
"public void addRow(final Object[] rowData) {\n\t\t((DefaultTableModel) this.model).addRow(rowData);\n\t}",
"public boolean addRow(BMessage message){\n return addRow(MessageListItem.fromBMessage(message, userID, maxWidth, customDateFormat));\n }",
"public void addRow(Patient o)\n\t{\n\t\tthis.data.add(o);\n\t\tthis.fireTableChanged(null);\n\t}",
"public void addRow(ResultSetRow row) throws SQLException {\n/* 231 */ notSupported();\n/* */ }",
"@Override\n public final void buildRow(T rowValue, int absRowIndex) {\n setRowInfo(absRowIndex, rowValue);\n buildRowImpl(rowValue, absRowIndex);\n }",
"public boolean buildTable() {\n int count = table.getChildCount();\n for (int i = 0; i < count; i++) {\n View child = table.getChildAt(i);\n if (child instanceof TableRow) ((ViewGroup) child).removeAllViews();\n }\n\n //Dynamically adds rows based on the size of the destinations array\n for(int i = 0; i < orderedDestinations.size(); i++){\n // Inflates the search_results_table_row_attributes.xml file\n TableRow row = (TableRow) inflater.inflate(R.layout.search_results_table_row_attributes, null);\n\n //Finds oritentation and alters the row width if in landscape\n if(getResources().getConfiguration().orientation == 2) {\n LinearLayout ll = ((LinearLayout)row.findViewById(R.id.layout_contents));\n ll.getLayoutParams().width = 1700;\n ll.requestLayout();\n }\n\n //adds contents of the destination to the row\n ((TextView)row.findViewById(R.id.desti)).setText((i+1) + \") \" + orderedDestinations.get(i).name);\n ((TextView)row.findViewById(R.id.address)).setText(orderedDestinations.get(i).address);\n table.addView(row);\n }\n return true;\n }",
"public Builder addRow(\n int index, com.google.devtools.kythe.proto.Filecontext.ContextDependentVersion.Row value) {\n if (rowBuilder_ == null) {\n if (value == null) {\n throw new NullPointerException();\n }\n ensureRowIsMutable();\n row_.add(index, value);\n onChanged();\n } else {\n rowBuilder_.addMessage(index, value);\n }\n return this;\n }",
"private void addButtonActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_addButtonActionPerformed\n\n AttlistTableModel tm = (AttlistTableModel) attrTable.getModel();\n tm.addRow();\n int actualIndex = numRows() - 1;\n attrTable.getSelectionModel().setSelectionInterval(actualIndex, actualIndex);\n }",
"public void addRow(DataFile fileInfo, FileState state) {\n\n if (fileInfo != null && (state == FileState.NO_COPY || state == FileState.HAS_COPY || state == FileState.DOWNLOADING)\n || state == FileState.CORRUPTED) {\n data.add(new DataRowModel(fileInfo, state));\n } else {\n log.error(\"Row was not added - invalid data format!\");\n }\n fireTableDataChanged();\n }",
"public void addRow(DataRow dataRow) {\n this.dataRows.add(dataRow);\n }",
"protected void addRowAttributes(TableRowBuilder row, T rowValue) {\n addRowAttributes(row);\n }",
"private void addTotalRow(Frequency totalRowFreq)\n {\n double total = getLossTotal(totalRowFreq);\n\n TableLayout table = (TableLayout) findViewById(R.id.lossesTable);\n TableRow row = new TableRow(this);\n\n TextView totalView = new TextView(this);\n ((BadBudgetApplication)this.getApplication()).initializeTableCell(totalView, getString(R.string.table_total), R.drawable.bordertbl);\n\n final TextView totalAmountView = new TextView(this);\n this.totalAmountView = totalAmountView;\n String totalAmountString = BadBudgetApplication.roundedDoubleBB(total);\n ((BadBudgetApplication)this.getApplication()).initializeTableCell(totalAmountView, totalAmountString, R.drawable.bordertbl);\n\n final TextView frequencyView = new TextView(this);\n this.totalFreqView = frequencyView;\n\n frequencyView.setOnClickListener(new View.OnClickListener() {\n\n public void onClick(View v)\n {\n Frequency currentToggleFreq = BadBudgetApplication.freqFromShortHand(frequencyView.getText().toString());\n Frequency convertToggleFreq = BadBudgetApplication.getNextToggleFreq(currentToggleFreq);\n double convertTotal = getLossTotal(convertToggleFreq);\n frequencyView.setText(BadBudgetApplication.shortHandFreq(convertToggleFreq));\n totalAmountView.setText(BadBudgetApplication.roundedDoubleBB(convertTotal));\n }\n\n });\n\n String frequencyString = BadBudgetApplication.shortHandFreq(totalRowFreq);\n ((BadBudgetApplication)this.getApplication()).initializeTableCell(frequencyView, frequencyString, R.drawable.bordertbl);\n frequencyView.setPaintFlags(frequencyView.getPaintFlags()|Paint.UNDERLINE_TEXT_FLAG);\n\n TextView notAppView = new TextView(this);\n ((BadBudgetApplication)this.getApplication()).initializeTableCell(notAppView, \"\", R.drawable.borderfull);\n\n row.addView(totalView);\n row.addView(totalAmountView);\n row.addView(frequencyView);\n row.addView(notAppView);\n\n table.addView(row);\n }",
"public Builder addRow(io.dstore.engine.procedures.ImModifyNodeCharacsAd.Response.Row value) {\n if (rowBuilder_ == null) {\n if (value == null) {\n throw new NullPointerException();\n }\n ensureRowIsMutable();\n row_.add(value);\n onChanged();\n } else {\n rowBuilder_.addMessage(value);\n }\n return this;\n }",
"public void actionPerformed(ActionEvent e) {\n model.addRow();\n }",
"private static void assembleRosterTable(){\n for (int i = 0; i < 10; i++) {\n rosterTable.insertRow(i);\n }\n }",
"private void addRow(EMultipleAnswerType eMultipleAnswerType, String title, boolean answer){\n final View row;\n\n // *Setting the row xml:\n if(eMultipleAnswerType == EMultipleAnswerType.SINGLE_CHOICE){\n row = layoutInflater.inflate(ROW_SINGLE_CHOICE_LAYOUT, null);\n } else {\n row = layoutInflater.inflate(ROW_MULTIPLE_CHOICE_LAYOUT, null);\n }\n\n // *Hiding removeBtn:\n ImageButton removeBtn = (ImageButton) row.findViewById(ROW_REMOVE_BTN_ID);\n removeBtn.setVisibility(View.GONE);\n\n // *RadioButton listener:\n final CompoundButton compoundButton = (CompoundButton) row.findViewById(ROW_COMPOUND_BTN_ID);\n compoundButtonController.addCompoundButton(compoundButton);\n\n // *Fill the text and check state of the row:\n compoundButton.setText(title);\n compoundButton.setChecked(answer);\n\n rowContainer.addView(row);\n }",
"public Builder addRow(\n int index, io.dstore.engine.procedures.FoModifyForumsInCategoriesAd.Response.Row value) {\n if (rowBuilder_ == null) {\n if (value == null) {\n throw new NullPointerException();\n }\n ensureRowIsMutable();\n row_.add(index, value);\n onChanged();\n } else {\n rowBuilder_.addMessage(index, value);\n }\n return this;\n }",
"private HBox buttonRow() {\n\t\tOK = new ButtonMaker().makeButton(\"OK\", e -> {\n\t\t\t//TODO: implement once animation factory has been finalized.\n\t\t\tAnimationEvent animationEvent = factory.makeAnimationEvent(name.getText(), Integer.parseInt(duration.getText()));\n\t\t\t//TODO: use reflection to automate this (but tricky with the extra parameter in path effect)\n\t\t\tif(pathSelector.selectEffect.isSelected()) {\n\t\t\t\tfactory.makePathEffect((String) pathSelector.getValue(), pathSelector.isReverse(), animationEvent);\n\t\t\t}\n\t\t\tif(rotationSelector.selectEffect.isSelected()) {\n\t\t\t\tfactory.makeRotateEffect((Double)rotationSelector.getValue(), animationEvent);\n\t\t\t}\n\t\t\tif(scaleSelector.selectEffect.isSelected()) {\n\t\t\t\tfactory.makeScaleAnimationEffect((Double)scaleSelector.getValue(), animationEvent);\n\t\t\t}\n\t\t\tif(imageSelector.selectEffect.isSelected()) {\n\t\t\t\tfactory.makeImageAnimationEffect((List<String>)imageSelector.getValue(), imageSelector.getNumberOfCycles(), animationEvent);\n\t\t\t}\n\t\t});\n\t\tpreview = new ButtonMaker().makeButton(\"Preview\", e -> {\n\t\t\t//TODO: allow users to preview their animation\n\n\t\t});\n\t\treturn GUIUtils.makeRow(OK, preview);\n\t}",
"public TableRow() {\n\t\tthis.cells = new ArrayList<TableCell>();\n\t}",
"public void addRow(String data){//adds a new row of data to the table\n\t\t\t\tif(row_count<100){//checks to see if there is space left in the current datum for an additional rows\n\t\t\t\t\tif(row_count<50){//halvs the data for more efficiant row insertion\n\t\t\t\t\t\tif(row_count<10){//checks to see if it is in the first inner datum\n\t\t\t\t\t\t\tif(dataarr!=null){//makes suhure there is an innerdatum to send the data to\n\t\t\t\t\t\t\t\tdataarr[0].addRow(data);\n\t\t\t\t\t\t\t}else{//if there is not an inner datum in the current spot this adds a new one\n\t\t\t\t\t\t\t\tdataarr[0]=new InnerDatum();\n\t\t\t\t\t\t\t\tdataarr[0].addRow(data);\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}else if(row_count<20){//checks to see if it is in the second inner datum\n\t\t\t\t\t\t\tf(dataarr!=null){//makes suhure there is an innerdatum to send the data to\n\t\t\t\t\t\t\t\tdataarr[1].addRow(data);\n\t\t\t\t\t\t\t}else{//if there is not an inner datum in the current spot this adds a new one\n\t\t\t\t\t\t\t\tdataarr[1]=new InnerDatum();\n\t\t\t\t\t\t\t\tdataarr[1].addRow(data);\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}else if(row_count<30){//checks to see if it is in the third inner datum\n\t\t\t\t\t\t\tif(dataarr!=null){//makes suhure there is an innerdatum to send the data to\n\t\t\t\t\t\t\t\tdataarr[2].addRow(data);\n\t\t\t\t\t\t\t}else{//if there is not an inner datum in the current spot this adds a new one\n\t\t\t\t\t\t\t\tdataarr[2]=new InnerDatum();\n\t\t\t\t\t\t\t\tdataarr[2].addRow(data);\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}else if(row_count<40){//checks to see if it is in the fourth inner datum\n\t\t\t\t\t\t\tif(dataarr!=null){//makes suhure there is an innerdatum to send the data to\n\t\t\t\t\t\t\t\tdataarr[3].addRow(data);\n\t\t\t\t\t\t\t}else{//if there is not an inner datum in the current spot this adds a new one\n\t\t\t\t\t\t\t\tdataarr[3]=new InnerDatum();\n\t\t\t\t\t\t\t\tdataarr[3].addRow(data);\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}else{//checks to see if it is in the fifth inner datum\n\t\t\t\t\t\t\tif(dataarr!=null){//makes suhure there is an innerdatum to send the data to\n\t\t\t\t\t\t\t\tdataarr[4].addRow(data);\n\t\t\t\t\t\t\t}else{//if there is not an inner datum in the current spot this adds a new one\n\t\t\t\t\t\t\t\tdataarr[4]=new InnerDatum();\n\t\t\t\t\t\t\t\tdataarr[4].addRow(data);\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t}else{\t\n\t\t\t\t\t\tif(row_count<60){//checks to see if it is in the sixth inner datum\n\t\t\t\t\t\t\tif(dataarr!=null){//makes suhure there is an innerdatum to send the data to\n\t\t\t\t\t\t\t\tdataarr[5].addRow(data);\n\t\t\t\t\t\t\t}else{//if there is not an inner datum in the current spot this adds a new one\n\t\t\t\t\t\t\t\tdataarr[5]=new InnerDatum();\n\t\t\t\t\t\t\t\tdataarr[5].addRow(data);\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}else if(row_count<70){//checks to see if it is in the seventh inner datum\n\t\t\t\t\t\t\tif(dataarr!=null){//makes suhure there is an innerdatum to send the data to\n\t\t\t\t\t\t\t\tdataarr[6].addRow(data);\n\t\t\t\t\t\t\t}else{//if there is not an inner datum in the current spot this adds a new one\n\t\t\t\t\t\t\t\tdataarr[6]=new InnerDatum();\n\t\t\t\t\t\t\t\tdataarr[6].addRow(data);\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}else if(row_count<80){//checks to see if it is in the eighth inner datum\n\t\t\t\t\t\t\tif(dataarr!=null){//makes suhure there is an innerdatum to send the data to\n\t\t\t\t\t\t\t\tdataarr[7].addRow(data);\n\t\t\t\t\t\t\t}else{//if there is not an inner datum in the current spot this adds a new one\n\t\t\t\t\t\t\t\tdataarr[7]=new InnerDatum();\n\t\t\t\t\t\t\t\tdataarr[7].addRow(data);\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}else if(row_count<90){//checks to see if it is in the ninth inner datum\n\t\t\t\t\t\t\tif(dataarr!=null){//makes suhure there is an innerdatum to send the data to\n\t\t\t\t\t\t\t\tdataarr[8].addRow(data);\n\t\t\t\t\t\t\t}else{//if there is not an inner datum in the current spot this adds a new one\n\t\t\t\t\t\t\t\tdataarr[8]=new InnerDatum();\n\t\t\t\t\t\t\t\tdataarr[8].addRow(data);\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}else{//checks to see if it is in the tenth inner datum\n\t\t\t\t\t\t\tif(dataarr!=null){//makes suhure there is an innerdatum to send the data to\n\t\t\t\t\t\t\t\tdataarr[9].addRow(data);\n\t\t\t\t\t\t\t}else{//if there is not an inner datum in the current spot this adds a new one\n\t\t\t\t\t\t\t\tdataarr[9]=new InnerDatum();\n\t\t\t\t\t\t\t\tdataarr[9].addRow(data);\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}else{//acctivated when there is no room left in the current outer datum}\n\t\t\t\t\tif(next==null){//checks to see if there is a next outer datum\n\t\t\t\t\t\tnext=new OuterDatum();\t\n\t\t\t\t\t}\n\t\t\t\t\tnext.addRow(data);\n\t\t\t\t}\n\t\t\t}",
"@Override\n public void tableRows_()\n {\n }",
"public TableRow build_row(String item_name, String quantity, String price){\n\n //Converts pixel to dp\n int padding_in_dp = 10;\n final float scale = getResources().getDisplayMetrics().density;\n int padd_bottom = (int) (padding_in_dp * scale + 0.5f);\n\n TableRow row = new TableRow(getContext());\n\n TextView item_view = build_view(item_name, 6, false, true, row);\n TextView quantity_view = build_view(quantity, 3,true, false, row);\n TextView price_view = build_view(price,3,true, false, row);\n TextView delete_view = build_view(\"x\",1, true, true, row);\n\n row.addView(item_view);\n row.addView(quantity_view);\n row.addView(price_view);\n row.addView(delete_view);\n\n row.setPadding(0,0,0,padd_bottom);\n\n return row;\n }",
"public void absIncrementRowAt(int index) {\n int lastIndex = getModel().getRowCount() - 1;\n if ((index < 0) || (index >= lastIndex)) {\n return;\n }\n\n Vector[] va = getAllRowsData();\n\n Vector vTemp = va[index];\n va[index] = va[index + 1];\n va[index + 1] = vTemp;\n\n setRows(va);\n }",
"private void addPersonUIRow(String name) {\n TableRow tr = new TableRow(getContext());\n TableRow.LayoutParams trTlp = new TableRow.LayoutParams(\n 0,\n TableLayout.LayoutParams.WRAP_CONTENT\n );\n tr.setLayoutParams(trTlp);\n\n //create name view\n TextView nameView = new TextView(getContext());\n nameView.setText(name);\n nameView.setTextSize(20);\n TableRow.LayoutParams tlp1 = new TableRow.LayoutParams(\n TableLayout.LayoutParams.WRAP_CONTENT,\n TableLayout.LayoutParams.MATCH_PARENT\n );\n tlp1.column=0;\n nameView.setLayoutParams(tlp1);\n\n //TODO: switch add on toggle listener\n Switch sw = new Switch(getContext());\n TableRow.LayoutParams tlp2 = new TableRow.LayoutParams(\n TableLayout.LayoutParams.WRAP_CONTENT,\n TableLayout.LayoutParams.MATCH_PARENT\n );\n tlp2.column=1;\n tlp2.gravity=Gravity.CENTER_HORIZONTAL;\n sw.setTextOff(\"OFF\");\n sw.setTextOn(\"ON\");\n sw.setHeight(20);\n //before listener so that it won't fire off\n if (faceTable.containsKey(name)){\n sw.setChecked(true);\n }\n sw.setOnCheckedChangeListener(this);\n sw.setLayoutParams(tlp2);\n\n //create sub view\n TextView subView = new TextView(getContext());\n subView.setText(\"\");\n subView.setTextSize(20);\n TableRow.LayoutParams tlp3 = new TableRow.LayoutParams(\n TableLayout.LayoutParams.WRAP_CONTENT,\n TableLayout.LayoutParams.MATCH_PARENT\n );\n tlp3.column=2;\n subView.setLayoutParams(tlp3);\n subView.setVisibility(View.INVISIBLE);\n if (faceTable.containsKey(name)){\n subView.setText(faceTable.get(name));\n subView.setVisibility(View.VISIBLE);\n }\n\n //create delete button\n ImageView deleteView = new ImageView(getContext());\n deleteView.setImageResource(R.drawable.ic_delete_black_24dp);\n TableRow.LayoutParams tlp4 = new TableRow.LayoutParams(\n TableLayout.LayoutParams.WRAP_CONTENT,\n TableLayout.LayoutParams.MATCH_PARENT\n );\n tlp4.column=3;\n deleteView.setLayoutParams(tlp4);\n deleteView.setOnClickListener(new ImageView.OnClickListener() {\n @Override\n public void onClick(View v) {\n String toBeRemovedName=null;\n PersonUIRow toBeRemovedRow=null;\n //find the name of the person to be removed\n for (PersonUIRow uiRow: personUIList){\n if (uiRow.deleteView == v){\n toBeRemovedName = (String) uiRow.nameView.getText();\n toBeRemovedRow = uiRow;\n break;\n }\n }\n if (null != toBeRemovedName){\n GabrielConfigurationAsyncTask task =\n new GabrielConfigurationAsyncTask(getActivity(),\n getMyAcitivty().currentServerIp,\n GabrielClientActivity.VIDEO_STREAM_PORT,\n GabrielClientActivity.RESULT_RECEIVING_PORT,\n Const.GABRIEL_CONFIGURATION_REMOVE_PERSON);\n task.execute(toBeRemovedName);\n trainedPeople.remove(toBeRemovedName);\n }\n\n //remove current line\n if (null != toBeRemovedRow){\n personUIList.remove(toBeRemovedRow);\n tb.removeView(toBeRemovedRow.tr);\n } else {\n Log.e(TAG, \"delete icon clicked, but didn't find any row to remove\");\n }\n\n }\n });\n\n tr.addView(nameView);\n tr.addView(sw);\n tr.addView(subView);\n tr.addView(deleteView);\n\n tb.addView(tr,\n new TableLayout.LayoutParams(TableLayout.LayoutParams.MATCH_PARENT,\n TableLayout.LayoutParams.WRAP_CONTENT));\n\n PersonUIRow uiRow = new PersonUIRow(tr,nameView, sw, subView, deleteView);\n personUIList.add(uiRow);\n }",
"public void joinTable(List<AccountingLineTableRow> rows) {\n throw new IllegalStateException(\"Line elements may not join a table directly; the specified rendering is incorrect\");\n }",
"private ContainerTag generateTableRow(HtmlData rowData) {\n ContainerTag row = tr();\n for (String entry : rowData.getFields()) {\n row.with(td(entry));\n }\n return row;\n }",
"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 Builder addRow(\n int index, io.dstore.engine.procedures.StGetPageVisitsAd.Response.Row value) {\n if (rowBuilder_ == null) {\n if (value == null) {\n throw new NullPointerException();\n }\n ensureRowIsMutable();\n row_.add(index, value);\n onChanged();\n } else {\n rowBuilder_.addMessage(index, value);\n }\n return this;\n }",
"public String onNew() {\n final DataTableCRUDRow<R> row = getModel().createRow(getModel().newElementInstance());\n getModel().getRows().add(0, row);\n getModel().setRowClicked(row);\n row.setNewRow(true);\n row.setReadonly(false);\n return \"\";\n }",
"public void addRow(double[] rowValues) {\n rows++;\n matrix.add(rowValues);\n }",
"TableRow componentBTableRow(){\n\n TableRow componentBTableRow = new TableRow(this.context);\n int headerFieldCount = this.headerObjects.size();\n\n TableRow.LayoutParams params = new TableRow.LayoutParams(LayoutParams.WRAP_CONTENT,LayoutParams.MATCH_PARENT);\n// params.setMargins(-1, 0, 0, 0);\n\n for(int x=0; x<(headerFieldCount-1); x++){\n View view = headerObjects.get(x+1);\n\n componentBTableRow.addView(view, params);\n }\n\n\n return componentBTableRow;\n }",
"public abstract void append(int data, int row, int column);",
"public void addRow (ArrayList<Object> l, int index)\n\t{\n\t\tm_data.rows.add(index, l);\n\t\tm_data.rowsMeta.add(index, null);\n\t}",
"private void insertButtonActionPerformed(java.awt.event.ActionEvent evt) {// GEN\n // -\n // FIRST\n // :\n // event_insertButtonActionPerformed\n int rowIndex = headerTable.getSelectedRow();\n if (rowIndex > -1) {\n insertRow(rowIndex);\n } else {\n insertRow(_tableModel.getRowCount());\n }\n }",
"private void createRow( String name )\n {\n logger.log(Level.FINE, \"Creating Row\");\n\n JLabel label = new JLabel( name, SwingConstants.RIGHT );\n if (!isHeadless)\n label.setFont(new Font(\"Monospaced\", Font.PLAIN, 15));\n label.setHorizontalAlignment(SwingConstants.CENTER);\n label.setBorder(BorderFactory.createMatteBorder(0, 0, 1, 0, Color.DARK_GRAY));\n if (name.equals(PROFIT_LOSS))\n bottomPanel.add(label, BorderLayout.NORTH);\n else\n leftPanel.add(label);\n\n JTextField field = new JTextField( 30 );\n field.setEditable(false);\n if (!isHeadless)\n field.setFont(new Font(\"Serif\", Font.BOLD, 30));\n field.setBorder(BorderFactory.createMatteBorder(0, 0, 1, 0, Color.DARK_GRAY));\n field.setHorizontalAlignment(SwingConstants.CENTER);\n if (name.equals(PROFIT_LOSS)) {\n if (!isHeadless)\n field.setFont(new Font(\"Monospaced\", Font.BOLD, 55));\n bottomPanel.add(field, BorderLayout.CENTER);\n } else\n rightPanel.add(field);\n\n fields.put(name, field);\n\n logger.log(Level.FINE, \"Created Row\");\n\n }",
"public void addRow(File photoFile, final Bitmap photoBmp) {\r\n\r\n final PhotoListViewAdapter adapter = (PhotoListViewAdapter) getAdapter();\r\n\r\n /**\r\n * Stores the starting bounds and the corresponding bitmap drawables of\r\n * every cell present in the ListView before the data set change takes\r\n * place.\r\n */\r\n final HashMap<Long, Rect> listViewItemBounds = new HashMap<Long, Rect>();\r\n final HashMap<Long, BitmapDrawable> listViewItemDrawables = new HashMap<Long, BitmapDrawable>();\r\n\r\n int firstVisiblePosition = getFirstVisiblePosition();\r\n for (int i = 0; i < getChildCount(); ++i) {\r\n View child = getChildAt(i);\r\n int position = firstVisiblePosition + i;\r\n long itemID = adapter.getItemId(position);\r\n Rect startRect = new Rect(child.getLeft(), child.getTop(), child.getRight(),\r\n child.getBottom());\r\n listViewItemBounds.put(itemID, startRect);\r\n listViewItemDrawables.put(itemID, getBitmapDrawableFromView(child));\r\n }\r\n\r\n /**\r\n * Adds the new object to the data set, thereby modifying the adapter,\r\n * as well as adding a stable Id for that specified object.\r\n */\r\n // mData.add(0, newObj);\r\n // adapter.addStableIdForDataAtPosition(0);\r\n adapter.addItem(photoFile);\r\n adapter.notifyDataSetChanged();\r\n\r\n final ViewTreeObserver observer = getViewTreeObserver();\r\n observer.addOnPreDrawListener(new ViewTreeObserver.OnPreDrawListener() {\r\n public boolean onPreDraw() {\r\n observer.removeOnPreDrawListener(this);\r\n\r\n ArrayList<Animator> animations = new ArrayList<Animator>();\r\n\r\n final View newCell = getChildAt(0);\r\n final ImageView imgView = (ImageView) newCell.findViewById(R.id.bwc_iv_line_frame);\r\n final ImageView copyImgView = new ImageView(mContext);\r\n\r\n int firstVisiblePosition = getFirstVisiblePosition();\r\n final boolean shouldAnimateInNewRow = shouldAnimateInNewRow();\r\n final boolean shouldAnimateInImage = shouldAnimateInNewImage();\r\n\r\n if (shouldAnimateInNewRow) {\r\n /** Fades in the text of the first cell. */\r\n // TextView textView =\r\n // (TextView)newCell.findViewById(R.id.text_view);\r\n // ObjectAnimator textAlphaAnimator =\r\n // ObjectAnimator.ofFloat(textView,\r\n // View.ALPHA, 0.0f, 1.0f);\r\n // animations.add(textAlphaAnimator);\r\n\r\n /**\r\n * Animates in the extra hover view corresponding to the\r\n * image in the top row of the ListView.\r\n */\r\n if (shouldAnimateInImage) {\r\n\r\n int width = imgView.getWidth();\r\n int height = imgView.getHeight();\r\n int realH = height - imgView.getPaddingTop() - imgView.getPaddingBottom();\r\n int realW = width - imgView.getPaddingLeft() - imgView.getPaddingRight();\r\n\r\n Point photoViewLoc = getLocationOnScreen(imgView);\r\n Point layoutLoc = getLocationOnScreen(mLayout);\r\n\r\n Bitmap bitmap = PhotoListViewAdapter.createListImageFromPhoto(photoBmp, 1);\r\n copyImgView.setImageBitmap(bitmap);\r\n int padding = imgView.getPaddingLeft();\r\n copyImgView.setX(photoViewLoc.x - layoutLoc.x + padding);\r\n copyImgView.setY(-realH);\r\n\r\n imgView.setVisibility(View.INVISIBLE);\r\n copyImgView.setScaleType(ImageView.ScaleType.FIT_CENTER);\r\n ObjectAnimator imgViewTranslation = ObjectAnimator.ofFloat(copyImgView,\r\n View.Y, photoViewLoc.y - layoutLoc.y + imgView.getPaddingTop());\r\n\r\n PropertyValuesHolder imgViewScaleY = PropertyValuesHolder.ofFloat(\r\n View.SCALE_Y, 0.5f, 1.0f);\r\n PropertyValuesHolder imgViewScaleX = PropertyValuesHolder.ofFloat(\r\n View.SCALE_X, 0.5f, 1.0f);\r\n ObjectAnimator imgViewScaleAnimator = ObjectAnimator\r\n .ofPropertyValuesHolder(copyImgView, imgViewScaleX, imgViewScaleY);\r\n imgViewScaleAnimator.setInterpolator(sOvershootInterpolator);\r\n animations.add(imgViewTranslation);\r\n animations.add(imgViewScaleAnimator);\r\n\r\n RelativeLayout.LayoutParams params = new RelativeLayout.LayoutParams(realW,\r\n realH);\r\n\r\n mLayout.addView(copyImgView, params);\r\n }\r\n }\r\n\r\n /**\r\n * Loops through all the current visible cells in the ListView\r\n * and animates all of them into their post layout positions\r\n * from their original positions.\r\n */\r\n for (int i = 0; i < getChildCount(); i++) {\r\n View child = getChildAt(i);\r\n int position = firstVisiblePosition + i;\r\n long itemId = adapter.getItemId(position);\r\n Rect startRect = listViewItemBounds.get(itemId);\r\n int top = child.getTop();\r\n if (startRect != null) {\r\n /**\r\n * If the cell was visible before the data set change\r\n * and after the data set change, then animate the cell\r\n * between the two positions.\r\n */\r\n int startTop = startRect.top;\r\n int delta = startTop - top;\r\n ObjectAnimator animation = ObjectAnimator.ofFloat(child,\r\n View.TRANSLATION_Y, delta, 0);\r\n // animation.setStartDelay(ANIM_PHASE_1_DURATION);\r\n animations.add(animation);\r\n } else {\r\n /**\r\n * If the cell was not visible (or present) before the\r\n * data set change but is visible after the data set\r\n * change, then use its height to determine the delta by\r\n * which it should be animated.\r\n */\r\n int childHeight = child.getHeight() + getDividerHeight();\r\n int startTop = top + (i > 0 ? childHeight : -childHeight);\r\n int delta = startTop - top;\r\n ObjectAnimator animation = ObjectAnimator.ofFloat(child,\r\n View.TRANSLATION_Y, delta, 0);\r\n // animation.setStartDelay(ANIM_PHASE_1_DURATION);\r\n animations.add(animation);\r\n }\r\n listViewItemBounds.remove(itemId);\r\n listViewItemDrawables.remove(itemId);\r\n }\r\n\r\n /**\r\n * Loops through all the cells that were visible before the data\r\n * set changed but not after, and keeps track of their\r\n * corresponding drawables. The bounds of each drawable are then\r\n * animated from the original state to the new one (off the\r\n * screen). By storing all the drawables that meet this\r\n * criteria, they can be redrawn on top of the ListView via\r\n * dispatchDraw as they are animating.\r\n */\r\n for (Long itemId : listViewItemBounds.keySet()) {\r\n BitmapDrawable bitmapDrawable = listViewItemDrawables.get(itemId);\r\n Rect startBounds = listViewItemBounds.get(itemId);\r\n bitmapDrawable.setBounds(startBounds);\r\n\r\n int childHeight = startBounds.bottom - startBounds.top + getDividerHeight();\r\n Rect endBounds = new Rect(startBounds);\r\n endBounds.offset(0, childHeight);\r\n\r\n ObjectAnimator animation = ObjectAnimator.ofObject(bitmapDrawable, \"bounds\",\r\n sBoundsEvaluator, startBounds, endBounds);\r\n animation.addUpdateListener(new ValueAnimator.AnimatorUpdateListener() {\r\n private Rect mLastBound = null;\r\n private Rect mCurrentBound = new Rect();\r\n\r\n @Override\r\n public void onAnimationUpdate(ValueAnimator valueAnimator) {\r\n Rect bounds = (Rect) valueAnimator.getAnimatedValue();\r\n mCurrentBound.set(bounds);\r\n if (mLastBound != null) {\r\n mCurrentBound.union(mLastBound);\r\n }\r\n mLastBound = bounds;\r\n invalidate(mCurrentBound);\r\n }\r\n });\r\n\r\n listViewItemBounds.remove(itemId);\r\n listViewItemDrawables.remove(itemId);\r\n\r\n mCellBitmapDrawables.add(bitmapDrawable);\r\n animations.add(animation);\r\n }\r\n\r\n /**\r\n * Animates all the cells from their old position to their new\r\n * position at the same time.\r\n */\r\n setEnabled(false);\r\n mRowAdditionAnimListener.onRowAdditionAnimationStart();\r\n AnimatorSet set = new AnimatorSet();\r\n set.setDuration(NEW_ROW_DURATION);\r\n set.playTogether(animations);\r\n set.addListener(new AnimatorListenerAdapter() {\r\n @Override\r\n public void onAnimationEnd(Animator animation) {\r\n mCellBitmapDrawables.clear();\r\n imgView.setVisibility(View.VISIBLE);\r\n mLayout.removeView(copyImgView);\r\n mRowAdditionAnimListener.onRowAdditionAnimationEnd();\r\n setEnabled(true);\r\n invalidate();\r\n }\r\n });\r\n set.start();\r\n\r\n listViewItemBounds.clear();\r\n listViewItemDrawables.clear();\r\n return true;\r\n }\r\n });\r\n }",
"public Builder addRow(io.dstore.engine.procedures.FoModifyForumsInCategoriesAd.Response.Row value) {\n if (rowBuilder_ == null) {\n if (value == null) {\n throw new NullPointerException();\n }\n ensureRowIsMutable();\n row_.add(value);\n onChanged();\n } else {\n rowBuilder_.addMessage(value);\n }\n return this;\n }",
"public interface IRowEvent\r\n{\r\n\r\n\t/**\r\n\t * This method is called before appending the\r\n\t * row template to the table template\r\n\t * @param rs Recordset used to fill the table, the record\r\n\t * position will the the current record\r\n\t * @param rowTemplate Row buffer\r\n\t * @return Modified row template\r\n\t * @throws Throwable\r\n\t */\r\n\tpublic String onNewRow(Recordset rs, String rowTemplate) \r\n\t\tthrows Throwable;\r\n\r\n}",
"protected abstract void buildRowImpl(T rowValue, int absRowIndex);",
"public Builder addRow(io.dstore.engine.procedures.StGetPageVisitsAd.Response.Row value) {\n if (rowBuilder_ == null) {\n if (value == null) {\n throw new NullPointerException();\n }\n ensureRowIsMutable();\n row_.add(value);\n onChanged();\n } else {\n rowBuilder_.addMessage(value);\n }\n return this;\n }"
] |
[
"0.69417834",
"0.66258013",
"0.6578557",
"0.6471899",
"0.64325374",
"0.6339085",
"0.6270827",
"0.6253873",
"0.6225062",
"0.6209418",
"0.613314",
"0.6116576",
"0.61038494",
"0.6073821",
"0.6040296",
"0.59489393",
"0.58142287",
"0.58062476",
"0.57949424",
"0.5777803",
"0.5763829",
"0.57595706",
"0.5748918",
"0.5728767",
"0.57015955",
"0.5689682",
"0.5663791",
"0.56553155",
"0.56445044",
"0.5644386",
"0.56361663",
"0.561526",
"0.5615092",
"0.561003",
"0.5589965",
"0.5553533",
"0.55509907",
"0.55396",
"0.5528092",
"0.5512237",
"0.5506629",
"0.5490293",
"0.5485225",
"0.54685396",
"0.5459623",
"0.545144",
"0.5444718",
"0.54435617",
"0.54314923",
"0.5397897",
"0.53878313",
"0.53807837",
"0.53740716",
"0.5372447",
"0.53716874",
"0.53610474",
"0.5353643",
"0.53464943",
"0.53462094",
"0.5339853",
"0.53369933",
"0.5333173",
"0.5330588",
"0.5319871",
"0.5310258",
"0.5303694",
"0.5244082",
"0.52307916",
"0.5225061",
"0.5218614",
"0.5212914",
"0.51969147",
"0.5189633",
"0.5184464",
"0.51833576",
"0.51688683",
"0.5167597",
"0.51670057",
"0.51604646",
"0.51568264",
"0.5153507",
"0.514279",
"0.5135709",
"0.5130023",
"0.5129572",
"0.51281554",
"0.5126107",
"0.51249015",
"0.51213944",
"0.5110396",
"0.51056355",
"0.51002026",
"0.5093993",
"0.509057",
"0.50859606",
"0.50832635",
"0.5072839",
"0.5068962",
"0.5066257",
"0.50653905"
] |
0.6749156
|
1
|
Append a section to the table, optionally with animation
|
public native void appendSection(List<TableViewSection> sections) /*-{
var jso = this.@com.emitrom.ti4j.core.client.ProxyObject::getJsObj()();
jso
.appendSection(@com.emitrom.ti4j.mobile.client.ui.TableViewSection::fromList(Ljava/util/List;)(sections));
}-*/;
|
{
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
}
|
[
"public native void appendSection(List<TableViewSection> sections, TableViewAnimation animation) /*-{\n\t\tvar jso = this.@com.emitrom.ti4j.core.client.ProxyObject::getJsObj()();\n\t\tjso\n\t\t\t\t.appendSection(\n\t\t\t\t\t\t@com.emitrom.ti4j.mobile.client.ui.TableViewSection::fromList(Ljava/util/List;)(sections),\n\t\t\t\t\t\tanimation.@com.emitrom.ti4j.core.client.ProxyObject::getJsObj()());\n }-*/;",
"@Kroll.method\n\tpublic void appendSection(Object sectionObj, @Kroll.argument(optional = true) KrollDict animation)\n\t{\n\t\tif (sectionObj instanceof Object[]) {\n\n\t\t\t// Append TableViewSection array.\n\t\t\tfor (final Object o : (Object[]) sectionObj) {\n\t\t\t\tfinal TableViewSectionProxy section = processSection(o);\n\n\t\t\t\tif (section != null) {\n\t\t\t\t\tsection.setParent(this);\n\t\t\t\t\tthis.sections.add(section);\n\t\t\t\t}\n\t\t\t}\n\t\t} else {\n\t\t\tfinal TableViewSectionProxy section = processSection(sectionObj);\n\n\t\t\tif (section != null) {\n\n\t\t\t\t// Append TableViewSection.\n\t\t\t\tsection.setParent(this);\n\t\t\t\tthis.sections.add(section);\n\t\t\t}\n\t\t}\n\n\t\t// Notify TableView of update.\n\t\tupdate();\n\t}",
"@Kroll.method\n\tpublic void insertSectionAfter(int index, Object sectionObj,\n\t\t\t\t\t\t\t\t @Kroll.argument(optional = true) KrollDict animation)\n\t{\n\t\tfinal TableViewSectionProxy section = processSection(sectionObj);\n\n\t\tif (index > -1 && index <= this.sections.size()) {\n\t\t\tsection.setParent(this);\n\t\t\tthis.sections.add(index + 1, section);\n\n\t\t\t// Notify TableView of update.\n\t\t\tupdate();\n\t\t}\n\t}",
"@Kroll.method\n\tpublic void appendRow(Object rows, @Kroll.argument(optional = true) KrollDict animation)\n\t{\n\t\tfinal List<TableViewRowProxy> rowList = new ArrayList<>();\n\n\t\tif (rows instanceof Object[]) {\n\n\t\t\t// Handle array of rows.\n\t\t\tfor (Object rowObj : (Object[]) rows) {\n\t\t\t\tfinal TableViewRowProxy row = processRow(rowObj);\n\n\t\t\t\tif (row != null) {\n\t\t\t\t\trowList.add(row);\n\t\t\t\t}\n\t\t\t}\n\t\t} else {\n\t\t\tfinal TableViewRowProxy row = processRow(rows);\n\n\t\t\t// Handle single row.\n\t\t\tif (row != null) {\n\t\t\t\trowList.add(row);\n\t\t\t}\n\t\t}\n\t\tif (rowList.size() == 0) {\n\t\t\treturn;\n\t\t}\n\n\t\t// Prevent updating rows during iteration.\n\t\tshouldUpdate = false;\n\n\t\t// Append rows to last section.\n\t\tfor (TableViewRowProxy row : rowList) {\n\n\t\t\t// Create section if one does not exist.\n\t\t\t// Or create new section if `headerTitle` is specified.\n\t\t\tif (this.sections.size() == 0\n\t\t\t\t|| row.hasPropertyAndNotNull(TiC.PROPERTY_HEADER)\n\t\t\t\t|| row.hasPropertyAndNotNull(TiC.PROPERTY_HEADER_TITLE)\n\t\t\t) {\n\t\t\t\tfinal TableViewSectionProxy section = new TableViewSectionProxy();\n\n\t\t\t\t// Set `headerTitle` of section from row.\n\t\t\t\tsection.setProperty(TiC.PROPERTY_HEADER_TITLE,\n\t\t\t\t\trow.getProperties().optString(TiC.PROPERTY_HEADER_TITLE,\n\t\t\t\t\t\trow.getProperties().getString(TiC.PROPERTY_HEADER)));\n\n\t\t\t\tsection.setParent(this);\n\t\t\t\tthis.sections.add(section);\n\t\t\t}\n\n\t\t\t// Obtain last section.\n\t\t\tfinal TableViewSectionProxy section = this.sections.get(this.sections.size() - 1);\n\n\t\t\t// Override footer of section.\n\t\t\tsection.setProperty(TiC.PROPERTY_FOOTER_TITLE,\n\t\t\t\trow.getProperties().optString(TiC.PROPERTY_FOOTER_TITLE,\n\t\t\t\t\trow.getProperties().getString(TiC.PROPERTY_FOOTER)));\n\n\t\t\t// Add row to section.\n\t\t\tsection.add(row);\n\t\t}\n\n\t\t// Allow updating rows after iteration.\n\t\tshouldUpdate = true;\n\t\tupdate();\n\t}",
"void createdSection(TestResult tr, Section section);",
"public void addHeaders() {\n TableLayout tl = findViewById(R.id.table);\n TableRow tr = new TableRow(this);\n tr.setLayoutParams(getLayoutParams());\n if (!haverford) {\n tr.addView(getTextView(0, \"Leave Bryn Mawr\", Color.WHITE, Typeface.BOLD, Color.BLUE));\n tr.addView(getTextView(0, \"Arrive Haverford\", Color.WHITE, Typeface.BOLD, Color.BLUE));\n } else {\n tr.addView(getTextView(0, \"Leave Haverford\", Color.WHITE, Typeface.BOLD, Color.BLUE));\n tr.addView(getTextView(0, \"Arrive Bryn Mawr\", Color.WHITE, Typeface.BOLD, Color.BLUE));\n }\n tl.addView(tr, getTblLayoutParams());\n }",
"@Kroll.method\n\tpublic void insertSectionBefore(int index, Object sectionObj,\n\t\t\t\t\t\t\t\t\t@Kroll.argument(optional = true) KrollDict animation)\n\t{\n\t\tfinal TableViewSectionProxy section = processSection(sectionObj);\n\n\t\tif (index > -1 && index <= this.sections.size()) {\n\t\t\tsection.setParent(this);\n\t\t\tthis.sections.add(index, section);\n\n\t\t\t// Notify TableView of update.\n\t\t\tupdate();\n\t\t}\n\t}",
"public interface TableSectionBuilder extends ElementBuilderBase<TableSectionBuilder> {\n\n String UNSUPPORTED_HTML =\n \"Table section elements do not support setting inner html or text. \"\n + \"Use startTR() instead to append a table row to the section.\";\n\n /**\n * Horizontal alignment of data in cells. See the align attribute for HTMLTheadElement for\n * details.\n */\n TableSectionBuilder align(String align);\n\n /**\n * Alignment character for cells in a column.\n *\n * @see <a href=\"http://www.w3.org/TR/1999/REC-html401-19991224/struct/tables.html#adef-char\">W3C\n * HTML Specification</a>\n */\n TableSectionBuilder ch(String ch);\n\n /**\n * Offset of alignment character.\n *\n * @see <a\n * href=\"http://www.w3.org/TR/1999/REC-html401-19991224/struct/tables.html#adef-charoff\">W3C\n * HTML Specification</a>\n */\n TableSectionBuilder chOff(String chOff);\n\n /**\n * Vertical alignment of data in cells. See the valign attribute for HTMLTheadElement for details.\n */\n TableSectionBuilder vAlign(String vAlign);\n}",
"@Kroll.method\n\tpublic void insertRowAfter(int index, Object rowObj, @Kroll.argument(optional = true) KrollDict animation)\n\t{\n\t\tfinal TableViewRowProxy existingRow = getRowByIndex(index);\n\n\t\tif (existingRow != null) {\n\t\t\tfinal TiViewProxy parent = existingRow.getParent();\n\n\t\t\tif (parent != null) {\n\t\t\t\tif (parent instanceof TableViewSectionProxy) {\n\t\t\t\t\tfinal TableViewSectionProxy section = (TableViewSectionProxy) parent;\n\t\t\t\t\tfinal TableViewRowProxy row = processRow(rowObj);\n\n\t\t\t\t\tif (row == null) {\n\t\t\t\t\t\treturn;\n\t\t\t\t\t}\n\n\t\t\t\t\t// Row is in section, modify section rows.\n\t\t\t\t\tsection.add(existingRow.getIndexInSection() + 1, row);\n\n\t\t\t\t\t// Notify TableView of update.\n\t\t\t\t\tupdate();\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}",
"public void addRow(Spedizione spedizione){\n spedizioni.add(spedizione);\n fireTableChanged(new TableModelEvent(this));\n }",
"private void addHeaders(){\n\n /** Create a TableRow dynamically **/\n tr = new TableRow(this);\n tr.setLayoutParams(new TableRow.LayoutParams(\n TableRow.LayoutParams.MATCH_PARENT,\n TableRow.LayoutParams.WRAP_CONTENT));\n\n /** Creating a TextView to add to the row **/\n TextView item = new TextView(this);\n item.setText(\"Recipe\");\n item.setWidth(320);\n item.setBackgroundColor(getResources().getColor(R.color.colorPrimary));\n item.setTextColor(Color.WHITE);\n item.setTypeface(Typeface.DEFAULT, Typeface.BOLD);\n item.setPadding(5, 5, 5, 0);\n tr.addView(item); // Adding textView to tablerow.\n\n\n // Add the TableRow to the TableLayout\n tl.addView(tr, new TableLayout.LayoutParams(\n TableRow.LayoutParams.MATCH_PARENT,\n TableRow.LayoutParams.WRAP_CONTENT));\n\n\n }",
"public com.walgreens.rxit.ch.cda.StrucDocTbody addNewTbody()\n {\n synchronized (monitor())\n {\n check_orphaned();\n com.walgreens.rxit.ch.cda.StrucDocTbody target = null;\n target = (com.walgreens.rxit.ch.cda.StrucDocTbody)get_store().add_element_user(TBODY$10);\n return target;\n }\n }",
"public boolean buildTable() {\n int count = table.getChildCount();\n for (int i = 0; i < count; i++) {\n View child = table.getChildAt(i);\n if (child instanceof TableRow) ((ViewGroup) child).removeAllViews();\n }\n\n //Dynamically adds rows based on the size of the destinations array\n for(int i = 0; i < orderedDestinations.size(); i++){\n // Inflates the search_results_table_row_attributes.xml file\n TableRow row = (TableRow) inflater.inflate(R.layout.search_results_table_row_attributes, null);\n\n //Finds oritentation and alters the row width if in landscape\n if(getResources().getConfiguration().orientation == 2) {\n LinearLayout ll = ((LinearLayout)row.findViewById(R.id.layout_contents));\n ll.getLayoutParams().width = 1700;\n ll.requestLayout();\n }\n\n //adds contents of the destination to the row\n ((TextView)row.findViewById(R.id.desti)).setText((i+1) + \") \" + orderedDestinations.get(i).name);\n ((TextView)row.findViewById(R.id.address)).setText(orderedDestinations.get(i).address);\n table.addView(row);\n }\n return true;\n }",
"private void addRowTable(int cycle, int agentId, String message) {\n ((DefaultTableModel) this.table.getModel()).addRow(new Object[]{Integer.toString(cycle),\n Integer.toString(agentId), message});\n\n // https://stackoverflow.com/questions/5147768/scroll-jscrollpane-to-bottom\n var scrollBar = scrollPane.getVerticalScrollBar();\n AdjustmentListener downScroller = new AdjustmentListener() {\n @Override\n public void adjustmentValueChanged(AdjustmentEvent e) {\n e.getAdjustable().setValue(e.getAdjustable().getMaximum());\n scrollBar.removeAdjustmentListener(this);\n }\n };\n scrollBar.addAdjustmentListener(downScroller);\n }",
"private void addHeader(Section catPart) throws BadElementException, IOException{\r\n PdfPTable header = new PdfPTable(1);\r\n PdfPCell c = new PdfPCell(Image.getInstance(\"res/brandogredninglogo.png\"));\r\n c.setBackgroundColor(COLOR_BLUE);\r\n //c.setBorderColor(BaseColor.RED);\r\n header.setHeaderRows(0);\r\n header.addCell(c);\r\n header.setWidthPercentage(100.0f);\r\n \r\n catPart.add(header);\r\n }",
"public void addRow() {\n tableModel.insertRow(this.getRowCount(), new String[]{});\n this.setModel(tableModel);\n\n }",
"private void addTableRow(String[] cols){\n final TableRow tr = (TableRow) inflater.inflate(R.layout.word_table_row, tableLayout, false);\n tr.setClickable(true);\n final TableRow tr1 = (TableRow) inflater.inflate(R.layout.word_table_row1, tableLayout, false);\n //tr1.setClickable(true);\n final TextView posView = (TextView)tr.findViewById(R.id.wordPos);\n final TextView descriptionView = (TextView)tr.findViewById(R.id.wordDescription);\n final TextView glossView = (TextView) tr1.findViewById(R.id.wordGloss);\n final TextView glossView1 = (TextView) tr1.findViewById(R.id.wordGloss1);\n\n // set the background color to indicate if the row was selected\n View.OnClickListener clickListener = new View.OnClickListener() {\n public void onClick(View v) {\n Drawable background = posView.getBackground();\n int backColor = ContextCompat.getColor(context, R.color.row_background);\n if ((background instanceof ColorDrawable)) {\n int currentBackColor = ((ColorDrawable) background).getColor();\n if (currentBackColor == rowSelectColor)\n backColor = rowBackColor;\n //else if (currentBackColor == rowHighlightColor)\n // backColor = rowHighlightColor;\n else\n backColor = rowSelectColor;\n }\n posView.setBackgroundColor(backColor);\n descriptionView.setBackgroundColor(backColor);\n glossView.setBackgroundColor(backColor);\n tr.setBackgroundColor(backColor);\n tr1.setBackgroundColor(backColor);\n }\n };\n\n tr.setOnClickListener(clickListener);\n tr1.setOnClickListener(clickListener);\n\n // set the background color and text of the table row\n int backColor = rowBackColor;\n posView.setText(fromHtml(cols[0])); posView.setBackgroundColor(backColor);\n descriptionView.setText(fromHtml(cols[1])); descriptionView.setBackgroundColor(backColor);\n glossView.setText(fromHtml(cols[2])); glossView.setBackgroundColor(backColor);\n glossView1.setText(cols[3]);\n rows.add(tr); // save the collection of rows\n rows.add(tr1);\n tableLayout.addView(tr);\n tableLayout.addView(tr1);\n }",
"public void newRow();",
"public void addData() {\n if (daySchedule == null) {\n return;\n }\n int numTimes = daySchedule.size();\n TableLayout tl = findViewById(R.id.table);\n int chosenTime = MainActivity.hour * 60 + MainActivity.minute;\n if(chosenTime == 0)\n {\n Calendar now = Calendar.getInstance();\n chosenTime = now.get(Calendar.HOUR_OF_DAY) * 60 + now.get(Calendar.MINUTE);;\n }\n for (int i = 0; i < numTimes; i++) {\n TableRow tr = new TableRow(this);\n tr.setLayoutParams(getLayoutParams());\n Time t = daySchedule.get(i);\n if (!haverford) {\n if (Time.toMinutes(t.leaveBrynMawr()) > chosenTime) {\n Log.d(\"brynmawrtime\", String.valueOf(Time.toMinutes(t.leaveBrynMawr())));\n tr.addView(getTextView(i + 1, t.leaveBrynMawr(), Color.WHITE, Typeface.NORMAL, ContextCompat.getColor(this, R.color.colorAccent)));\n tr.addView(getTextView(i + numTimes, t.arriveHaverford(), Color.WHITE, Typeface.NORMAL, ContextCompat.getColor(this, R.color.colorAccent)));\n }\n } else {\n if (Time.toMinutes(t.leaveHaverford()) > chosenTime) {\n tr.addView(getTextView(i + 1, t.leaveHaverford(), Color.WHITE, Typeface.NORMAL, ContextCompat.getColor(this, R.color.colorAccent)));\n tr.addView(getTextView(i + numTimes, t.arriveBrynMawr(), Color.WHITE, Typeface.NORMAL, ContextCompat.getColor(this, R.color.colorAccent)));\n }\n }\n tl.addView(tr, getTblLayoutParams());\n }\n }",
"void create(Section section);",
"private void createTable() {\n table = new Table();\n table.bottom();\n table.setFillParent(true);\n }",
"public native void insertRowAfter(int index, TableViewRow row, TableViewAnimation animation) /*-{\n\t\tvar jso = this.@com.emitrom.ti4j.core.client.ProxyObject::getJsObj()();\n\t\tjso\n\t\t\t\t.insertRowAfter(\n\t\t\t\t\t\tindex,\n\t\t\t\t\t\trow.@com.emitrom.ti4j.core.client.ProxyObject::getJsObj()(),\n\t\t\t\t\t\tanimation.@com.emitrom.ti4j.core.client.ProxyObject::getJsObj()());\n }-*/;",
"void completedSection(TestResult tr, Section section);",
"private void addCards(){\n\t\tDeck deck = new BasicDeckBuilder().getDeck();\r\n\t\tTabletop table = new Tabletop(deck);\r\n\t\tcardtable.getChildren().addAll(table);\r\n\t\tAnchorPane.setTopAnchor(table, 30.0);\r\n\t\tAnchorPane.setBottomAnchor(table, 30.0);\r\n\t\tAnchorPane.setLeftAnchor(table, 30.0);\r\n\t\tAnchorPane.setRightAnchor(table, 30.0);\r\n\t}",
"public void addSection(String sectionId) {\n\t\t\r\n\t}",
"public void buildExistingRoutesTable() {\n\t\tTableLayout waypointList = (TableLayout) addRoute.findViewById(R.id.routeList);\n\t\tfor (int i = 0; i < addRoute.maxRouteIndex; i++) {\n\t\t\tTableRow newRow = new TableRow(addRoute);\n\t\t\twaypointList.addView(newRow);\n\t\t\tTextView newTextView = new TextView(addRoute);\n\t\t\tnewRow.addView(newTextView);\n\t\t\tnewTextView.setText(\"Route \" + i);\n\t\t\tnewRow.setClickable(true);\n\t\t\tnewRow.setTag(i);\n\t\t\tif (addRoute.selectedRoute == i) {\n\t\t\t\tnewRow.setBackgroundColor(Color.BLUE);\n\t\t\t}\n\t\t\tnewRow.setOnClickListener(new View.OnClickListener() {\n\n\t\t\t @Override\n\t\t\t public void onClick(View v) {\n\t\t\t TableRow tableRow = (TableRow) v;\n\t\t\t tableRow.setBackgroundColor(Color.BLUE);\n\t\t\t TableLayout waypointList = (TableLayout) addRoute.findViewById(R.id.routeList);\n\t\t\t if (addRoute.selectedRoute != -1)\n\t\t\t \t waypointList.getChildAt(addRoute.selectedRoute).setBackgroundColor(Color.TRANSPARENT);\n\t\t\t addRoute.selectedRoute = (Integer) tableRow.getTag();\n\t\t\t }\n\t\t\t});\n\t\t}\n\t}",
"protected void addRow(TextButton buttonToAdd)\n {\n table.add(buttonToAdd).width(centre/3.0f);\n table.row();\n }",
"private void addEmptyRow()\n {\n TableLayout table = (TableLayout) findViewById(R.id.lossesTable);\n TableRow row = new TableRow(this);\n\n TextView emptyView1 = new TextView(this);\n ((BadBudgetApplication)this.getApplication()).initializeTableCell(emptyView1, \"\", R.drawable.emptyborder);\n TextView emptyView2 = new TextView(this);\n ((BadBudgetApplication)this.getApplication()).initializeTableCell(emptyView2, \"\", R.drawable.emptyborder);\n TextView emptyView3 = new TextView(this);\n ((BadBudgetApplication)this.getApplication()).initializeTableCell(emptyView3, \"\", R.drawable.emptyborder);\n TextView emptyView4 = new TextView(this);\n ((BadBudgetApplication)this.getApplication()).initializeTableCell(emptyView4, \"\", R.drawable.emptyborder);\n\n row.addView(emptyView1);\n row.addView(emptyView2);\n row.addView(emptyView3);\n row.addView(emptyView4);\n\n table.addView(row);\n }",
"public void fillTable() {\n\t\tif (scroll.getWidth() == 0) {\n\t\t\treturn;\n\t\t}\n\t\tboolean showedNew = false;\n\t\tArrayList<Placeable> currentView = new ArrayList<Placeable>();\n\t\tif (viewing == ViewingMode.MATERIAL) {\n\t\t\tif (loadedMats == null)\n\t\t\t\tloadedMats = repo.getAllMats();\n\t\t\tfor (NamedMaterial m: loadedMats) {\n\t\t\t\tcurrentView.add(m);\n\t\t\t}\n\t\t}\n\t\telse if (viewing == ViewingMode.PIECE){\n\t\t\tif (loadedPieces == null)\n\t\t\t\tloadedPieces = repo.getAllPieces();\n\t\t\tfor (Piece m: loadedPieces) {\n\t\t\t\tcurrentView.add(m);\n\t\t\t}\n\t\t\tshowedNew = true;\n\t\t}\n\t\t\n\t\ttiles.clearChildren();\n\t\tfloat cellWidth = 64.0f;\n\t\tint numAcross = (int)(scroll.getWidth() / cellWidth);\n\t\tif (numAcross <= 0) {\n\t\t\tnumAcross = 1;\n\t\t}\n\t\tint count = 0;\n\t\tActor tile;\n\t\twhile (count < currentView.size()) {\n\t\t\tfor (int y = 0; y < numAcross; y++) {\n\t\t\t\tif (!showedNew) {\n\t\t\t\t\ttile = new Label(\"New\", TextureOrganizer.getSkin());\n\t\t\t\t\t((Label)tile).setAlignment(Align.center);\n\t\t\t\t\ttile.addListener(new ClickListener() {\n\t\t\t\t\t\t@Override\n\t\t\t\t\t public void clicked(InputEvent event, float x, float y) {\n\t\t\t\t\t\t\tmakeNew();\n\t\t\t\t\t\t}\n\t\t\t\t\t});\n\t\t\t\t\tshowedNew = true;\n\t\t\t\t}\n\t\t\t\telse if (count >= currentView.size()) {\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t\telse {\n\t\t\t\t\ttile = new ColoredRectActor(currentView.get(count++));\n\t\t\t\t\ttile.addListener(new TileListener((ColoredRectActor)tile));\n\t\t\t\t}\n\t\t\t\ttiles.add(tile).width(cellWidth).height(cellWidth).fill();\n\t\t\t}\n\t\t\tif (count < currentView.size())\n\t\t\t\ttiles.row();\n\t\t}\n\t}",
"private void addEmployeeInfo(Section catPart) throws SQLException, IOException{\r\n PdfPTable employee = new PdfPTable(1);\r\n \r\n Paragraph empId = new Paragraph(\"Medarbejdernummer: \"+model.getTimeSheet(0).getEmployeeId());\r\n PdfPCell empIdCell = new PdfPCell(empId);\r\n empIdCell.setBorderColor(BaseColor.WHITE);\r\n String name = fal.getFiremanById(model.getTimeSheet(0).getEmployeeId()).getFirstName() +\" \"+ fal.getFiremanById(model.getTimeSheet(0).getEmployeeId()).getLastName();\r\n Paragraph empName = new Paragraph(\"Navn: \" + name);\r\n PdfPCell empNameCell = new PdfPCell(empName);\r\n empNameCell.setBorderColor(BaseColor.WHITE);\r\n \r\n employee.setHeaderRows(0);\r\n employee.addCell(empIdCell);\r\n employee.addCell(empNameCell);\r\n employee.setWidthPercentage(80.0f);\r\n \r\n catPart.add(employee);\r\n }",
"private void addRow() {\n\t\t\n\t\tArrayList<Invader> lastRow = enemyArray.get(enemyArray.size() - 1);\n\t\tArrayList<Invader> newRow = new ArrayList<Invader>();\n\t\t\t\n\t\tfor (int i = 0; i < 10; i++) {\n\t\t\tnewRow.add(new Invader(\n\t\t\t\t\tlastRow.get(i).getX(),\n\t\t\t\t\tlastRow.get(i).getY() + 40,\n\t\t\t\t\tPLAYER_WIDTH,\n\t\t\t\t\tPLAYER_WIDTH,\n\t\t\t\t\t2));\n\t\t}\n\t\t\n\t\tenemyArray.add(newRow);\n\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 }",
"Section createSection();",
"public void tableStarted(int position) {\r\n }",
"@Kroll.method\n\tpublic void updateSection(int index, TableViewSectionProxy section,\n\t\t\t\t\t\t\t @Kroll.argument(optional = true) KrollDict animation)\n\t{\n\t\tif (index > -1 && index <= this.sections.size()) {\n\t\t\tsection.setParent(this);\n\t\t\tthis.sections.set(index, section);\n\n\t\t\t// Notify TableView of update.\n\t\t\tupdate();\n\t\t}\n\t}",
"@Override\n public void addView(View child, int index, ViewGroup.LayoutParams params) {\n if (child == mainTable || child == columnHeaderTable || child == rowHeaderTable || child == cornerTable) {\n super.addView(child, index, params);\n } else {\n throw new UnsupportedOperationException(\"Adding children directly is not supported, use addViews method\");\n }\n }",
"public void prepareTable(){\n\n TableColumn<Student, String> firstNameCol = new TableColumn<>(\"FirstName\");\n firstNameCol.setMinWidth(100);\n firstNameCol.setCellValueFactory(new PropertyValueFactory<>(\"firstname\"));\n\n TableColumn<Student, String> lastNameCol = new TableColumn<>(\"LastName\");\n lastNameCol.setMinWidth(100);\n lastNameCol.setCellValueFactory(new PropertyValueFactory<>(\"lastname\"));\n\n TableColumn<Student, String> formCol = new TableColumn<>(\"Form\");\n formCol.setMinWidth(100);\n formCol.setCellValueFactory(new PropertyValueFactory<>(\"form\"));\n\n TableColumn<Student, String> streamCol = new TableColumn<>(\"Stream\");\n streamCol.setMinWidth(100);\n streamCol.setCellValueFactory(new PropertyValueFactory<>(\"stream\"));\n\n TableColumn<Student, String> dateOfBirthCol = new TableColumn<>(\"Favorite Game\");\n dateOfBirthCol.setMinWidth(100);\n dateOfBirthCol.setCellValueFactory(new PropertyValueFactory<>(\"dateOfBirth\"));\n\n TableColumn<Student, String> genderCol = new TableColumn<>(\"Gender\");\n genderCol.setMinWidth(100);\n genderCol.setCellValueFactory(new PropertyValueFactory<>(\"gender\"));\n\n TableColumn<Student, Integer> ageCol = new TableColumn<>(\"age\");\n ageCol.setMinWidth(100);\n ageCol.setCellValueFactory(new PropertyValueFactory<>(\"age\"));\n\n TableColumn<Student, Integer> admissionCol = new TableColumn<>(\"Admission\");\n admissionCol.setMinWidth(100);\n admissionCol.setCellValueFactory(new PropertyValueFactory<>(\"admission\"));\n\n\n table.getColumns().addAll(admissionCol,firstNameCol,lastNameCol,formCol,streamCol,dateOfBirthCol,genderCol,ageCol);\n table.setItems(dao.selectAll());\n\n }",
"private void addToArticleTable(QuotationDetailsDTO detail) {\n\t\tdecimalFormat = new DecimalFormat(\"0.00\");\n\t\tTableItem[] items = tblArticle.getItems();\n\t\tint len = items.length;\n\t\tboolean isPresent = false;\n\t\tTableItem tiArticle;\n\t\tint index = 0;\n\t\tfor (int i = 0; i < len; i++) {\n\t\t\tif (detail.getArticleName().equalsIgnoreCase(items[i].getText(0))) {\n\t\t\t\tisPresent = true;\n\t\t\t\t/*if (detail.getChargedWeight() != Float.parseFloat(items[i].getText(1))) {\n\t\t\t\t\tif (quotationDTO != null) {\n\t\t\t\t\t\tQuotationDetailsDTO[] quotDetails = quotationDTO.getQuotationDetails();\n\t\t\t\t\t\tquotDetails[i].setBft(null);\n\t\t\t\t\t}\n\t\t\t\t}*/\n\t\t\t\tindex = i;\n\t\t\t\tbreak;\n\t\t\t}\n\n\t\t}\n\t\tif (!isPresent) {\n\t\t\ttiArticle = new TableItem(tblArticle, SWT.NONE);\n\n\t\t\ttiArticle.setText(0, detail.getArticleName());\n\t\t\ttiArticle.setText(1, decimalFormat.format(detail.getChargedWeight()));\n\t\t\ttiArticle.setText(2, optionB[detail.getCcchargeType()]);\n\t\t\ttiArticle.setText(3, decimalFormat.format(detail.getCcchargeValue()));\n\t\t\ttiArticle.setText(4, optionB[detail.getDcchargeType()]);\n\t\t\ttiArticle.setText(5, decimalFormat.format(detail.getDcchargeValue()));\n\t\t\ttiArticle.setText(6, optionB[detail.getIechargeType()]);\n\t\t\ttiArticle.setText(7, decimalFormat.format(detail.getIechargeValue()));\n\t\t\ttiArticle.setText(8, optionB[detail.getLcchargeType()]);\n\t\t\ttiArticle.setText(9, decimalFormat.format(detail.getLcchargeValue()));\n\t\t\ttiArticle.setText(10, optionC[detail.getDdchargeType()]);\n\t\t\ttiArticle.setText(11, decimalFormat.format(detail.getMinDdchargeValue()));\n\t\t\ttiArticle.setText(12, decimalFormat.format(detail.getDdchargeArticle()));\n\t\t} else {\n\n\t\t\tTableItem item = tblArticle.getItem(index);\n\t\t\titem.setText(0, detail.getArticleName());\n\t\t\titem.setText(1, decimalFormat.format(detail.getChargedWeight()));\n\t\t\titem.setText(2, optionB[detail.getCcchargeType()]);\n\t\t\titem.setText(3, decimalFormat.format(detail.getCcchargeValue()));\n\t\t\titem.setText(4, optionB[detail.getDcchargeType()]);\n\t\t\titem.setText(5, decimalFormat.format(detail.getDcchargeValue()));\n\t\t\titem.setText(6, optionB[detail.getIechargeType()]);\n\t\t\titem.setText(7, decimalFormat.format(detail.getIechargeValue()));\n\t\t\titem.setText(8, optionB[detail.getLcchargeType()]);\n\t\t\titem.setText(9, decimalFormat.format(detail.getLcchargeValue()));\n\t\t\titem.setText(10, optionC[detail.getDdchargeType()]);\n\t\t\titem.setText(11, decimalFormat.format(detail.getMinDdchargeValue()));\n\t\t\titem.setText(12, decimalFormat.format(detail.getDdchargeArticle()));\n\t\t}\n\n\t}",
"private void insertCell(PdfPTable table, String text, int align, int colspan, Font font) {\n PdfPCell cell = new PdfPCell(new Phrase(text.trim(), font));\r\n //set the cell alignment\r\n cell.setHorizontalAlignment(align);\r\n //set the cell column span in case you want to merge two or more cells\r\n cell.setColspan(colspan);\r\n //in case there is no text and you wan to create an empty row\r\n if (text.trim().equalsIgnoreCase(\"\")) {\r\n cell.setMinimumHeight(10f);\r\n }\r\n //add the call to the table\r\n table.addCell(cell);\r\n\r\n }",
"public void addDefaultRowToTables(){\n DefaultTableModel model = (DefaultTableModel) jTable1.getModel();\n ArrayList<Student>templist = ListStudents();\n int noOfRows = ThreadLocalRandom.current().nextInt(0,5);\n Object rowData[] = new Object[3];\n \n if(noOfRows != 0){\n for(int i =1; i<=noOfRows; i++){\n \n rowData[0] = templist.get(i-1).userName;\n if (templist.get(i-1).paused == false){\n rowData[1] = \"Unpaused\";\n }\n Student s = new Student(templist.get(i-1).userName,templist.get(i-1).passWord,templist.get(i-1).email);\n students.add(s);\n model.addRow(rowData);\n } \n }\n if(students.isEmpty()){\n jLabel1.setVisible(true);\n } else{\n jLabel1.setVisible(false);\n }\n \n \n \n \n }",
"private void drawTable(int selected){\n\t\ttlCategories.removeAllViews();\n\t\tTableRow.LayoutParams rowParams=new TableRow.LayoutParams \n\t\t\t\t(TableRow.LayoutParams.WRAP_CONTENT,TableRow.LayoutParams.WRAP_CONTENT);\n\t\t\n\t\tfor(int i = 0; i<4; i++){\n\t\t\tTableRow tr = new TableRow(getApplicationContext());\n\t\t\ttr.setLayoutParams(rowParams);\n\t\t\ttr.setTag(2); \n\t\t\tfor(int j = 0; j<4; j++ ){ \n\t\t\t\tView v = mCatAdapter.getView(i*4+j + 1, null, tr);\n\t\t\t\tv.setTag(i*4+j);\n\t\t\t\tv.setOnClickListener(this);\n\t\t\t\ttr.addView(v);\n\t\t\t\tif( i*4+j+1 == selected) onClick(v);\n\t\t\t}\n\t\t\ttlCategories.addView(tr);\n\t\t}\n\t}",
"public void addData(View view) {\n int numCompanies = companies.length;\n TableLayout tl = view.findViewById(R.id.tableLayout);\n Log.d(\"TableViewFragment\", \"addData() invoked\");\n for (int i = 0; i < numCompanies; i++) {\n Log.d(\"TableViewFragment\", \"addData()\" + (i));\n TableRow tr = new TableRow(getContext());\n tr.setLayoutParams(getLayoutParams());\n tr.addView(getTextView(i + 1, companies[i], Color.WHITE, Typeface.NORMAL, ContextCompat.getColor(getContext(), R.color.colorAccent)));\n tr.addView(getTextView(i + numCompanies, os[i], Color.WHITE, Typeface.NORMAL, ContextCompat.getColor(getContext(), R.color.colorAccent)));\n tl.addView(tr, getTblLayoutParams());\n }\n }",
"private JLabel createSection3() {\r\n\t\t\r\n\t\tJLabel section3 = new JLabel(\"How To Observe A Table\");\r\n\t\t//section1.setHorizontalAlignment(SwingConstants.LEFT);\r\n\t\t//section1.setVerticalAlignment(SwingConstants.TOP);\r\n\t\tsection3.setFont(new Font(\"DejaVu Sans\", Font.PLAIN, 15));\r\n\t\tsection3.setForeground(Color.WHITE);\r\n\t\t\r\n\t\t// open subsections when clicked\r\n\t\tsection3.addMouseListener(new ClickListener());\r\n\t\t\r\n\t\treturn section3;\r\n\t\t\r\n\t}",
"private void updateTable()\n\t{\n\t\ttable = new StringBuilder(String.format(\"%-7s %-30s %-30s %-5s\\n\", \"Song#\", \"Title\", \"Artist\", \"Time\"));\n\t\tdouble time = 0.0;\n\t\tfor(int i = 0; i < numOfSongs; i++)\n\t\t{\n\t\t\ttime = (double)song[i].getMinLength() + (song[i].getSecLength()/100.0); \n\t\t\ttable.append(String.format(\"%-7d %-30s %-30s %-5s\", (i+1), song[i].getTitle(), song[i].getArtist(), time));\n\t\t\tif(i < (numOfSongs-1))\n\t\t\t\ttable.append(\"\\n\");\n\t\t}\n\t}",
"public void addNewRow(Vector row) throws IllegalStateException{\r\n if(flagAddStatusRow){\r\n row.add(numberOfcolumns, new Integer(IS_INSERTED)); //Set status for row is add new\r\n }else{\r\n row.setElementAt(new Integer(IS_NO_CHANGE), numberOfcolumns);\r\n }\r\n data.add(row);\r\n }",
"@Kroll.method\n\tpublic void insertRowBefore(int index, Object rowObj, @Kroll.argument(optional = true) KrollDict animation)\n\t{\n\t\tfinal TableViewRowProxy existingRow = getRowByIndex(index);\n\n\t\tif (existingRow != null) {\n\t\t\tfinal TiViewProxy parent = existingRow.getParent();\n\n\t\t\tif (parent != null) {\n\t\t\t\tif (parent instanceof TableViewSectionProxy) {\n\t\t\t\t\tfinal TableViewSectionProxy section = (TableViewSectionProxy) parent;\n\t\t\t\t\tfinal TableViewRowProxy row = processRow(rowObj);\n\n\t\t\t\t\tif (row == null) {\n\t\t\t\t\t\treturn;\n\t\t\t\t\t}\n\n\t\t\t\t\t// Row is in section, modify section rows.\n\t\t\t\t\tsection.add(existingRow.getIndexInSection(), row);\n\n\t\t\t\t\t// Notify TableView of update.\n\t\t\t\t\tupdate();\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}",
"TableSectionBuilder align(String align);",
"private void addNewLine(String timeAndDate, int steps) {\n\n String stepsString = Integer.toString(steps);\n\n TableRow newRow = new TableRow(this);\n\n // Create the Left hand side\n TextView left = new TextView(this);\n left.setText(timeAndDate);\n left.setGravity(Gravity.START);\n left.setPadding(10,5, 10,5);\n left.setTextSize(15);\n\n // Create the right hand side\n TextView right = new TextView(this);\n right.setText(stepsString);\n right.setGravity(Gravity.END);\n right.setPadding(10,5,10,5);\n right.setTextSize(15);\n\n // Add the TextView Components to the row\n newRow.addView(left);\n newRow.addView(right);\n\n // Add row to the TableLayout\n table.addView(newRow,new TableLayout.LayoutParams(TableLayout.LayoutParams.WRAP_CONTENT,\n TableLayout.LayoutParams.WRAP_CONTENT));\n\n // Create Line to separate rows and add to end of the new row\n View line = new View(this);\n line.setLayoutParams(new TableRow.LayoutParams(TableRow.LayoutParams.MATCH_PARENT,1));\n line.setBackgroundColor(Color.BLACK);\n table.addView(line);\n\n // Scroll to the newly added row\n scrollTo(newRow);\n }",
"public void addTable(String columns[], String data[][]) {\n\t\tDefaultTableModel model = new DefaultTableModel(data, columns);\n\t\tmodel.setColumnCount(2);\n\t\tmodel.setNumRows(10);\n\t\tcontainer.add(new JTable(model));\n\t\trefreshView();\n\t}",
"void addRowsLock();",
"private JTable addSimulationLogPanel(String vertex) {\n if (!panels.containsKey(vertex)) {\n throw new IllegalStateException(\"table for simulation logs was not created\");\n }\n\n if (tablesMap.containsKey(vertex)) {\n return panels.get(vertex);\n }\n JTable table = panels.get(vertex);//null check was already performed at the beginning of this method\n //add table to hashmap\n JScrollPane pane = new JScrollPane(table);\n closeableTabbedPane1.addTab(vertex, pane);//add a new tab\n closeableTabbedPane1.setSelectedComponent(pane);//selects tab to give it a focus\n tablesMap.put(vertex, pane);\n return table;\n }",
"public TableRow build_header(){\n int padding_in_dp = 25;\n final float scale = getResources().getDisplayMetrics().density;\n int padd_bottom = (int) (padding_in_dp * scale + 0.5f);\n\n TableRow header = new TableRow(getContext());\n\n TextView item = new TextView(getContext());\n TextView quantity = new TextView(getContext());\n TextView price = new TextView(getContext());\n\n //picks the right colors depending on theme\n if(sharedPref.loadNightMode()){\n item.setTextColor(Color.parseColor(\"#EEEEEE\"));\n quantity.setTextColor(Color.parseColor(\"#EEEEEE\"));\n price.setTextColor(Color.parseColor(\"#EEEEEE\"));\n }\n else{\n item.setTextColor(Color.parseColor(\"#252525\"));\n quantity.setTextColor(Color.parseColor(\"#252525\"));\n price.setTextColor(Color.parseColor(\"#252525\"));\n }\n\n item.setText(\"Item\");\n item.setTextSize(16);\n item.setLayoutParams(new TableRow.LayoutParams(0, TableRow.LayoutParams.WRAP_CONTENT, 6));\n\n quantity.setText(\"Quantity\");\n quantity.setTextSize(14);\n quantity.setLayoutParams(new TableRow.LayoutParams(0, TableRow.LayoutParams.WRAP_CONTENT, 3));\n\n price.setText(\"Price\");\n price.setTextSize(16);\n price.setLayoutParams(new TableRow.LayoutParams(0, TableRow.LayoutParams.WRAP_CONTENT, 3));\n\n header.addView(item);\n header.addView(quantity);\n header.addView(price);\n\n header.setPadding(0,0,0, padd_bottom);\n return header;\n\n }",
"private void addPersonUIRow(String name) {\n TableRow tr = new TableRow(getContext());\n TableRow.LayoutParams trTlp = new TableRow.LayoutParams(\n 0,\n TableLayout.LayoutParams.WRAP_CONTENT\n );\n tr.setLayoutParams(trTlp);\n\n //create name view\n TextView nameView = new TextView(getContext());\n nameView.setText(name);\n nameView.setTextSize(20);\n TableRow.LayoutParams tlp1 = new TableRow.LayoutParams(\n TableLayout.LayoutParams.WRAP_CONTENT,\n TableLayout.LayoutParams.MATCH_PARENT\n );\n tlp1.column=0;\n nameView.setLayoutParams(tlp1);\n\n //TODO: switch add on toggle listener\n Switch sw = new Switch(getContext());\n TableRow.LayoutParams tlp2 = new TableRow.LayoutParams(\n TableLayout.LayoutParams.WRAP_CONTENT,\n TableLayout.LayoutParams.MATCH_PARENT\n );\n tlp2.column=1;\n tlp2.gravity=Gravity.CENTER_HORIZONTAL;\n sw.setTextOff(\"OFF\");\n sw.setTextOn(\"ON\");\n sw.setHeight(20);\n //before listener so that it won't fire off\n if (faceTable.containsKey(name)){\n sw.setChecked(true);\n }\n sw.setOnCheckedChangeListener(this);\n sw.setLayoutParams(tlp2);\n\n //create sub view\n TextView subView = new TextView(getContext());\n subView.setText(\"\");\n subView.setTextSize(20);\n TableRow.LayoutParams tlp3 = new TableRow.LayoutParams(\n TableLayout.LayoutParams.WRAP_CONTENT,\n TableLayout.LayoutParams.MATCH_PARENT\n );\n tlp3.column=2;\n subView.setLayoutParams(tlp3);\n subView.setVisibility(View.INVISIBLE);\n if (faceTable.containsKey(name)){\n subView.setText(faceTable.get(name));\n subView.setVisibility(View.VISIBLE);\n }\n\n //create delete button\n ImageView deleteView = new ImageView(getContext());\n deleteView.setImageResource(R.drawable.ic_delete_black_24dp);\n TableRow.LayoutParams tlp4 = new TableRow.LayoutParams(\n TableLayout.LayoutParams.WRAP_CONTENT,\n TableLayout.LayoutParams.MATCH_PARENT\n );\n tlp4.column=3;\n deleteView.setLayoutParams(tlp4);\n deleteView.setOnClickListener(new ImageView.OnClickListener() {\n @Override\n public void onClick(View v) {\n String toBeRemovedName=null;\n PersonUIRow toBeRemovedRow=null;\n //find the name of the person to be removed\n for (PersonUIRow uiRow: personUIList){\n if (uiRow.deleteView == v){\n toBeRemovedName = (String) uiRow.nameView.getText();\n toBeRemovedRow = uiRow;\n break;\n }\n }\n if (null != toBeRemovedName){\n GabrielConfigurationAsyncTask task =\n new GabrielConfigurationAsyncTask(getActivity(),\n getMyAcitivty().currentServerIp,\n GabrielClientActivity.VIDEO_STREAM_PORT,\n GabrielClientActivity.RESULT_RECEIVING_PORT,\n Const.GABRIEL_CONFIGURATION_REMOVE_PERSON);\n task.execute(toBeRemovedName);\n trainedPeople.remove(toBeRemovedName);\n }\n\n //remove current line\n if (null != toBeRemovedRow){\n personUIList.remove(toBeRemovedRow);\n tb.removeView(toBeRemovedRow.tr);\n } else {\n Log.e(TAG, \"delete icon clicked, but didn't find any row to remove\");\n }\n\n }\n });\n\n tr.addView(nameView);\n tr.addView(sw);\n tr.addView(subView);\n tr.addView(deleteView);\n\n tb.addView(tr,\n new TableLayout.LayoutParams(TableLayout.LayoutParams.MATCH_PARENT,\n TableLayout.LayoutParams.WRAP_CONTENT));\n\n PersonUIRow uiRow = new PersonUIRow(tr,nameView, sw, subView, deleteView);\n personUIList.add(uiRow);\n }",
"public abstract void appendBlock();",
"private void addTable()\r\n {\r\n // Create the table\r\n table = new JTable();\r\n table.setAutoCreateRowSorter(true);\r\n table.setColumnSelectionAllowed(false);\r\n table.getTableHeader().setReorderingAllowed(false);\r\n table.setModel(new JarModel());\r\n \r\n // Center the column headings\r\n ((DefaultTableCellRenderer) table.getTableHeader().\r\n getDefaultRenderer()).setHorizontalAlignment(SwingConstants.CENTER);\r\n \r\n // Set the column widths\r\n table.setAutoResizeMode(JTable.AUTO_RESIZE_SUBSEQUENT_COLUMNS);\r\n table.getColumnModel().getColumn(0).setPreferredWidth(100);\r\n table.getColumnModel().getColumn(0).setMaxWidth(250);\r\n table.getColumnModel().getColumn(2).setPreferredWidth(140);\r\n table.getColumnModel().getColumn(2).setMaxWidth(250);\r\n table.getColumnModel().getColumn(3).setPreferredWidth(100);\r\n table.getColumnModel().getColumn(3).setMaxWidth(250);\r\n table.getColumnModel().getColumn(4).setPreferredWidth(100);\r\n table.getColumnModel().getColumn(4).setMaxWidth(250);\r\n \r\n // Sort on the first column\r\n table.getRowSorter().toggleSortOrder(0);\r\n \r\n table.getColumnModel().getColumn(0).setCellRenderer(new BooleanColorCellRenderer());\r\n table.getColumnModel().getColumn(2).setCellRenderer(new DateCellRenderer());\r\n \r\n // Add the table to the panel\r\n add(new JScrollPane(table), BorderLayout.CENTER);\r\n }",
"@SuppressWarnings(\"unchecked\")\n // <editor-fold defaultstate=\"collapsed\" desc=\"Generated Code\">//GEN-BEGIN:initComponents\n private void initComponents() {\n\n lblDisplaySectionName = new javax.swing.JLabel();\n lblSecName = new javax.swing.JLabel();\n jLabel3 = new javax.swing.JLabel();\n jLabel4 = new javax.swing.JLabel();\n btnEdit = new javax.swing.JButton();\n btnHide = new javax.swing.JButton();\n jToggleButton1 = new javax.swing.JToggleButton();\n jScrollPane1 = new javax.swing.JScrollPane();\n tblSectionmeta = new javax.swing.JTable();\n\n setBorder(javax.swing.BorderFactory.createLineBorder(java.awt.Color.lightGray));\n setFont(new java.awt.Font(\"DejaVu Sans\", 0, 9));\n\n lblDisplaySectionName.setFont(new java.awt.Font(\"DejaVu Sans\", 0, 10));\n lblDisplaySectionName.setText(\"::\");\n\n lblSecName.setFont(new java.awt.Font(\"DejaVu Sans\", 0, 10));\n lblSecName.setText(\"Current Section Name :\");\n\n jLabel3.setFont(new java.awt.Font(\"DejaVu Sans\", 0, 10));\n jLabel3.setText(\"::\");\n\n jLabel4.setFont(new java.awt.Font(\"DejaVu Sans\", 0, 10));\n jLabel4.setText(\"Current Section Type:\");\n\n btnEdit.setFont(new java.awt.Font(\"DejaVu Sans\", 0, 10));\n btnEdit.setText(\"Edit \");\n btnEdit.setBorder(javax.swing.BorderFactory.createLineBorder(new java.awt.Color(0, 0, 0)));\n\n btnHide.setFont(new java.awt.Font(\"DejaVu Sans\", 0, 10));\n btnHide.setText(\"Hide\");\n btnHide.setBorder(javax.swing.BorderFactory.createLineBorder(new java.awt.Color(0, 0, 0)));\n\n jToggleButton1.setFont(new java.awt.Font(\"DejaVu Sans\", 0, 9));\n jToggleButton1.setText(\"EXPAND\");\n jToggleButton1.setBorder(javax.swing.BorderFactory.createEmptyBorder(1, 1, 1, 1));\n\n tblSectionmeta.setModel(new javax.swing.table.DefaultTableModel(\n new Object [][] {\n {null, null, null, null},\n {null, null, null, null},\n {null, null, null, null},\n {null, null, null, null}\n },\n new String [] {\n \"Title 1\", \"Title 2\", \"Title 3\", \"Title 4\"\n }\n ));\n jScrollPane1.setViewportView(tblSectionmeta);\n\n javax.swing.GroupLayout layout = new javax.swing.GroupLayout(this);\n this.setLayout(layout);\n layout.setHorizontalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(layout.createSequentialGroup()\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(lblSecName, javax.swing.GroupLayout.PREFERRED_SIZE, 134, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(jLabel4, javax.swing.GroupLayout.PREFERRED_SIZE, 134, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(jLabel3, javax.swing.GroupLayout.PREFERRED_SIZE, 134, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(lblDisplaySectionName, javax.swing.GroupLayout.PREFERRED_SIZE, 134, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGroup(layout.createSequentialGroup()\n .addComponent(jToggleButton1, javax.swing.GroupLayout.PREFERRED_SIZE, 50, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(btnEdit, javax.swing.GroupLayout.PREFERRED_SIZE, 54, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(btnHide, javax.swing.GroupLayout.PREFERRED_SIZE, 49, javax.swing.GroupLayout.PREFERRED_SIZE)))\n .addContainerGap(18, Short.MAX_VALUE))\n .addComponent(jScrollPane1, javax.swing.GroupLayout.DEFAULT_SIZE, 183, Short.MAX_VALUE)\n );\n layout.setVerticalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(layout.createSequentialGroup()\n .addComponent(lblSecName)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(lblDisplaySectionName)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(jLabel4)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(jLabel3)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(jToggleButton1)\n .addComponent(btnEdit)\n .addComponent(btnHide))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(jScrollPane1, javax.swing.GroupLayout.PREFERRED_SIZE, 103, javax.swing.GroupLayout.PREFERRED_SIZE))\n );\n }",
"public void AddRow(String Table, String Value)\r\n {\n }",
"private void insertCell(PdfPTable table, String text, int align, int colspan, Font font){\n\t\t PdfPCell cell = new PdfPCell(new Phrase(text.trim(), font));\n\t\t //set the cell alignment\n\t\t cell.setHorizontalAlignment(align);\n\t\t //set the cell column span in case you want to merge two or more cells\n\t\t cell.setColspan(colspan);\n\t\t //in case there is no text and you wan to create an empty row\n\t\t if(text.trim().equalsIgnoreCase(\"\")){\n\t\t cell.setMinimumHeight(10f);\n\t\t }\n\t\t //add the call to the table\n\t\t table.addCell(cell);\t \n\t}",
"private JLabel createSection4() {\r\n\t\t\r\n\t\tJLabel section4 = new JLabel(\"How To Create A Table\");\r\n\t\t//section1.setHorizontalAlignment(SwingConstants.LEFT);\r\n\t\t//section1.setVerticalAlignment(SwingConstants.TOP);\r\n\t\tsection4.setFont(new Font(\"DejaVu Sans\", Font.PLAIN, 15));\r\n\t\tsection4.setForeground(Color.WHITE);\r\n\t\t\r\n\t\t// open subsections when clicked\r\n\t\tsection4.addMouseListener(new ClickListener());\r\n\t\t\r\n\t\treturn section4;\r\n\t\t\r\n\t}",
"void piede() {\n try {\n\n Cell c;\n c = new Cell();\n set2(c);\n c.setColspan(4);\n datatable.addCell(c);\n c = new Cell(new Phrase(\"Totale \\u20ac \" + Db.formatValuta(totale), new Font(Font.HELVETICA, 8, Font.BOLD)));\n set2(c);\n c.setColspan(2);\n c.setHorizontalAlignment(c.ALIGN_RIGHT);\n datatable.addCell(c);\n document.add(datatable);\n } catch (Exception err) {\n err.printStackTrace();\n javax.swing.JOptionPane.showMessageDialog(null, err.toString());\n }\n }",
"private static void assembleRosterTable(){\n for (int i = 0; i < 10; i++) {\n rosterTable.insertRow(i);\n }\n }",
"TableRow componentBTableRow(){\n\n TableRow componentBTableRow = new TableRow(this.context);\n int headerFieldCount = this.headerObjects.size();\n\n TableRow.LayoutParams params = new TableRow.LayoutParams(LayoutParams.WRAP_CONTENT,LayoutParams.MATCH_PARENT);\n// params.setMargins(-1, 0, 0, 0);\n\n for(int x=0; x<(headerFieldCount-1); x++){\n View view = headerObjects.get(x+1);\n\n componentBTableRow.addView(view, params);\n }\n\n\n return componentBTableRow;\n }",
"public void addNestedClause(TempTableHeaderCell nestedClause);",
"public void addHeaders(View view) {\n Log.d(\"TableViewFragment\", \"addHeaders() invoked\");\n TableLayout tl = view.findViewById(R.id.tableLayout);\n TableRow tr = new TableRow(getActivity());\n tr.setLayoutParams(getLayoutParams());\n tr.addView(getTextView(0, \"COMPANY\", Color.WHITE, Typeface.BOLD, Color.BLUE));\n tr.addView(getTextView(0, \"OS\", Color.WHITE, Typeface.BOLD, Color.BLUE));\n tl.addView(tr, getTblLayoutParams());\n }",
"protected void createSection() {\r\n\t\tsection = new GraphSection();\r\n\t}",
"private void buildTablePanel() {\n \t\tJPanel panel = new JPanel();\n \t\t\n \t\t// settings:\n \t\theader.setReorderingAllowed(false); // no moving.\n \t\ttable.setColumnSelectionAllowed(true);\n \t\ttable.setRowSelectionAllowed(true);\n \t\ttable.setSelectionMode(ListSelectionModel.SINGLE_SELECTION);\n \t\t\n \t\theader.addMouseListener(tableModel.new SortColumnAdapter());\n \t\t\t\n \t\tTableCellRenderer renderer = new TableCellRenderer() {\n \n \t\t\tJLabel label = new JLabel();\n \t\t\t\n \t\t\t@Override\n \t public JComponent getTableCellRendererComponent(JTable table,\n \t Object value, boolean isSelected, boolean hasFocus,\n \t int row, int column) {\n \t \n \t\t\t\tif (table.isRowSelected(row)) {\n \t\t\t\t\tlabel.setBackground(Color.RED);\n \t\t\t\t} else {\n \t\t\t\t\tlabel.setBackground(UIManager.getColor(\"Table.background\"));\n \t\t\t\t}\n \t\t\t\t\n \t\t\t\tlabel.setOpaque(true);\n \t\t\t\tlabel.setText(\"\" + value);\n \t\t\t\t\n \t return label;\n \t }\n \n \t };\n \t table.setDefaultRenderer(Object.class, renderer);\n \t \n \t JScrollPane scroll = new JScrollPane(table);\n \t\t\n \t\tpanel.setLayout(new BorderLayout(5, 5));\n \t\tpanel.add(scroll, BorderLayout.CENTER);\n \t \n \t add(panel, BorderLayout.CENTER);\n \t}",
"public void addColumn(boolean start)\r\n\t{\r\n\t\t//definicion del tamaņo\r\n\t\tint width = 100;\r\n\t\tint height = 50 + rand.nextInt(300);\r\n\r\n\t\tif (start)\r\n\t\t{\r\n\t\t\tcolumns.add(new Rectangle(WIDTH + width + columns.size() * 300, HEIGHT - height - 120, width, height));\r\n\t\t\tcolumns.add(new Rectangle(WIDTH + width + (columns.size() - 1) * 300, 0, width, HEIGHT - height - space));\r\n\r\n\t\t}\r\n\t\telse\r\n\t\t{\r\n\t\t\tcolumns.add(new Rectangle(columns.get(columns.size() - 1).x + 600, HEIGHT - height - 120, width, height));\r\n\t\t\tcolumns.add(new Rectangle(columns.get(columns.size() - 1).x, 0, width, HEIGHT - height - space));\r\n\t\t}\r\n\t}",
"private void fillTableWithLinkResult(List<LinkSimulationResult> results, boolean showAsTimeSerie) {\n\n TableView<LinkSimulationResult> table = new TableView<>();\n table.getItems().addAll(results);\n\n TableColumn<LinkSimulationResult,String> idOrTimeCol;\n TableColumn<LinkSimulationResult,String> flowCol = new TableColumn<>(\"Flow\");\n TableColumn<LinkSimulationResult,String> velocityCol = new TableColumn<>(\"Velocity\");\n TableColumn<LinkSimulationResult,String> headlossCol = new TableColumn<>(\"Headloss\");\n TableColumn<LinkSimulationResult,String> statusCol = new TableColumn<>(\"Status\");\n\n if (!showAsTimeSerie){\n idOrTimeCol = new TableColumn<>(\"Node ID\");\n idOrTimeCol.setCellValueFactory(param -> new ReadOnlyObjectWrapper<>(param.getValue().getId()));\n } else {\n idOrTimeCol = new TableColumn<>(\"Time\");\n idOrTimeCol.setCellValueFactory(param -> new ReadOnlyObjectWrapper<>(param.getValue().getTimeString()));\n }\n flowCol.setCellValueFactory(param -> new ReadOnlyObjectWrapper<>(Double.toString(param.getValue().getFlow())));\n velocityCol.setCellValueFactory(param -> new ReadOnlyObjectWrapper<>(Double.toString(param.getValue().getVelocity())));\n headlossCol.setCellValueFactory(param -> new ReadOnlyObjectWrapper<>(Double.toString(param.getValue().getHeadloss())));\n statusCol.setCellValueFactory(param -> new ReadOnlyObjectWrapper<>(param.getValue().getStatus().getName()));\n\n table.getColumns().clear();\n table.getColumns().addAll(idOrTimeCol, flowCol, velocityCol, headlossCol, statusCol);\n\n this.tablePane.getChildren().clear(); // remove the previus table\n this.tablePane.getChildren().addAll(table);\n }",
"private void addRows() {\n this.SaleList.forEach(Factura -> {\n this.modelo.addRow(new Object[]{\n Factura.getId_Factura(),\n Factura.getPersona().getNombre(),\n Factura.getFecha().getTimestamp(),\n Factura.getCorreo(),\n Factura.getGran_Total()});\n });\n }",
"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 addRow(String rowName);",
"public void addToTable() {\n\n\n if (this.highScoresTable.getRank(this.scoreBoard.getScoreCounter().getValue()) <= this.highScoresTable.size()) {\n DialogManager dialog = this.animationRunner.getGui().getDialogManager();\n String name = dialog.showQuestionDialog(\"Name\", \"What is your name?\", \"\");\n\n this.highScoresTable.add(new ScoreInfo(name, this.scoreBoard.getScoreCounter().getValue()));\n File highScoresFile = new File(\"highscores.txt\");\n try {\n this.highScoresTable.save(highScoresFile);\n } catch (IOException e) {\n e.printStackTrace();\n }\n\n }\n\n }",
"private void insertCell(\n PdfPTable table,\n String text,\n int align,\n int colspan,\n Font font\n ){\n PdfPCell cell = new PdfPCell(new Phrase(text.trim(), font));\n //set the cell aligment\n cell.setHorizontalAlignment(align);\n //set the cell column span in case you want to merge two or more cell\n cell.setColspan(colspan);\n //in case if you want \n if(text.trim().equalsIgnoreCase(\"\")){\n cell.setMinimumHeight(10f);\n }\n \n table.addCell(cell);\n }",
"private void onShowTableDetail(ViewNodeJSO viewNode) { \n TableTools.createDataProvider(viewNode).addDataDisplay(cellTable);\n }",
"private void createRowForChapter(Composite section)\n {\n // Create the composite\n Composite compo = toolkit.createComposite(section);\n compo.setLayout(new GridLayout(2, false));\n // Create Label\n labelChapter = toolkit.createLabel(compo, \"Chapter organisation: \"); //$NON-NLS-1$\n // Create the text component\n String helpText = Messages.ImportRequirementWizardPageSelectFormat_FLAT_OR_HIERARCHICAL;\n chapterRecognizeComponent = new ComponentHelpRadioButton(new NotifyElement()\n {\n public void handleModelChange()\n {\n controller.setHierarchical(chapterRecognizeComponent.isHierarchical());\n controller.removeDocumentType();\n ImportRequirementWizardPageSelectFormat.this.handleModelChange();\n }\n }, compo, toolkit, SWT.NONE, helpText);\n chapterRecognizeComponent.setLayoutData(new GridData(SWT.RIGHT, SWT.CENTER, true, false, 1, 1));\n GridData data = new GridData(SWT.FILL, SWT.CENTER, true, false, 2, 1);\n compo.setLayoutData(data);\n // load pref\n chapterRecognizeComponent.setHierachical(chapterPref);\n\n }",
"public void loadingTable() {\n this.setRowCount(1, true);\r\n this.setVisibleRangeAndClearData(this.getVisibleRange(), true);\r\n }",
"public com.walgreens.rxit.ch.cda.StrucDocTbody insertNewTbody(int i)\n {\n synchronized (monitor())\n {\n check_orphaned();\n com.walgreens.rxit.ch.cda.StrucDocTbody target = null;\n target = (com.walgreens.rxit.ch.cda.StrucDocTbody)get_store().insert_element_user(TBODY$10, i);\n return target;\n }\n }",
"private void insertDataIntoTable(PdfPTable table,String text,int align,int colspan,Font font)\n {\n PdfPCell cell = new PdfPCell(new Phrase(text.trim(),font));\n cell.setHorizontalAlignment(align);\n cell.setColspan(colspan);\n if(text.trim().equals(\"\"))\n cell.setMinimumHeight(10f);\n table.addCell(cell);\n }",
"public void buildSectionOne(Document document) throws DocumentException, IOException, JSONException {\n PdfPTable titleTable = new PdfPTable ( 1 );\n titleTable.setWidthPercentage ( 100 );\n\n // Strategy\n titleTable.addCell ( ReportTemplate.getSectionHeaderCell ( \"Featured Strategy: \" + selectedStrategy ) );\n\n /**\n * @changed - Abhishek\n * @date - 11-02-2016\n * @desc - Applied format of $xxx,xxx\n */\n // Estimate Income\n titleTable.addCell ( ReportTemplate.getSectionSubHeaderCellWithBoxBorder ( \"Estimated Income: $\" + estimatedIncome ) );\n\n document.add ( titleTable );\n\n // Add Charts Now\n PdfPTable contentTable = new PdfPTable ( 2 );\n contentTable.setWidthPercentage ( 100 );\n\n // Create 3d Pie Chart Section\n PdfPCell pieChartSectionCell = ReportTemplate.getBoxBorderCell ();\n pieChartSectionCell.addElement ( getPieChartSection () );\n contentTable.addCell ( pieChartSectionCell );\n\n // Create Bar Chart Section\n PdfPCell barChartSectionCell = ReportTemplate.getBoxBorderCell ();\n barChartSectionCell.addElement ( getResourceManagementTable () );\n contentTable.addCell ( barChartSectionCell );\n document.add ( contentTable );\n //document.newPage();\n\n PdfPTable contentTable2 = new PdfPTable ( 2 );\n contentTable2.setWidthPercentage ( 100 );\n\n // Add Risk Management Section\n PdfPCell riskManagementSectionCell = ReportTemplate.getBoxBorderWithoutLeftPaddingCell ();\n riskManagementSectionCell.addElement ( getRiskManagementTable () );\n contentTable2.addCell ( riskManagementSectionCell );\n\n // Add Conservation Management Section\n\n Paragraph conservationParagraph = new Paragraph ();\n\n conservationParagraph.add ( new Chunk ( \"Conservation Management\\n\\n\", ReportTemplate.TIMESROMAN_12_BOLD ) );\n conservationParagraph.add ( new Chunk ( \"Conservation Goals\\n\", ReportTemplate.TIMESROMAN_10_NORMAL) );\n /**\n * @changed - Abhishek\n * @date - 12-12-2015\n * @updated - 11-01-2016\n */\n ReportDataPage1.ConservationPracticeBean conservationBean = reportDataPage1.getLandUnderConservationPractice ();\n\n /**\n * @changed - Abhishek\n * @updated - 11-01-2016\n */\n conservationParagraph.add ( new Chunk ( AgricultureStandardUtils.doubleWithOneDecimal( Double.parseDouble (conservationBean.getProfitFromConservation () ) ) + \" % Est. Income under conservation practices\\n\" +\n AgricultureStandardUtils.doubleWithOneDecimal( Double.parseDouble (conservationBean.getLandUnderConservation () ) ) + \" % Acreage under conservation practices\", ReportTemplate.TIMESROMAN_10_NORMAL ) );\n\n PdfPCell conservationManagementSectionCell = ReportTemplate.getBoxBorderWithoutLeftPaddingCell ();\n conservationManagementSectionCell.addElement ( conservationParagraph );\n contentTable2.addCell ( conservationManagementSectionCell );\n\n contentTable2.setKeepTogether(true);\n document.add ( contentTable2 );\n\n\n /*getIncomeUnderConservationPractice(farmInfoView);*/\n\n }",
"void addTabularData(TabularData data);",
"public void addTimeTable(TimeTable timetable) {\n\t\t\n\t}",
"@Override\n\tpublic void addRow() {\n\t\tif(this.numCols == 0){\n\t\t\tthis.numCols++;\n\t\t}\n\t\tthis.numRows++;\n\t}",
"TableSectionBuilder chOff(String chOff);",
"public abstract void buildTable(PdfPTable table);",
"private void selectTableRow () {\n int selectedRow = itemTable.getSelectedRow();\n if (selectedRow >= 0 && selectedRow < clubEventList.size()) {\n boolean modOK = modIfChanged();\n if (modOK) {\n position = clubEventList.positionUsingListIndex (selectedRow);\n positionAndDisplay();\n }\n }\n }",
"private GenericTableView populateSeriesSamplesTableView(String viewName) {\n\t GenericTable table = assembler.createTable();\n GenericTableView tableView = new GenericTableView (viewName, 5, table);\n tableView.setRowsSelectable();\n\t\ttableView.addCollection(0, 0);\n tableView.setCollectionBottons(1);\n tableView.setDisplayTotals(false);\n //tableView.setColAlignment(2, 0);\n tableView.setColAlignment(5, 0);\n tableView.setColAlignment(6, 0);\n \n return tableView;\n }",
"public void addRow(TableViewRow row) {\n this.rows.add(row);\n }",
"public void addSection(ConfigSection section)\n {\n Vector v = (Vector)sections.get(section.getName().toUpperCase());\n if (v == null)\n {\n // commented out by Navneet Gupta on 12/28/2000\n // System.out.println(\"creating new section\");\n\n // create a new one if one doesn't already exist\n v = new Vector();\n }\n v.addElement(section);\n\n // commented out by Navneet Gupta on 12/28/2000\n // System.out.println(\"adding \" + section.getName());\n\n sections.put(section.getName().toUpperCase(), v);\n }",
"public void addRow () {\n CSVRow row = CSVRow.createEmptyLine(nbOfColumns, this);\n addRow(row);\n }",
"public void addTableGui() {\n\t\tDefaultTableModel mTableModel = new DefaultTableModel();\r\n\t\tmTable = new JTable(mTableModel);\r\n\r\n\t\tmTableModel.addColumn(\"MSSV\");\r\n\t\tmTableModel.addColumn(\"HoTen\");\r\n\t\tmTableModel.addColumn(\"GioiTinh\");\r\n\t\tmTableModel.addColumn(\"NTNS\");\r\n\t\tJScrollPane mJScrollPane = new JScrollPane(mTable);\r\n\t\tmJScrollPane.setPreferredSize(new Dimension(760, 310));\r\n\t\tc.fill = GridBagConstraints.HORIZONTAL;\r\n\t\tc.ipady = 40; //make this component tall\r\n\t\tc.weightx = 0.0;\r\n\t\tc.gridwidth = 3;\r\n\t\tc.gridx = 0;\r\n\t\tc.gridy = 1;\r\n\t\tpanel.add(mJScrollPane,c);\r\n\t}",
"public void addTable(String title, Object[] header) {\n\t\t\n\t\t// Create panel\n\t\tJPanel panel = new JPanel();\n\t\tpanel.setLayout(new BorderLayout());\n\t\t\n\t\t// Create and add text editor to panel\n\t\tConsoleTable table = new ConsoleTable(new Object[][]{}, header);\n\t\tJScrollPane scrollPane = new JScrollPane(table);\n\t\tpanel.add(scrollPane, BorderLayout.CENTER);\n\t\t\n\t\t// Add the tab\n\t\taddTab(title, null, scrollPane);\n\t\t\n\t\t// Store it in the map\n\t\tthis.tabPanelsMap.put(title, table);\n\t}",
"private final void m75323a(Section section, SectionResponse sectionResponse) {\n Boolean bool = section.isFirst;\n C32569u.m150513a((Object) bool, C6969H.m41409d(\"G7A86D60EB63FA567EF1DB641E0F6D7\"));\n if (bool.booleanValue() && sectionResponse.extra.showChapterName) {\n List<Object> list = this.f53728f;\n Chapter chapter = section.chapter;\n C32569u.m150513a((Object) chapter, C6969H.m41409d(\"G7A86D60EB63FA567E5069158E6E0D1\"));\n list.add(chapter);\n }\n this.f53728f.add(section);\n }",
"T addAtHead(T t) {\n return header.addAtHead(t);\n }",
"public void actionPerformed(ActionEvent event){\n tableModel.addRow(blank);\r\n }",
"private void IsiTabelHeader(String text) {\n IsiTabelHeader = new TextView(getActivity());\n IsiTabelHeader.setText(text);\n IsiTabelHeader.setTextColor(getResources().getColor(R.color.white));\n IsiTabelHeader.setLayoutParams(new TableRow.LayoutParams(TableRow.LayoutParams.MATCH_PARENT, TableRow.LayoutParams.WRAP_CONTENT));\n IsiTabelHeader.setBackground(getResources().getDrawable(R.drawable.header_tabel));\n TR.addView(IsiTabelHeader);\n }",
"public abstract void append(int data, int row, int column);",
"public void createTable() {\n try {\n tableLayout = findViewById(R.id.tabla);\n tb = new TableDinamic(tableLayout, getApplicationContext(), \"cargarDetalle\", clc, cap_1, cap_2, cap_ct, txtidReg, txtId, txtBloque, txtVariedad);\n tableLayout.removeAllViews();\n tb.addHeader(header);\n tb.addData(cargarTabla());\n tb.backgroundHeader(\n Color.parseColor(\"#20C0FF\")\n );\n tb.backgroundData(\n Color.parseColor(\"#FFFFFF\"),\n Color.parseColor(\"#81F0EDED\")\n );\n } catch (Exception e) {\n Toast.makeText(this, \"Error de la table: \" + e.toString(), Toast.LENGTH_LONG).show();\n }\n }",
"public void disTable () {\n\t\t\t\tJScrollPane scrollPane = new JScrollPane(table);\n\t\t\t\tvalues = new Vector();\n\t\t\t\tvalues.add(\"20\"); values.add(\"20\"); values.add(\"20\"); values.add(\"20\"); values.add(\"20\");values.add(\"20\");values.add(new Boolean(false));\n\t\t\t\tmyModel.addRow(values ); // more practicle, vector can take only objects.\n\t\t myModel.addRow(data);\n\n\n\t\t\t\tgetContentPane().add(scrollPane, BorderLayout.CENTER);\n\n\t\t\t\t addWindowListener(new WindowAdapter() {\n\t\t\t\t\t\t\tpublic void windowClosing(WindowEvent e) {\n\t\t\t\t\t\t\t\tSystem.exit(0);\n\t\t\t\t\t\t\t}\n\t\t\t\t });\n\t}",
"protected abstract void addTables();",
"void enterSection(String name) throws IOException;"
] |
[
"0.6741472",
"0.6514724",
"0.5976536",
"0.5808446",
"0.56815976",
"0.55500543",
"0.55051297",
"0.53987306",
"0.524778",
"0.5232811",
"0.51703006",
"0.50923187",
"0.5057869",
"0.4990861",
"0.4974736",
"0.49715823",
"0.49671146",
"0.49655917",
"0.49305052",
"0.49036452",
"0.4899115",
"0.4886374",
"0.48813155",
"0.4873422",
"0.4862698",
"0.4862318",
"0.48614004",
"0.4857301",
"0.4856349",
"0.48496833",
"0.4849249",
"0.48487025",
"0.4842683",
"0.4837343",
"0.48372418",
"0.4835932",
"0.4832117",
"0.48275882",
"0.4826389",
"0.48094603",
"0.47962147",
"0.4791001",
"0.47841045",
"0.47771963",
"0.4774682",
"0.47571778",
"0.47548354",
"0.47511148",
"0.47464058",
"0.4739106",
"0.4733793",
"0.47279912",
"0.4724773",
"0.47136086",
"0.47061327",
"0.47036862",
"0.47025278",
"0.46923453",
"0.46775967",
"0.46759728",
"0.46641472",
"0.46630645",
"0.465939",
"0.4659075",
"0.46458864",
"0.46327916",
"0.4628454",
"0.46267042",
"0.4618663",
"0.4617506",
"0.46034288",
"0.45963246",
"0.45960212",
"0.4591491",
"0.45775962",
"0.4560575",
"0.4554635",
"0.45501918",
"0.4550021",
"0.4548043",
"0.45468572",
"0.45419994",
"0.4541264",
"0.45412344",
"0.45293078",
"0.45284295",
"0.45228264",
"0.45199364",
"0.45141175",
"0.45099816",
"0.45089695",
"0.45086184",
"0.45060322",
"0.45051977",
"0.45032263",
"0.4491774",
"0.44852057",
"0.44844386",
"0.4475876",
"0.4474631"
] |
0.5611588
|
5
|
Append a section to the table, optionally with animation
|
public native void appendSection(List<TableViewSection> sections, TableViewAnimation animation) /*-{
var jso = this.@com.emitrom.ti4j.core.client.ProxyObject::getJsObj()();
jso
.appendSection(
@com.emitrom.ti4j.mobile.client.ui.TableViewSection::fromList(Ljava/util/List;)(sections),
animation.@com.emitrom.ti4j.core.client.ProxyObject::getJsObj()());
}-*/;
|
{
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
}
|
[
"@Kroll.method\n\tpublic void appendSection(Object sectionObj, @Kroll.argument(optional = true) KrollDict animation)\n\t{\n\t\tif (sectionObj instanceof Object[]) {\n\n\t\t\t// Append TableViewSection array.\n\t\t\tfor (final Object o : (Object[]) sectionObj) {\n\t\t\t\tfinal TableViewSectionProxy section = processSection(o);\n\n\t\t\t\tif (section != null) {\n\t\t\t\t\tsection.setParent(this);\n\t\t\t\t\tthis.sections.add(section);\n\t\t\t\t}\n\t\t\t}\n\t\t} else {\n\t\t\tfinal TableViewSectionProxy section = processSection(sectionObj);\n\n\t\t\tif (section != null) {\n\n\t\t\t\t// Append TableViewSection.\n\t\t\t\tsection.setParent(this);\n\t\t\t\tthis.sections.add(section);\n\t\t\t}\n\t\t}\n\n\t\t// Notify TableView of update.\n\t\tupdate();\n\t}",
"@Kroll.method\n\tpublic void insertSectionAfter(int index, Object sectionObj,\n\t\t\t\t\t\t\t\t @Kroll.argument(optional = true) KrollDict animation)\n\t{\n\t\tfinal TableViewSectionProxy section = processSection(sectionObj);\n\n\t\tif (index > -1 && index <= this.sections.size()) {\n\t\t\tsection.setParent(this);\n\t\t\tthis.sections.add(index + 1, section);\n\n\t\t\t// Notify TableView of update.\n\t\t\tupdate();\n\t\t}\n\t}",
"@Kroll.method\n\tpublic void appendRow(Object rows, @Kroll.argument(optional = true) KrollDict animation)\n\t{\n\t\tfinal List<TableViewRowProxy> rowList = new ArrayList<>();\n\n\t\tif (rows instanceof Object[]) {\n\n\t\t\t// Handle array of rows.\n\t\t\tfor (Object rowObj : (Object[]) rows) {\n\t\t\t\tfinal TableViewRowProxy row = processRow(rowObj);\n\n\t\t\t\tif (row != null) {\n\t\t\t\t\trowList.add(row);\n\t\t\t\t}\n\t\t\t}\n\t\t} else {\n\t\t\tfinal TableViewRowProxy row = processRow(rows);\n\n\t\t\t// Handle single row.\n\t\t\tif (row != null) {\n\t\t\t\trowList.add(row);\n\t\t\t}\n\t\t}\n\t\tif (rowList.size() == 0) {\n\t\t\treturn;\n\t\t}\n\n\t\t// Prevent updating rows during iteration.\n\t\tshouldUpdate = false;\n\n\t\t// Append rows to last section.\n\t\tfor (TableViewRowProxy row : rowList) {\n\n\t\t\t// Create section if one does not exist.\n\t\t\t// Or create new section if `headerTitle` is specified.\n\t\t\tif (this.sections.size() == 0\n\t\t\t\t|| row.hasPropertyAndNotNull(TiC.PROPERTY_HEADER)\n\t\t\t\t|| row.hasPropertyAndNotNull(TiC.PROPERTY_HEADER_TITLE)\n\t\t\t) {\n\t\t\t\tfinal TableViewSectionProxy section = new TableViewSectionProxy();\n\n\t\t\t\t// Set `headerTitle` of section from row.\n\t\t\t\tsection.setProperty(TiC.PROPERTY_HEADER_TITLE,\n\t\t\t\t\trow.getProperties().optString(TiC.PROPERTY_HEADER_TITLE,\n\t\t\t\t\t\trow.getProperties().getString(TiC.PROPERTY_HEADER)));\n\n\t\t\t\tsection.setParent(this);\n\t\t\t\tthis.sections.add(section);\n\t\t\t}\n\n\t\t\t// Obtain last section.\n\t\t\tfinal TableViewSectionProxy section = this.sections.get(this.sections.size() - 1);\n\n\t\t\t// Override footer of section.\n\t\t\tsection.setProperty(TiC.PROPERTY_FOOTER_TITLE,\n\t\t\t\trow.getProperties().optString(TiC.PROPERTY_FOOTER_TITLE,\n\t\t\t\t\trow.getProperties().getString(TiC.PROPERTY_FOOTER)));\n\n\t\t\t// Add row to section.\n\t\t\tsection.add(row);\n\t\t}\n\n\t\t// Allow updating rows after iteration.\n\t\tshouldUpdate = true;\n\t\tupdate();\n\t}",
"void createdSection(TestResult tr, Section section);",
"public native void appendSection(List<TableViewSection> sections) /*-{\n\t\tvar jso = this.@com.emitrom.ti4j.core.client.ProxyObject::getJsObj()();\n\t\tjso\n\t\t\t\t.appendSection(@com.emitrom.ti4j.mobile.client.ui.TableViewSection::fromList(Ljava/util/List;)(sections));\n }-*/;",
"public void addHeaders() {\n TableLayout tl = findViewById(R.id.table);\n TableRow tr = new TableRow(this);\n tr.setLayoutParams(getLayoutParams());\n if (!haverford) {\n tr.addView(getTextView(0, \"Leave Bryn Mawr\", Color.WHITE, Typeface.BOLD, Color.BLUE));\n tr.addView(getTextView(0, \"Arrive Haverford\", Color.WHITE, Typeface.BOLD, Color.BLUE));\n } else {\n tr.addView(getTextView(0, \"Leave Haverford\", Color.WHITE, Typeface.BOLD, Color.BLUE));\n tr.addView(getTextView(0, \"Arrive Bryn Mawr\", Color.WHITE, Typeface.BOLD, Color.BLUE));\n }\n tl.addView(tr, getTblLayoutParams());\n }",
"@Kroll.method\n\tpublic void insertSectionBefore(int index, Object sectionObj,\n\t\t\t\t\t\t\t\t\t@Kroll.argument(optional = true) KrollDict animation)\n\t{\n\t\tfinal TableViewSectionProxy section = processSection(sectionObj);\n\n\t\tif (index > -1 && index <= this.sections.size()) {\n\t\t\tsection.setParent(this);\n\t\t\tthis.sections.add(index, section);\n\n\t\t\t// Notify TableView of update.\n\t\t\tupdate();\n\t\t}\n\t}",
"public interface TableSectionBuilder extends ElementBuilderBase<TableSectionBuilder> {\n\n String UNSUPPORTED_HTML =\n \"Table section elements do not support setting inner html or text. \"\n + \"Use startTR() instead to append a table row to the section.\";\n\n /**\n * Horizontal alignment of data in cells. See the align attribute for HTMLTheadElement for\n * details.\n */\n TableSectionBuilder align(String align);\n\n /**\n * Alignment character for cells in a column.\n *\n * @see <a href=\"http://www.w3.org/TR/1999/REC-html401-19991224/struct/tables.html#adef-char\">W3C\n * HTML Specification</a>\n */\n TableSectionBuilder ch(String ch);\n\n /**\n * Offset of alignment character.\n *\n * @see <a\n * href=\"http://www.w3.org/TR/1999/REC-html401-19991224/struct/tables.html#adef-charoff\">W3C\n * HTML Specification</a>\n */\n TableSectionBuilder chOff(String chOff);\n\n /**\n * Vertical alignment of data in cells. See the valign attribute for HTMLTheadElement for details.\n */\n TableSectionBuilder vAlign(String vAlign);\n}",
"@Kroll.method\n\tpublic void insertRowAfter(int index, Object rowObj, @Kroll.argument(optional = true) KrollDict animation)\n\t{\n\t\tfinal TableViewRowProxy existingRow = getRowByIndex(index);\n\n\t\tif (existingRow != null) {\n\t\t\tfinal TiViewProxy parent = existingRow.getParent();\n\n\t\t\tif (parent != null) {\n\t\t\t\tif (parent instanceof TableViewSectionProxy) {\n\t\t\t\t\tfinal TableViewSectionProxy section = (TableViewSectionProxy) parent;\n\t\t\t\t\tfinal TableViewRowProxy row = processRow(rowObj);\n\n\t\t\t\t\tif (row == null) {\n\t\t\t\t\t\treturn;\n\t\t\t\t\t}\n\n\t\t\t\t\t// Row is in section, modify section rows.\n\t\t\t\t\tsection.add(existingRow.getIndexInSection() + 1, row);\n\n\t\t\t\t\t// Notify TableView of update.\n\t\t\t\t\tupdate();\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}",
"public void addRow(Spedizione spedizione){\n spedizioni.add(spedizione);\n fireTableChanged(new TableModelEvent(this));\n }",
"private void addHeaders(){\n\n /** Create a TableRow dynamically **/\n tr = new TableRow(this);\n tr.setLayoutParams(new TableRow.LayoutParams(\n TableRow.LayoutParams.MATCH_PARENT,\n TableRow.LayoutParams.WRAP_CONTENT));\n\n /** Creating a TextView to add to the row **/\n TextView item = new TextView(this);\n item.setText(\"Recipe\");\n item.setWidth(320);\n item.setBackgroundColor(getResources().getColor(R.color.colorPrimary));\n item.setTextColor(Color.WHITE);\n item.setTypeface(Typeface.DEFAULT, Typeface.BOLD);\n item.setPadding(5, 5, 5, 0);\n tr.addView(item); // Adding textView to tablerow.\n\n\n // Add the TableRow to the TableLayout\n tl.addView(tr, new TableLayout.LayoutParams(\n TableRow.LayoutParams.MATCH_PARENT,\n TableRow.LayoutParams.WRAP_CONTENT));\n\n\n }",
"public com.walgreens.rxit.ch.cda.StrucDocTbody addNewTbody()\n {\n synchronized (monitor())\n {\n check_orphaned();\n com.walgreens.rxit.ch.cda.StrucDocTbody target = null;\n target = (com.walgreens.rxit.ch.cda.StrucDocTbody)get_store().add_element_user(TBODY$10);\n return target;\n }\n }",
"public boolean buildTable() {\n int count = table.getChildCount();\n for (int i = 0; i < count; i++) {\n View child = table.getChildAt(i);\n if (child instanceof TableRow) ((ViewGroup) child).removeAllViews();\n }\n\n //Dynamically adds rows based on the size of the destinations array\n for(int i = 0; i < orderedDestinations.size(); i++){\n // Inflates the search_results_table_row_attributes.xml file\n TableRow row = (TableRow) inflater.inflate(R.layout.search_results_table_row_attributes, null);\n\n //Finds oritentation and alters the row width if in landscape\n if(getResources().getConfiguration().orientation == 2) {\n LinearLayout ll = ((LinearLayout)row.findViewById(R.id.layout_contents));\n ll.getLayoutParams().width = 1700;\n ll.requestLayout();\n }\n\n //adds contents of the destination to the row\n ((TextView)row.findViewById(R.id.desti)).setText((i+1) + \") \" + orderedDestinations.get(i).name);\n ((TextView)row.findViewById(R.id.address)).setText(orderedDestinations.get(i).address);\n table.addView(row);\n }\n return true;\n }",
"private void addRowTable(int cycle, int agentId, String message) {\n ((DefaultTableModel) this.table.getModel()).addRow(new Object[]{Integer.toString(cycle),\n Integer.toString(agentId), message});\n\n // https://stackoverflow.com/questions/5147768/scroll-jscrollpane-to-bottom\n var scrollBar = scrollPane.getVerticalScrollBar();\n AdjustmentListener downScroller = new AdjustmentListener() {\n @Override\n public void adjustmentValueChanged(AdjustmentEvent e) {\n e.getAdjustable().setValue(e.getAdjustable().getMaximum());\n scrollBar.removeAdjustmentListener(this);\n }\n };\n scrollBar.addAdjustmentListener(downScroller);\n }",
"private void addHeader(Section catPart) throws BadElementException, IOException{\r\n PdfPTable header = new PdfPTable(1);\r\n PdfPCell c = new PdfPCell(Image.getInstance(\"res/brandogredninglogo.png\"));\r\n c.setBackgroundColor(COLOR_BLUE);\r\n //c.setBorderColor(BaseColor.RED);\r\n header.setHeaderRows(0);\r\n header.addCell(c);\r\n header.setWidthPercentage(100.0f);\r\n \r\n catPart.add(header);\r\n }",
"public void addRow() {\n tableModel.insertRow(this.getRowCount(), new String[]{});\n this.setModel(tableModel);\n\n }",
"private void addTableRow(String[] cols){\n final TableRow tr = (TableRow) inflater.inflate(R.layout.word_table_row, tableLayout, false);\n tr.setClickable(true);\n final TableRow tr1 = (TableRow) inflater.inflate(R.layout.word_table_row1, tableLayout, false);\n //tr1.setClickable(true);\n final TextView posView = (TextView)tr.findViewById(R.id.wordPos);\n final TextView descriptionView = (TextView)tr.findViewById(R.id.wordDescription);\n final TextView glossView = (TextView) tr1.findViewById(R.id.wordGloss);\n final TextView glossView1 = (TextView) tr1.findViewById(R.id.wordGloss1);\n\n // set the background color to indicate if the row was selected\n View.OnClickListener clickListener = new View.OnClickListener() {\n public void onClick(View v) {\n Drawable background = posView.getBackground();\n int backColor = ContextCompat.getColor(context, R.color.row_background);\n if ((background instanceof ColorDrawable)) {\n int currentBackColor = ((ColorDrawable) background).getColor();\n if (currentBackColor == rowSelectColor)\n backColor = rowBackColor;\n //else if (currentBackColor == rowHighlightColor)\n // backColor = rowHighlightColor;\n else\n backColor = rowSelectColor;\n }\n posView.setBackgroundColor(backColor);\n descriptionView.setBackgroundColor(backColor);\n glossView.setBackgroundColor(backColor);\n tr.setBackgroundColor(backColor);\n tr1.setBackgroundColor(backColor);\n }\n };\n\n tr.setOnClickListener(clickListener);\n tr1.setOnClickListener(clickListener);\n\n // set the background color and text of the table row\n int backColor = rowBackColor;\n posView.setText(fromHtml(cols[0])); posView.setBackgroundColor(backColor);\n descriptionView.setText(fromHtml(cols[1])); descriptionView.setBackgroundColor(backColor);\n glossView.setText(fromHtml(cols[2])); glossView.setBackgroundColor(backColor);\n glossView1.setText(cols[3]);\n rows.add(tr); // save the collection of rows\n rows.add(tr1);\n tableLayout.addView(tr);\n tableLayout.addView(tr1);\n }",
"public void newRow();",
"public void addData() {\n if (daySchedule == null) {\n return;\n }\n int numTimes = daySchedule.size();\n TableLayout tl = findViewById(R.id.table);\n int chosenTime = MainActivity.hour * 60 + MainActivity.minute;\n if(chosenTime == 0)\n {\n Calendar now = Calendar.getInstance();\n chosenTime = now.get(Calendar.HOUR_OF_DAY) * 60 + now.get(Calendar.MINUTE);;\n }\n for (int i = 0; i < numTimes; i++) {\n TableRow tr = new TableRow(this);\n tr.setLayoutParams(getLayoutParams());\n Time t = daySchedule.get(i);\n if (!haverford) {\n if (Time.toMinutes(t.leaveBrynMawr()) > chosenTime) {\n Log.d(\"brynmawrtime\", String.valueOf(Time.toMinutes(t.leaveBrynMawr())));\n tr.addView(getTextView(i + 1, t.leaveBrynMawr(), Color.WHITE, Typeface.NORMAL, ContextCompat.getColor(this, R.color.colorAccent)));\n tr.addView(getTextView(i + numTimes, t.arriveHaverford(), Color.WHITE, Typeface.NORMAL, ContextCompat.getColor(this, R.color.colorAccent)));\n }\n } else {\n if (Time.toMinutes(t.leaveHaverford()) > chosenTime) {\n tr.addView(getTextView(i + 1, t.leaveHaverford(), Color.WHITE, Typeface.NORMAL, ContextCompat.getColor(this, R.color.colorAccent)));\n tr.addView(getTextView(i + numTimes, t.arriveBrynMawr(), Color.WHITE, Typeface.NORMAL, ContextCompat.getColor(this, R.color.colorAccent)));\n }\n }\n tl.addView(tr, getTblLayoutParams());\n }\n }",
"void create(Section section);",
"private void createTable() {\n table = new Table();\n table.bottom();\n table.setFillParent(true);\n }",
"public native void insertRowAfter(int index, TableViewRow row, TableViewAnimation animation) /*-{\n\t\tvar jso = this.@com.emitrom.ti4j.core.client.ProxyObject::getJsObj()();\n\t\tjso\n\t\t\t\t.insertRowAfter(\n\t\t\t\t\t\tindex,\n\t\t\t\t\t\trow.@com.emitrom.ti4j.core.client.ProxyObject::getJsObj()(),\n\t\t\t\t\t\tanimation.@com.emitrom.ti4j.core.client.ProxyObject::getJsObj()());\n }-*/;",
"void completedSection(TestResult tr, Section section);",
"private void addCards(){\n\t\tDeck deck = new BasicDeckBuilder().getDeck();\r\n\t\tTabletop table = new Tabletop(deck);\r\n\t\tcardtable.getChildren().addAll(table);\r\n\t\tAnchorPane.setTopAnchor(table, 30.0);\r\n\t\tAnchorPane.setBottomAnchor(table, 30.0);\r\n\t\tAnchorPane.setLeftAnchor(table, 30.0);\r\n\t\tAnchorPane.setRightAnchor(table, 30.0);\r\n\t}",
"public void addSection(String sectionId) {\n\t\t\r\n\t}",
"protected void addRow(TextButton buttonToAdd)\n {\n table.add(buttonToAdd).width(centre/3.0f);\n table.row();\n }",
"public void buildExistingRoutesTable() {\n\t\tTableLayout waypointList = (TableLayout) addRoute.findViewById(R.id.routeList);\n\t\tfor (int i = 0; i < addRoute.maxRouteIndex; i++) {\n\t\t\tTableRow newRow = new TableRow(addRoute);\n\t\t\twaypointList.addView(newRow);\n\t\t\tTextView newTextView = new TextView(addRoute);\n\t\t\tnewRow.addView(newTextView);\n\t\t\tnewTextView.setText(\"Route \" + i);\n\t\t\tnewRow.setClickable(true);\n\t\t\tnewRow.setTag(i);\n\t\t\tif (addRoute.selectedRoute == i) {\n\t\t\t\tnewRow.setBackgroundColor(Color.BLUE);\n\t\t\t}\n\t\t\tnewRow.setOnClickListener(new View.OnClickListener() {\n\n\t\t\t @Override\n\t\t\t public void onClick(View v) {\n\t\t\t TableRow tableRow = (TableRow) v;\n\t\t\t tableRow.setBackgroundColor(Color.BLUE);\n\t\t\t TableLayout waypointList = (TableLayout) addRoute.findViewById(R.id.routeList);\n\t\t\t if (addRoute.selectedRoute != -1)\n\t\t\t \t waypointList.getChildAt(addRoute.selectedRoute).setBackgroundColor(Color.TRANSPARENT);\n\t\t\t addRoute.selectedRoute = (Integer) tableRow.getTag();\n\t\t\t }\n\t\t\t});\n\t\t}\n\t}",
"private void addEmptyRow()\n {\n TableLayout table = (TableLayout) findViewById(R.id.lossesTable);\n TableRow row = new TableRow(this);\n\n TextView emptyView1 = new TextView(this);\n ((BadBudgetApplication)this.getApplication()).initializeTableCell(emptyView1, \"\", R.drawable.emptyborder);\n TextView emptyView2 = new TextView(this);\n ((BadBudgetApplication)this.getApplication()).initializeTableCell(emptyView2, \"\", R.drawable.emptyborder);\n TextView emptyView3 = new TextView(this);\n ((BadBudgetApplication)this.getApplication()).initializeTableCell(emptyView3, \"\", R.drawable.emptyborder);\n TextView emptyView4 = new TextView(this);\n ((BadBudgetApplication)this.getApplication()).initializeTableCell(emptyView4, \"\", R.drawable.emptyborder);\n\n row.addView(emptyView1);\n row.addView(emptyView2);\n row.addView(emptyView3);\n row.addView(emptyView4);\n\n table.addView(row);\n }",
"public void fillTable() {\n\t\tif (scroll.getWidth() == 0) {\n\t\t\treturn;\n\t\t}\n\t\tboolean showedNew = false;\n\t\tArrayList<Placeable> currentView = new ArrayList<Placeable>();\n\t\tif (viewing == ViewingMode.MATERIAL) {\n\t\t\tif (loadedMats == null)\n\t\t\t\tloadedMats = repo.getAllMats();\n\t\t\tfor (NamedMaterial m: loadedMats) {\n\t\t\t\tcurrentView.add(m);\n\t\t\t}\n\t\t}\n\t\telse if (viewing == ViewingMode.PIECE){\n\t\t\tif (loadedPieces == null)\n\t\t\t\tloadedPieces = repo.getAllPieces();\n\t\t\tfor (Piece m: loadedPieces) {\n\t\t\t\tcurrentView.add(m);\n\t\t\t}\n\t\t\tshowedNew = true;\n\t\t}\n\t\t\n\t\ttiles.clearChildren();\n\t\tfloat cellWidth = 64.0f;\n\t\tint numAcross = (int)(scroll.getWidth() / cellWidth);\n\t\tif (numAcross <= 0) {\n\t\t\tnumAcross = 1;\n\t\t}\n\t\tint count = 0;\n\t\tActor tile;\n\t\twhile (count < currentView.size()) {\n\t\t\tfor (int y = 0; y < numAcross; y++) {\n\t\t\t\tif (!showedNew) {\n\t\t\t\t\ttile = new Label(\"New\", TextureOrganizer.getSkin());\n\t\t\t\t\t((Label)tile).setAlignment(Align.center);\n\t\t\t\t\ttile.addListener(new ClickListener() {\n\t\t\t\t\t\t@Override\n\t\t\t\t\t public void clicked(InputEvent event, float x, float y) {\n\t\t\t\t\t\t\tmakeNew();\n\t\t\t\t\t\t}\n\t\t\t\t\t});\n\t\t\t\t\tshowedNew = true;\n\t\t\t\t}\n\t\t\t\telse if (count >= currentView.size()) {\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t\telse {\n\t\t\t\t\ttile = new ColoredRectActor(currentView.get(count++));\n\t\t\t\t\ttile.addListener(new TileListener((ColoredRectActor)tile));\n\t\t\t\t}\n\t\t\t\ttiles.add(tile).width(cellWidth).height(cellWidth).fill();\n\t\t\t}\n\t\t\tif (count < currentView.size())\n\t\t\t\ttiles.row();\n\t\t}\n\t}",
"private void addEmployeeInfo(Section catPart) throws SQLException, IOException{\r\n PdfPTable employee = new PdfPTable(1);\r\n \r\n Paragraph empId = new Paragraph(\"Medarbejdernummer: \"+model.getTimeSheet(0).getEmployeeId());\r\n PdfPCell empIdCell = new PdfPCell(empId);\r\n empIdCell.setBorderColor(BaseColor.WHITE);\r\n String name = fal.getFiremanById(model.getTimeSheet(0).getEmployeeId()).getFirstName() +\" \"+ fal.getFiremanById(model.getTimeSheet(0).getEmployeeId()).getLastName();\r\n Paragraph empName = new Paragraph(\"Navn: \" + name);\r\n PdfPCell empNameCell = new PdfPCell(empName);\r\n empNameCell.setBorderColor(BaseColor.WHITE);\r\n \r\n employee.setHeaderRows(0);\r\n employee.addCell(empIdCell);\r\n employee.addCell(empNameCell);\r\n employee.setWidthPercentage(80.0f);\r\n \r\n catPart.add(employee);\r\n }",
"public void addAssociatedPart(ActionEvent actionEvent) {\n Part selectedAssociatedPart;\n selectedAssociatedPart = (Part) partsTableView.getSelectionModel().getSelectedItem();\n associatedPartTableViewHolder.add(selectedAssociatedPart);\n\n associatedPartsTableView.setItems(associatedPartTableViewHolder);\n }",
"private void addRow() {\n\t\t\n\t\tArrayList<Invader> lastRow = enemyArray.get(enemyArray.size() - 1);\n\t\tArrayList<Invader> newRow = new ArrayList<Invader>();\n\t\t\t\n\t\tfor (int i = 0; i < 10; i++) {\n\t\t\tnewRow.add(new Invader(\n\t\t\t\t\tlastRow.get(i).getX(),\n\t\t\t\t\tlastRow.get(i).getY() + 40,\n\t\t\t\t\tPLAYER_WIDTH,\n\t\t\t\t\tPLAYER_WIDTH,\n\t\t\t\t\t2));\n\t\t}\n\t\t\n\t\tenemyArray.add(newRow);\n\t}",
"Section createSection();",
"@Kroll.method\n\tpublic void updateSection(int index, TableViewSectionProxy section,\n\t\t\t\t\t\t\t @Kroll.argument(optional = true) KrollDict animation)\n\t{\n\t\tif (index > -1 && index <= this.sections.size()) {\n\t\t\tsection.setParent(this);\n\t\t\tthis.sections.set(index, section);\n\n\t\t\t// Notify TableView of update.\n\t\t\tupdate();\n\t\t}\n\t}",
"public void tableStarted(int position) {\r\n }",
"@Override\n public void addView(View child, int index, ViewGroup.LayoutParams params) {\n if (child == mainTable || child == columnHeaderTable || child == rowHeaderTable || child == cornerTable) {\n super.addView(child, index, params);\n } else {\n throw new UnsupportedOperationException(\"Adding children directly is not supported, use addViews method\");\n }\n }",
"public void prepareTable(){\n\n TableColumn<Student, String> firstNameCol = new TableColumn<>(\"FirstName\");\n firstNameCol.setMinWidth(100);\n firstNameCol.setCellValueFactory(new PropertyValueFactory<>(\"firstname\"));\n\n TableColumn<Student, String> lastNameCol = new TableColumn<>(\"LastName\");\n lastNameCol.setMinWidth(100);\n lastNameCol.setCellValueFactory(new PropertyValueFactory<>(\"lastname\"));\n\n TableColumn<Student, String> formCol = new TableColumn<>(\"Form\");\n formCol.setMinWidth(100);\n formCol.setCellValueFactory(new PropertyValueFactory<>(\"form\"));\n\n TableColumn<Student, String> streamCol = new TableColumn<>(\"Stream\");\n streamCol.setMinWidth(100);\n streamCol.setCellValueFactory(new PropertyValueFactory<>(\"stream\"));\n\n TableColumn<Student, String> dateOfBirthCol = new TableColumn<>(\"Favorite Game\");\n dateOfBirthCol.setMinWidth(100);\n dateOfBirthCol.setCellValueFactory(new PropertyValueFactory<>(\"dateOfBirth\"));\n\n TableColumn<Student, String> genderCol = new TableColumn<>(\"Gender\");\n genderCol.setMinWidth(100);\n genderCol.setCellValueFactory(new PropertyValueFactory<>(\"gender\"));\n\n TableColumn<Student, Integer> ageCol = new TableColumn<>(\"age\");\n ageCol.setMinWidth(100);\n ageCol.setCellValueFactory(new PropertyValueFactory<>(\"age\"));\n\n TableColumn<Student, Integer> admissionCol = new TableColumn<>(\"Admission\");\n admissionCol.setMinWidth(100);\n admissionCol.setCellValueFactory(new PropertyValueFactory<>(\"admission\"));\n\n\n table.getColumns().addAll(admissionCol,firstNameCol,lastNameCol,formCol,streamCol,dateOfBirthCol,genderCol,ageCol);\n table.setItems(dao.selectAll());\n\n }",
"private void addToArticleTable(QuotationDetailsDTO detail) {\n\t\tdecimalFormat = new DecimalFormat(\"0.00\");\n\t\tTableItem[] items = tblArticle.getItems();\n\t\tint len = items.length;\n\t\tboolean isPresent = false;\n\t\tTableItem tiArticle;\n\t\tint index = 0;\n\t\tfor (int i = 0; i < len; i++) {\n\t\t\tif (detail.getArticleName().equalsIgnoreCase(items[i].getText(0))) {\n\t\t\t\tisPresent = true;\n\t\t\t\t/*if (detail.getChargedWeight() != Float.parseFloat(items[i].getText(1))) {\n\t\t\t\t\tif (quotationDTO != null) {\n\t\t\t\t\t\tQuotationDetailsDTO[] quotDetails = quotationDTO.getQuotationDetails();\n\t\t\t\t\t\tquotDetails[i].setBft(null);\n\t\t\t\t\t}\n\t\t\t\t}*/\n\t\t\t\tindex = i;\n\t\t\t\tbreak;\n\t\t\t}\n\n\t\t}\n\t\tif (!isPresent) {\n\t\t\ttiArticle = new TableItem(tblArticle, SWT.NONE);\n\n\t\t\ttiArticle.setText(0, detail.getArticleName());\n\t\t\ttiArticle.setText(1, decimalFormat.format(detail.getChargedWeight()));\n\t\t\ttiArticle.setText(2, optionB[detail.getCcchargeType()]);\n\t\t\ttiArticle.setText(3, decimalFormat.format(detail.getCcchargeValue()));\n\t\t\ttiArticle.setText(4, optionB[detail.getDcchargeType()]);\n\t\t\ttiArticle.setText(5, decimalFormat.format(detail.getDcchargeValue()));\n\t\t\ttiArticle.setText(6, optionB[detail.getIechargeType()]);\n\t\t\ttiArticle.setText(7, decimalFormat.format(detail.getIechargeValue()));\n\t\t\ttiArticle.setText(8, optionB[detail.getLcchargeType()]);\n\t\t\ttiArticle.setText(9, decimalFormat.format(detail.getLcchargeValue()));\n\t\t\ttiArticle.setText(10, optionC[detail.getDdchargeType()]);\n\t\t\ttiArticle.setText(11, decimalFormat.format(detail.getMinDdchargeValue()));\n\t\t\ttiArticle.setText(12, decimalFormat.format(detail.getDdchargeArticle()));\n\t\t} else {\n\n\t\t\tTableItem item = tblArticle.getItem(index);\n\t\t\titem.setText(0, detail.getArticleName());\n\t\t\titem.setText(1, decimalFormat.format(detail.getChargedWeight()));\n\t\t\titem.setText(2, optionB[detail.getCcchargeType()]);\n\t\t\titem.setText(3, decimalFormat.format(detail.getCcchargeValue()));\n\t\t\titem.setText(4, optionB[detail.getDcchargeType()]);\n\t\t\titem.setText(5, decimalFormat.format(detail.getDcchargeValue()));\n\t\t\titem.setText(6, optionB[detail.getIechargeType()]);\n\t\t\titem.setText(7, decimalFormat.format(detail.getIechargeValue()));\n\t\t\titem.setText(8, optionB[detail.getLcchargeType()]);\n\t\t\titem.setText(9, decimalFormat.format(detail.getLcchargeValue()));\n\t\t\titem.setText(10, optionC[detail.getDdchargeType()]);\n\t\t\titem.setText(11, decimalFormat.format(detail.getMinDdchargeValue()));\n\t\t\titem.setText(12, decimalFormat.format(detail.getDdchargeArticle()));\n\t\t}\n\n\t}",
"private void insertCell(PdfPTable table, String text, int align, int colspan, Font font) {\n PdfPCell cell = new PdfPCell(new Phrase(text.trim(), font));\r\n //set the cell alignment\r\n cell.setHorizontalAlignment(align);\r\n //set the cell column span in case you want to merge two or more cells\r\n cell.setColspan(colspan);\r\n //in case there is no text and you wan to create an empty row\r\n if (text.trim().equalsIgnoreCase(\"\")) {\r\n cell.setMinimumHeight(10f);\r\n }\r\n //add the call to the table\r\n table.addCell(cell);\r\n\r\n }",
"public void addDefaultRowToTables(){\n DefaultTableModel model = (DefaultTableModel) jTable1.getModel();\n ArrayList<Student>templist = ListStudents();\n int noOfRows = ThreadLocalRandom.current().nextInt(0,5);\n Object rowData[] = new Object[3];\n \n if(noOfRows != 0){\n for(int i =1; i<=noOfRows; i++){\n \n rowData[0] = templist.get(i-1).userName;\n if (templist.get(i-1).paused == false){\n rowData[1] = \"Unpaused\";\n }\n Student s = new Student(templist.get(i-1).userName,templist.get(i-1).passWord,templist.get(i-1).email);\n students.add(s);\n model.addRow(rowData);\n } \n }\n if(students.isEmpty()){\n jLabel1.setVisible(true);\n } else{\n jLabel1.setVisible(false);\n }\n \n \n \n \n }",
"private void drawTable(int selected){\n\t\ttlCategories.removeAllViews();\n\t\tTableRow.LayoutParams rowParams=new TableRow.LayoutParams \n\t\t\t\t(TableRow.LayoutParams.WRAP_CONTENT,TableRow.LayoutParams.WRAP_CONTENT);\n\t\t\n\t\tfor(int i = 0; i<4; i++){\n\t\t\tTableRow tr = new TableRow(getApplicationContext());\n\t\t\ttr.setLayoutParams(rowParams);\n\t\t\ttr.setTag(2); \n\t\t\tfor(int j = 0; j<4; j++ ){ \n\t\t\t\tView v = mCatAdapter.getView(i*4+j + 1, null, tr);\n\t\t\t\tv.setTag(i*4+j);\n\t\t\t\tv.setOnClickListener(this);\n\t\t\t\ttr.addView(v);\n\t\t\t\tif( i*4+j+1 == selected) onClick(v);\n\t\t\t}\n\t\t\ttlCategories.addView(tr);\n\t\t}\n\t}",
"public void addData(View view) {\n int numCompanies = companies.length;\n TableLayout tl = view.findViewById(R.id.tableLayout);\n Log.d(\"TableViewFragment\", \"addData() invoked\");\n for (int i = 0; i < numCompanies; i++) {\n Log.d(\"TableViewFragment\", \"addData()\" + (i));\n TableRow tr = new TableRow(getContext());\n tr.setLayoutParams(getLayoutParams());\n tr.addView(getTextView(i + 1, companies[i], Color.WHITE, Typeface.NORMAL, ContextCompat.getColor(getContext(), R.color.colorAccent)));\n tr.addView(getTextView(i + numCompanies, os[i], Color.WHITE, Typeface.NORMAL, ContextCompat.getColor(getContext(), R.color.colorAccent)));\n tl.addView(tr, getTblLayoutParams());\n }\n }",
"private JLabel createSection3() {\r\n\t\t\r\n\t\tJLabel section3 = new JLabel(\"How To Observe A Table\");\r\n\t\t//section1.setHorizontalAlignment(SwingConstants.LEFT);\r\n\t\t//section1.setVerticalAlignment(SwingConstants.TOP);\r\n\t\tsection3.setFont(new Font(\"DejaVu Sans\", Font.PLAIN, 15));\r\n\t\tsection3.setForeground(Color.WHITE);\r\n\t\t\r\n\t\t// open subsections when clicked\r\n\t\tsection3.addMouseListener(new ClickListener());\r\n\t\t\r\n\t\treturn section3;\r\n\t\t\r\n\t}",
"private void updateTable()\n\t{\n\t\ttable = new StringBuilder(String.format(\"%-7s %-30s %-30s %-5s\\n\", \"Song#\", \"Title\", \"Artist\", \"Time\"));\n\t\tdouble time = 0.0;\n\t\tfor(int i = 0; i < numOfSongs; i++)\n\t\t{\n\t\t\ttime = (double)song[i].getMinLength() + (song[i].getSecLength()/100.0); \n\t\t\ttable.append(String.format(\"%-7d %-30s %-30s %-5s\", (i+1), song[i].getTitle(), song[i].getArtist(), time));\n\t\t\tif(i < (numOfSongs-1))\n\t\t\t\ttable.append(\"\\n\");\n\t\t}\n\t}",
"public void addNewRow(Vector row) throws IllegalStateException{\r\n if(flagAddStatusRow){\r\n row.add(numberOfcolumns, new Integer(IS_INSERTED)); //Set status for row is add new\r\n }else{\r\n row.setElementAt(new Integer(IS_NO_CHANGE), numberOfcolumns);\r\n }\r\n data.add(row);\r\n }",
"@Kroll.method\n\tpublic void insertRowBefore(int index, Object rowObj, @Kroll.argument(optional = true) KrollDict animation)\n\t{\n\t\tfinal TableViewRowProxy existingRow = getRowByIndex(index);\n\n\t\tif (existingRow != null) {\n\t\t\tfinal TiViewProxy parent = existingRow.getParent();\n\n\t\t\tif (parent != null) {\n\t\t\t\tif (parent instanceof TableViewSectionProxy) {\n\t\t\t\t\tfinal TableViewSectionProxy section = (TableViewSectionProxy) parent;\n\t\t\t\t\tfinal TableViewRowProxy row = processRow(rowObj);\n\n\t\t\t\t\tif (row == null) {\n\t\t\t\t\t\treturn;\n\t\t\t\t\t}\n\n\t\t\t\t\t// Row is in section, modify section rows.\n\t\t\t\t\tsection.add(existingRow.getIndexInSection(), row);\n\n\t\t\t\t\t// Notify TableView of update.\n\t\t\t\t\tupdate();\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}",
"TableSectionBuilder align(String align);",
"private void addNewLine(String timeAndDate, int steps) {\n\n String stepsString = Integer.toString(steps);\n\n TableRow newRow = new TableRow(this);\n\n // Create the Left hand side\n TextView left = new TextView(this);\n left.setText(timeAndDate);\n left.setGravity(Gravity.START);\n left.setPadding(10,5, 10,5);\n left.setTextSize(15);\n\n // Create the right hand side\n TextView right = new TextView(this);\n right.setText(stepsString);\n right.setGravity(Gravity.END);\n right.setPadding(10,5,10,5);\n right.setTextSize(15);\n\n // Add the TextView Components to the row\n newRow.addView(left);\n newRow.addView(right);\n\n // Add row to the TableLayout\n table.addView(newRow,new TableLayout.LayoutParams(TableLayout.LayoutParams.WRAP_CONTENT,\n TableLayout.LayoutParams.WRAP_CONTENT));\n\n // Create Line to separate rows and add to end of the new row\n View line = new View(this);\n line.setLayoutParams(new TableRow.LayoutParams(TableRow.LayoutParams.MATCH_PARENT,1));\n line.setBackgroundColor(Color.BLACK);\n table.addView(line);\n\n // Scroll to the newly added row\n scrollTo(newRow);\n }",
"public void addTable(String columns[], String data[][]) {\n\t\tDefaultTableModel model = new DefaultTableModel(data, columns);\n\t\tmodel.setColumnCount(2);\n\t\tmodel.setNumRows(10);\n\t\tcontainer.add(new JTable(model));\n\t\trefreshView();\n\t}",
"void addRowsLock();",
"private JTable addSimulationLogPanel(String vertex) {\n if (!panels.containsKey(vertex)) {\n throw new IllegalStateException(\"table for simulation logs was not created\");\n }\n\n if (tablesMap.containsKey(vertex)) {\n return panels.get(vertex);\n }\n JTable table = panels.get(vertex);//null check was already performed at the beginning of this method\n //add table to hashmap\n JScrollPane pane = new JScrollPane(table);\n closeableTabbedPane1.addTab(vertex, pane);//add a new tab\n closeableTabbedPane1.setSelectedComponent(pane);//selects tab to give it a focus\n tablesMap.put(vertex, pane);\n return table;\n }",
"public TableRow build_header(){\n int padding_in_dp = 25;\n final float scale = getResources().getDisplayMetrics().density;\n int padd_bottom = (int) (padding_in_dp * scale + 0.5f);\n\n TableRow header = new TableRow(getContext());\n\n TextView item = new TextView(getContext());\n TextView quantity = new TextView(getContext());\n TextView price = new TextView(getContext());\n\n //picks the right colors depending on theme\n if(sharedPref.loadNightMode()){\n item.setTextColor(Color.parseColor(\"#EEEEEE\"));\n quantity.setTextColor(Color.parseColor(\"#EEEEEE\"));\n price.setTextColor(Color.parseColor(\"#EEEEEE\"));\n }\n else{\n item.setTextColor(Color.parseColor(\"#252525\"));\n quantity.setTextColor(Color.parseColor(\"#252525\"));\n price.setTextColor(Color.parseColor(\"#252525\"));\n }\n\n item.setText(\"Item\");\n item.setTextSize(16);\n item.setLayoutParams(new TableRow.LayoutParams(0, TableRow.LayoutParams.WRAP_CONTENT, 6));\n\n quantity.setText(\"Quantity\");\n quantity.setTextSize(14);\n quantity.setLayoutParams(new TableRow.LayoutParams(0, TableRow.LayoutParams.WRAP_CONTENT, 3));\n\n price.setText(\"Price\");\n price.setTextSize(16);\n price.setLayoutParams(new TableRow.LayoutParams(0, TableRow.LayoutParams.WRAP_CONTENT, 3));\n\n header.addView(item);\n header.addView(quantity);\n header.addView(price);\n\n header.setPadding(0,0,0, padd_bottom);\n return header;\n\n }",
"private void addPersonUIRow(String name) {\n TableRow tr = new TableRow(getContext());\n TableRow.LayoutParams trTlp = new TableRow.LayoutParams(\n 0,\n TableLayout.LayoutParams.WRAP_CONTENT\n );\n tr.setLayoutParams(trTlp);\n\n //create name view\n TextView nameView = new TextView(getContext());\n nameView.setText(name);\n nameView.setTextSize(20);\n TableRow.LayoutParams tlp1 = new TableRow.LayoutParams(\n TableLayout.LayoutParams.WRAP_CONTENT,\n TableLayout.LayoutParams.MATCH_PARENT\n );\n tlp1.column=0;\n nameView.setLayoutParams(tlp1);\n\n //TODO: switch add on toggle listener\n Switch sw = new Switch(getContext());\n TableRow.LayoutParams tlp2 = new TableRow.LayoutParams(\n TableLayout.LayoutParams.WRAP_CONTENT,\n TableLayout.LayoutParams.MATCH_PARENT\n );\n tlp2.column=1;\n tlp2.gravity=Gravity.CENTER_HORIZONTAL;\n sw.setTextOff(\"OFF\");\n sw.setTextOn(\"ON\");\n sw.setHeight(20);\n //before listener so that it won't fire off\n if (faceTable.containsKey(name)){\n sw.setChecked(true);\n }\n sw.setOnCheckedChangeListener(this);\n sw.setLayoutParams(tlp2);\n\n //create sub view\n TextView subView = new TextView(getContext());\n subView.setText(\"\");\n subView.setTextSize(20);\n TableRow.LayoutParams tlp3 = new TableRow.LayoutParams(\n TableLayout.LayoutParams.WRAP_CONTENT,\n TableLayout.LayoutParams.MATCH_PARENT\n );\n tlp3.column=2;\n subView.setLayoutParams(tlp3);\n subView.setVisibility(View.INVISIBLE);\n if (faceTable.containsKey(name)){\n subView.setText(faceTable.get(name));\n subView.setVisibility(View.VISIBLE);\n }\n\n //create delete button\n ImageView deleteView = new ImageView(getContext());\n deleteView.setImageResource(R.drawable.ic_delete_black_24dp);\n TableRow.LayoutParams tlp4 = new TableRow.LayoutParams(\n TableLayout.LayoutParams.WRAP_CONTENT,\n TableLayout.LayoutParams.MATCH_PARENT\n );\n tlp4.column=3;\n deleteView.setLayoutParams(tlp4);\n deleteView.setOnClickListener(new ImageView.OnClickListener() {\n @Override\n public void onClick(View v) {\n String toBeRemovedName=null;\n PersonUIRow toBeRemovedRow=null;\n //find the name of the person to be removed\n for (PersonUIRow uiRow: personUIList){\n if (uiRow.deleteView == v){\n toBeRemovedName = (String) uiRow.nameView.getText();\n toBeRemovedRow = uiRow;\n break;\n }\n }\n if (null != toBeRemovedName){\n GabrielConfigurationAsyncTask task =\n new GabrielConfigurationAsyncTask(getActivity(),\n getMyAcitivty().currentServerIp,\n GabrielClientActivity.VIDEO_STREAM_PORT,\n GabrielClientActivity.RESULT_RECEIVING_PORT,\n Const.GABRIEL_CONFIGURATION_REMOVE_PERSON);\n task.execute(toBeRemovedName);\n trainedPeople.remove(toBeRemovedName);\n }\n\n //remove current line\n if (null != toBeRemovedRow){\n personUIList.remove(toBeRemovedRow);\n tb.removeView(toBeRemovedRow.tr);\n } else {\n Log.e(TAG, \"delete icon clicked, but didn't find any row to remove\");\n }\n\n }\n });\n\n tr.addView(nameView);\n tr.addView(sw);\n tr.addView(subView);\n tr.addView(deleteView);\n\n tb.addView(tr,\n new TableLayout.LayoutParams(TableLayout.LayoutParams.MATCH_PARENT,\n TableLayout.LayoutParams.WRAP_CONTENT));\n\n PersonUIRow uiRow = new PersonUIRow(tr,nameView, sw, subView, deleteView);\n personUIList.add(uiRow);\n }",
"public abstract void appendBlock();",
"@SuppressWarnings(\"unchecked\")\n // <editor-fold defaultstate=\"collapsed\" desc=\"Generated Code\">//GEN-BEGIN:initComponents\n private void initComponents() {\n\n lblDisplaySectionName = new javax.swing.JLabel();\n lblSecName = new javax.swing.JLabel();\n jLabel3 = new javax.swing.JLabel();\n jLabel4 = new javax.swing.JLabel();\n btnEdit = new javax.swing.JButton();\n btnHide = new javax.swing.JButton();\n jToggleButton1 = new javax.swing.JToggleButton();\n jScrollPane1 = new javax.swing.JScrollPane();\n tblSectionmeta = new javax.swing.JTable();\n\n setBorder(javax.swing.BorderFactory.createLineBorder(java.awt.Color.lightGray));\n setFont(new java.awt.Font(\"DejaVu Sans\", 0, 9));\n\n lblDisplaySectionName.setFont(new java.awt.Font(\"DejaVu Sans\", 0, 10));\n lblDisplaySectionName.setText(\"::\");\n\n lblSecName.setFont(new java.awt.Font(\"DejaVu Sans\", 0, 10));\n lblSecName.setText(\"Current Section Name :\");\n\n jLabel3.setFont(new java.awt.Font(\"DejaVu Sans\", 0, 10));\n jLabel3.setText(\"::\");\n\n jLabel4.setFont(new java.awt.Font(\"DejaVu Sans\", 0, 10));\n jLabel4.setText(\"Current Section Type:\");\n\n btnEdit.setFont(new java.awt.Font(\"DejaVu Sans\", 0, 10));\n btnEdit.setText(\"Edit \");\n btnEdit.setBorder(javax.swing.BorderFactory.createLineBorder(new java.awt.Color(0, 0, 0)));\n\n btnHide.setFont(new java.awt.Font(\"DejaVu Sans\", 0, 10));\n btnHide.setText(\"Hide\");\n btnHide.setBorder(javax.swing.BorderFactory.createLineBorder(new java.awt.Color(0, 0, 0)));\n\n jToggleButton1.setFont(new java.awt.Font(\"DejaVu Sans\", 0, 9));\n jToggleButton1.setText(\"EXPAND\");\n jToggleButton1.setBorder(javax.swing.BorderFactory.createEmptyBorder(1, 1, 1, 1));\n\n tblSectionmeta.setModel(new javax.swing.table.DefaultTableModel(\n new Object [][] {\n {null, null, null, null},\n {null, null, null, null},\n {null, null, null, null},\n {null, null, null, null}\n },\n new String [] {\n \"Title 1\", \"Title 2\", \"Title 3\", \"Title 4\"\n }\n ));\n jScrollPane1.setViewportView(tblSectionmeta);\n\n javax.swing.GroupLayout layout = new javax.swing.GroupLayout(this);\n this.setLayout(layout);\n layout.setHorizontalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(layout.createSequentialGroup()\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(lblSecName, javax.swing.GroupLayout.PREFERRED_SIZE, 134, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(jLabel4, javax.swing.GroupLayout.PREFERRED_SIZE, 134, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(jLabel3, javax.swing.GroupLayout.PREFERRED_SIZE, 134, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(lblDisplaySectionName, javax.swing.GroupLayout.PREFERRED_SIZE, 134, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGroup(layout.createSequentialGroup()\n .addComponent(jToggleButton1, javax.swing.GroupLayout.PREFERRED_SIZE, 50, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(btnEdit, javax.swing.GroupLayout.PREFERRED_SIZE, 54, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(btnHide, javax.swing.GroupLayout.PREFERRED_SIZE, 49, javax.swing.GroupLayout.PREFERRED_SIZE)))\n .addContainerGap(18, Short.MAX_VALUE))\n .addComponent(jScrollPane1, javax.swing.GroupLayout.DEFAULT_SIZE, 183, Short.MAX_VALUE)\n );\n layout.setVerticalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(layout.createSequentialGroup()\n .addComponent(lblSecName)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(lblDisplaySectionName)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(jLabel4)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(jLabel3)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(jToggleButton1)\n .addComponent(btnEdit)\n .addComponent(btnHide))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(jScrollPane1, javax.swing.GroupLayout.PREFERRED_SIZE, 103, javax.swing.GroupLayout.PREFERRED_SIZE))\n );\n }",
"private void addTable()\r\n {\r\n // Create the table\r\n table = new JTable();\r\n table.setAutoCreateRowSorter(true);\r\n table.setColumnSelectionAllowed(false);\r\n table.getTableHeader().setReorderingAllowed(false);\r\n table.setModel(new JarModel());\r\n \r\n // Center the column headings\r\n ((DefaultTableCellRenderer) table.getTableHeader().\r\n getDefaultRenderer()).setHorizontalAlignment(SwingConstants.CENTER);\r\n \r\n // Set the column widths\r\n table.setAutoResizeMode(JTable.AUTO_RESIZE_SUBSEQUENT_COLUMNS);\r\n table.getColumnModel().getColumn(0).setPreferredWidth(100);\r\n table.getColumnModel().getColumn(0).setMaxWidth(250);\r\n table.getColumnModel().getColumn(2).setPreferredWidth(140);\r\n table.getColumnModel().getColumn(2).setMaxWidth(250);\r\n table.getColumnModel().getColumn(3).setPreferredWidth(100);\r\n table.getColumnModel().getColumn(3).setMaxWidth(250);\r\n table.getColumnModel().getColumn(4).setPreferredWidth(100);\r\n table.getColumnModel().getColumn(4).setMaxWidth(250);\r\n \r\n // Sort on the first column\r\n table.getRowSorter().toggleSortOrder(0);\r\n \r\n table.getColumnModel().getColumn(0).setCellRenderer(new BooleanColorCellRenderer());\r\n table.getColumnModel().getColumn(2).setCellRenderer(new DateCellRenderer());\r\n \r\n // Add the table to the panel\r\n add(new JScrollPane(table), BorderLayout.CENTER);\r\n }",
"public void AddRow(String Table, String Value)\r\n {\n }",
"private void insertCell(PdfPTable table, String text, int align, int colspan, Font font){\n\t\t PdfPCell cell = new PdfPCell(new Phrase(text.trim(), font));\n\t\t //set the cell alignment\n\t\t cell.setHorizontalAlignment(align);\n\t\t //set the cell column span in case you want to merge two or more cells\n\t\t cell.setColspan(colspan);\n\t\t //in case there is no text and you wan to create an empty row\n\t\t if(text.trim().equalsIgnoreCase(\"\")){\n\t\t cell.setMinimumHeight(10f);\n\t\t }\n\t\t //add the call to the table\n\t\t table.addCell(cell);\t \n\t}",
"private JLabel createSection4() {\r\n\t\t\r\n\t\tJLabel section4 = new JLabel(\"How To Create A Table\");\r\n\t\t//section1.setHorizontalAlignment(SwingConstants.LEFT);\r\n\t\t//section1.setVerticalAlignment(SwingConstants.TOP);\r\n\t\tsection4.setFont(new Font(\"DejaVu Sans\", Font.PLAIN, 15));\r\n\t\tsection4.setForeground(Color.WHITE);\r\n\t\t\r\n\t\t// open subsections when clicked\r\n\t\tsection4.addMouseListener(new ClickListener());\r\n\t\t\r\n\t\treturn section4;\r\n\t\t\r\n\t}",
"void piede() {\n try {\n\n Cell c;\n c = new Cell();\n set2(c);\n c.setColspan(4);\n datatable.addCell(c);\n c = new Cell(new Phrase(\"Totale \\u20ac \" + Db.formatValuta(totale), new Font(Font.HELVETICA, 8, Font.BOLD)));\n set2(c);\n c.setColspan(2);\n c.setHorizontalAlignment(c.ALIGN_RIGHT);\n datatable.addCell(c);\n document.add(datatable);\n } catch (Exception err) {\n err.printStackTrace();\n javax.swing.JOptionPane.showMessageDialog(null, err.toString());\n }\n }",
"private static void assembleRosterTable(){\n for (int i = 0; i < 10; i++) {\n rosterTable.insertRow(i);\n }\n }",
"TableRow componentBTableRow(){\n\n TableRow componentBTableRow = new TableRow(this.context);\n int headerFieldCount = this.headerObjects.size();\n\n TableRow.LayoutParams params = new TableRow.LayoutParams(LayoutParams.WRAP_CONTENT,LayoutParams.MATCH_PARENT);\n// params.setMargins(-1, 0, 0, 0);\n\n for(int x=0; x<(headerFieldCount-1); x++){\n View view = headerObjects.get(x+1);\n\n componentBTableRow.addView(view, params);\n }\n\n\n return componentBTableRow;\n }",
"public void addNestedClause(TempTableHeaderCell nestedClause);",
"public void addHeaders(View view) {\n Log.d(\"TableViewFragment\", \"addHeaders() invoked\");\n TableLayout tl = view.findViewById(R.id.tableLayout);\n TableRow tr = new TableRow(getActivity());\n tr.setLayoutParams(getLayoutParams());\n tr.addView(getTextView(0, \"COMPANY\", Color.WHITE, Typeface.BOLD, Color.BLUE));\n tr.addView(getTextView(0, \"OS\", Color.WHITE, Typeface.BOLD, Color.BLUE));\n tl.addView(tr, getTblLayoutParams());\n }",
"protected void createSection() {\r\n\t\tsection = new GraphSection();\r\n\t}",
"private void buildTablePanel() {\n \t\tJPanel panel = new JPanel();\n \t\t\n \t\t// settings:\n \t\theader.setReorderingAllowed(false); // no moving.\n \t\ttable.setColumnSelectionAllowed(true);\n \t\ttable.setRowSelectionAllowed(true);\n \t\ttable.setSelectionMode(ListSelectionModel.SINGLE_SELECTION);\n \t\t\n \t\theader.addMouseListener(tableModel.new SortColumnAdapter());\n \t\t\t\n \t\tTableCellRenderer renderer = new TableCellRenderer() {\n \n \t\t\tJLabel label = new JLabel();\n \t\t\t\n \t\t\t@Override\n \t public JComponent getTableCellRendererComponent(JTable table,\n \t Object value, boolean isSelected, boolean hasFocus,\n \t int row, int column) {\n \t \n \t\t\t\tif (table.isRowSelected(row)) {\n \t\t\t\t\tlabel.setBackground(Color.RED);\n \t\t\t\t} else {\n \t\t\t\t\tlabel.setBackground(UIManager.getColor(\"Table.background\"));\n \t\t\t\t}\n \t\t\t\t\n \t\t\t\tlabel.setOpaque(true);\n \t\t\t\tlabel.setText(\"\" + value);\n \t\t\t\t\n \t return label;\n \t }\n \n \t };\n \t table.setDefaultRenderer(Object.class, renderer);\n \t \n \t JScrollPane scroll = new JScrollPane(table);\n \t\t\n \t\tpanel.setLayout(new BorderLayout(5, 5));\n \t\tpanel.add(scroll, BorderLayout.CENTER);\n \t \n \t add(panel, BorderLayout.CENTER);\n \t}",
"public void addColumn(boolean start)\r\n\t{\r\n\t\t//definicion del tamaņo\r\n\t\tint width = 100;\r\n\t\tint height = 50 + rand.nextInt(300);\r\n\r\n\t\tif (start)\r\n\t\t{\r\n\t\t\tcolumns.add(new Rectangle(WIDTH + width + columns.size() * 300, HEIGHT - height - 120, width, height));\r\n\t\t\tcolumns.add(new Rectangle(WIDTH + width + (columns.size() - 1) * 300, 0, width, HEIGHT - height - space));\r\n\r\n\t\t}\r\n\t\telse\r\n\t\t{\r\n\t\t\tcolumns.add(new Rectangle(columns.get(columns.size() - 1).x + 600, HEIGHT - height - 120, width, height));\r\n\t\t\tcolumns.add(new Rectangle(columns.get(columns.size() - 1).x, 0, width, HEIGHT - height - space));\r\n\t\t}\r\n\t}",
"private void fillTableWithLinkResult(List<LinkSimulationResult> results, boolean showAsTimeSerie) {\n\n TableView<LinkSimulationResult> table = new TableView<>();\n table.getItems().addAll(results);\n\n TableColumn<LinkSimulationResult,String> idOrTimeCol;\n TableColumn<LinkSimulationResult,String> flowCol = new TableColumn<>(\"Flow\");\n TableColumn<LinkSimulationResult,String> velocityCol = new TableColumn<>(\"Velocity\");\n TableColumn<LinkSimulationResult,String> headlossCol = new TableColumn<>(\"Headloss\");\n TableColumn<LinkSimulationResult,String> statusCol = new TableColumn<>(\"Status\");\n\n if (!showAsTimeSerie){\n idOrTimeCol = new TableColumn<>(\"Node ID\");\n idOrTimeCol.setCellValueFactory(param -> new ReadOnlyObjectWrapper<>(param.getValue().getId()));\n } else {\n idOrTimeCol = new TableColumn<>(\"Time\");\n idOrTimeCol.setCellValueFactory(param -> new ReadOnlyObjectWrapper<>(param.getValue().getTimeString()));\n }\n flowCol.setCellValueFactory(param -> new ReadOnlyObjectWrapper<>(Double.toString(param.getValue().getFlow())));\n velocityCol.setCellValueFactory(param -> new ReadOnlyObjectWrapper<>(Double.toString(param.getValue().getVelocity())));\n headlossCol.setCellValueFactory(param -> new ReadOnlyObjectWrapper<>(Double.toString(param.getValue().getHeadloss())));\n statusCol.setCellValueFactory(param -> new ReadOnlyObjectWrapper<>(param.getValue().getStatus().getName()));\n\n table.getColumns().clear();\n table.getColumns().addAll(idOrTimeCol, flowCol, velocityCol, headlossCol, statusCol);\n\n this.tablePane.getChildren().clear(); // remove the previus table\n this.tablePane.getChildren().addAll(table);\n }",
"private void addRows() {\n this.SaleList.forEach(Factura -> {\n this.modelo.addRow(new Object[]{\n Factura.getId_Factura(),\n Factura.getPersona().getNombre(),\n Factura.getFecha().getTimestamp(),\n Factura.getCorreo(),\n Factura.getGran_Total()});\n });\n }",
"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 addRow(String rowName);",
"public void addToTable() {\n\n\n if (this.highScoresTable.getRank(this.scoreBoard.getScoreCounter().getValue()) <= this.highScoresTable.size()) {\n DialogManager dialog = this.animationRunner.getGui().getDialogManager();\n String name = dialog.showQuestionDialog(\"Name\", \"What is your name?\", \"\");\n\n this.highScoresTable.add(new ScoreInfo(name, this.scoreBoard.getScoreCounter().getValue()));\n File highScoresFile = new File(\"highscores.txt\");\n try {\n this.highScoresTable.save(highScoresFile);\n } catch (IOException e) {\n e.printStackTrace();\n }\n\n }\n\n }",
"private void insertCell(\n PdfPTable table,\n String text,\n int align,\n int colspan,\n Font font\n ){\n PdfPCell cell = new PdfPCell(new Phrase(text.trim(), font));\n //set the cell aligment\n cell.setHorizontalAlignment(align);\n //set the cell column span in case you want to merge two or more cell\n cell.setColspan(colspan);\n //in case if you want \n if(text.trim().equalsIgnoreCase(\"\")){\n cell.setMinimumHeight(10f);\n }\n \n table.addCell(cell);\n }",
"private void onShowTableDetail(ViewNodeJSO viewNode) { \n TableTools.createDataProvider(viewNode).addDataDisplay(cellTable);\n }",
"private void createRowForChapter(Composite section)\n {\n // Create the composite\n Composite compo = toolkit.createComposite(section);\n compo.setLayout(new GridLayout(2, false));\n // Create Label\n labelChapter = toolkit.createLabel(compo, \"Chapter organisation: \"); //$NON-NLS-1$\n // Create the text component\n String helpText = Messages.ImportRequirementWizardPageSelectFormat_FLAT_OR_HIERARCHICAL;\n chapterRecognizeComponent = new ComponentHelpRadioButton(new NotifyElement()\n {\n public void handleModelChange()\n {\n controller.setHierarchical(chapterRecognizeComponent.isHierarchical());\n controller.removeDocumentType();\n ImportRequirementWizardPageSelectFormat.this.handleModelChange();\n }\n }, compo, toolkit, SWT.NONE, helpText);\n chapterRecognizeComponent.setLayoutData(new GridData(SWT.RIGHT, SWT.CENTER, true, false, 1, 1));\n GridData data = new GridData(SWT.FILL, SWT.CENTER, true, false, 2, 1);\n compo.setLayoutData(data);\n // load pref\n chapterRecognizeComponent.setHierachical(chapterPref);\n\n }",
"public void loadingTable() {\n this.setRowCount(1, true);\r\n this.setVisibleRangeAndClearData(this.getVisibleRange(), true);\r\n }",
"public com.walgreens.rxit.ch.cda.StrucDocTbody insertNewTbody(int i)\n {\n synchronized (monitor())\n {\n check_orphaned();\n com.walgreens.rxit.ch.cda.StrucDocTbody target = null;\n target = (com.walgreens.rxit.ch.cda.StrucDocTbody)get_store().insert_element_user(TBODY$10, i);\n return target;\n }\n }",
"public void buildSectionOne(Document document) throws DocumentException, IOException, JSONException {\n PdfPTable titleTable = new PdfPTable ( 1 );\n titleTable.setWidthPercentage ( 100 );\n\n // Strategy\n titleTable.addCell ( ReportTemplate.getSectionHeaderCell ( \"Featured Strategy: \" + selectedStrategy ) );\n\n /**\n * @changed - Abhishek\n * @date - 11-02-2016\n * @desc - Applied format of $xxx,xxx\n */\n // Estimate Income\n titleTable.addCell ( ReportTemplate.getSectionSubHeaderCellWithBoxBorder ( \"Estimated Income: $\" + estimatedIncome ) );\n\n document.add ( titleTable );\n\n // Add Charts Now\n PdfPTable contentTable = new PdfPTable ( 2 );\n contentTable.setWidthPercentage ( 100 );\n\n // Create 3d Pie Chart Section\n PdfPCell pieChartSectionCell = ReportTemplate.getBoxBorderCell ();\n pieChartSectionCell.addElement ( getPieChartSection () );\n contentTable.addCell ( pieChartSectionCell );\n\n // Create Bar Chart Section\n PdfPCell barChartSectionCell = ReportTemplate.getBoxBorderCell ();\n barChartSectionCell.addElement ( getResourceManagementTable () );\n contentTable.addCell ( barChartSectionCell );\n document.add ( contentTable );\n //document.newPage();\n\n PdfPTable contentTable2 = new PdfPTable ( 2 );\n contentTable2.setWidthPercentage ( 100 );\n\n // Add Risk Management Section\n PdfPCell riskManagementSectionCell = ReportTemplate.getBoxBorderWithoutLeftPaddingCell ();\n riskManagementSectionCell.addElement ( getRiskManagementTable () );\n contentTable2.addCell ( riskManagementSectionCell );\n\n // Add Conservation Management Section\n\n Paragraph conservationParagraph = new Paragraph ();\n\n conservationParagraph.add ( new Chunk ( \"Conservation Management\\n\\n\", ReportTemplate.TIMESROMAN_12_BOLD ) );\n conservationParagraph.add ( new Chunk ( \"Conservation Goals\\n\", ReportTemplate.TIMESROMAN_10_NORMAL) );\n /**\n * @changed - Abhishek\n * @date - 12-12-2015\n * @updated - 11-01-2016\n */\n ReportDataPage1.ConservationPracticeBean conservationBean = reportDataPage1.getLandUnderConservationPractice ();\n\n /**\n * @changed - Abhishek\n * @updated - 11-01-2016\n */\n conservationParagraph.add ( new Chunk ( AgricultureStandardUtils.doubleWithOneDecimal( Double.parseDouble (conservationBean.getProfitFromConservation () ) ) + \" % Est. Income under conservation practices\\n\" +\n AgricultureStandardUtils.doubleWithOneDecimal( Double.parseDouble (conservationBean.getLandUnderConservation () ) ) + \" % Acreage under conservation practices\", ReportTemplate.TIMESROMAN_10_NORMAL ) );\n\n PdfPCell conservationManagementSectionCell = ReportTemplate.getBoxBorderWithoutLeftPaddingCell ();\n conservationManagementSectionCell.addElement ( conservationParagraph );\n contentTable2.addCell ( conservationManagementSectionCell );\n\n contentTable2.setKeepTogether(true);\n document.add ( contentTable2 );\n\n\n /*getIncomeUnderConservationPractice(farmInfoView);*/\n\n }",
"private void insertDataIntoTable(PdfPTable table,String text,int align,int colspan,Font font)\n {\n PdfPCell cell = new PdfPCell(new Phrase(text.trim(),font));\n cell.setHorizontalAlignment(align);\n cell.setColspan(colspan);\n if(text.trim().equals(\"\"))\n cell.setMinimumHeight(10f);\n table.addCell(cell);\n }",
"void addTabularData(TabularData data);",
"public void addTimeTable(TimeTable timetable) {\n\t\t\n\t}",
"TableSectionBuilder chOff(String chOff);",
"@Override\n\tpublic void addRow() {\n\t\tif(this.numCols == 0){\n\t\t\tthis.numCols++;\n\t\t}\n\t\tthis.numRows++;\n\t}",
"public abstract void buildTable(PdfPTable table);",
"private void selectTableRow () {\n int selectedRow = itemTable.getSelectedRow();\n if (selectedRow >= 0 && selectedRow < clubEventList.size()) {\n boolean modOK = modIfChanged();\n if (modOK) {\n position = clubEventList.positionUsingListIndex (selectedRow);\n positionAndDisplay();\n }\n }\n }",
"private GenericTableView populateSeriesSamplesTableView(String viewName) {\n\t GenericTable table = assembler.createTable();\n GenericTableView tableView = new GenericTableView (viewName, 5, table);\n tableView.setRowsSelectable();\n\t\ttableView.addCollection(0, 0);\n tableView.setCollectionBottons(1);\n tableView.setDisplayTotals(false);\n //tableView.setColAlignment(2, 0);\n tableView.setColAlignment(5, 0);\n tableView.setColAlignment(6, 0);\n \n return tableView;\n }",
"public void addRow(TableViewRow row) {\n this.rows.add(row);\n }",
"public void addSection(ConfigSection section)\n {\n Vector v = (Vector)sections.get(section.getName().toUpperCase());\n if (v == null)\n {\n // commented out by Navneet Gupta on 12/28/2000\n // System.out.println(\"creating new section\");\n\n // create a new one if one doesn't already exist\n v = new Vector();\n }\n v.addElement(section);\n\n // commented out by Navneet Gupta on 12/28/2000\n // System.out.println(\"adding \" + section.getName());\n\n sections.put(section.getName().toUpperCase(), v);\n }",
"public void addRow () {\n CSVRow row = CSVRow.createEmptyLine(nbOfColumns, this);\n addRow(row);\n }",
"private final void m75323a(Section section, SectionResponse sectionResponse) {\n Boolean bool = section.isFirst;\n C32569u.m150513a((Object) bool, C6969H.m41409d(\"G7A86D60EB63FA567EF1DB641E0F6D7\"));\n if (bool.booleanValue() && sectionResponse.extra.showChapterName) {\n List<Object> list = this.f53728f;\n Chapter chapter = section.chapter;\n C32569u.m150513a((Object) chapter, C6969H.m41409d(\"G7A86D60EB63FA567E5069158E6E0D1\"));\n list.add(chapter);\n }\n this.f53728f.add(section);\n }",
"public void addTable(String title, Object[] header) {\n\t\t\n\t\t// Create panel\n\t\tJPanel panel = new JPanel();\n\t\tpanel.setLayout(new BorderLayout());\n\t\t\n\t\t// Create and add text editor to panel\n\t\tConsoleTable table = new ConsoleTable(new Object[][]{}, header);\n\t\tJScrollPane scrollPane = new JScrollPane(table);\n\t\tpanel.add(scrollPane, BorderLayout.CENTER);\n\t\t\n\t\t// Add the tab\n\t\taddTab(title, null, scrollPane);\n\t\t\n\t\t// Store it in the map\n\t\tthis.tabPanelsMap.put(title, table);\n\t}",
"public void addTableGui() {\n\t\tDefaultTableModel mTableModel = new DefaultTableModel();\r\n\t\tmTable = new JTable(mTableModel);\r\n\r\n\t\tmTableModel.addColumn(\"MSSV\");\r\n\t\tmTableModel.addColumn(\"HoTen\");\r\n\t\tmTableModel.addColumn(\"GioiTinh\");\r\n\t\tmTableModel.addColumn(\"NTNS\");\r\n\t\tJScrollPane mJScrollPane = new JScrollPane(mTable);\r\n\t\tmJScrollPane.setPreferredSize(new Dimension(760, 310));\r\n\t\tc.fill = GridBagConstraints.HORIZONTAL;\r\n\t\tc.ipady = 40; //make this component tall\r\n\t\tc.weightx = 0.0;\r\n\t\tc.gridwidth = 3;\r\n\t\tc.gridx = 0;\r\n\t\tc.gridy = 1;\r\n\t\tpanel.add(mJScrollPane,c);\r\n\t}",
"T addAtHead(T t) {\n return header.addAtHead(t);\n }",
"public void actionPerformed(ActionEvent event){\n tableModel.addRow(blank);\r\n }",
"private void IsiTabelHeader(String text) {\n IsiTabelHeader = new TextView(getActivity());\n IsiTabelHeader.setText(text);\n IsiTabelHeader.setTextColor(getResources().getColor(R.color.white));\n IsiTabelHeader.setLayoutParams(new TableRow.LayoutParams(TableRow.LayoutParams.MATCH_PARENT, TableRow.LayoutParams.WRAP_CONTENT));\n IsiTabelHeader.setBackground(getResources().getDrawable(R.drawable.header_tabel));\n TR.addView(IsiTabelHeader);\n }",
"public abstract void append(int data, int row, int column);",
"public void createTable() {\n try {\n tableLayout = findViewById(R.id.tabla);\n tb = new TableDinamic(tableLayout, getApplicationContext(), \"cargarDetalle\", clc, cap_1, cap_2, cap_ct, txtidReg, txtId, txtBloque, txtVariedad);\n tableLayout.removeAllViews();\n tb.addHeader(header);\n tb.addData(cargarTabla());\n tb.backgroundHeader(\n Color.parseColor(\"#20C0FF\")\n );\n tb.backgroundData(\n Color.parseColor(\"#FFFFFF\"),\n Color.parseColor(\"#81F0EDED\")\n );\n } catch (Exception e) {\n Toast.makeText(this, \"Error de la table: \" + e.toString(), Toast.LENGTH_LONG).show();\n }\n }",
"public void disTable () {\n\t\t\t\tJScrollPane scrollPane = new JScrollPane(table);\n\t\t\t\tvalues = new Vector();\n\t\t\t\tvalues.add(\"20\"); values.add(\"20\"); values.add(\"20\"); values.add(\"20\"); values.add(\"20\");values.add(\"20\");values.add(new Boolean(false));\n\t\t\t\tmyModel.addRow(values ); // more practicle, vector can take only objects.\n\t\t myModel.addRow(data);\n\n\n\t\t\t\tgetContentPane().add(scrollPane, BorderLayout.CENTER);\n\n\t\t\t\t addWindowListener(new WindowAdapter() {\n\t\t\t\t\t\t\tpublic void windowClosing(WindowEvent e) {\n\t\t\t\t\t\t\t\tSystem.exit(0);\n\t\t\t\t\t\t\t}\n\t\t\t\t });\n\t}",
"protected abstract void addTables();",
"public void addSection(Class<? extends JsonSectionInput> aClass, JsonSectionInput section) {\n sections.put(aClass.getName(), section);\n }"
] |
[
"0.65154666",
"0.5975523",
"0.58083785",
"0.5681411",
"0.5611002",
"0.5549372",
"0.550457",
"0.53988",
"0.5247122",
"0.5232515",
"0.51702327",
"0.5091142",
"0.5056898",
"0.4989562",
"0.4974714",
"0.49708357",
"0.4966889",
"0.49651083",
"0.49291533",
"0.4902888",
"0.48966548",
"0.48853123",
"0.4882192",
"0.48706946",
"0.48627198",
"0.48603743",
"0.48601472",
"0.48563716",
"0.48542753",
"0.4850731",
"0.48480952",
"0.48465666",
"0.4842695",
"0.48382807",
"0.48381788",
"0.48346812",
"0.4832942",
"0.482732",
"0.4825911",
"0.48104092",
"0.47959387",
"0.47894955",
"0.4783624",
"0.47764504",
"0.47747588",
"0.47569868",
"0.4755026",
"0.4749535",
"0.47452012",
"0.47389337",
"0.47335553",
"0.47280225",
"0.47251284",
"0.4712669",
"0.47052908",
"0.47047",
"0.4701219",
"0.46918622",
"0.46769306",
"0.46747956",
"0.46616295",
"0.4661627",
"0.466129",
"0.46588427",
"0.46457383",
"0.46326536",
"0.4626893",
"0.4626483",
"0.46186534",
"0.46155512",
"0.46026027",
"0.45958674",
"0.45953652",
"0.45919904",
"0.45786476",
"0.4560712",
"0.45526892",
"0.4550044",
"0.45497915",
"0.45471185",
"0.45448452",
"0.4542205",
"0.45416325",
"0.45401767",
"0.4531322",
"0.45286366",
"0.45221525",
"0.45205888",
"0.45136374",
"0.4509747",
"0.45089576",
"0.45084548",
"0.4504922",
"0.45042586",
"0.45029742",
"0.44911942",
"0.44840473",
"0.44840425",
"0.44750285",
"0.44749188"
] |
0.6740743
|
0
|
Delete an existing row, optionally with animation
|
public native void deleteRow(int row, TableViewAnimation animation) /*-{
var jso = this.@com.emitrom.ti4j.core.client.ProxyObject::getJsObj()();
jso
.deleteRow(
row,
animation.@com.emitrom.ti4j.core.client.ProxyObject::getJsObj()());
}-*/;
|
{
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
}
|
[
"@Kroll.method\n\tpublic void deleteRow(Object rowObj, @Kroll.argument(optional = true) KrollDict animation)\n\t{\n\t\tif (rowObj instanceof Integer) {\n\t\t\tfinal int index = ((Integer) rowObj).intValue();\n\n\t\t\tdeleteRow(getRowByIndex(index), null);\n\t\t} else {\n\t\t\tfinal TableViewRowProxy row = processRow(rowObj);\n\n\t\t\tif (row == null) {\n\t\t\t\treturn;\n\t\t\t}\n\n\t\t\tfinal TiViewProxy parent = row.getParent();\n\n\t\t\tif (parent != null) {\n\t\t\t\tif (parent instanceof TableViewSectionProxy) {\n\t\t\t\t\tfinal TableViewSectionProxy section = (TableViewSectionProxy) parent;\n\n\t\t\t\t\t// Row is in section, modify section rows.\n\t\t\t\t\tsection.remove(row);\n\n\t\t\t\t\t// Notify TableView of update.\n\t\t\t\t\tupdate();\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}",
"@Override\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\tdelRow();\n\t\t\t}",
"@Override\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\tdelRow();\n\t\t\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 }",
"public native void deleteRow(int row) /*-{\n\t\tvar jso = this.@com.emitrom.ti4j.core.client.ProxyObject::getJsObj()();\n\t\tjso.deleteRow(row);\n }-*/;",
"public void actionPerformed(ActionEvent e) {\n model.deleteRow();\n }",
"public void removeRow(String rowName);",
"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 }",
"void removeRow(int row_index) throws IOException;",
"public void deleteRow(MyItem row) {\n\n\t\tif (MyItemAdapter.rows.contains(row)) {\n\t\t\tMyItemAdapter.rows.remove(row);\n\t\t}\n\n\t}",
"public void deleteCartRow() {\n CarComponent selectedRow = cartTable.getSelectionModel().getSelectedItem();\n cartTable.getItems().remove(selectedRow);\n componentsCart.remove(selectedRow);\n\n updateTotal();\n }",
"@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 }",
"public boolean deleteRow(int row) {\n try {\n resultSet.absolute(row + 1);\n resultSet.deleteRow();\n //tell table to redraw itself\n fireTableDataChanged();\n return true;\n } catch (SQLException se) {\n System.out.println(\"Delete row error \" + se);\n return false;\n }\n }",
"private void deleteButtonActionPerformed(java.awt.event.ActionEvent evt) {// GEN\n // -\n // FIRST\n // :\n // event_deleteButtonActionPerformed\n int rowIndex = headerTable.getSelectedRow();\n if (rowIndex > -1) {\n removeRow(rowIndex);\n }\n }",
"public void removeRowAt(int row)\r\n throws IllegalStateException {\r\n if(!(Integer.parseInt(((Vector)data.elementAt(row)).elementAt\r\n (numberOfcolumns).toString()) == IS_INSERTED)){\r\n ( (Vector) data.elementAt(row)).\r\n setElementAt(new Integer(IS_DELETED), numberOfcolumns);\r\n dataDeleted.add((Vector)data.elementAt(row));\r\n }\r\n data.removeElementAt(row);\r\n this.deletedStatus = true;\r\n }",
"public void deleteRow(int row) throws IndexOutOfBoundsException{\r\n data.remove(row);\r\n fireTableRowsDeleted(row,row);\r\n }",
"public static void removeRow(String fileName) {\n tableModel.removeRow(fileName);\n }",
"@FXML\n\tprivate void handleDeleteTaxi() {\n\t\tint selectedIndex = TaxiTable.getSelectionModel().getSelectedIndex();\n\t\tif (selectedIndex >= 0) {\n\t\t\tTaxiTable.getItems().remove(selectedIndex);\n\t\t} else {\n\t\t\t// Nothing selected.\n\t\t}\n\t}",
"void deleteRow(int rowPos)\n {\n System.out.println(\n \"@deleteRow rowPos: \" + rowPos + \", vs stackSize: \" + compositeRowStack.size());\n if(rowPos > 0) transferChildren(rowPos, rowPos - 1);\n if(rowPos < compositeRowStack.size())\n {\n compositeRowStack.remove(rowPos);\n }\n }",
"public void deleteRow(int row) {\n\t\tif (row == -1) return;\n\t\t\n\t\tdata.remove(row);\n\t\tfireTableRowsDeleted(row, row);\n\t}",
"public void toDeletIndex()\n {\n try\n { \n //DefaultTableModel model=(DefaultTableModel)jt.getModel(); \n //jt.getModel();\n int num=Integer.parseInt(JOptionPane.showInputDialog(rootPane,\"Enter the row number\")); \n jtModel.removeRow(num-1);\n JOptionPane.showMessageDialog(rootPane,\"Successfully deleted selected row number \" +num);\n }\n catch(NumberFormatException ex)\n {\n JOptionPane.showMessageDialog(rootPane,\"Enter integer not alphabet\");\n } \n catch(ArrayIndexOutOfBoundsException ex)\n {\n JOptionPane.showMessageDialog(rootPane,\"This row dosent exist\");\n }\n }",
"private void removeRow() {\n gridHeight--; \n for (EscapeBlock block : grid.get(gridHeight)) { // for each block from the last row\n block.disconnectAll();\n this.remove(block); // remove it from the UI\n }\n\n grid.remove(gridHeight); // remove the row\n }",
"@FXML\n private void setRemoveButton() {\n Coach selectedRow = coachesTable.getSelectionModel().getSelectedItem();\n try {\n Connection conn = DatabaseHandler.getInstance().getConnection();\n try (Statement st = conn.createStatement()) {\n st.execute(\"delete from szkolka.uzytkownik where id_u=\" + selectedRow.getId() + \";\");\n coachesTable.getItems().remove(coachesTable.getSelectionModel().getSelectedItem());\n removeButton.setDisable(true);\n }\n } catch (SQLException e) {\n e.printStackTrace();\n }\n }",
"public void deleteSelectionRowTable(boolean status) {\n tableList.deleteSelectionItem(status);\n }",
"@Override\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\tSystem.out.println(\"btnDelete\");\n\t\t\t\tint i = table.getSelectedRow();\n\t\t\t\tif (i >= 0) {\n\t\t\t\t\tSystem.out.println(\"row-Delete\" + i);\n\t\t\t\t\tSystem.out.println(\"row-Delete\" + textSuppD.getText());\n\t\t\t\t\tint suppID = Integer.parseInt(textSuppD.getText().trim());\n\n\t\t\t\t\tDatabase db = new Database();\n\t\t\t\t\tSuppliersDAO suppDAO = new SuppliersDAO(db);\n\t\t\t\t\tSuppliersModel suppModel = new SuppliersModel();\n\t\t\t\t\tsuppModel.setSuppliers_id(suppID);\n\t\t\t\t\tsuppDAO.Delete(suppModel);\n\t\t\t\t\tdb.commit();\n\t\t\t\t\tdb.close();\n\n\t\t\t\t\tmodel.removeRow(i);\n\t\t\t\t} else {\n\t\t\t\t}\n\t\t\t}",
"public void actionPerformed(ActionEvent e) {\n if(newTable.getRowCount() == 0){\n Toolkit.getDefaultToolkit().beep();\n return;\n }\n int index = table.getSelectedRow();\n int size = newTable.getRowCount();\n if(index > size || index < 0){\n table.setRowSelectionInterval(0,0);\n index = table.getSelectedRow();\n }\n newTable.removeRow(index);\n \n\n //Select an index.\n index--;\n if(index < 0){\n index++;\n }\n if(newTable.getRowCount() != 0){\n table.setRowSelectionInterval(index, index);\n }\n }",
"private void deleteRow(int selectedRow){\r\n BudgetSubAwardBean budgetSubAwardBean = (BudgetSubAwardBean)data.get(selectedRow);\r\n if(budgetSubAwardBean.getAcType() == null || budgetSubAwardBean.getAcType().equals(TypeConstants.UPDATE_RECORD)){\r\n budgetSubAwardBean.setAcType(TypeConstants.DELETE_RECORD);\r\n budgetSubAwardBean.setUpdateUser(userId);\r\n if(deletedData ==null) {\r\n deletedData = new ArrayList();\r\n }\r\n deletedData.add(budgetSubAwardBean);\r\n }\r\n data.remove(selectedRow);\r\n \r\n //If Last Row nothing to do\r\n //else Update Sub Award Number for rest of the Rows\r\n /*int size = data.size();\r\n if(selectedRow != size) {\r\n for(int index = selectedRow; index < size; index++) {\r\n budgetSubAwardBean = (BudgetSubAwardBean)data.get(index);\r\n budgetSubAwardBean.setSubAwardNumber(index + 1);\r\n if(budgetSubAwardBean.getAcType() == null) {\r\n budgetSubAwardBean.setAcType(TypeConstants.UPDATE_RECORD);\r\n }\r\n }//End For\r\n }//End If\r\n */\r\n \r\n subAwardBudgetTableModel.fireTableRowsDeleted(selectedRow, selectedRow);\r\n }",
"public void removeRow(int row) {\r\n\t\tdata.remove(row);\r\n\t}",
"public void removeRow(int ind) throws SQLException {\n/* 417 */ notSupported();\n/* */ }",
"private void deleteSelectedRows() {\n int[] rows = constantsTable.getSelectedRows();\n constantsTable.clearSelection();\n currentCellEditor.cancelCellEditing();\n for (int i = rows.length - 1; i >= 0; i--) {\n if (rows[i] > -1) {\n getTableModel().removeRow(rows[i]);\n }\n }\n }",
"public void deleteRow(Row _deleteThis){\r\n if(!validTable()){\r\n System.out.println(\"Error:Table:deleteRow: table invalid, nothing done\");\r\n return;\r\n }\r\n Set<String> keys = rows.keySet();\r\n //Searches for row to delete and then removes it\r\n for(String k : keys) {\r\n if(_deleteThis.getData() == rows.get(k).getData()){\r\n rows.remove(k);\r\n return;\r\n }\r\n }\r\n System.out.println(\"Error:Table:deleteRow: Unable to find passed row, no row deleted\");\r\n }",
"private void tampilkan() {\n int row = table.getRowCount();\n for(int a= 0; a<row;a++){\n model.removeRow(0);\n }\n \n \n }",
"private void delete(ByteBuffer rowKey,\n Clustering<?> clustering,\n Cell<?> cell,\n WriteContext ctx,\n long nowInSec)\n {\n DecoratedKey valueKey = getIndexKeyFor(getIndexedValue(rowKey,\n clustering,\n cell));\n doDelete(valueKey,\n buildIndexClustering(rowKey, clustering, cell),\n DeletionTime.build(cell.timestamp(), nowInSec),\n ctx);\n }",
"public DResult delete(byte[] row, long startId) throws IOException;",
"public boolean deleteItem(int index);",
"@Override\r\n\tpublic void removeRow(int row) {\r\n\t\tsuper.removeRow(row);\r\n\t\telenco = lista.getElenco();\r\n\t\tPersona removable = new Persona();\r\n\t\tremovable.setNome(elenco.elementAt(row).getNome());\r\n\t\tremovable.setCognome(elenco.elementAt(row).getCognome());\r\n\t\tremovable.setTelefono(elenco.elementAt(row).getTelefono());\r\n\t\tremovable.setIndirizzo(elenco.elementAt(row).getIndirizzo());\r\n\t\tremovable.setEta(elenco.elementAt(row).getEta());\r\n\t\ttry {\r\n\t\t\tlista.delete(removable, row);\r\n\t\t\t}\r\n\t\t\tcatch (ArrayIndexOutOfBoundsException aioe) {\r\n\t\t\t\tString message = AIOE_MESSAGE\r\n\t\t\t\t\t\t+row + \" on table \"\r\n\t\t\t\t\t\t+lista.getElenco().indexOf(removable)\r\n\t\t\t\t\t\t+ \" on Lista \";\r\n\t\t\t\tJOptionPane.showMessageDialog(null, message);\r\n\t\t\t}\r\n\t}",
"public String onDelete(final DataTableCRUDRow<R> row) {\n try {\n getModel().setRowClicked(row);\n if (!row.isNewRow()) {\n delete(row.getElement());\n } else {\n row.setReadonly(true);\n }\n row.setDeleted(true);\n } catch (final MessageLabelException e) {\n log.trace(e.getMessage(), e);\n getFacesMessages().message(e);\n }\n return \"\";\n }",
"@Override\n\t\t\t\tpublic void onClick(ClickEvent event) {\n\t\t\t\t\tint removeIndex = listpag.indexOf(rowb);\n\t\t\t\t\tlistpag.remove(removeIndex);\n\t\t\t\t\tgetView().getPaginaweb().removeRow(removeIndex + 1);\n\t\t\t\t}",
"public void deleteSelectedFile(int row) {\n\t\tArrayList<File> files = currConfig.getSelectedFiles();\n\t\tfiles.remove(row);\n\t}",
"@FXML\n private void rowSelected() {\n if (coachesTable.getSelectionModel().getSelectedItem() != null) {\n removeButton.setDisable(false);\n }\n }",
"public int deleteIndex(FeatureRow row) {\n return deleteIndex(row.getId());\n }",
"@Override\n\t\t\t\tpublic void onClick(ClickEvent event) {\n\t\t\t\t\tint removeIndex = listdir.indexOf(rowb);\n\t\t\t\t\tlistdir.remove(removeIndex);\n\t\t\t\t\tgetView().getDireccion().removeRow(removeIndex + 1);\n\t\t\t\t}",
"@Override\n\t\t\t\tpublic void onClick(ClickEvent event) {\n\t\t\t\t\tint removeIndex = listtel.indexOf(rowb);\n\t\t\t\t\tlisttel.remove(removeIndex);\n\t\t\t\t\tgetView().getTelefono().removeRow(removeIndex + 1);\n\t\t\t\t}",
"public void deleteButtonPushed() {\r\n ObservableList<Student> allStudents;\r\n Student selectedRow;\r\n allStudents = tableView.getItems();\r\n \r\n // This gives us the row that was selected\r\n selectedRow = tableView.getSelectionModel().getSelectedItems().get(0);\r\n \r\n\r\n try {\r\n covidMngrService.deleteStudent(selectedRow);\r\n \r\n // Remove the Student object from the table\r\n allStudents.remove(selectedRow);\r\n } catch (RemoteException ex) {\r\n Logger.getLogger(SecretaryStudentsTableCntrl.class.getName()).\r\n log(Level.SEVERE, null, ex);\r\n }\r\n }",
"@Override\n public void remove() throws IOException {\n int i = listEnterprisePanel.getTableListE().getSelectedRow(); // chọn hàng để xóa\n if (i >= 0) {\n String strID = listEnterprisePanel.getTableListE().getValueAt(i, 1).toString().trim(); // lấy ID\n Enterprise enterprise = enterpriseBN.getEnterpriseByID(strID); // Tìm kiếm Enterprise theo ID\n content.set(Collections.singleton(enterprise), null);\n enterpriseBN.deleteEnterprise(enterprise);\n model.removeRow(i);\n loadData();\n }\n\n }",
"public Feature removeRow(int row){\n if (debug) logger.info(\"feature added\");\n Feature f = fc.remove(row);\n fcLastEdits.clear();\n fcLastEdits.add(f);\n lastEditType = EDIT_REMOVE;\n fireTableRowsDeleted(row, row);\n return f;\n }",
"@FXML\r\n private void bRemCell() throws SQLException {\n int index = tableView.getSelectionModel().getSelectedIndex();\r\n if(index>=0)\r\n {\r\n calc calc = data.get(index);\r\n Alert alert = new Alert(Alert.AlertType.CONFIRMATION);\r\n alert.setTitle(\"Delete cell\");\r\n alert.setHeaderText(\"Start of Day: \" + String.valueOf(calc.getStartDay()) + \"\\n\" +\r\n \"End of Day: \" + String.valueOf(calc.getOverDay()) + \"\\n\" +\r\n \"Start of Receipt: \" + String.valueOf(calc.getStartOfReceipt()) + \"\\n\" +\r\n \"End of Receipt: \" + String.valueOf(calc.getEndOfReceipt()) + \"\\n\" +\r\n \"Sum of Receipt: \" + String.valueOf(calc.getSumReceipt()) + \"\\n\" +\r\n \"User: \" + String.valueOf(calc.getUser()) + \"\\n\" +\r\n \"Date: \" + String.valueOf(calc.getDate()) + \"\\n\" +\r\n \"Comment: \" + String.valueOf(calc.getComment()));\r\n alert.setContentText(\"Are you sure you want to delete cell with data?\");\r\n Optional<ButtonType> result = alert.showAndWait();\r\n if(result.get() == ButtonType.OK)\r\n {\r\n delete(String.valueOf(calc.getDate()));\r\n refresh();\r\n }\r\n else\r\n {\r\n refresh();\r\n }\r\n }else\r\n {\r\n Alert alert = new Alert(Alert.AlertType.ERROR);\r\n alert.setTitle(\"ERROR\");\r\n alert.setContentText(\"Nothing Selected!!!\");\r\n alert.showAndWait();\r\n }\r\n }",
"public void deleteRow(String row) {\n database.delete(ORDER_MASTER, ORDER_ID + \"=\" + row, null);\n }",
"private void deleteAlarm(Alarm affectedAlarm, int rowIndex) {\n\t\tAlarmController.INSTANCE.deleteAlarm(this, affectedAlarm.getId());\n \t\tadapter.remove(affectedAlarm);\n\n \t\tToast.makeText(this, \"Removed \" + affectedAlarm.toPrettyString(), Toast.LENGTH_LONG).show();\n \t}",
"public void delete(JTable tblUser)\n {\n int i = tblUser.getSelectedRow();\n \n if(i != -1)\n {\n usersDto = users[i];\n \n if(usersDto.getState() != 3)\n {\n if(JOptionPane.showConfirmDialog(null, \"¿Está seguro que desea eliminar el registro?\", \"Eliminar\", JOptionPane.YES_NO_OPTION) == JOptionPane.YES_OPTION)\n {\n try {\n usersDto.setState((short) 3);\n \n if(usersDao.update(usersDto.createPk(), usersDto)) {\n tableModel = (DefaultTableModel) tblUser.getModel();\n tableModel.setValueAt(\"*\", i, 6);\n }\n \n } catch (UsersDaoException exception) {}\n }\n \n } else { JOptionPane.showMessageDialog(null, \"El registro ya está eliminado\", \"ERROR\", JOptionPane.ERROR_MESSAGE); }\n \n } else { JOptionPane.showMessageDialog(null, \"Seleccione un registro a eliminar\", \"ERROR\", JOptionPane.ERROR_MESSAGE); }\n }",
"public void removeRow(T obj) {\r\n\t\t\r\n\t\tlogger.trace(\"Enter removeRow - T obj\");\r\n\t\t\r\n\t\tint row = data.indexOf(obj);\r\n\t\tif (row >= 0) {\r\n\t\t\tdata.remove(row);\r\n\t\t\tfireTableRowsDeleted(row, row);\r\n\t\t}\r\n\t\t\r\n\t\tlogger.trace(\"Exit removeRow - T obj\");\r\n\t}",
"public TrajectoryTableRow removeByIndex(int index){\r\n\t\treturn this.data.remove(index);\r\n\t}",
"@Override\n\t\t\t\tpublic void onClick(ClickEvent event) {\n\t\t\t\t\tint removeIndex = listema.indexOf(rowb);\n\t\t\t\t\tlistema.remove(removeIndex);\n\t\t\t\t\tgetView().getEmail().removeRow(removeIndex + 1);\n\t\t\t\t}",
"public void undoRemove() {\n // Makes the removal dialogue invisible.\n mRemovalDialogue.setAlpha(0.0f);\n mRemovalDialogue.setVisibility(GONE);\n\n // Animates back the favorite contact card.\n final ObjectAnimator fadeIn = ObjectAnimator.ofFloat(mFavoriteContactCard, \"alpha\", 1.f).\n setDuration(mAnimationDuration);\n final ObjectAnimator moveBack = ObjectAnimator.ofFloat(mFavoriteContactCard, \"translationX\",\n 0.f).setDuration(mAnimationDuration);\n\n final AnimatorSet animSet = new AnimatorSet();\n\n animSet.playTogether(fadeIn, moveBack);\n\n animSet.addListener(new AnimatorListenerAdapter() {\n @Override\n public void onAnimationStart(Animator animation) {\n mParentRow.setHasTransientState(true);\n }\n @Override\n public void onAnimationEnd(Animator animation) {\n if (mParentRow.getItemViewType() == ViewTypes.FREQUENT) {\n SwipeHelper.setSwipeable(mParentRow, true);\n } else {\n SwipeHelper.setSwipeable(PhoneFavoriteTileView.this, true);\n }\n mParentRow.setHasTransientState(false);\n }\n });\n animSet.start();\n // Signals the PhoneFavoritesTileAdapter to undo the potential delete.\n mParentRow.getTileAdapter().undoPotentialRemoveEntryIndex();\n }",
"@Override\n\tpublic boolean delete(Animations obj) {\n\t\treturn false;\n\t}",
"@FXML\n private void handleDeleteFilm() {\n int selectedIndex = filmTable.getSelectionModel().getSelectedIndex();\n if (selectedIndex >= 0) {\n \tfilmTable.getItems().remove(selectedIndex);\n \tsave();\n } else {\n // Nothing selected.\n Dialogs.create()\n .title(\"No Selection\")\n .masthead(\"No Person Selected\")\n .message(\"Please select a person in the table.\")\n .showWarning();\n }\n }",
"void onItemDelete(int position);",
"public void deleteRow(int position) {\n if (position < mExtraOffset || position >= getCount()) {\n return;\n }\n mCursor.moveToPosition(position- mExtraOffset);\n String url = mCursor.getString(Browser.HISTORY_PROJECTION_URL_INDEX);\n String title = mCursor.getString(Browser.HISTORY_PROJECTION_TITLE_INDEX);\n Bookmarks.removeFromBookmarks(null, mContentResolver, url, title);\n refreshList();\n }",
"@FXML\r\n public void deleteTreatmentButton(){\r\n int sIndex = treatmentTabletv.getSelectionModel().getSelectedIndex();\r\n String sID = treatmentData.get(sIndex).getIdProperty();\r\n\r\n String deleteTreatment = \"delete from treatment where treatmentID = ?\";\r\n try{\r\n ps = mysql.prepareStatement(deleteTreatment);\r\n ps.setString(1,sID);\r\n ps.executeUpdate();\r\n ps.close();\r\n ps = null;\r\n\r\n } catch (SQLException e) {\r\n e.printStackTrace();\r\n //maybe more in this exception\r\n }\r\n\r\n treatmentData.remove(sIndex);\r\n }",
"public void removeBtn(){\r\n\t\t\r\n\t\tWorkflowEntry entryToBeRemoved = (WorkflowEntry) tableView.getSelectionModel().getSelectedItem();\r\n\t\t\r\n\t\tdata.remove(entryToBeRemoved);\r\n\t\t\r\n\t}",
"public Builder removeRow(int index) {\n if (rowBuilder_ == null) {\n ensureRowIsMutable();\n row_.remove(index);\n onChanged();\n } else {\n rowBuilder_.remove(index);\n }\n return this;\n }",
"public Builder removeRow(int index) {\n if (rowBuilder_ == null) {\n ensureRowIsMutable();\n row_.remove(index);\n onChanged();\n } else {\n rowBuilder_.remove(index);\n }\n return this;\n }",
"public Builder removeRow(int index) {\n if (rowBuilder_ == null) {\n ensureRowIsMutable();\n row_.remove(index);\n onChanged();\n } else {\n rowBuilder_.remove(index);\n }\n return this;\n }",
"public Builder removeRow(int index) {\n if (rowBuilder_ == null) {\n ensureRowIsMutable();\n row_.remove(index);\n onChanged();\n } else {\n rowBuilder_.remove(index);\n }\n return this;\n }",
"public Builder removeRow(int index) {\n if (rowBuilder_ == null) {\n ensureRowIsMutable();\n row_.remove(index);\n onChanged();\n } else {\n rowBuilder_.remove(index);\n }\n return this;\n }",
"public Builder removeRow(int index) {\n if (rowBuilder_ == null) {\n ensureRowIsMutable();\n row_.remove(index);\n onChanged();\n } else {\n rowBuilder_.remove(index);\n }\n return this;\n }",
"public void removeRow(int row) {\r\n\t\tdataVector.removeElementAt(row);\r\n\t\tthis.dataObjects.removeElementAt(row);\r\n\r\n\t\t// Generate notification\r\n\t\tfireTableRowsDeleted(row, row);\r\n\t}",
"private void removeairlinerActionPerformed(java.awt.event.ActionEvent evt) {\n int row = airlinerTable.getSelectedRow();\n\n if(row<0) {\n JOptionPane.showMessageDialog(null, \"Please select a row from the table first\", \"Warning\", JOptionPane.WARNING_MESSAGE);\n return;\n }\n Airliner a = (Airliner)airlinerTable.getValueAt(row, 0);\n airlinerDirectory.removeAirliner(a);\n refreshTable();\n }",
"public void supprimerJoueur(ActionEvent e)\n\t{\n\tint index = tableJoueurs.getSelectedRow();\n\tindex = sorter.modelIndex(index);\n\t\tif (index != -1)\n\t\t{\n\t\t\t((JoueursTableModel)sorter.getTableModel()).removeJoueur(index);\n\t\t\t((JoueursTableModel)sorter.getTableModel()).fireTableDataChanged();\n\t\t}\n\t}",
"void removeRowsLock();",
"private void deleteItem(int position){\n deleteItem(dataset.get(position),position);\n }",
"public static void deleteRow(HTable table, String rowKey) throws Exception {\n\t\tDelete delete = new Delete(Bytes.toBytes(rowKey));\n\t\ttable.delete(delete);\n\t\tSystem.out.println(\"Delete row: \" + rowKey);\n\t}",
"public void deleteEntry(long row) {\n database.delete(ORDER_MASTER, ROW_ID + \"=\" + row, null);\n }",
"public void deleteRow() throws SQLException\n {\n m_rs.deleteRow();\n }",
"public void deleteRows(int[] rows) throws IndexOutOfBoundsException{\r\n if (rows.length > 0){\r\n LinkedList data_to_remove = new LinkedList();\r\n for (int i=0; i<rows.length; i++){\r\n data_to_remove.add(data.get(rows[i]));\r\n }\r\n for (int i=0; i<data_to_remove.size(); i++){\r\n data.remove(data_to_remove.get(i)); \r\n }\r\n this.fireTableRowsDeleted(rows[0], rows[rows.length -1]);\r\n }\r\n }",
"void delete (int index);",
"public abstract void rowsDeleted(int firstRow, int endRow);",
"@FXML\n\tpublic void handleExcluir(MouseEvent event) {\n\t\tif(colNome.getCellData(jtvIngredienteTable.getSelectionModel().getSelectedIndex()) != null){\n\t\t\tingredienteService = new IngredienteService();\n\t\t\tIngrediente ingrediente = jtvIngredienteTable.getSelectionModel().getSelectedItem();\n\t\t\tingredienteService.delete(ingrediente.getId());\n\t\t\tatualizarTable();\n\t\t}else{\n\t\t\tScreenUtils.janelaInformação(spDialog, Internationalization.getMessage(\"header_erro3\"), Internationalization.getMessage(\"item_nao_selecionado\"), Internationalization.getMessage(\"erro_button2\"));\n//\t\t\tScreenUtils.janelaInformação(spDialog, \"Ops\", \"Por favor, selecione um item.\", \"Sem problemas\");\n\t\t}\n\t}",
"public void delete()\n\t{\n\t\t_Status = DBRowStatus.Deleted;\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}",
"void deleteButton_actionPerformed(ActionEvent e) {\n doDelete();\n }",
"private void removeButtonActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_removeButtonActionPerformed\n\n AttlistTableModel tm = (AttlistTableModel) attrTable.getModel();\n \n int sel = attrTable.getSelectedRow();\n if (sel > -1) {\n tm.removeRow(sel);\n if (numRows() > 0) {\n if (sel <= numRows() - 1)\n attrTable.getSelectionModel().setSelectionInterval(sel,sel);\n else\n attrTable.getSelectionModel().setSelectionInterval(sel - 1, sel - 1);\n } else removeButton.setEnabled(false);\n }\n }",
"public void deleteSelectedAndRefresh()\n\t{\n\t\tDisplayThreeSQLHandler.changeRoom(\"CREATURE\", selectedCreature, -1);\n\t\t\n\t\tremoveElement(thingsInColumn.indexOf(selectedCreature));\n\t\t\n\t\tselectedCreature = thingsInColumn.get(itemsVisible[buttonLastPressed]);\n\t\t\n\t\tDisplayThree.getInstance().addBox.changeContents(\"CREATURE\", false);\n\t\t;\n\t\t\n\t\tthis.updateButtons();\n\t}",
"public native void insertRowAfter(int index, TableViewRow row, TableViewAnimation animation) /*-{\n\t\tvar jso = this.@com.emitrom.ti4j.core.client.ProxyObject::getJsObj()();\n\t\tjso\n\t\t\t\t.insertRowAfter(\n\t\t\t\t\t\tindex,\n\t\t\t\t\t\trow.@com.emitrom.ti4j.core.client.ProxyObject::getJsObj()(),\n\t\t\t\t\t\tanimation.@com.emitrom.ti4j.core.client.ProxyObject::getJsObj()());\n }-*/;",
"@FXML\r\n private void Delete (ActionEvent event){\r\n \r\n g.clearRect(5, 5, 350, 250);\r\n \r\n }",
"private void createRowForDeleteButton(Composite compo)\n {\n buttonDelete = toolkit.createButton(section, \"Remove\", SWT.PUSH); //$NON-NLS-1$\n buttonGridData(buttonDelete, SWT.BOTTOM);\n buttonDelete.setEnabled(false);\n buttonDelete.addSelectionListener(new SelectionListener()\n {\n public void widgetDefaultSelected(SelectionEvent e)\n {\n }\n\n public void widgetSelected(SelectionEvent e)\n {\n tree.getChildren().remove(selectedRule);\n listFormat.refresh();\n buttonDelete.setEnabled(false);\n updateWizard();\n controller.removeDocumentType();\n }\n });\n }",
"public void Delete(View v) {\r\n CheckBox MenuCode;\r\n\r\n for (int iRow = 0; iRow < tblOrderItems.getChildCount(); iRow++) {\r\n\r\n TableRow Row = (TableRow) tblOrderItems.getChildAt(iRow);\r\n\r\n if (Row.getChildAt(0) != null) {\r\n\r\n MenuCode = (CheckBox) Row.getChildAt(0);\r\n\r\n if (MenuCode.isChecked()) {\r\n\r\n // Remove all the view present in the row.\r\n Row.removeAllViews();\r\n\r\n // Remove the row\r\n tblOrderItems.removeView(Row);\r\n\r\n // Exit from the loop\r\n // break;\r\n }\r\n } else {\r\n continue;\r\n }\r\n\r\n }\r\n\r\n CalculateTotalAmount();\r\n }",
"private void delete() {\n AltDatabase.getInstance().getAlts().remove(getCurrentAsEditable());\n if (selectedAccountIndex > 0)\n selectedAccountIndex--;\n updateQueried();\n updateButtons();\n }",
"private void delete(ByteBuffer rowKey,\n Clustering<?> clustering,\n DeletionTime deletion,\n WriteContext ctx)\n {\n DecoratedKey valueKey = getIndexKeyFor(getIndexedValue(rowKey,\n clustering,\n null));\n doDelete(valueKey,\n buildIndexClustering(rowKey, clustering, null),\n deletion,\n ctx);\n }",
"@Override\n public void handle(ActionEvent event) {\n try {\n clickedRow.setFeld(feld.get(ii));\n clickedRow.setStatus(2);\n CheckeSpielsuche();\n } catch (Exception e) {\n e.printStackTrace();\n // auswahlklasse.WarnungBenachrichtigung(\"Fehler\",\"Nicht alle Spieler Verfügbar\");\n\n }\n\n /*Image image = new Image(\"/sample/images/BadmintonfeldBesetzt.jpg\");\n feld.get(ii).setImage(image);*/\n\n /* auswahlklasse.getAktuelleTurnierAuswahl().getObs_ausstehendeSpiele().remove(clickedRow);\n auswahlklasse.getAktuelleTurnierAuswahl().getObs_aktiveSpiele().add(clickedRow);*/\n }",
"private void jbtn_deleteActionPerformed(ActionEvent evt) {\n\t\tDefaultTableModel RecordTable=(DefaultTableModel)jTable1.getModel();\n\t\tint Selectedrow=jTable1.getSelectedRow();\n\t\t\n\t\ttry\n\t\t{\n\t\t\tid=RecordTable.getValueAt(Selectedrow,0).toString();\n\t\t\tdeleteItem=JOptionPane.showConfirmDialog(this,\"Confirm if you want to delete the record\",\"Warning\",JOptionPane.YES_NO_OPTION);\n\t\t\t\n\t\t\tif(deleteItem==JOptionPane.YES_OPTION)\n\t\t\t{\n\t\t\t\tconn cc=new conn();\n\t\t\t\tpst=cc.c.prepareStatement(\"delete from medicine where medicine_name=?\");\n\t\t\t pst.setString(1,id);\n\t\t\t\tpst.executeUpdate();\n\t\t\t\tJOptionPane.showMessageDialog(this,\"Record Updated\");\n\t\t\t\tupDateDB();\n\t\t\t\ttxtblank();\n\t\t\t\t\n\t\t\t\t\n\t\t\t\t\n\t\t\t}\n\t\t}\n\t\tcatch (Exception e) {\n\t\t\t// TODO: handle exception\n\t\t}\n\t\t\n\t}",
"@Override\n\t\t\t\t\tpublic void onClick(ClickEvent click) {\n\t\t\t\t\t\tcom.google.gwt.user.client.ui.HTMLTable.Cell cell = tripleTable.getCellForEvent(event);\n\t\t\t\t\t\tint cellIndex = cell.getCellIndex();\n\t\t\t\t\t\tint rowIndex = cell.getRowIndex();\n\t\t\t\t\t\tlogger.log(Level.SEVERE, \"cell:\" + cellIndex);\n\t\t\t\t\t\tif (cellIndex == 3) {\n\t\t\t\t\t\t\ttripleTable.removeRow(rowIndex);\n\t\t\t\t\t\t}\n\t\t\t\t\t\trowIndex = tripleTable.getRowCount();\n\n\t\t\t\t\t\ttripleTable.setWidget(rowIndex - 1, 5, save);\n\t\t\t\t\t}",
"private void delete_btnActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_delete_btnActionPerformed\n // pull current table model\n DefaultTableModel model = (DefaultTableModel) remindersTable.getModel();\n if (remindersTable.getSelectedRow() == -1) {\n if (remindersTable.getRowCount() == 0) {\n dm.messageEmptyTable();\n } else {\n dm.messageSelectLine();\n }\n } else {\n int input = JOptionPane.showConfirmDialog(frame, \"Do you want to Delete!\");\n // 0 = yes, 1 = no, 2 = cancel\n if (input == 0) {\n model.removeRow(remindersTable.getSelectedRow());\n dm.messageReminderDeleted();// user message;\n saveDataToFile();// Save changes to file\n getSum(); // Update projected balance\n } else {\n // delete canceled\n }\n }\n }",
"public String deleteTimesheetRow(TimesheetRow thisRow) {\n\t\tservice.removeTimesheetRow(thisRow);\n\t\ttimesheetRowList.remove(thisRow);\n\t\treturn \"\";\n\t}",
"public native void deselectRow(int row) /*-{\n\t\tvar jso = this.@com.emitrom.ti4j.core.client.ProxyObject::getJsObj()();\n\t\tjso.deselectRow(row);\n }-*/;",
"public void deleteRow(int row){\n\t\tfor(int j = row; j > 0; j--)\n\t\t\tfor(int i = 0; i < well.length; i++)\n\t\t\t\twell[i][j] = well[i][j-1];\n\t}",
"public void deleteRow(int row)\n throws JPARSECException {\n \tif (row >= m || row < 0)\n \t\tthrow new JPARSECException(\"invalid row.\");\n double newData[][] = new double[m-1][n];\n\n \tint iindex = -1;\n for (int i=0; i<m; i++)\n {\n \tif (i != row) {\n \t\tiindex ++;\n\t for (int j=0; j<n; j++)\n\t {\n\t \tnewData[iindex][j] = this.data[i][j];\n\t }\n \t}\n }\n Matrix m = new Matrix(newData);\n this.m = m.m;\n this.data = m.data;\n }",
"public void removeRowAt(int index) {\n ((DefaultTableModel) getModel()).removeRow(index);\n }",
"@Override\r\n\t\t\t\tpublic void actionPerformed(ActionEvent arg0) {\n\t\t\t\t\tremoveRowsIsSelected();\r\n\t\t\t\t\told_Num_Total=0;\r\n\t\t\t\t\tdeleteJButton.setEnabled(false);\r\n\t\t\t\t}",
"public boolean delete(long rowId) {\n\t\treturn db.delete(tableName, fields[0] + \" = \" + String.valueOf(rowId), null) > 0;\t\t\n\t}"
] |
[
"0.73066354",
"0.69291556",
"0.69291556",
"0.6883492",
"0.67462885",
"0.6741238",
"0.6661538",
"0.6605692",
"0.65403765",
"0.65343755",
"0.6527556",
"0.64918983",
"0.6430083",
"0.63414705",
"0.633538",
"0.63066244",
"0.6266151",
"0.62397885",
"0.62373847",
"0.61557376",
"0.61543643",
"0.61331296",
"0.6123766",
"0.6122377",
"0.61188936",
"0.61142206",
"0.6108984",
"0.6089388",
"0.60596377",
"0.605624",
"0.60543287",
"0.6053594",
"0.6039377",
"0.603195",
"0.60305375",
"0.60164857",
"0.5993416",
"0.59865856",
"0.59774554",
"0.59721315",
"0.5953502",
"0.589549",
"0.5890543",
"0.5887885",
"0.588058",
"0.5864737",
"0.58306074",
"0.582846",
"0.5825296",
"0.580876",
"0.5800915",
"0.5800525",
"0.57939965",
"0.5788418",
"0.5778374",
"0.57571864",
"0.57498765",
"0.5748129",
"0.57342345",
"0.5729566",
"0.57260275",
"0.57260275",
"0.57260275",
"0.57260275",
"0.57260275",
"0.57260275",
"0.57170165",
"0.57078487",
"0.56916666",
"0.5689961",
"0.56826097",
"0.56546223",
"0.5650018",
"0.5649512",
"0.5648518",
"0.5642896",
"0.5642737",
"0.56406647",
"0.5639812",
"0.56377906",
"0.5636523",
"0.5631408",
"0.5613008",
"0.56101716",
"0.5610094",
"0.56048536",
"0.56006217",
"0.5593445",
"0.55891895",
"0.55789024",
"0.5578349",
"0.5572785",
"0.5572158",
"0.5563398",
"0.5559476",
"0.5556871",
"0.55483735",
"0.5528809",
"0.55269396",
"0.5526367"
] |
0.7646308
|
0
|
Delete an existing row, optionally with animation
|
public native void deleteRow(int row) /*-{
var jso = this.@com.emitrom.ti4j.core.client.ProxyObject::getJsObj()();
jso.deleteRow(row);
}-*/;
|
{
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
}
|
[
"public native void deleteRow(int row, TableViewAnimation animation) /*-{\n\t\tvar jso = this.@com.emitrom.ti4j.core.client.ProxyObject::getJsObj()();\n\t\tjso\n\t\t\t\t.deleteRow(\n\t\t\t\t\t\trow,\n\t\t\t\t\t\tanimation.@com.emitrom.ti4j.core.client.ProxyObject::getJsObj()());\n }-*/;",
"@Kroll.method\n\tpublic void deleteRow(Object rowObj, @Kroll.argument(optional = true) KrollDict animation)\n\t{\n\t\tif (rowObj instanceof Integer) {\n\t\t\tfinal int index = ((Integer) rowObj).intValue();\n\n\t\t\tdeleteRow(getRowByIndex(index), null);\n\t\t} else {\n\t\t\tfinal TableViewRowProxy row = processRow(rowObj);\n\n\t\t\tif (row == null) {\n\t\t\t\treturn;\n\t\t\t}\n\n\t\t\tfinal TiViewProxy parent = row.getParent();\n\n\t\t\tif (parent != null) {\n\t\t\t\tif (parent instanceof TableViewSectionProxy) {\n\t\t\t\t\tfinal TableViewSectionProxy section = (TableViewSectionProxy) parent;\n\n\t\t\t\t\t// Row is in section, modify section rows.\n\t\t\t\t\tsection.remove(row);\n\n\t\t\t\t\t// Notify TableView of update.\n\t\t\t\t\tupdate();\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}",
"@Override\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\tdelRow();\n\t\t\t}",
"@Override\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\tdelRow();\n\t\t\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 }",
"public void actionPerformed(ActionEvent e) {\n model.deleteRow();\n }",
"public void removeRow(String rowName);",
"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 }",
"void removeRow(int row_index) throws IOException;",
"public void deleteRow(MyItem row) {\n\n\t\tif (MyItemAdapter.rows.contains(row)) {\n\t\t\tMyItemAdapter.rows.remove(row);\n\t\t}\n\n\t}",
"public void deleteCartRow() {\n CarComponent selectedRow = cartTable.getSelectionModel().getSelectedItem();\n cartTable.getItems().remove(selectedRow);\n componentsCart.remove(selectedRow);\n\n updateTotal();\n }",
"@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 }",
"public boolean deleteRow(int row) {\n try {\n resultSet.absolute(row + 1);\n resultSet.deleteRow();\n //tell table to redraw itself\n fireTableDataChanged();\n return true;\n } catch (SQLException se) {\n System.out.println(\"Delete row error \" + se);\n return false;\n }\n }",
"private void deleteButtonActionPerformed(java.awt.event.ActionEvent evt) {// GEN\n // -\n // FIRST\n // :\n // event_deleteButtonActionPerformed\n int rowIndex = headerTable.getSelectedRow();\n if (rowIndex > -1) {\n removeRow(rowIndex);\n }\n }",
"public void removeRowAt(int row)\r\n throws IllegalStateException {\r\n if(!(Integer.parseInt(((Vector)data.elementAt(row)).elementAt\r\n (numberOfcolumns).toString()) == IS_INSERTED)){\r\n ( (Vector) data.elementAt(row)).\r\n setElementAt(new Integer(IS_DELETED), numberOfcolumns);\r\n dataDeleted.add((Vector)data.elementAt(row));\r\n }\r\n data.removeElementAt(row);\r\n this.deletedStatus = true;\r\n }",
"public void deleteRow(int row) throws IndexOutOfBoundsException{\r\n data.remove(row);\r\n fireTableRowsDeleted(row,row);\r\n }",
"public static void removeRow(String fileName) {\n tableModel.removeRow(fileName);\n }",
"@FXML\n\tprivate void handleDeleteTaxi() {\n\t\tint selectedIndex = TaxiTable.getSelectionModel().getSelectedIndex();\n\t\tif (selectedIndex >= 0) {\n\t\t\tTaxiTable.getItems().remove(selectedIndex);\n\t\t} else {\n\t\t\t// Nothing selected.\n\t\t}\n\t}",
"void deleteRow(int rowPos)\n {\n System.out.println(\n \"@deleteRow rowPos: \" + rowPos + \", vs stackSize: \" + compositeRowStack.size());\n if(rowPos > 0) transferChildren(rowPos, rowPos - 1);\n if(rowPos < compositeRowStack.size())\n {\n compositeRowStack.remove(rowPos);\n }\n }",
"public void deleteRow(int row) {\n\t\tif (row == -1) return;\n\t\t\n\t\tdata.remove(row);\n\t\tfireTableRowsDeleted(row, row);\n\t}",
"public void toDeletIndex()\n {\n try\n { \n //DefaultTableModel model=(DefaultTableModel)jt.getModel(); \n //jt.getModel();\n int num=Integer.parseInt(JOptionPane.showInputDialog(rootPane,\"Enter the row number\")); \n jtModel.removeRow(num-1);\n JOptionPane.showMessageDialog(rootPane,\"Successfully deleted selected row number \" +num);\n }\n catch(NumberFormatException ex)\n {\n JOptionPane.showMessageDialog(rootPane,\"Enter integer not alphabet\");\n } \n catch(ArrayIndexOutOfBoundsException ex)\n {\n JOptionPane.showMessageDialog(rootPane,\"This row dosent exist\");\n }\n }",
"private void removeRow() {\n gridHeight--; \n for (EscapeBlock block : grid.get(gridHeight)) { // for each block from the last row\n block.disconnectAll();\n this.remove(block); // remove it from the UI\n }\n\n grid.remove(gridHeight); // remove the row\n }",
"@FXML\n private void setRemoveButton() {\n Coach selectedRow = coachesTable.getSelectionModel().getSelectedItem();\n try {\n Connection conn = DatabaseHandler.getInstance().getConnection();\n try (Statement st = conn.createStatement()) {\n st.execute(\"delete from szkolka.uzytkownik where id_u=\" + selectedRow.getId() + \";\");\n coachesTable.getItems().remove(coachesTable.getSelectionModel().getSelectedItem());\n removeButton.setDisable(true);\n }\n } catch (SQLException e) {\n e.printStackTrace();\n }\n }",
"public void deleteSelectionRowTable(boolean status) {\n tableList.deleteSelectionItem(status);\n }",
"@Override\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\tSystem.out.println(\"btnDelete\");\n\t\t\t\tint i = table.getSelectedRow();\n\t\t\t\tif (i >= 0) {\n\t\t\t\t\tSystem.out.println(\"row-Delete\" + i);\n\t\t\t\t\tSystem.out.println(\"row-Delete\" + textSuppD.getText());\n\t\t\t\t\tint suppID = Integer.parseInt(textSuppD.getText().trim());\n\n\t\t\t\t\tDatabase db = new Database();\n\t\t\t\t\tSuppliersDAO suppDAO = new SuppliersDAO(db);\n\t\t\t\t\tSuppliersModel suppModel = new SuppliersModel();\n\t\t\t\t\tsuppModel.setSuppliers_id(suppID);\n\t\t\t\t\tsuppDAO.Delete(suppModel);\n\t\t\t\t\tdb.commit();\n\t\t\t\t\tdb.close();\n\n\t\t\t\t\tmodel.removeRow(i);\n\t\t\t\t} else {\n\t\t\t\t}\n\t\t\t}",
"public void actionPerformed(ActionEvent e) {\n if(newTable.getRowCount() == 0){\n Toolkit.getDefaultToolkit().beep();\n return;\n }\n int index = table.getSelectedRow();\n int size = newTable.getRowCount();\n if(index > size || index < 0){\n table.setRowSelectionInterval(0,0);\n index = table.getSelectedRow();\n }\n newTable.removeRow(index);\n \n\n //Select an index.\n index--;\n if(index < 0){\n index++;\n }\n if(newTable.getRowCount() != 0){\n table.setRowSelectionInterval(index, index);\n }\n }",
"private void deleteRow(int selectedRow){\r\n BudgetSubAwardBean budgetSubAwardBean = (BudgetSubAwardBean)data.get(selectedRow);\r\n if(budgetSubAwardBean.getAcType() == null || budgetSubAwardBean.getAcType().equals(TypeConstants.UPDATE_RECORD)){\r\n budgetSubAwardBean.setAcType(TypeConstants.DELETE_RECORD);\r\n budgetSubAwardBean.setUpdateUser(userId);\r\n if(deletedData ==null) {\r\n deletedData = new ArrayList();\r\n }\r\n deletedData.add(budgetSubAwardBean);\r\n }\r\n data.remove(selectedRow);\r\n \r\n //If Last Row nothing to do\r\n //else Update Sub Award Number for rest of the Rows\r\n /*int size = data.size();\r\n if(selectedRow != size) {\r\n for(int index = selectedRow; index < size; index++) {\r\n budgetSubAwardBean = (BudgetSubAwardBean)data.get(index);\r\n budgetSubAwardBean.setSubAwardNumber(index + 1);\r\n if(budgetSubAwardBean.getAcType() == null) {\r\n budgetSubAwardBean.setAcType(TypeConstants.UPDATE_RECORD);\r\n }\r\n }//End For\r\n }//End If\r\n */\r\n \r\n subAwardBudgetTableModel.fireTableRowsDeleted(selectedRow, selectedRow);\r\n }",
"public void removeRow(int row) {\r\n\t\tdata.remove(row);\r\n\t}",
"public void removeRow(int ind) throws SQLException {\n/* 417 */ notSupported();\n/* */ }",
"private void deleteSelectedRows() {\n int[] rows = constantsTable.getSelectedRows();\n constantsTable.clearSelection();\n currentCellEditor.cancelCellEditing();\n for (int i = rows.length - 1; i >= 0; i--) {\n if (rows[i] > -1) {\n getTableModel().removeRow(rows[i]);\n }\n }\n }",
"public void deleteRow(Row _deleteThis){\r\n if(!validTable()){\r\n System.out.println(\"Error:Table:deleteRow: table invalid, nothing done\");\r\n return;\r\n }\r\n Set<String> keys = rows.keySet();\r\n //Searches for row to delete and then removes it\r\n for(String k : keys) {\r\n if(_deleteThis.getData() == rows.get(k).getData()){\r\n rows.remove(k);\r\n return;\r\n }\r\n }\r\n System.out.println(\"Error:Table:deleteRow: Unable to find passed row, no row deleted\");\r\n }",
"private void tampilkan() {\n int row = table.getRowCount();\n for(int a= 0; a<row;a++){\n model.removeRow(0);\n }\n \n \n }",
"private void delete(ByteBuffer rowKey,\n Clustering<?> clustering,\n Cell<?> cell,\n WriteContext ctx,\n long nowInSec)\n {\n DecoratedKey valueKey = getIndexKeyFor(getIndexedValue(rowKey,\n clustering,\n cell));\n doDelete(valueKey,\n buildIndexClustering(rowKey, clustering, cell),\n DeletionTime.build(cell.timestamp(), nowInSec),\n ctx);\n }",
"public DResult delete(byte[] row, long startId) throws IOException;",
"public boolean deleteItem(int index);",
"@Override\r\n\tpublic void removeRow(int row) {\r\n\t\tsuper.removeRow(row);\r\n\t\telenco = lista.getElenco();\r\n\t\tPersona removable = new Persona();\r\n\t\tremovable.setNome(elenco.elementAt(row).getNome());\r\n\t\tremovable.setCognome(elenco.elementAt(row).getCognome());\r\n\t\tremovable.setTelefono(elenco.elementAt(row).getTelefono());\r\n\t\tremovable.setIndirizzo(elenco.elementAt(row).getIndirizzo());\r\n\t\tremovable.setEta(elenco.elementAt(row).getEta());\r\n\t\ttry {\r\n\t\t\tlista.delete(removable, row);\r\n\t\t\t}\r\n\t\t\tcatch (ArrayIndexOutOfBoundsException aioe) {\r\n\t\t\t\tString message = AIOE_MESSAGE\r\n\t\t\t\t\t\t+row + \" on table \"\r\n\t\t\t\t\t\t+lista.getElenco().indexOf(removable)\r\n\t\t\t\t\t\t+ \" on Lista \";\r\n\t\t\t\tJOptionPane.showMessageDialog(null, message);\r\n\t\t\t}\r\n\t}",
"public String onDelete(final DataTableCRUDRow<R> row) {\n try {\n getModel().setRowClicked(row);\n if (!row.isNewRow()) {\n delete(row.getElement());\n } else {\n row.setReadonly(true);\n }\n row.setDeleted(true);\n } catch (final MessageLabelException e) {\n log.trace(e.getMessage(), e);\n getFacesMessages().message(e);\n }\n return \"\";\n }",
"@Override\n\t\t\t\tpublic void onClick(ClickEvent event) {\n\t\t\t\t\tint removeIndex = listpag.indexOf(rowb);\n\t\t\t\t\tlistpag.remove(removeIndex);\n\t\t\t\t\tgetView().getPaginaweb().removeRow(removeIndex + 1);\n\t\t\t\t}",
"public void deleteSelectedFile(int row) {\n\t\tArrayList<File> files = currConfig.getSelectedFiles();\n\t\tfiles.remove(row);\n\t}",
"@FXML\n private void rowSelected() {\n if (coachesTable.getSelectionModel().getSelectedItem() != null) {\n removeButton.setDisable(false);\n }\n }",
"public int deleteIndex(FeatureRow row) {\n return deleteIndex(row.getId());\n }",
"@Override\n\t\t\t\tpublic void onClick(ClickEvent event) {\n\t\t\t\t\tint removeIndex = listdir.indexOf(rowb);\n\t\t\t\t\tlistdir.remove(removeIndex);\n\t\t\t\t\tgetView().getDireccion().removeRow(removeIndex + 1);\n\t\t\t\t}",
"@Override\n\t\t\t\tpublic void onClick(ClickEvent event) {\n\t\t\t\t\tint removeIndex = listtel.indexOf(rowb);\n\t\t\t\t\tlisttel.remove(removeIndex);\n\t\t\t\t\tgetView().getTelefono().removeRow(removeIndex + 1);\n\t\t\t\t}",
"public void deleteButtonPushed() {\r\n ObservableList<Student> allStudents;\r\n Student selectedRow;\r\n allStudents = tableView.getItems();\r\n \r\n // This gives us the row that was selected\r\n selectedRow = tableView.getSelectionModel().getSelectedItems().get(0);\r\n \r\n\r\n try {\r\n covidMngrService.deleteStudent(selectedRow);\r\n \r\n // Remove the Student object from the table\r\n allStudents.remove(selectedRow);\r\n } catch (RemoteException ex) {\r\n Logger.getLogger(SecretaryStudentsTableCntrl.class.getName()).\r\n log(Level.SEVERE, null, ex);\r\n }\r\n }",
"@Override\n public void remove() throws IOException {\n int i = listEnterprisePanel.getTableListE().getSelectedRow(); // chọn hàng để xóa\n if (i >= 0) {\n String strID = listEnterprisePanel.getTableListE().getValueAt(i, 1).toString().trim(); // lấy ID\n Enterprise enterprise = enterpriseBN.getEnterpriseByID(strID); // Tìm kiếm Enterprise theo ID\n content.set(Collections.singleton(enterprise), null);\n enterpriseBN.deleteEnterprise(enterprise);\n model.removeRow(i);\n loadData();\n }\n\n }",
"public Feature removeRow(int row){\n if (debug) logger.info(\"feature added\");\n Feature f = fc.remove(row);\n fcLastEdits.clear();\n fcLastEdits.add(f);\n lastEditType = EDIT_REMOVE;\n fireTableRowsDeleted(row, row);\n return f;\n }",
"@FXML\r\n private void bRemCell() throws SQLException {\n int index = tableView.getSelectionModel().getSelectedIndex();\r\n if(index>=0)\r\n {\r\n calc calc = data.get(index);\r\n Alert alert = new Alert(Alert.AlertType.CONFIRMATION);\r\n alert.setTitle(\"Delete cell\");\r\n alert.setHeaderText(\"Start of Day: \" + String.valueOf(calc.getStartDay()) + \"\\n\" +\r\n \"End of Day: \" + String.valueOf(calc.getOverDay()) + \"\\n\" +\r\n \"Start of Receipt: \" + String.valueOf(calc.getStartOfReceipt()) + \"\\n\" +\r\n \"End of Receipt: \" + String.valueOf(calc.getEndOfReceipt()) + \"\\n\" +\r\n \"Sum of Receipt: \" + String.valueOf(calc.getSumReceipt()) + \"\\n\" +\r\n \"User: \" + String.valueOf(calc.getUser()) + \"\\n\" +\r\n \"Date: \" + String.valueOf(calc.getDate()) + \"\\n\" +\r\n \"Comment: \" + String.valueOf(calc.getComment()));\r\n alert.setContentText(\"Are you sure you want to delete cell with data?\");\r\n Optional<ButtonType> result = alert.showAndWait();\r\n if(result.get() == ButtonType.OK)\r\n {\r\n delete(String.valueOf(calc.getDate()));\r\n refresh();\r\n }\r\n else\r\n {\r\n refresh();\r\n }\r\n }else\r\n {\r\n Alert alert = new Alert(Alert.AlertType.ERROR);\r\n alert.setTitle(\"ERROR\");\r\n alert.setContentText(\"Nothing Selected!!!\");\r\n alert.showAndWait();\r\n }\r\n }",
"public void deleteRow(String row) {\n database.delete(ORDER_MASTER, ORDER_ID + \"=\" + row, null);\n }",
"private void deleteAlarm(Alarm affectedAlarm, int rowIndex) {\n\t\tAlarmController.INSTANCE.deleteAlarm(this, affectedAlarm.getId());\n \t\tadapter.remove(affectedAlarm);\n\n \t\tToast.makeText(this, \"Removed \" + affectedAlarm.toPrettyString(), Toast.LENGTH_LONG).show();\n \t}",
"public void delete(JTable tblUser)\n {\n int i = tblUser.getSelectedRow();\n \n if(i != -1)\n {\n usersDto = users[i];\n \n if(usersDto.getState() != 3)\n {\n if(JOptionPane.showConfirmDialog(null, \"¿Está seguro que desea eliminar el registro?\", \"Eliminar\", JOptionPane.YES_NO_OPTION) == JOptionPane.YES_OPTION)\n {\n try {\n usersDto.setState((short) 3);\n \n if(usersDao.update(usersDto.createPk(), usersDto)) {\n tableModel = (DefaultTableModel) tblUser.getModel();\n tableModel.setValueAt(\"*\", i, 6);\n }\n \n } catch (UsersDaoException exception) {}\n }\n \n } else { JOptionPane.showMessageDialog(null, \"El registro ya está eliminado\", \"ERROR\", JOptionPane.ERROR_MESSAGE); }\n \n } else { JOptionPane.showMessageDialog(null, \"Seleccione un registro a eliminar\", \"ERROR\", JOptionPane.ERROR_MESSAGE); }\n }",
"public void removeRow(T obj) {\r\n\t\t\r\n\t\tlogger.trace(\"Enter removeRow - T obj\");\r\n\t\t\r\n\t\tint row = data.indexOf(obj);\r\n\t\tif (row >= 0) {\r\n\t\t\tdata.remove(row);\r\n\t\t\tfireTableRowsDeleted(row, row);\r\n\t\t}\r\n\t\t\r\n\t\tlogger.trace(\"Exit removeRow - T obj\");\r\n\t}",
"public TrajectoryTableRow removeByIndex(int index){\r\n\t\treturn this.data.remove(index);\r\n\t}",
"@Override\n\t\t\t\tpublic void onClick(ClickEvent event) {\n\t\t\t\t\tint removeIndex = listema.indexOf(rowb);\n\t\t\t\t\tlistema.remove(removeIndex);\n\t\t\t\t\tgetView().getEmail().removeRow(removeIndex + 1);\n\t\t\t\t}",
"public void undoRemove() {\n // Makes the removal dialogue invisible.\n mRemovalDialogue.setAlpha(0.0f);\n mRemovalDialogue.setVisibility(GONE);\n\n // Animates back the favorite contact card.\n final ObjectAnimator fadeIn = ObjectAnimator.ofFloat(mFavoriteContactCard, \"alpha\", 1.f).\n setDuration(mAnimationDuration);\n final ObjectAnimator moveBack = ObjectAnimator.ofFloat(mFavoriteContactCard, \"translationX\",\n 0.f).setDuration(mAnimationDuration);\n\n final AnimatorSet animSet = new AnimatorSet();\n\n animSet.playTogether(fadeIn, moveBack);\n\n animSet.addListener(new AnimatorListenerAdapter() {\n @Override\n public void onAnimationStart(Animator animation) {\n mParentRow.setHasTransientState(true);\n }\n @Override\n public void onAnimationEnd(Animator animation) {\n if (mParentRow.getItemViewType() == ViewTypes.FREQUENT) {\n SwipeHelper.setSwipeable(mParentRow, true);\n } else {\n SwipeHelper.setSwipeable(PhoneFavoriteTileView.this, true);\n }\n mParentRow.setHasTransientState(false);\n }\n });\n animSet.start();\n // Signals the PhoneFavoritesTileAdapter to undo the potential delete.\n mParentRow.getTileAdapter().undoPotentialRemoveEntryIndex();\n }",
"@Override\n\tpublic boolean delete(Animations obj) {\n\t\treturn false;\n\t}",
"@FXML\n private void handleDeleteFilm() {\n int selectedIndex = filmTable.getSelectionModel().getSelectedIndex();\n if (selectedIndex >= 0) {\n \tfilmTable.getItems().remove(selectedIndex);\n \tsave();\n } else {\n // Nothing selected.\n Dialogs.create()\n .title(\"No Selection\")\n .masthead(\"No Person Selected\")\n .message(\"Please select a person in the table.\")\n .showWarning();\n }\n }",
"void onItemDelete(int position);",
"public void deleteRow(int position) {\n if (position < mExtraOffset || position >= getCount()) {\n return;\n }\n mCursor.moveToPosition(position- mExtraOffset);\n String url = mCursor.getString(Browser.HISTORY_PROJECTION_URL_INDEX);\n String title = mCursor.getString(Browser.HISTORY_PROJECTION_TITLE_INDEX);\n Bookmarks.removeFromBookmarks(null, mContentResolver, url, title);\n refreshList();\n }",
"@FXML\r\n public void deleteTreatmentButton(){\r\n int sIndex = treatmentTabletv.getSelectionModel().getSelectedIndex();\r\n String sID = treatmentData.get(sIndex).getIdProperty();\r\n\r\n String deleteTreatment = \"delete from treatment where treatmentID = ?\";\r\n try{\r\n ps = mysql.prepareStatement(deleteTreatment);\r\n ps.setString(1,sID);\r\n ps.executeUpdate();\r\n ps.close();\r\n ps = null;\r\n\r\n } catch (SQLException e) {\r\n e.printStackTrace();\r\n //maybe more in this exception\r\n }\r\n\r\n treatmentData.remove(sIndex);\r\n }",
"public void removeBtn(){\r\n\t\t\r\n\t\tWorkflowEntry entryToBeRemoved = (WorkflowEntry) tableView.getSelectionModel().getSelectedItem();\r\n\t\t\r\n\t\tdata.remove(entryToBeRemoved);\r\n\t\t\r\n\t}",
"public Builder removeRow(int index) {\n if (rowBuilder_ == null) {\n ensureRowIsMutable();\n row_.remove(index);\n onChanged();\n } else {\n rowBuilder_.remove(index);\n }\n return this;\n }",
"public Builder removeRow(int index) {\n if (rowBuilder_ == null) {\n ensureRowIsMutable();\n row_.remove(index);\n onChanged();\n } else {\n rowBuilder_.remove(index);\n }\n return this;\n }",
"public Builder removeRow(int index) {\n if (rowBuilder_ == null) {\n ensureRowIsMutable();\n row_.remove(index);\n onChanged();\n } else {\n rowBuilder_.remove(index);\n }\n return this;\n }",
"public Builder removeRow(int index) {\n if (rowBuilder_ == null) {\n ensureRowIsMutable();\n row_.remove(index);\n onChanged();\n } else {\n rowBuilder_.remove(index);\n }\n return this;\n }",
"public Builder removeRow(int index) {\n if (rowBuilder_ == null) {\n ensureRowIsMutable();\n row_.remove(index);\n onChanged();\n } else {\n rowBuilder_.remove(index);\n }\n return this;\n }",
"public Builder removeRow(int index) {\n if (rowBuilder_ == null) {\n ensureRowIsMutable();\n row_.remove(index);\n onChanged();\n } else {\n rowBuilder_.remove(index);\n }\n return this;\n }",
"public void removeRow(int row) {\r\n\t\tdataVector.removeElementAt(row);\r\n\t\tthis.dataObjects.removeElementAt(row);\r\n\r\n\t\t// Generate notification\r\n\t\tfireTableRowsDeleted(row, row);\r\n\t}",
"private void removeairlinerActionPerformed(java.awt.event.ActionEvent evt) {\n int row = airlinerTable.getSelectedRow();\n\n if(row<0) {\n JOptionPane.showMessageDialog(null, \"Please select a row from the table first\", \"Warning\", JOptionPane.WARNING_MESSAGE);\n return;\n }\n Airliner a = (Airliner)airlinerTable.getValueAt(row, 0);\n airlinerDirectory.removeAirliner(a);\n refreshTable();\n }",
"public void supprimerJoueur(ActionEvent e)\n\t{\n\tint index = tableJoueurs.getSelectedRow();\n\tindex = sorter.modelIndex(index);\n\t\tif (index != -1)\n\t\t{\n\t\t\t((JoueursTableModel)sorter.getTableModel()).removeJoueur(index);\n\t\t\t((JoueursTableModel)sorter.getTableModel()).fireTableDataChanged();\n\t\t}\n\t}",
"void removeRowsLock();",
"private void deleteItem(int position){\n deleteItem(dataset.get(position),position);\n }",
"public static void deleteRow(HTable table, String rowKey) throws Exception {\n\t\tDelete delete = new Delete(Bytes.toBytes(rowKey));\n\t\ttable.delete(delete);\n\t\tSystem.out.println(\"Delete row: \" + rowKey);\n\t}",
"public void deleteEntry(long row) {\n database.delete(ORDER_MASTER, ROW_ID + \"=\" + row, null);\n }",
"public void deleteRow() throws SQLException\n {\n m_rs.deleteRow();\n }",
"public void deleteRows(int[] rows) throws IndexOutOfBoundsException{\r\n if (rows.length > 0){\r\n LinkedList data_to_remove = new LinkedList();\r\n for (int i=0; i<rows.length; i++){\r\n data_to_remove.add(data.get(rows[i]));\r\n }\r\n for (int i=0; i<data_to_remove.size(); i++){\r\n data.remove(data_to_remove.get(i)); \r\n }\r\n this.fireTableRowsDeleted(rows[0], rows[rows.length -1]);\r\n }\r\n }",
"void delete (int index);",
"public abstract void rowsDeleted(int firstRow, int endRow);",
"@FXML\n\tpublic void handleExcluir(MouseEvent event) {\n\t\tif(colNome.getCellData(jtvIngredienteTable.getSelectionModel().getSelectedIndex()) != null){\n\t\t\tingredienteService = new IngredienteService();\n\t\t\tIngrediente ingrediente = jtvIngredienteTable.getSelectionModel().getSelectedItem();\n\t\t\tingredienteService.delete(ingrediente.getId());\n\t\t\tatualizarTable();\n\t\t}else{\n\t\t\tScreenUtils.janelaInformação(spDialog, Internationalization.getMessage(\"header_erro3\"), Internationalization.getMessage(\"item_nao_selecionado\"), Internationalization.getMessage(\"erro_button2\"));\n//\t\t\tScreenUtils.janelaInformação(spDialog, \"Ops\", \"Por favor, selecione um item.\", \"Sem problemas\");\n\t\t}\n\t}",
"public void delete()\n\t{\n\t\t_Status = DBRowStatus.Deleted;\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}",
"void deleteButton_actionPerformed(ActionEvent e) {\n doDelete();\n }",
"private void removeButtonActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_removeButtonActionPerformed\n\n AttlistTableModel tm = (AttlistTableModel) attrTable.getModel();\n \n int sel = attrTable.getSelectedRow();\n if (sel > -1) {\n tm.removeRow(sel);\n if (numRows() > 0) {\n if (sel <= numRows() - 1)\n attrTable.getSelectionModel().setSelectionInterval(sel,sel);\n else\n attrTable.getSelectionModel().setSelectionInterval(sel - 1, sel - 1);\n } else removeButton.setEnabled(false);\n }\n }",
"public void deleteSelectedAndRefresh()\n\t{\n\t\tDisplayThreeSQLHandler.changeRoom(\"CREATURE\", selectedCreature, -1);\n\t\t\n\t\tremoveElement(thingsInColumn.indexOf(selectedCreature));\n\t\t\n\t\tselectedCreature = thingsInColumn.get(itemsVisible[buttonLastPressed]);\n\t\t\n\t\tDisplayThree.getInstance().addBox.changeContents(\"CREATURE\", false);\n\t\t;\n\t\t\n\t\tthis.updateButtons();\n\t}",
"public native void insertRowAfter(int index, TableViewRow row, TableViewAnimation animation) /*-{\n\t\tvar jso = this.@com.emitrom.ti4j.core.client.ProxyObject::getJsObj()();\n\t\tjso\n\t\t\t\t.insertRowAfter(\n\t\t\t\t\t\tindex,\n\t\t\t\t\t\trow.@com.emitrom.ti4j.core.client.ProxyObject::getJsObj()(),\n\t\t\t\t\t\tanimation.@com.emitrom.ti4j.core.client.ProxyObject::getJsObj()());\n }-*/;",
"@FXML\r\n private void Delete (ActionEvent event){\r\n \r\n g.clearRect(5, 5, 350, 250);\r\n \r\n }",
"private void createRowForDeleteButton(Composite compo)\n {\n buttonDelete = toolkit.createButton(section, \"Remove\", SWT.PUSH); //$NON-NLS-1$\n buttonGridData(buttonDelete, SWT.BOTTOM);\n buttonDelete.setEnabled(false);\n buttonDelete.addSelectionListener(new SelectionListener()\n {\n public void widgetDefaultSelected(SelectionEvent e)\n {\n }\n\n public void widgetSelected(SelectionEvent e)\n {\n tree.getChildren().remove(selectedRule);\n listFormat.refresh();\n buttonDelete.setEnabled(false);\n updateWizard();\n controller.removeDocumentType();\n }\n });\n }",
"public void Delete(View v) {\r\n CheckBox MenuCode;\r\n\r\n for (int iRow = 0; iRow < tblOrderItems.getChildCount(); iRow++) {\r\n\r\n TableRow Row = (TableRow) tblOrderItems.getChildAt(iRow);\r\n\r\n if (Row.getChildAt(0) != null) {\r\n\r\n MenuCode = (CheckBox) Row.getChildAt(0);\r\n\r\n if (MenuCode.isChecked()) {\r\n\r\n // Remove all the view present in the row.\r\n Row.removeAllViews();\r\n\r\n // Remove the row\r\n tblOrderItems.removeView(Row);\r\n\r\n // Exit from the loop\r\n // break;\r\n }\r\n } else {\r\n continue;\r\n }\r\n\r\n }\r\n\r\n CalculateTotalAmount();\r\n }",
"private void delete() {\n AltDatabase.getInstance().getAlts().remove(getCurrentAsEditable());\n if (selectedAccountIndex > 0)\n selectedAccountIndex--;\n updateQueried();\n updateButtons();\n }",
"private void delete(ByteBuffer rowKey,\n Clustering<?> clustering,\n DeletionTime deletion,\n WriteContext ctx)\n {\n DecoratedKey valueKey = getIndexKeyFor(getIndexedValue(rowKey,\n clustering,\n null));\n doDelete(valueKey,\n buildIndexClustering(rowKey, clustering, null),\n deletion,\n ctx);\n }",
"@Override\n public void handle(ActionEvent event) {\n try {\n clickedRow.setFeld(feld.get(ii));\n clickedRow.setStatus(2);\n CheckeSpielsuche();\n } catch (Exception e) {\n e.printStackTrace();\n // auswahlklasse.WarnungBenachrichtigung(\"Fehler\",\"Nicht alle Spieler Verfügbar\");\n\n }\n\n /*Image image = new Image(\"/sample/images/BadmintonfeldBesetzt.jpg\");\n feld.get(ii).setImage(image);*/\n\n /* auswahlklasse.getAktuelleTurnierAuswahl().getObs_ausstehendeSpiele().remove(clickedRow);\n auswahlklasse.getAktuelleTurnierAuswahl().getObs_aktiveSpiele().add(clickedRow);*/\n }",
"private void jbtn_deleteActionPerformed(ActionEvent evt) {\n\t\tDefaultTableModel RecordTable=(DefaultTableModel)jTable1.getModel();\n\t\tint Selectedrow=jTable1.getSelectedRow();\n\t\t\n\t\ttry\n\t\t{\n\t\t\tid=RecordTable.getValueAt(Selectedrow,0).toString();\n\t\t\tdeleteItem=JOptionPane.showConfirmDialog(this,\"Confirm if you want to delete the record\",\"Warning\",JOptionPane.YES_NO_OPTION);\n\t\t\t\n\t\t\tif(deleteItem==JOptionPane.YES_OPTION)\n\t\t\t{\n\t\t\t\tconn cc=new conn();\n\t\t\t\tpst=cc.c.prepareStatement(\"delete from medicine where medicine_name=?\");\n\t\t\t pst.setString(1,id);\n\t\t\t\tpst.executeUpdate();\n\t\t\t\tJOptionPane.showMessageDialog(this,\"Record Updated\");\n\t\t\t\tupDateDB();\n\t\t\t\ttxtblank();\n\t\t\t\t\n\t\t\t\t\n\t\t\t\t\n\t\t\t}\n\t\t}\n\t\tcatch (Exception e) {\n\t\t\t// TODO: handle exception\n\t\t}\n\t\t\n\t}",
"@Override\n\t\t\t\t\tpublic void onClick(ClickEvent click) {\n\t\t\t\t\t\tcom.google.gwt.user.client.ui.HTMLTable.Cell cell = tripleTable.getCellForEvent(event);\n\t\t\t\t\t\tint cellIndex = cell.getCellIndex();\n\t\t\t\t\t\tint rowIndex = cell.getRowIndex();\n\t\t\t\t\t\tlogger.log(Level.SEVERE, \"cell:\" + cellIndex);\n\t\t\t\t\t\tif (cellIndex == 3) {\n\t\t\t\t\t\t\ttripleTable.removeRow(rowIndex);\n\t\t\t\t\t\t}\n\t\t\t\t\t\trowIndex = tripleTable.getRowCount();\n\n\t\t\t\t\t\ttripleTable.setWidget(rowIndex - 1, 5, save);\n\t\t\t\t\t}",
"private void delete_btnActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_delete_btnActionPerformed\n // pull current table model\n DefaultTableModel model = (DefaultTableModel) remindersTable.getModel();\n if (remindersTable.getSelectedRow() == -1) {\n if (remindersTable.getRowCount() == 0) {\n dm.messageEmptyTable();\n } else {\n dm.messageSelectLine();\n }\n } else {\n int input = JOptionPane.showConfirmDialog(frame, \"Do you want to Delete!\");\n // 0 = yes, 1 = no, 2 = cancel\n if (input == 0) {\n model.removeRow(remindersTable.getSelectedRow());\n dm.messageReminderDeleted();// user message;\n saveDataToFile();// Save changes to file\n getSum(); // Update projected balance\n } else {\n // delete canceled\n }\n }\n }",
"public String deleteTimesheetRow(TimesheetRow thisRow) {\n\t\tservice.removeTimesheetRow(thisRow);\n\t\ttimesheetRowList.remove(thisRow);\n\t\treturn \"\";\n\t}",
"public native void deselectRow(int row) /*-{\n\t\tvar jso = this.@com.emitrom.ti4j.core.client.ProxyObject::getJsObj()();\n\t\tjso.deselectRow(row);\n }-*/;",
"public void deleteRow(int row){\n\t\tfor(int j = row; j > 0; j--)\n\t\t\tfor(int i = 0; i < well.length; i++)\n\t\t\t\twell[i][j] = well[i][j-1];\n\t}",
"public void deleteRow(int row)\n throws JPARSECException {\n \tif (row >= m || row < 0)\n \t\tthrow new JPARSECException(\"invalid row.\");\n double newData[][] = new double[m-1][n];\n\n \tint iindex = -1;\n for (int i=0; i<m; i++)\n {\n \tif (i != row) {\n \t\tiindex ++;\n\t for (int j=0; j<n; j++)\n\t {\n\t \tnewData[iindex][j] = this.data[i][j];\n\t }\n \t}\n }\n Matrix m = new Matrix(newData);\n this.m = m.m;\n this.data = m.data;\n }",
"public void removeRowAt(int index) {\n ((DefaultTableModel) getModel()).removeRow(index);\n }",
"@Override\r\n\t\t\t\tpublic void actionPerformed(ActionEvent arg0) {\n\t\t\t\t\tremoveRowsIsSelected();\r\n\t\t\t\t\told_Num_Total=0;\r\n\t\t\t\t\tdeleteJButton.setEnabled(false);\r\n\t\t\t\t}",
"public boolean delete(long rowId) {\n\t\treturn db.delete(tableName, fields[0] + \" = \" + String.valueOf(rowId), null) > 0;\t\t\n\t}"
] |
[
"0.7646308",
"0.73066354",
"0.69291556",
"0.69291556",
"0.6883492",
"0.6741238",
"0.6661538",
"0.6605692",
"0.65403765",
"0.65343755",
"0.6527556",
"0.64918983",
"0.6430083",
"0.63414705",
"0.633538",
"0.63066244",
"0.6266151",
"0.62397885",
"0.62373847",
"0.61557376",
"0.61543643",
"0.61331296",
"0.6123766",
"0.6122377",
"0.61188936",
"0.61142206",
"0.6108984",
"0.6089388",
"0.60596377",
"0.605624",
"0.60543287",
"0.6053594",
"0.6039377",
"0.603195",
"0.60305375",
"0.60164857",
"0.5993416",
"0.59865856",
"0.59774554",
"0.59721315",
"0.5953502",
"0.589549",
"0.5890543",
"0.5887885",
"0.588058",
"0.5864737",
"0.58306074",
"0.582846",
"0.5825296",
"0.580876",
"0.5800915",
"0.5800525",
"0.57939965",
"0.5788418",
"0.5778374",
"0.57571864",
"0.57498765",
"0.5748129",
"0.57342345",
"0.5729566",
"0.57260275",
"0.57260275",
"0.57260275",
"0.57260275",
"0.57260275",
"0.57260275",
"0.57170165",
"0.57078487",
"0.56916666",
"0.5689961",
"0.56826097",
"0.56546223",
"0.5650018",
"0.5649512",
"0.5648518",
"0.5642896",
"0.5642737",
"0.56406647",
"0.5639812",
"0.56377906",
"0.5636523",
"0.5631408",
"0.5613008",
"0.56101716",
"0.5610094",
"0.56048536",
"0.56006217",
"0.5593445",
"0.55891895",
"0.55789024",
"0.5578349",
"0.5572785",
"0.5572158",
"0.5563398",
"0.5559476",
"0.5556871",
"0.55483735",
"0.5528809",
"0.55269396",
"0.5526367"
] |
0.67462885
|
5
|
Programmatically deselect a row
|
public native void deselectRow(int row) /*-{
var jso = this.@com.emitrom.ti4j.core.client.ProxyObject::getJsObj()();
jso.deselectRow(row);
}-*/;
|
{
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
}
|
[
"public void deselect();",
"@Override\n\tpublic void unselect() {\n\t}",
"public void deselect() {\n\t\tfor (int row = 0; row < field.getRowCount(); row++) {\n\t\t\tCheckBox cb = (CheckBox) field.getWidget(row, 3);\n\t\t\tcb.setValue(false);\n\t\t}\n\t}",
"public native void deselectCell(String cell) /*-{\r\n var self = this.@com.smartgwt.client.widgets.BaseWidget::getOrCreateJsObj()();\r\n self.deselectCell(cell);\r\n }-*/;",
"public void deselect() {\n\n // reset the pin value\n pin.reset();\n\n }",
"public void onRowUnselect(UnselectEvent event) throws IOException {\n\r\n\r\n }",
"@Override\n public void deselectGolem() {\n }",
"public native void deselectCell(CellRecord cell) /*-{\r\n var self = this.@com.smartgwt.client.widgets.BaseWidget::getOrCreateJsObj()();\r\n self.deselectCell(cell.@com.smartgwt.client.widgets.cube.CellRecord::getJsObj()());\r\n }-*/;",
"public void unselect() {\n for (int i = 0; i < series.size(); i++) {\n series.setItemSliced(i, false, false, true);\n }\n }",
"@Override\n protected void processUnselect() {\n \n }",
"@Override\n public void revoke() {\n\t\t\tcore(HexEditorConstants.CELL_STATUS_UNDO);\n\t\t\tif (singleCommand) {\n\t\t\t\ttable.select(row);\n\t\t\t\tcursor.setSelection(row, col + 1);\n\t\t\t}\n\t\t}",
"public void deselect(){\n\t\tPIN.reset();\n\t}",
"@FXML\n private void rowSelected() {\n if (coachesTable.getSelectionModel().getSelectedItem() != null) {\n removeButton.setDisable(false);\n }\n }",
"public void unSelectWidget(Widget w) {\n if (!w.isSelected()) return;\n w.unSelect();\n doSelectedCount(w);\n toolBar.setEditButtons(selectedCnt, selectedGroupCnt);\n }",
"public void deselect() {\n if (selection != null) {\n \t\tworld.destroyJoint(mouseJoint);\n \t selection = null;\n \t mouseJoint = null;\n\t }\n }",
"void cancelSelectMode();",
"public void clearSelection()\r\n {\r\n final ListSelectionModel selectionModel = jTable.getSelectionModel();\r\n selectionModel.clearSelection();\r\n }",
"public void invertSelection () {\r\n\t\tif ( modeSelectAll){\r\n\t\t\tselectedDataIds.clear();\r\n\t\t\tif (! unselectedDataIds.isEmpty()){\r\n\t\t\t\tselectedDataIds.addAll(unselectedDataIds);\r\n\t\t\t\tunselectedDataIds.clear();\r\n\t\t\t}\r\n\t\t}else{\r\n\t\t\tunselectedDataIds.clear();\r\n\t\t\tif (!selectedDataIds.isEmpty()){\r\n\t\t\t\tunselectedDataIds.addAll(selectedDataIds);\r\n\t\t\t\tselectedDataIds.clear();\r\n\t\t\t}\r\n\t\t}\r\n\t\tmodeSelectAll=!modeSelectAll;\r\n\t\tfireSelectionChangeNotification();\r\n\t\t\r\n\t}",
"public void removeSelection() {\n this.selection = null;\n }",
"public void deselect(T item) {\n getElement().deselect(SerDes.mirror(item));\n }",
"protected void removeSelection() {\n\t\tBEAN oldBean = getInternalValue();\n\t\tsetInternalValue(null);\n\t\ttextField.setValue(null);\n\t\tif (searchListener != null) {\n\t\t\tsearchListener.remove(oldBean);\n\t\t}\n\t}",
"public void cancelSelection() {\n\t\tsd.hideSelectRect();\n\t\tspectroFragment.disableCaptureButtonContainer();\n\t\tselecting = false;\n\t}",
"public void cabDeselectAll() {\n ListView lv = getListView();\n int vCnt = lv.getCount();\n \n for (int i = 0; i < vCnt; i++) {\n \tlv.setItemChecked(i, false);\n }\n \n selectedListItems.clear();\n redrawListView();\n }",
"public void disableTableCellSelection() {\n\t\tmyTable.setCellSelectionEnabled(false);\n\t}",
"public void clearSelection() {\n grid.getSelectionModel().deselectAll();\n }",
"private void deleteSelectedRows() {\n int[] rows = constantsTable.getSelectedRows();\n constantsTable.clearSelection();\n currentCellEditor.cancelCellEditing();\n for (int i = rows.length - 1; i >= 0; i--) {\n if (rows[i] > -1) {\n getTableModel().removeRow(rows[i]);\n }\n }\n }",
"@Override\n\t\t\tpublic void onClick(View v) {\n\t\t\t\tTableRow selected=null;\n\t\t\t\tfor(int i=0;i<table.getChildCount() && selected==null;i++){\n\t\t\t\t\tTableRow row = (TableRow)table.getChildAt(i);\n\t\t\t\t\tif(row.isSelected()){\n\t\t\t\t\t\tselected=row;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\tif(selected==null){\n\t\t\t\t\t//Creamos un toast para avisar\n\t\t\t\t\tResources res = getResources();\n\t\t\t\t\tString text = String.format(res.getString(R.string.selectBill));\n\t\t\t\t\tToast msg = Toast.makeText(getBaseContext(),text, Toast.LENGTH_LONG);\n\t\t\t\t\tmsg.show();\n\t\t\t\t}\n\t\t\t\telse{\n\t\t\t\t\tTextView idFactura = (TextView) selected.getChildAt(1);\n\t\t\t\t\tTextView nameClient = (TextView) selected.getChildAt(0);\n\t\t\t\t\t\n\t\t\t\t\tGlobalStatic data = (GlobalStatic) getApplicationContext();\n\t\t\t\t\t\n\t\t\t\t\tdata.cliente = data.getCliente((String)nameClient.getText());\n\t\t\t\t\tdata.factura = data.getFacturasId(data.cliente, Integer.parseInt((String)idFactura.getText()));\n\t\t\t\t\t\n\t\t\t\t\tdata.db.removeBill(data);\n\t\t\t\t\tdata.cliente.removeFactura(data.factura);\n\t\t\t\t\t\n\t\t\t\t\t\n\t\t\t\t\ttable.removeView(selected);\n\t\t\t\t}\n\t\t\t\n\t\t\t}",
"public void deleteSelectionRowTable(boolean status) {\n tableList.deleteSelectionItem(status);\n }",
"public void clearSelection() {\n\t\ttable.clearSelection();\n\t}",
"public void deselectFocusedNode(){\r\n \tfocusOut();\r\n }",
"public void deselectIndex(int idx) {\n getElement().deselectIndex(idx);\n }",
"public void onItemUnsetSelection(AdapterView<?> parent, View view, int position);",
"private void doSelect() {\n this.setVisible(false);\n }",
"@Override\n\tprotected void OnRelease() {\n\t\tsetSelected(false);\n\t}",
"public void removeSelected()\n {\n for (int i = shapes.size() - 1; i >= 0; i--)\n {\n SceneShape s = shapes.get(i);\n if (s.isSelected()) shapes.remove(i);\n }\n repaint();\n }",
"public void deselectPanel() {\n\t\tthis.displayNumberBlock.setBackground(dispNormal);\n\t}",
"public void cancelSelectionMode() {\n if (null != mAdapter) {\n mAdapter.cancelSelectionMode();\n }\n }",
"@Override\n\t\t\t\tpublic void onClick(View v) {\n\t\t\t\t\tTableLayout table = (TableLayout) v.getParent();\n\t\t\t\t\t\n\t\t\t\t\tfor(int i=0;i<table.getChildCount();i++){\n\t\t\t\t\t\tTableRow row = (TableRow) table.getChildAt(i);\n\t\t\t\t\t\trow.setSelected(false);\n\t\t\t\t\t}\n\n\t\t\t\t\tTableRow row = (TableRow) v;\n\t\t\t\t\trow.setSelected(true);\n\t\t\t\t}",
"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 }",
"public native void deselectAllCells() /*-{\r\n var self = this.@com.smartgwt.client.widgets.BaseWidget::getOrCreateJsObj()();\r\n self.deselectAllCells();\r\n }-*/;",
"public void actionPerformed(ActionEvent e) {\n if(newTable.getRowCount() == 0){\n Toolkit.getDefaultToolkit().beep();\n return;\n }\n int index = table.getSelectedRow();\n int size = newTable.getRowCount();\n if(index > size || index < 0){\n table.setRowSelectionInterval(0,0);\n index = table.getSelectedRow();\n }\n newTable.removeRow(index);\n \n\n //Select an index.\n index--;\n if(index < 0){\n index++;\n }\n if(newTable.getRowCount() != 0){\n table.setRowSelectionInterval(index, index);\n }\n }",
"public native void deselectCells(String... cellList) /*-{\r\n var self = this.@com.smartgwt.client.widgets.BaseWidget::getOrCreateJsObj()();\r\n self.deselectCells(cellList);\r\n }-*/;",
"@Override\n public void mousePressed(MouseEvent e) {\n if (e.getButton() == MouseEvent.BUTTON3) {\n int rowUnderMouse = getTable().rowAtPoint(e.getPoint());\n// if (rowUnderMouse != -1 && !getTable().isRowSelected(rowUnderMouse)) {\n// selected = rowUnderMouse;\n// }\n selected = rowUnderMouse;\n }\n }",
"@Override\r\n\t\t\t\t\t\tpublic void mouseClicked(MouseEvent e) {\r\n\t\t\t\t\t\t\tTable.table.clearSelection();\r\n\t\t\t\t\t\t\tTable.table.repaint();//ÎÍ ÌÅÍß ÍÀÏÐßÃÀÅÒ: ÒÎËÜÊÎ ÒÝÉÁË ÐÅÑÅÒÈÒ\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t}",
"public void removeSelectedItem() {\r\n\t\tint i = getSelectedIndex();\r\n\t\tif(i != -1)\r\n\t\t\tlistModel.removeElementAt(i);\r\n\t}",
"private void selectDeselectNewPrice(boolean isSelected) {\n if (isSelected) {\n llTitle.setBackgroundColor(ContextCompat.getColor(mActivity, R.color.colorWhite));\n llOriginalPrice.setBackgroundColor(ContextCompat.getColor(mActivity, R.color.colorWhite));\n llTotalItems.setBackgroundColor(ContextCompat.getColor(mActivity, R.color.colorWhite));\n\n llNewPrice.setBackgroundColor(ContextCompat.getColor(mActivity, R.color.colorCreateDealSelected));\n llSlider.setVisibility(View.VISIBLE);\n\n btnDone.setVisibility(View.GONE);\n } else {\n llNewPrice.setBackgroundColor(ContextCompat.getColor(mActivity, R.color.colorWhite));\n llSlider.setVisibility(View.GONE);\n\n btnDone.setVisibility(View.VISIBLE);\n }\n }",
"@Override\n public boolean stopCellEditing() {\n clicked=false;\n return super.stopCellEditing();\n }",
"static void setNotSelected(){isSelected=false;}",
"@Override\n\tpublic void deleteSelected() {\n\n\t}",
"public void clearSelection() {\n buttonGroup.clearSelection();\n }",
"public void removeSelected(int row, int col) {\n BoardSquare bs = board.getBoardSquare(row, col);\n selectedCards.remove(bs);\n bs.setCurrentlySelected(false);\n }",
"public void deleteSelection() {\r\n /* Delete the node */\r\n try {\r\n deleteNode();\r\n } catch (NullPointerException e1) {\r\n }\r\n /* Delete the edge */\r\n try {\r\n deleteEdge();\r\n } catch (NullPointerException e2) {\r\n }\r\n /* Reload the scroll */\r\n scrollPane().doLayout();\r\n }",
"@Override\n\tpublic boolean isSelected() {\n\t\treturn false;\n\t}",
"private void unSelect() {\n /** if we had some object selected we need to delete it's Transformation Points. */\n if(this.action.isSelect() && this.curr_obj != null) {\n this.canvas.remove(this.transformPoints);\n this.transformPoints.clear();\n this.curr_obj = null;\n\n /** if we were in the middle of a text operation, we have to remove the TextBox and set the text to it's last version*/\n } else if(this.action.isText()) {\n int size = Integer.parseInt(currentFontSize.getItemText(currentFontSize.getSelectedIndex()));\n\n curr_obj = new Text(editor.getText());\n ((Text)curr_obj).setFont(currFont);\n addTextObject(curr_obj, (int)aux_obj.getX() + (int)((1.0/4.0)*size), (int)aux_obj.getY()+ (size) + (int)((1.0/4.0)*size));\n\n aux_obj = null;\n curr_obj = null;\n apanel.remove(editor);\n editor = null;\n action.setAction(Action.TEXTBOX);\n }\n }",
"public void deselectAll() {\n\t\tselected.clear();\n\t}",
"public void endSelection()\n {\n\tisMultiSelection = false;\n\tsetMaxCheckCount(1);\n\tuncheckAll();\n }",
"public\n void\n clearTableSelection()\n {\n getRegisterPanel().clearTableSelection();\n }",
"public void clearTableSelectedSet(){\n\t\tselectionModel.clear();\n\t}",
"protected void deselectControlPoint(Point p) {\n\t\tif (p != null)\n\t\t\tfor (int j = 0; j < selectedPoints.size(); ++j)\n\t\t\t\tif (selectedPoints.elementAt(j).X() == p.X()\n\t\t\t\t\t\t&& selectedPoints.elementAt(j).Y() == p.Y())\n\t\t\t\t\tselectedPoints.remove(j--);\n\t}",
"public native void selectRow(int row) /*-{\n\t\tvar jso = this.@com.emitrom.ti4j.core.client.ProxyObject::getJsObj()();\n\t\tjso.selectRow(row);\n }-*/;",
"private void deSelectCheckedState(){\n int noOfItems = navigationView.getMenu().size();\n for (int i=0; i<noOfItems;i++){\n navigationView.getMenu().getItem(i).setChecked(false);\n }\n }",
"@Override\r\n\t\t\t\tpublic void actionPerformed(ActionEvent arg0) {\n\t\t\t\t\tremoveRowsIsSelected();\r\n\t\t\t\t\told_Num_Total=0;\r\n\t\t\t\t\tdeleteJButton.setEnabled(false);\r\n\t\t\t\t}",
"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}",
"public void clearSelection() {\n clearSelectionQuietly();\n notifySelectionChanged();\n }",
"public void deselectNotify() {\n }",
"void clearSelection();",
"public void resetSelected()\n\t{\n\t\tfor (int i = 0; i < 13; i++)\n\t\t{\n\t\t\tthis.selected[i] = false;\n\t\t}\n\t}",
"private void selectDetailWithMouse() {\n int selectedRowIndex=jt.convertRowIndexToModel(jt.getSelectedRow());\n String[] choices={\"Update Row\",\"Delete\",\"Cancel\"};\n int option=JOptionPane.showOptionDialog(rootPane, \"Product ID: \"+jtModel.getValueAt(selectedRowIndex, 0).toString()+\"\\n\"+\"Product Name: \"+jtModel.getValueAt(selectedRowIndex,1), \"View Data\", WIDTH, HEIGHT,null , choices, NORMAL);\n if(option==0)\n {\n tfPaintId.setText(jtModel.getValueAt(selectedRowIndex,0).toString());\n tfName.setText(jtModel.getValueAt(selectedRowIndex, 1).toString());\n tfPrice.setText(jtModel.getValueAt(selectedRowIndex, 2).toString());\n tfColor.setText(jtModel.getValueAt(selectedRowIndex, 3).toString());\n tfQuantity.setText(jtModel.getValueAt(selectedRowIndex, 8).toString());\n rwCombo.setSelectedItem(jtModel.getValueAt(selectedRowIndex, 4));\n typeCombo.setSelectedItem(jtModel.getValueAt(selectedRowIndex, 6));\n bCombo.setSelectedItem(jtModel.getValueAt(selectedRowIndex, 5));\n switch(jtModel.getValueAt(selectedRowIndex, 7).toString()) {\n case \"High\":\n high.setSelected(true);\n break;\n case \"Mild\":\n mild.setSelected(true);\n break;\n case \"Medium\":\n medium.setSelected(true);\n break;\n }\n }\n else if(option==1)\n {\n jtModel.removeRow(selectedRowIndex);\n JOptionPane.showMessageDialog(rootPane,\" Detail successfully deleted\");\n }\n else \n {\n \n } \n }",
"private void onSelectPatient() {\n\t\tint selectedRowIndex = tablePatients.getSelectedRow();\n\n\t\tif (selectedRowIndex < 0) {\n\t\t\t// No row has been selected\n\t\t\tbuttonRemovePatient.setEnabled(false);\n\t\t\tbuttonViewPatient.setEnabled(false);\n\t\t} else {\n\t\t\t// A row has been selected\n\t\t\tbuttonRemovePatient.setEnabled(true);\n\t\t\tbuttonViewPatient.setEnabled(true);\n\t\t}\n\t}",
"@Override\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\tdelRow();\n\t\t\t}",
"@Override\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\tdelRow();\n\t\t\t}",
"public void toDeletIndex()\n {\n try\n { \n //DefaultTableModel model=(DefaultTableModel)jt.getModel(); \n //jt.getModel();\n int num=Integer.parseInt(JOptionPane.showInputDialog(rootPane,\"Enter the row number\")); \n jtModel.removeRow(num-1);\n JOptionPane.showMessageDialog(rootPane,\"Successfully deleted selected row number \" +num);\n }\n catch(NumberFormatException ex)\n {\n JOptionPane.showMessageDialog(rootPane,\"Enter integer not alphabet\");\n } \n catch(ArrayIndexOutOfBoundsException ex)\n {\n JOptionPane.showMessageDialog(rootPane,\"This row dosent exist\");\n }\n }",
"public native void deselectAll() /*-{\r\n var self = this.@com.smartgwt.client.widgets.BaseWidget::getOrCreateJsObj()();\r\n self.deselectAll();\r\n }-*/;",
"public void clearSelection()\n\t{\n\t\tgetObject().clearSelection();\n\t\treturn;\n\t}",
"@Override\n public boolean select() {\n cell.setState(cell.getRevealedState());\n return true;\n }",
"public void resetSelectPresentation();",
"private void helperSwitchSelectOff()\r\n\t{\r\n\t\tImageIcon iconButton = FormUtils.getIconResource(FormStyle.RESOURCE_PATH_ICO_SELECT);\r\n\r\n\t\tmainFormLink.getComponentToolbar().getComponentButtonSelect().setIcon(iconButton);\r\n\r\n\t\tFormMainMouse.isSampleSelectOn = false;\r\n\t}",
"private void removeairlinerActionPerformed(java.awt.event.ActionEvent evt) {\n int row = airlinerTable.getSelectedRow();\n\n if(row<0) {\n JOptionPane.showMessageDialog(null, \"Please select a row from the table first\", \"Warning\", JOptionPane.WARNING_MESSAGE);\n return;\n }\n Airliner a = (Airliner)airlinerTable.getValueAt(row, 0);\n airlinerDirectory.removeAirliner(a);\n refreshTable();\n }",
"@FXML\n private void setRemoveButton() {\n Coach selectedRow = coachesTable.getSelectionModel().getSelectedItem();\n try {\n Connection conn = DatabaseHandler.getInstance().getConnection();\n try (Statement st = conn.createStatement()) {\n st.execute(\"delete from szkolka.uzytkownik where id_u=\" + selectedRow.getId() + \";\");\n coachesTable.getItems().remove(coachesTable.getSelectionModel().getSelectedItem());\n removeButton.setDisable(true);\n }\n } catch (SQLException e) {\n e.printStackTrace();\n }\n }",
"@FXML\n\tprivate void handleDeleteTaxi() {\n\t\tint selectedIndex = TaxiTable.getSelectionModel().getSelectedIndex();\n\t\tif (selectedIndex >= 0) {\n\t\t\tTaxiTable.getItems().remove(selectedIndex);\n\t\t} else {\n\t\t\t// Nothing selected.\n\t\t}\n\t}",
"@VisibleForTesting\n void cancelProvisionalSelection() {\n mProvisionalSelection.clear();\n }",
"private void removeSelection(RectangleButton button)\n\t{\n\t\tselectedUnits.remove(cancelButtons.indexOf(button));\n\t\tcancelButtons.remove(button);\n\t\tsetSelectionLocations();\n\t}",
"@FXML\n private void btnSlett() {\n int valgtIndex = tblData.getSelectionModel().getSelectedIndex();\n if (valgtIndex >=0) {\n System.out.println(tblData.getSelectionModel().getSelectedIndex());\n dRegister.removeInded(valgtIndex);\n } else {\n dialogs.showNoSelectDialog(\"Vennligst velg en komponent i tabellen\");\n }\n }",
"public void invSelected()\n {\n\t\t//informaPreUpdate();\n \tisSelected = !isSelected;\n\t\t//informaPostUpdate();\n }",
"public void cancelCellEditing() {\n\r\n\t\t\t\t\t}",
"@Override\n public Collection<T_ROW_ELEMENT_PM> getSelectedRows() {\n return null;\n }",
"public void removeAccessibleSelection(int i) {\n // To be fully implemented in a future release\n }",
"private void removeButtonActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_removeButtonActionPerformed\n\n AttlistTableModel tm = (AttlistTableModel) attrTable.getModel();\n \n int sel = attrTable.getSelectedRow();\n if (sel > -1) {\n tm.removeRow(sel);\n if (numRows() > 0) {\n if (sel <= numRows() - 1)\n attrTable.getSelectionModel().setSelectionInterval(sel,sel);\n else\n attrTable.getSelectionModel().setSelectionInterval(sel - 1, sel - 1);\n } else removeButton.setEnabled(false);\n }\n }",
"public void clearAccessibleSelection() {\n // To be fully implemented in a future release\n }",
"@Override\n public void onValueDeselected() {\n }",
"public void clearSelection() {\n getElement().clearSelection();\n }",
"private void clearSelectionQuietly() {\n mRanger = null;\n\n if (!hasSelection()) {\n return;\n }\n\n Selection oldSelection = getSelection(new Selection());\n mSelection.clear();\n\n for (String id: oldSelection.getAll()) {\n notifyItemStateChanged(id, false);\n }\n }",
"@Test\n public void testSetLastColumnMenuItemToUnselected() {\n // This test will not work in a headless configuration.\n if (GraphicsEnvironment.isHeadless()) {\n return;\n }\n final JXTable table = new JXTable(10, 1);\n table.setColumnControlVisible(true);\n wrapWithScrollingInFrame(table, \"\");\n ColumnControlButton columnControl = (ColumnControlButton) table.getColumnControl();\n Component[] items = ((DefaultColumnControlPopup) columnControl.getColumnControlPopup()).getPopupMenu().getComponents();\n ((JMenuItem) items[0]).setSelected(false);\n assertEquals(1, table.getColumnCount());\n }",
"public void deleteSelected() {\r\n \t\tObject cells[] = graph.getSelectionCells();\r\n \t\tGraphModel graphmodel = graph.getModel();\r\n \r\n \t\t// If a cell is a blocking region avoid removing its edges and\r\n \t\t// select its element at the end of the removal process\r\n \t\tSet edges = new HashSet();\r\n \t\tSet<Object> select = new HashSet<Object>();\r\n \r\n \t\t// Set with all regions that can be deleted as its child were removed\r\n \t\tSet<Object> regions = new HashSet<Object>();\r\n \t\t// Set with all JmtCells that we are removing\r\n \t\tSet<Object> jmtCells = new HashSet<Object>();\r\n \r\n \t\t// Giuseppe De Cicco & Fabio Granara\r\n \t\t// for(int k=0; k<cells.length; k++){\r\n \t\t// if(cells[k] instanceof JmtEdge){\r\n \t\t// ((JmtCell)(graphmodel.getParent(graphmodel.getSource((JmtEdge)cells[k])))).SubOut();\r\n \t\t// ((JmtCell)(graphmodel.getParent(graphmodel.getTarget((JmtEdge)cells[k])))).SubIn();\r\n \t\t// }\r\n \t\t//\r\n \t\t// }\r\n \t\tfor (int i = 0; i < cells.length; i++) {\r\n \t\t\tif (!(cells[i] instanceof BlockingRegion)) {\r\n \t\t\t\t// Adds edge for removal\r\n \t\t\t\tedges.addAll(DefaultGraphModel.getEdges(graphmodel, new Object[] { cells[i] }));\r\n \t\t\t\t// Giuseppe De Cicco & Fabio Granara\r\n \t\t\t\t// quando vado a eliminare un nodo, a cui collegato un arco,\r\n \t\t\t\t// vado ad incrementare o diminuire il contatore per il\r\n \t\t\t\t// pulsanteAGGIUSTATUTTO\r\n \t\t\t\t// Iterator iter = edges.iterator();\r\n \t\t\t\t// while (iter.hasNext()) {\r\n \t\t\t\t// Object next = iter.next();\r\n \t\t\t\t// if (next instanceof JmtEdge){\r\n \t\t\t\t// ((JmtCell)(graphmodel.getParent(graphmodel.getSource((JmtEdge)next)))).SubOut();\r\n \t\t\t\t// ((JmtCell)(graphmodel.getParent(graphmodel.getTarget((JmtEdge)next)))).SubIn();\r\n \t\t\t\t// }\r\n \t\t\t\t//\r\n \t\t\t\t// }\r\n \t\t\t\t// Stores parents information and cell\r\n \t\t\t\tif (cells[i] instanceof JmtCell) {\r\n \t\t\t\t\tif (((JmtCell) cells[i]).getParent() instanceof BlockingRegion) {\r\n \t\t\t\t\t\tregions.add(((JmtCell) cells[i]).getParent());\r\n \t\t\t\t\t}\r\n \t\t\t\t\tjmtCells.add(cells[i]);\r\n \t\t\t\t}\r\n \t\t\t} else {\r\n \t\t\t\t// Adds node for selection\r\n \t\t\t\tObject[] nodes = graph.getDescendants(new Object[] { cells[i] });\r\n \t\t\t\tfor (Object node : nodes) {\r\n \t\t\t\t\tif (node instanceof JmtCell || node instanceof JmtEdge) {\r\n \t\t\t\t\t\tselect.add(node);\r\n \t\t\t\t\t}\r\n \t\t\t\t}\r\n \t\t\t\t// Removes blocking region from data structure\r\n \t\t\t\tmodel.deleteBlockingRegion(((BlockingRegion) cells[i]).getKey());\r\n \t\t\t}\r\n \t\t}\r\n \r\n \t\tif (!edges.isEmpty()) {\r\n \t\t\tgraphmodel.remove(edges.toArray());\r\n \t\t}\r\n \t\t// removes cells from graph\r\n \t\tgraphmodel.remove(cells);\r\n \r\n \t\t// Checks if all children of a blocking region have been removed\r\n \t\tIterator<Object> it = regions.iterator();\r\n \t\twhile (it.hasNext()) {\r\n \t\t\tjmtCells.add(null);\r\n \t\t\tBlockingRegion region = (BlockingRegion) it.next();\r\n \t\t\tList child = region.getChildren();\r\n \t\t\tboolean empty = true;\r\n \t\t\tfor (int i = 0; i < child.size(); i++) {\r\n \t\t\t\tif (child.get(i) instanceof JmtCell && !jmtCells.contains(child.get(i))) {\r\n \t\t\t\t\tempty = false;\r\n \t\t\t\t\tbreak;\r\n \t\t\t\t}\r\n \t\t\t}\r\n \t\t\tif (empty) {\r\n \t\t\t\tmodel.deleteBlockingRegion(region.getKey());\r\n \t\t\t\tgraphmodel.remove(new Object[] { region });\r\n \t\t\t}\r\n \t\t}\r\n \r\n \t\t// Removes cells from data structure\r\n \t\tfor (Object cell : cells) {\r\n \t\t\tif (cell instanceof JmtCell) {\r\n \t\t\t\tmodel.deleteStation(((CellComponent) ((JmtCell) cell).getUserObject()).getKey());\r\n \t\t\t} else if (cell instanceof JmtEdge) {\r\n \t\t\t\tJmtEdge link = (JmtEdge) cell;\r\n \t\t\t\tmodel.setConnected(link.getSourceKey(), link.getTargetKey(), false);\r\n \t\t\t}\r\n \t\t}\r\n \r\n \t\t// If no stations remains gray select and link buttons\r\n \t\tif (graph.getModel().getRootCount() == 0) {\r\n \t\t\tcomponentBar.clearButtonGroupSelection(0);\r\n \t\t\tsetConnect.setEnabled(false);\r\n \t\t\tsetSelect.setEnabled(false);\r\n \t\t}\r\n \r\n \t\t// Selects components from removed blocking regions\r\n \t\tif (select.size() > 0) {\r\n \t\t\tgraph.setSelectionCells(select.toArray());\r\n \t\t\t// Resets parent information of cells that changed parent\r\n \t\t\tit = select.iterator();\r\n \t\t\twhile (it.hasNext()) {\r\n \t\t\t\tObject next = it.next();\r\n \t\t\t\tif (next instanceof JmtCell) {\r\n \t\t\t\t\t((JmtCell) next).resetParent();\r\n \t\t\t\t}\r\n \t\t\t}\r\n \t\t}\r\n \t}",
"void disableAgentSelectionControl();",
"private void stopEditing() {\n int col_index = table.getEditingColumn();\n if (col_index >= 0) {\n TableColumn col = table.getColumnModel().getColumn(col_index);\n col.getCellEditor().stopCellEditing();\n }\n }",
"public void disableChoice(int x, int y, int value)\n {\n _cells[x][y].disableValue(value);\n }",
"public void cancelSelectionBorder(){\n BackgroundImage bgselected= new BackgroundImage(new Image(\"rugbeats/img/Background_selectedhdpi.png\"),BackgroundRepeat.NO_REPEAT, BackgroundRepeat.NO_REPEAT, BackgroundPosition.DEFAULT,\n new BackgroundSize(1.0, 1.0, true, true, false, false));\n ImgStack.setBackground(new Background(bgselected));\n }",
"private static void izbrisiClanaIzTabele(int red) {\r\n\t\tDefaultTableModel dtm = (DefaultTableModel) teretanaGui.getTable().getModel();\r\n\t\tdtm.removeRow(red);\r\n\t}",
"public boolean forceSelection();"
] |
[
"0.761847",
"0.7479642",
"0.7462697",
"0.7135401",
"0.694633",
"0.69184077",
"0.6912433",
"0.6886319",
"0.68528545",
"0.6845647",
"0.68375397",
"0.67366004",
"0.66322774",
"0.6603273",
"0.65740347",
"0.65305746",
"0.65267",
"0.6524816",
"0.6459828",
"0.64363027",
"0.64249563",
"0.6399506",
"0.63929725",
"0.6390036",
"0.6387307",
"0.63769376",
"0.63323814",
"0.63226634",
"0.6317693",
"0.6316755",
"0.6312101",
"0.6301528",
"0.6297801",
"0.62896776",
"0.6284805",
"0.6265991",
"0.6240628",
"0.6231887",
"0.6209852",
"0.6192089",
"0.6165708",
"0.61622316",
"0.61555654",
"0.61449206",
"0.6142474",
"0.6141359",
"0.6127005",
"0.61200106",
"0.6119026",
"0.6103127",
"0.60911214",
"0.6051052",
"0.6035864",
"0.60142004",
"0.6007363",
"0.5996637",
"0.59931916",
"0.59766114",
"0.59382176",
"0.5933846",
"0.5924969",
"0.5921247",
"0.59132814",
"0.590692",
"0.5903875",
"0.5898672",
"0.58895683",
"0.5884654",
"0.5877742",
"0.58603394",
"0.58603394",
"0.5860118",
"0.58570683",
"0.5839349",
"0.58232516",
"0.5810996",
"0.5805397",
"0.57960176",
"0.5789086",
"0.5775619",
"0.57733786",
"0.5755926",
"0.5745704",
"0.57432854",
"0.5742436",
"0.57385516",
"0.5731916",
"0.5723447",
"0.57120293",
"0.56987673",
"0.5693258",
"0.5681007",
"0.5677498",
"0.56762034",
"0.567569",
"0.5674019",
"0.5658541",
"0.5654415",
"0.56539685",
"0.5645773"
] |
0.79538244
|
0
|
Insert a row before another row, optionally with animation
|
public native void insertRowAfter(int index, TableViewRow row, TableViewAnimation animation) /*-{
var jso = this.@com.emitrom.ti4j.core.client.ProxyObject::getJsObj()();
jso
.insertRowAfter(
index,
row.@com.emitrom.ti4j.core.client.ProxyObject::getJsObj()(),
animation.@com.emitrom.ti4j.core.client.ProxyObject::getJsObj()());
}-*/;
|
{
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
}
|
[
"public native void insertRowBefore(int index, TableViewRow row, TableViewAnimation animation) /*-{\n\t\tvar jso = this.@com.emitrom.ti4j.core.client.ProxyObject::getJsObj()();\n\t\tjso\n\t\t\t\t.insertRowBefore(\n\t\t\t\t\t\tindex,\n\t\t\t\t\t\trow.@com.emitrom.ti4j.core.client.ProxyObject::getJsObj()(),\n\t\t\t\t\t\tanimation.@com.emitrom.ti4j.core.client.ProxyObject::getJsObj()());\n }-*/;",
"@Kroll.method\n\tpublic void insertRowBefore(int index, Object rowObj, @Kroll.argument(optional = true) KrollDict animation)\n\t{\n\t\tfinal TableViewRowProxy existingRow = getRowByIndex(index);\n\n\t\tif (existingRow != null) {\n\t\t\tfinal TiViewProxy parent = existingRow.getParent();\n\n\t\t\tif (parent != null) {\n\t\t\t\tif (parent instanceof TableViewSectionProxy) {\n\t\t\t\t\tfinal TableViewSectionProxy section = (TableViewSectionProxy) parent;\n\t\t\t\t\tfinal TableViewRowProxy row = processRow(rowObj);\n\n\t\t\t\t\tif (row == null) {\n\t\t\t\t\t\treturn;\n\t\t\t\t\t}\n\n\t\t\t\t\t// Row is in section, modify section rows.\n\t\t\t\t\tsection.add(existingRow.getIndexInSection(), row);\n\n\t\t\t\t\t// Notify TableView of update.\n\t\t\t\t\tupdate();\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}",
"public void addRow( int before ) {\n\t\tint size = (rows+1) * cols;\n\t\tfloat[] x = new float[size];\n\t\tfloat[] y = new float[size];\n\n\t\trows++;\n\t\tint i = 0;\n\t\tint j = 0;\n\t\tfor (int row = 0; row < rows; row++) {\n\t\t\tfor (int col = 0; col < cols; col++) {\n\t\t\t\tint k = j+col;\n\t\t\t\tint l = i+col;\n\t\t\t\tif ( row == before ) {\n\t\t\t\t\tx[k] = (xGrid[l]+xGrid[k])/2;\n\t\t\t\t\ty[k] = (yGrid[l]+yGrid[k])/2;\n\t\t\t\t} else {\n\t\t\t\t\tx[k] = xGrid[l];\n\t\t\t\t\ty[k] = yGrid[l];\n\t\t\t\t}\n\t\t\t}\n\t\t\tif ( row != before-1 )\n\t\t\t\ti += cols;\n\t\t\tj += cols;\n\t\t}\n\t\txGrid = x;\n\t\tyGrid = y;\n\t}",
"@Kroll.method\n\tpublic void insertRowAfter(int index, Object rowObj, @Kroll.argument(optional = true) KrollDict animation)\n\t{\n\t\tfinal TableViewRowProxy existingRow = getRowByIndex(index);\n\n\t\tif (existingRow != null) {\n\t\t\tfinal TiViewProxy parent = existingRow.getParent();\n\n\t\t\tif (parent != null) {\n\t\t\t\tif (parent instanceof TableViewSectionProxy) {\n\t\t\t\t\tfinal TableViewSectionProxy section = (TableViewSectionProxy) parent;\n\t\t\t\t\tfinal TableViewRowProxy row = processRow(rowObj);\n\n\t\t\t\t\tif (row == null) {\n\t\t\t\t\t\treturn;\n\t\t\t\t\t}\n\n\t\t\t\t\t// Row is in section, modify section rows.\n\t\t\t\t\tsection.add(existingRow.getIndexInSection() + 1, row);\n\n\t\t\t\t\t// Notify TableView of update.\n\t\t\t\t\tupdate();\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}",
"public Node insertBefore(Node node);",
"@Override\n protected void moveToNextRow(){\n incrementRow();\n resetXPos();\n if(getRow()%2 == 1){\n incrementYPos(getHeight()+getHeight());\n }\n resetCol();\n setPointDirection();\n }",
"void hackInsertWidget(Widget w, int beforeIndex) {\n panel.insert(w, beforeIndex);\n }",
"@Kroll.method\n\tpublic void insertSectionBefore(int index, Object sectionObj,\n\t\t\t\t\t\t\t\t\t@Kroll.argument(optional = true) KrollDict animation)\n\t{\n\t\tfinal TableViewSectionProxy section = processSection(sectionObj);\n\n\t\tif (index > -1 && index <= this.sections.size()) {\n\t\t\tsection.setParent(this);\n\t\t\tthis.sections.add(index, section);\n\n\t\t\t// Notify TableView of update.\n\t\t\tupdate();\n\t\t}\n\t}",
"public void moveRowRelative(int rows) throws SQLException {\n/* 327 */ notSupported();\n/* */ }",
"public void absMoveToFirstRowAt(int index) {\n if ((index <= 0) || (index >= getModel().getRowCount())) {\n return;\n }\n\n Vector[] va = getAllRowsData();\n\n Vector vTemp = va[index];\n\n // Move the rows above the index row down one.\n System.arraycopy(va, 0, va, 1, index);\n\n va[0] = vTemp;\n\n //_printTableRow(0, va[0]);\n setRows(va);\n }",
"public void shiftRows(int[][] matrix) {\r\n\t\t//initialize and show header\r\n\t\tinitializeAnimalHeader();\r\n\t\tlang.nextStep();\r\n\t\t//initialize and show description\r\n\t\tinitializeDescription();\r\n\t\tlang.nextStep();\r\n\t\t//hide description, initialize and show all elements relevant for the computation\r\n\t\thideDescription();\r\n\t\tinitialzieAnimalMatrix(matrix);\r\n\t\tinitializeAnimalShiftRowSourceCode();\r\n\t\tinitializeAnimalShiftLeftSourceCode();\r\n\t\tinitializeAnimalRowText();\r\n\t\tinitializeAnimalIText();\r\n\t\tinititalzeAnimalMatrixCounter();\r\n\t\t//some source code highlighting to show which java code\r\n\t\t//is equivalent to the current state of the animation\r\n\t\tshiftRowSc.highlight(0);\r\n\t\tshiftRowSc.highlight(4);\r\n\t\tlang.nextStep();\r\n\t\tshiftRowSc.unhighlight(0);\r\n\t\tshiftRowSc.unhighlight(4);\r\n\t\tshiftRowSc.highlight(1);\r\n\t\tshiftRowSc.highlight(3);\r\n\t\t//initialize element that shows current state of loop variable\r\n\t\trowText.setText(\"row = 0\", new TicksTiming(0), new TicksTiming(0));\r\n\t\trowText.show();\r\n\t\thighlightText(rowText);\r\n\t\tseparatorLine.show();\r\n\t\tfor (int row = 0; row < matrix.length; row++) {\r\n\t\t\tlang.nextStep();\r\n\t\t\t//some source code highlighting to show which java code\r\n\t\t\t//is equivalent to the current state of the animation\r\n\t\t\tshiftRowSc.unhighlight(1);\r\n\t\t\tshiftRowSc.unhighlight(3);\r\n\t\t\tshiftRowSc.highlight(2);\r\n\t\t\tunhighlightText(rowText);\r\n\t\t\tlang.nextStep();\r\n\t\t\t//call shifts for each row in. first execute the java code then generate\r\n\t\t\t//the equivalent animal code\r\n\t\t\tshiftLeft(matrix, row);\r\n\t\t\tshiftLeftAnimal(row);\r\n\t\t\t//some source code highlighting to show which java code\r\n\t\t\t//is equivalent to the current state of the animation\r\n\t\t\tshiftRowSc.unhighlight(2);\r\n\t\t\tshiftRowSc.highlight(1);\r\n\t\t\tshiftRowSc.highlight(3);\r\n\t\t\trowText.setText(\"row = \" + (row + 1), new TicksTiming(0),\r\n\t\t\t\t\tnew TicksTiming(0));\r\n\t\t\thighlightText(rowText);\r\n\t\t}\r\n\t\tlang.nextStep();\r\n\t\tshiftRowSc.unhighlight(1);\r\n\t\tshiftRowSc.unhighlight(3);\r\n\t\trowText.hide();\r\n\t\tunhighlightText(rowText);\r\n\t\tseparatorLine.hide();\r\n\t\tlang.nextStep();\r\n\t\t//show final slide hide irrelevant computation elements\r\n\t\thideComputation();\r\n\t\tinitializeFinalSlide();\r\n\t}",
"Position<T> before(Position<T> p) throws IllegalStateException;",
"private void addRow() {\n ArrayList<EscapeBlock> row = new ArrayList<>();\n grid.add(row);\n \n for (int j = 0; j < gridWidth; j++) {\n EscapeBlock block = new EscapeBlock(j, gridHeight);\n block.setLocation(margin + j * (Block.length+1) ,\n margin + topMargin + gridHeight * (Block.length+1)); \n \n this.add(block); // add to the JPanel \n row.add(block); // and to the row\n }\n \n gridHeight++;\n }",
"Position<T> addBefore(Position<T> p, T data) throws IllegalStateException;",
"void coreInsertSiblingsBefore(CoreDocumentFragment fragment) throws HierarchyException, NodeMigrationException, DeferredBuildingException;",
"public static void rowPlus() {\n\t\tnRow++;\n\t\tbuildBoard();\n\t\tfor (int c = 0; c < nCol; c++)\n\t\t\tboard[c][nRow - 1] = pItem.getItem(rnd[c][nRow - 1] = random.nextDouble());\n\t\tRightPanel.updateTextBoardInfo();\n\t}",
"private void addRow() {\n\t\t\n\t\tArrayList<Invader> lastRow = enemyArray.get(enemyArray.size() - 1);\n\t\tArrayList<Invader> newRow = new ArrayList<Invader>();\n\t\t\t\n\t\tfor (int i = 0; i < 10; i++) {\n\t\t\tnewRow.add(new Invader(\n\t\t\t\t\tlastRow.get(i).getX(),\n\t\t\t\t\tlastRow.get(i).getY() + 40,\n\t\t\t\t\tPLAYER_WIDTH,\n\t\t\t\t\tPLAYER_WIDTH,\n\t\t\t\t\t2));\n\t\t}\n\t\t\n\t\tenemyArray.add(newRow);\n\t}",
"public void incrementRow() {\n setRowAndColumn(row + 1, column);\n }",
"public void absInsertRowAt(Vector row, int index) {\n if (row == null) {\n row = new Vector(getModel().getColumnCount());\n }\n ((DefaultTableModel) getModel()).insertRow(index, row);\n }",
"public void beforeFirst() {\n\t\tmoveTo(0);\n\t}",
"public void absIncrementRowAt(int index) {\n int lastIndex = getModel().getRowCount() - 1;\n if ((index < 0) || (index >= lastIndex)) {\n return;\n }\n\n Vector[] va = getAllRowsData();\n\n Vector vTemp = va[index];\n va[index] = va[index + 1];\n va[index + 1] = vTemp;\n\n setRows(va);\n }",
"Node insertBefore(Node newChild, Node refChild);",
"public static native Element insertBefore(Element elem, DomConfig config)/*-{\r\n\t\tvar configJS = config.@com.ait.toolkit.sencha.shared.client.dom.DomConfig::getJsObject()();\r\n\t\treturn $wnd.Ext.DomHelper.insertBefore(parent, configJS);\r\n\t}-*/;",
"TimelineMeta insert(TimelineMeta meta);",
"private void shiftLeftAnimal(int row) {\r\n\t\t//some source code and matrix highlighting to show which java code\r\n\t\t//is equivalent to the current state of the animation\r\n\t\tmainMatrix.highlightCellColumnRange(row, 0, 3, new TicksTiming(0), new TicksTiming(0));\r\n\t\tshiftLeftSc.highlight(0);\r\n\t\tshiftLeftSc.highlight(9);\r\n\t\tlang.nextStep();\r\n\t\tshiftLeftSc.unhighlight(0);\r\n\t\tshiftLeftSc.unhighlight(9);\r\n\t\tshiftLeftSc.highlight(1);\r\n\t\tshiftLeftSc.highlight(7);\r\n\t\t//initialize element that shows current state of loop variable\r\n\t\tiText.setText(\"i = 0\", new TicksTiming(0), new TicksTiming(0));\r\n\t\tiText.show();\r\n\t\thighlightText(iText);\r\n\t\t//loop for shifts\r\n\t\tfor (int i = 0; i < row; i++) {\r\n\t\t\tlang.nextStep();\r\n\t\t\t//some source code and matrix highlighting to show which java code\r\n\t\t\t//is equivalent to the current state of the animation\r\n\t\t\tshiftLeftSc.unhighlight(1);\r\n\t\t\tshiftLeftSc.unhighlight(7);\r\n\t\t\tshiftLeftSc.highlight(2);\r\n\t\t\tunhighlightText(iText);\r\n\t\t\ttmpText.show();\r\n\t\t\ttmpMatrix.show();\r\n\t\t\t\r\n\t\t\t//add lines to swap values through the matrix. This is where the action happens!\r\n\t\t\t//increment counter\r\n\t\t\tcounter.accessInc(1);\r\n\t\t\tcounter.assignmentsInc(1);\r\n\t\t\tlang.addLine(\"swapGridValues \\\"mainMatrix[\" + row + \"][0]\\\" and \\\"tmpMatrix[0][0]\\\" refresh after 0 ticks within 100 ticks\");\r\n\t\t\tlang.nextStep();\r\n\t\t\t//increment counter\r\n\t\t\tcounter.accessInc(1);\r\n\t\t\tcounter.assignmentsInc(1);\r\n\t\t\tshiftLeftSc.unhighlight(2);\r\n\t\t\tshiftLeftSc.highlight(3);\r\n\t\t\tlang.addLine(\"swapGridValues \\\"mainMatrix[\" + row + \"][0]\\\" and \\\"mainMatrix[\" + row + \"][1]\\\" refresh after 0 ticks within 100 ticks\");\r\n\t\t\tlang.nextStep();\r\n\t\t\t//increment counter\r\n\t\t\tcounter.accessInc(1);\r\n\t\t\tcounter.assignmentsInc(1);\r\n\t\t\tshiftLeftSc.unhighlight(3);\r\n\t\t\tshiftLeftSc.highlight(4);\r\n\t\t\tlang.addLine(\"swapGridValues \\\"mainMatrix[\" + row + \"][1]\\\" and \\\"mainMatrix[\" + row + \"][2]\\\" refresh after 0 ticks within 100 ticks\");\r\n\t\t\tlang.nextStep();\r\n\t\t\t//increment counter\r\n\t\t\tcounter.accessInc(1);\r\n\t\t\tcounter.assignmentsInc(1);\r\n\t\t\tshiftLeftSc.unhighlight(4);\r\n\t\t\tshiftLeftSc.highlight(5);\r\n\t\t\tlang.addLine(\"swapGridValues \\\"mainMatrix[\" + row + \"][2]\\\" and \\\"mainMatrix[\" + row + \"][3]\\\" refresh after 0 ticks within 100 ticks\");\r\n\t\t\tlang.nextStep();\r\n\t\t\t//increment counter\r\n\t\t\tcounter.accessInc(1);\r\n\t\t\tcounter.assignmentsInc(1);\r\n\t\t\tshiftLeftSc.unhighlight(5);\r\n\t\t\tshiftLeftSc.highlight(6);\r\n\t\t\tlang.addLine(\"swapGridValues \\\"mainMatrix[\" + row + \"][3]\\\" and \\\"tmpMatrix[0][0]\\\" refresh after 0 ticks within 100 ticks\");\r\n\r\n\t\t\tlang.nextStep();\r\n\t\t\ttmpText.hide();\r\n\t\t\ttmpMatrix.hide();\r\n\t\t\t//some source code and matrix highlighting to show which java code\r\n\t\t\t//is equivalent to the current state of the animation\r\n\t\t\tshiftLeftSc.highlight(1);\r\n\t\t\tshiftLeftSc.highlight(7);\r\n\t\t\tshiftLeftSc.unhighlight(6);\r\n\t\t\tiText.setText(\"i = \" + (i + 1), new TicksTiming(0), new TicksTiming(0));\r\n\t\t\thighlightText(iText);\r\n\t\t}\r\n\t\tlang.nextStep();\r\n\t\t//some source code and matrix highlighting to show which java code\r\n\t\t//is equivalent to the current state of the animation\r\n\t\tshiftLeftSc.unhighlight(0);\r\n\t\tshiftLeftSc.unhighlight(9);\r\n\t\tshiftLeftSc.unhighlight(1);\r\n\t\tshiftLeftSc.unhighlight(7);\r\n\t\tshiftLeftSc.highlight(8);\r\n\t\tunhighlightText(iText);\r\n\t\tiText.hide();\r\n\t\tlang.nextStep();\r\n\t\tshiftLeftSc.unhighlight(8);\r\n\t\tmainMatrix.unhighlightCellColumnRange(row, 0, 3, new TicksTiming(0), new TicksTiming(0));\r\n\t}",
"public static native Element insertBefore(Element elem, Element sibling)/*-{\r\n\t\treturn $wnd.Ext.DomHelper.insertBefore(elem, sibling);\r\n\t}-*/;",
"public void moveToInsertRow() throws SQLException\n {\n m_rs.moveToInsertRow();\n }",
"private Node insertBefore(E element, Node node) {\n \treturn new Node(node.pred, element);\n }",
"void reorderNode(LinkedEntries.LinkNode insert, LinkedEntries.LinkNode before) {\n removeNode(insert);\n if (before == null) {\n addNode(insert, getHeader());\n } else {\n addNode(insert, before);\n }\n }",
"public JsStatement insertBefore(String expression)\n\t{\n\t\tchain(ManipulatingHelper.insertBefore(expression));\n\t\treturn this;\n\t}",
"private void advanceRow(){\n\t\tfaceBackwards();\n\t\twhile(frontIsClear()){\n\t\t\tmove();\n\t\t}\n\t\tturnRight();\n\t\tif(frontIsClear()){\n\t\t\tmove();\n\t\t\tturnRight();\n\t\t}\n\t}",
"private void addHorizontalSeparator(TableLayout tableLayout){\n View view = new View(getApplicationContext());\n view.setLayoutParams(new TableRow.LayoutParams(TableRow.LayoutParams.MATCH_PARENT, 1));\n view.setBackgroundColor(Color.rgb(50, 50, 50));\n tableLayout.addView(view);\n }",
"private void insertData(String[] line) throws Exception {\r\n Activity newActivity = getActivity(line);\r\n if (importInputForm.getTaskBox().isSelected()) {\r\n panel.getMainTable().importActivity(newActivity);\r\n panel.getMainTable().insertRow(newActivity);\r\n } else if (importInputForm.getSubtaskBox().isSelected() && panel.getMainTable().getModel().getRowCount() != 0) {\r\n newActivity.setParentId(panel.getMainTable().getActivityIdFromSelectedRow());\r\n panel.getSubTable().importActivity(newActivity);\r\n panel.getSubTable().insertRow(newActivity);\r\n // adjust the parent task\r\n panel.getMainTable().addPomsToSelectedRow(newActivity);\r\n }\r\n }",
"public void jumpToPreLine() {\n int currentLineNo = getCurrentLineByCursor();\n if (currentLineNo == 1) {\n textBuffer.setCurToHead();\n return;\n }\n int curX = round(cursor.getX());\n textBuffer.setCurToTargetNo(currentLineNo-1);\n lineJumpHelper(curX);\n }",
"private void selectTableRow () {\n int selectedRow = itemTable.getSelectedRow();\n if (selectedRow >= 0 && selectedRow < clubEventList.size()) {\n boolean modOK = modIfChanged();\n if (modOK) {\n position = clubEventList.positionUsingListIndex (selectedRow);\n positionAndDisplay();\n }\n }\n }",
"public void insertBefore(Card newCard, Card oldCard)\n\t{\n\t\tint index = cards.indexOf(oldCard);\n\t\t\n\t\t// If it's found, add the new card\n\t\tif(index >= 0) {\n\t\t\t\n\t\t\taddCard(index, newCard);\n\t\t\t\n\t\t\t// Remove and re-add all cards\n\t\t\tsyncCardsWithViews();\n\t\t\t\n\t\t}\n\t\t\n\t}",
"public void setPositionRow(int value){this.positionRow = value;}",
"protected void moveRow (int row)\r\n {\r\n int move = 0;\r\n \r\n if (row < _currentRow)\r\n { move = _currentRow - row; }\r\n \r\n else if (row > _currentRow)\r\n { move = row - _currentRow; }\r\n \r\n _currentRow = row;\r\n }",
"public static native Element insertBefore(Element elem, String rawHtml)/*-{\r\n\t\treturn $wnd.Ext.DomHelper.insertBefore(parent, rawHtml);\r\n\t}-*/;",
"public void insertBefore( int pos, T data ) \n {\n \tDLLIterator cycle = new DLLIterator();\n \t\n \t\n if(pos <= 0){\n \t \n \t insertFirst(data);\n }\n \n else if(pos >= capacity){\n \t insertLast(data);\n \t \n } \n \n else{\n \t \n \t int x = 0;\n \t \n \t DLLNode insert = cycle.currentNode;\n \t \n \t while(x != pos){\n \t\t x++;\n \t\t insert = cycle.nextNode();\n \t\t \n \t }\n \t \n \t DLLNode before = insert.prev;\n \t DLLNode newNode = new DLLNode(data, before, insert);\n \t \n \t before.next = newNode;\n \t insert.prev = newNode;\n \t \n }\n \n \t \n \t \n \n }",
"void addBefore(T target, T element);",
"public abstract Position<E> insertLeftSibling(Position<E> p, E e);",
"public void insertReorderBarrier() {\n\t\t\n\t}",
"public native String insertItemBefore(String newItem, Number index);",
"public void addTileOnBeginning(Tile tile);",
"private void shiftPartialRowToBeginning() {\n if(true)\n throw new UnsupportedOperationException(\"Need to step through this method\");\n// // Get the length to shift from the beginning of the partial row.\n// int length = lastValidBytePosition_ - currentRowPosition_;\n//\n// // shift the data in the dataBufferStream\n// dataBufferStream_.reset();\n// if (dataBuffer_ != null) {\n// dataBufferStream_.write(dataBuffer_, currentRowPosition_, length);\n// }\n//\n// for (int i = 0; i < length; i++) {\n// dataBuffer_[i] = dataBuffer_[currentRowPosition_ + i];\n// }\n//\n// position_ = length - (lastValidBytePosition_ - position_);\n// lastValidBytePosition_ = length;\n }",
"public boolean insertBefore(O where, O what)\r\n {\r\n return insertAt(indexOf(where)-1,what);\r\n }",
"public void insertBeforeCursor(String s) {\n if(this.isEmpty() || cursor==-1)\n {\n lines.addFirst(s);\n }\n else\n lines.addBefore(new PositionObject<>(lines.get(cursor)), s);\n //cursor--;\n }",
"private void moveLineOn() {\n getScroller().startScroll(getOffsetX(),getOffsetY(),0,getLineHeight(),0);\n }",
"private void addTableRow(String[] cols){\n final TableRow tr = (TableRow) inflater.inflate(R.layout.word_table_row, tableLayout, false);\n tr.setClickable(true);\n final TableRow tr1 = (TableRow) inflater.inflate(R.layout.word_table_row1, tableLayout, false);\n //tr1.setClickable(true);\n final TextView posView = (TextView)tr.findViewById(R.id.wordPos);\n final TextView descriptionView = (TextView)tr.findViewById(R.id.wordDescription);\n final TextView glossView = (TextView) tr1.findViewById(R.id.wordGloss);\n final TextView glossView1 = (TextView) tr1.findViewById(R.id.wordGloss1);\n\n // set the background color to indicate if the row was selected\n View.OnClickListener clickListener = new View.OnClickListener() {\n public void onClick(View v) {\n Drawable background = posView.getBackground();\n int backColor = ContextCompat.getColor(context, R.color.row_background);\n if ((background instanceof ColorDrawable)) {\n int currentBackColor = ((ColorDrawable) background).getColor();\n if (currentBackColor == rowSelectColor)\n backColor = rowBackColor;\n //else if (currentBackColor == rowHighlightColor)\n // backColor = rowHighlightColor;\n else\n backColor = rowSelectColor;\n }\n posView.setBackgroundColor(backColor);\n descriptionView.setBackgroundColor(backColor);\n glossView.setBackgroundColor(backColor);\n tr.setBackgroundColor(backColor);\n tr1.setBackgroundColor(backColor);\n }\n };\n\n tr.setOnClickListener(clickListener);\n tr1.setOnClickListener(clickListener);\n\n // set the background color and text of the table row\n int backColor = rowBackColor;\n posView.setText(fromHtml(cols[0])); posView.setBackgroundColor(backColor);\n descriptionView.setText(fromHtml(cols[1])); descriptionView.setBackgroundColor(backColor);\n glossView.setText(fromHtml(cols[2])); glossView.setBackgroundColor(backColor);\n glossView1.setText(cols[3]);\n rows.add(tr); // save the collection of rows\n rows.add(tr1);\n tableLayout.addView(tr);\n tableLayout.addView(tr1);\n }",
"private void addNewLine(String timeAndDate, int steps) {\n\n String stepsString = Integer.toString(steps);\n\n TableRow newRow = new TableRow(this);\n\n // Create the Left hand side\n TextView left = new TextView(this);\n left.setText(timeAndDate);\n left.setGravity(Gravity.START);\n left.setPadding(10,5, 10,5);\n left.setTextSize(15);\n\n // Create the right hand side\n TextView right = new TextView(this);\n right.setText(stepsString);\n right.setGravity(Gravity.END);\n right.setPadding(10,5,10,5);\n right.setTextSize(15);\n\n // Add the TextView Components to the row\n newRow.addView(left);\n newRow.addView(right);\n\n // Add row to the TableLayout\n table.addView(newRow,new TableLayout.LayoutParams(TableLayout.LayoutParams.WRAP_CONTENT,\n TableLayout.LayoutParams.WRAP_CONTENT));\n\n // Create Line to separate rows and add to end of the new row\n View line = new View(this);\n line.setLayoutParams(new TableRow.LayoutParams(TableRow.LayoutParams.MATCH_PARENT,1));\n line.setBackgroundColor(Color.BLACK);\n table.addView(line);\n\n // Scroll to the newly added row\n scrollTo(newRow);\n }",
"public abstract void rowsInserted(int firstRow, int endRow);",
"public void enterEmpsInInsertMode(){\n EmployeesViewImpl emps=(EmployeesViewImpl)this.getEmployeesView1();\n \n emps.executeEmptyRowSet(); // executeEmpty RowSet in order not to fetch Data.\n \n Row newRow=emps.createRow();\n \n emps.insertRow(newRow);\n \n emps.setCurrentRow(newRow);\n \n }",
"void addRowsLock();",
"void insertBefore(Object data)\n\t{\n\t\tNode temp = new Node(data);\n\t\tif (length == 0) \n\t\t{\n\t\t\tthrow new RuntimeException(\"List Error: cannot call insertBefore() on empty List\");\n\t\t}\n\t\tif (cursor == null) \n\t\t{\n\t\t\tthrow new RuntimeException(\"List Error: cannot call insertBefore() on cursor that is off the list\");\n\t\t}\n\t\tif (cursor == front) \n\t\t{\n\t\t\tprepend(data); //if the cursor is at the front of the list, you can just call prepend since you will be inserting the element before the front element \n\t\t}\n\t\telse\n\t\t{\n\t\t\t\n\t\t\ttemp.prev = cursor.prev; //the new node temp's previous becomes the cursors previous\t\n temp.next = cursor; //the new node temp's next becomes the cursor\n cursor.prev.next = temp; //cursor's previous next element becomes temp\n cursor.prev = temp; //cursor's previous becomes temp\n length++;\n index++;\n\t\t}\n\t}",
"public void addHeaders() {\n TableLayout tl = findViewById(R.id.table);\n TableRow tr = new TableRow(this);\n tr.setLayoutParams(getLayoutParams());\n if (!haverford) {\n tr.addView(getTextView(0, \"Leave Bryn Mawr\", Color.WHITE, Typeface.BOLD, Color.BLUE));\n tr.addView(getTextView(0, \"Arrive Haverford\", Color.WHITE, Typeface.BOLD, Color.BLUE));\n } else {\n tr.addView(getTextView(0, \"Leave Haverford\", Color.WHITE, Typeface.BOLD, Color.BLUE));\n tr.addView(getTextView(0, \"Arrive Bryn Mawr\", Color.WHITE, Typeface.BOLD, Color.BLUE));\n }\n tl.addView(tr, getTblLayoutParams());\n }",
"@Test\n\tpublic void addNodeBeforeGiveNode() {\n\t\tSystem.out.println(\"Given a node as prev_node, insert a new node Before the given node \");\n\t\tdll.push(4);\n\t\tdll.push(3);\n\t\tdll.push(1);\n\t\tdll.InsertBefore(dll.head.next, 2);\n\t\tdll.print();\n\t}",
"private void insertIntoLayerZero(MapEntity entity) {\n\t\tboolean inserted = false;\n\t\tEntityComparator comparator = new EntityComparator();\n\t\tfor (int i = 0; i < layerZeroEntities.size() && !inserted; i++) {\n\t\t\tMapEntity otherEntity = layerZeroEntities.get(i);\n\t\t\t/*\n\t\t\t * if otherEntity (and all the following entities in the list)\n\t\t\t * should be rendered above this one\n\t\t\t */\n\t\t\tif (comparator.compare(entity, otherEntity) < 0) {\n\t\t\t\tinserted = true;\n\t\t\t\tlayerZeroEntities.add(i, entity);\n\t\t\t}\n\t\t}\n\t\tif (!inserted) { // stick it at the end of the render list\n\t\t\tlayerZeroEntities.add(entity);\n\t\t}\n\t}",
"@Override\n\tpublic void preInsert() {\n\n\t}",
"public abstract boolean prependVisibleItems(int i, boolean z);",
"@Kroll.method\n\tpublic void appendRow(Object rows, @Kroll.argument(optional = true) KrollDict animation)\n\t{\n\t\tfinal List<TableViewRowProxy> rowList = new ArrayList<>();\n\n\t\tif (rows instanceof Object[]) {\n\n\t\t\t// Handle array of rows.\n\t\t\tfor (Object rowObj : (Object[]) rows) {\n\t\t\t\tfinal TableViewRowProxy row = processRow(rowObj);\n\n\t\t\t\tif (row != null) {\n\t\t\t\t\trowList.add(row);\n\t\t\t\t}\n\t\t\t}\n\t\t} else {\n\t\t\tfinal TableViewRowProxy row = processRow(rows);\n\n\t\t\t// Handle single row.\n\t\t\tif (row != null) {\n\t\t\t\trowList.add(row);\n\t\t\t}\n\t\t}\n\t\tif (rowList.size() == 0) {\n\t\t\treturn;\n\t\t}\n\n\t\t// Prevent updating rows during iteration.\n\t\tshouldUpdate = false;\n\n\t\t// Append rows to last section.\n\t\tfor (TableViewRowProxy row : rowList) {\n\n\t\t\t// Create section if one does not exist.\n\t\t\t// Or create new section if `headerTitle` is specified.\n\t\t\tif (this.sections.size() == 0\n\t\t\t\t|| row.hasPropertyAndNotNull(TiC.PROPERTY_HEADER)\n\t\t\t\t|| row.hasPropertyAndNotNull(TiC.PROPERTY_HEADER_TITLE)\n\t\t\t) {\n\t\t\t\tfinal TableViewSectionProxy section = new TableViewSectionProxy();\n\n\t\t\t\t// Set `headerTitle` of section from row.\n\t\t\t\tsection.setProperty(TiC.PROPERTY_HEADER_TITLE,\n\t\t\t\t\trow.getProperties().optString(TiC.PROPERTY_HEADER_TITLE,\n\t\t\t\t\t\trow.getProperties().getString(TiC.PROPERTY_HEADER)));\n\n\t\t\t\tsection.setParent(this);\n\t\t\t\tthis.sections.add(section);\n\t\t\t}\n\n\t\t\t// Obtain last section.\n\t\t\tfinal TableViewSectionProxy section = this.sections.get(this.sections.size() - 1);\n\n\t\t\t// Override footer of section.\n\t\t\tsection.setProperty(TiC.PROPERTY_FOOTER_TITLE,\n\t\t\t\trow.getProperties().optString(TiC.PROPERTY_FOOTER_TITLE,\n\t\t\t\t\trow.getProperties().getString(TiC.PROPERTY_FOOTER)));\n\n\t\t\t// Add row to section.\n\t\t\tsection.add(row);\n\t\t}\n\n\t\t// Allow updating rows after iteration.\n\t\tshouldUpdate = true;\n\t\tupdate();\n\t}",
"void testDrawRow(Tester t) {\r\n initData();\r\n t.checkExpect(this.game2.indexHelp(0, 0).drawRow(2),\r\n new BesideImage(this.game2.indexHelp(0, 0).drawCell(2),\r\n this.game2.indexHelp(0, 0).right.drawRow(2)));\r\n\r\n t.checkExpect(this.game3.indexHelp(0, 0).drawRow(3),\r\n new BesideImage(this.game3.indexHelp(0, 0).drawCell(3),\r\n this.game3.indexHelp(0, 0).right.drawRow(3)));\r\n\r\n t.checkExpect(this.game5.indexHelp(0, 0).drawRow(4),\r\n new BesideImage(this.game5.indexHelp(0, 0).drawCell(4),\r\n this.game5.indexHelp(0, 0).right.drawRow(4)));\r\n t.checkExpect(this.game2.indexHelp(-1, -1).drawRow(3), new EmptyImage());\r\n }",
"public void insertAtLayer(Layer layer, Layer targetLayer, boolean insertBefore){\r\n\t\tLayerList layers = getWWD().getModel().getLayers();\r\n\t\tint offset = insertBefore ? 0 : 1;\r\n\t\tlayers.add(layers.indexOf(targetLayer)+offset, layer);\r\n\r\n\t}",
"public native VertexList insertBefore(VertexNode target, VertexNode vertex);",
"@Override\n\t\t\t\tpublic void rowsInserted(int firstRow, int endRow) {\n\n\t\t\t\t}",
"public void beforeFirst() throws TuplesException {\n if (logger.isDebugEnabled()) {\n logger.debug(\"Resetting \" + getRowCount() + \" rows of \" +\n tuples.getClass() + \" with columns \" +\n Arrays.asList(tuples.getVariables()));\n }\n \n tuples.beforeFirst();\n beforeEnd = true;\n }",
"public ExtElement insertBefore(ExtElement element, BaseModel value) {\r\n\t\treturn insertBefore(element, value.getJsObj());\r\n\t}",
"Row createRow();",
"public ExtElement insertBefore(ExtElement element, BaseModel... values) {\r\n\t\treturn insertBefore(element, Arrays.asList(values));\r\n\t}",
"public void addCol( int before ) {\n\t\tint size = rows * (cols+1);\n\t\tfloat[] x = new float[size];\n\t\tfloat[] y = new float[size];\n\n\t\tcols++;\nint i = 0;\nint j = 0;\n\t\tfor (int row = 0; row < rows; row++) {\n//\t\t\tint i = row*(cols-1);\n//\t\t\tint j = row*cols;\n\t\t\tfor (int col = 0; col < cols; col++) {\n\t\t\t\tif ( col == before ) {\n\t\t\t\t\tx[j] = (xGrid[i]+xGrid[i-1])/2;\n\t\t\t\t\ty[j] = (yGrid[i]+yGrid[i-1])/2;\n\t\t\t\t} else {\n\t\t\t\t\tx[j] = xGrid[i];\n\t\t\t\t\ty[j] = yGrid[i];\n\t\t\t\t\ti++;\n\t\t\t\t}\n\t\t\t\tj++;\n\t\t\t}\n\t\t}\n\t\txGrid = x;\n\t\tyGrid = y;\n\t}",
"public void addNewRow(Vector row) throws IllegalStateException{\r\n if(flagAddStatusRow){\r\n row.add(numberOfcolumns, new Integer(IS_INSERTED)); //Set status for row is add new\r\n }else{\r\n row.setElementAt(new Integer(IS_NO_CHANGE), numberOfcolumns);\r\n }\r\n data.add(row);\r\n }",
"public void moveUpRow(int row)throws IndexOutOfBoundsException{\r\n if (row >= 1){\r\n CoverFooterItemType tmp_element = (CoverFooterItemType)data.get(row);\r\n data.set(row, data.get((row-1)));\r\n data.set((row-1), tmp_element);\r\n fireTableRowsUpdated(row-1, row);\r\n }\r\n }",
"private void setEnterAnimation(View viewToAnimate, int position) {\n if (position > lastPosition) {\n Animation animation = AnimationUtils.loadAnimation(viewToAnimate.getContext(), android.R.anim.slide_in_left);\n viewToAnimate.startAnimation(animation);\n lastPosition = position;\n }\n }",
"@Override\n\t\tpublic void insertar() {\n\t\t\tutilitario.getTablaisFocus().insertar();\n\n\t\t}",
"private void forward() {\n index++;\n column++;\n if(column == linecount + 1) {\n line++;\n column = 0;\n linecount = content.getColumnCount(line);\n }\n }",
"void movePrev()\n\t{\n\t\tif (cursor != null) \n\t\t{\n\t\t\tif (cursor == front) \n\t\t\t{\n\t\t\t\tcursor = null;\n index = -1; //added this because i kept failing the test cases on the grading script\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\tcursor = cursor.prev; //moves cursor toward front of the list\n index--; //added this because i kept failing the test cases on the grading script\n\t\t\t}\n\t\t}\n\t}",
"public void MovePrevious()\r\n {\r\n\r\n \t try{\r\n \t\t if(!rsTution.previous())rsTution.first();\r\n \t\t Display();\r\n\r\n\r\n \t }catch(SQLException sqle)\r\n \t {System.out.println(\"MovePrevious Error:\"+sqle);}\r\n }",
"public void addRow() {\n tableModel.insertRow(this.getRowCount(), new String[]{});\n this.setModel(tableModel);\n\n }",
"void prepend(T element);",
"@Override\n public void addBefore(E element) {\n Node<E> newNodeList = new Node<>(element, cursor);\n\n if (prev == null) {\n head = newNodeList;\n cursor = newNodeList;\n } else {\n prev.setNext(newNodeList);\n cursor = newNodeList;\n }\n\n size++;\n }",
"public void insertRow(int index) {\n\t\tString[] array = new String[getColumnCount()];\n\t\tArrays.fill(array, \"\"); //$NON-NLS-1$\n\t\tinput.add(index, new ArrayList<String>(Arrays.asList(array)));\n\t\ttableViewer.refresh(false);\n\t\tfireTableModified();\n\t}",
"public interface BeforeWith<T extends BeforeWith<T>> extends QueryPart, QueryPartSQL<T>, QueryPartLinked<T> {\r\n\r\n\t/**\r\n\t * Continue query with WITH\r\n\t *\r\n\t * @param name The name of the with-block\r\n\t * @return The new WITH statement\r\n\t */\r\n\tdefault With with(final String name) {\r\n\t\treturn new With(this, name);\r\n\t}\r\n\r\n\t/**\r\n\t * Accept an existing WITH statement as predecessor\r\n\t *\r\n\t * @param with The existing WITH statement\r\n\t * @return Returns the passed WITH statement\r\n\t */\r\n\tdefault With with(final With with) {\r\n\t\treturn with.parent(this);\r\n\t}\r\n\r\n\t/**\r\n\t * Use plain SQL to form this WITH statement\r\n\t *\r\n\t * @param sql The sql string\r\n\t * @return The new WITH statement\r\n\t */\r\n\tdefault With withSQL(final String sql) {\r\n\t\treturn with((String) null).sql(sql);\r\n\t}\r\n\r\n}",
"void prepend(int element) {\n Node newHead = new Node(element,head);\n head = newHead;\n }",
"private void prevButtonActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_prevButtonActionPerformed\n projectTree.setSelectionRow(projectTree.getSelectionRows()[0] + 1);\n }",
"public void moveUpRows(int[] rows)throws IndexOutOfBoundsException{\r\n if (rows.length > 0){\r\n CoverFooterItemType tmp_element;\r\n //no moveup if i'm selecting the first elemento in the table\r\n if (rows[0] > 0){\r\n tmp_element = (CoverFooterItemType)data.get(rows[0]-1);\r\n for (int i=0; i<rows.length; i++){ \r\n if (rows[i] > 0){\r\n data.set(rows[i]-1, data.get(rows[i]));\r\n }\r\n }\r\n data.set(rows[rows.length-1], tmp_element);\r\n }\r\n if (rows[0] >= 1){\r\n fireTableRowsUpdated(rows[0]-1, rows[rows.length-1]);\r\n }\r\n }\r\n }",
"private void insertButtonActionPerformed(java.awt.event.ActionEvent evt) {// GEN\n // -\n // FIRST\n // :\n // event_insertButtonActionPerformed\n int rowIndex = headerTable.getSelectedRow();\n if (rowIndex > -1) {\n insertRow(rowIndex);\n } else {\n insertRow(_tableModel.getRowCount());\n }\n }",
"public JsStatement before(CharSequence html)\n\t{\n\t\tchain(ManipulatingHelper.before(html));\n\t\treturn this;\n\t}",
"public void\nshiftToOrigin()\n{\n\tthis.setLine(0.0, 0.0,\n\t\tthis.getP2().getX() - this.getP1().getX(),\n\t\tthis.getP2().getY() - this.getP1().getY());\n}",
"private void addEmptyRow()\n {\n TableLayout table = (TableLayout) findViewById(R.id.lossesTable);\n TableRow row = new TableRow(this);\n\n TextView emptyView1 = new TextView(this);\n ((BadBudgetApplication)this.getApplication()).initializeTableCell(emptyView1, \"\", R.drawable.emptyborder);\n TextView emptyView2 = new TextView(this);\n ((BadBudgetApplication)this.getApplication()).initializeTableCell(emptyView2, \"\", R.drawable.emptyborder);\n TextView emptyView3 = new TextView(this);\n ((BadBudgetApplication)this.getApplication()).initializeTableCell(emptyView3, \"\", R.drawable.emptyborder);\n TextView emptyView4 = new TextView(this);\n ((BadBudgetApplication)this.getApplication()).initializeTableCell(emptyView4, \"\", R.drawable.emptyborder);\n\n row.addView(emptyView1);\n row.addView(emptyView2);\n row.addView(emptyView3);\n row.addView(emptyView4);\n\n table.addView(row);\n }",
"TableRow componentBTableRow(){\n\n TableRow componentBTableRow = new TableRow(this.context);\n int headerFieldCount = this.headerObjects.size();\n\n TableRow.LayoutParams params = new TableRow.LayoutParams(LayoutParams.WRAP_CONTENT,LayoutParams.MATCH_PARENT);\n// params.setMargins(-1, 0, 0, 0);\n\n for(int x=0; x<(headerFieldCount-1); x++){\n View view = headerObjects.get(x+1);\n\n componentBTableRow.addView(view, params);\n }\n\n\n return componentBTableRow;\n }",
"public void moveToCurrentRow() throws SQLException {\n\n try {\n debugCodeCall(\"moveToCurrentRow\");\n checkClosed();\n insertRow = null;\n }\n catch (Exception e) {\n throw logAndConvert(e);\n }\n }",
"public StepList insert(Delta d){ return new StepList(d,this);}",
"public void newRow();",
"@Override\n public void prepend(T elem) {\n if(isEmpty()) { //if list is empty\n first = new DLNode(elem, null, null);//new element created, there's nothing before and after it yet\n last = first;\n }\n else{ //list in not empty\n \n first = new DLNode(elem, null, first); //new element goes to the front, there nothing before it, the old first element is after it\n \n first.next.prev = first; //ensure that reference to our first element is pointing to the new first element\n }\n \n }",
"public Node insertAfter(Node node);",
"public SequenceRegion sequencesBefore(Sequence sequence) {\n\tthrow new PasseException();\n/*\nudanax-top.st:15743:SequenceSpace methodsFor: 'smalltalk: passe'!\n{SequenceRegion} sequencesBefore: sequence {Sequence}\n\t\"Essential. All sequences less than or equal to the given sequence.\n\tShould this just be supplanted by CoordinateSpace::region ()?\"\n\t\n\tself passe.\n\t^SequenceRegion usingx: true\n\t\twith: (PrimSpec pointer arrayWith: (AfterSequence make: sequence))!\n*/\n}",
"void insert(int column, String color);",
"private static void assembleRosterTable(){\n for (int i = 0; i < 10; i++) {\n rosterTable.insertRow(i);\n }\n }",
"public void prepend(T element);",
"public void btnInsertColumn() {\n\t\t\n\t\tboolean contains = musicApp.insertNewTimeBlock();\n\t\tif(contains) {\n\t\t\tlblErrorMsg.setText(\"The track contains work you don't currently have. Please refresh before inserting sound.\");\n\t\t} else {\n\t\t\tmusicApp.updateViews();\n\t\t\tupdatePositionChoice();\n\t\t}\n\t}"
] |
[
"0.73440015",
"0.692187",
"0.6269379",
"0.60134536",
"0.58607626",
"0.58000207",
"0.5695581",
"0.56600726",
"0.5643905",
"0.560215",
"0.5556882",
"0.5546457",
"0.5515081",
"0.5512193",
"0.5473196",
"0.5425798",
"0.5406225",
"0.5360271",
"0.53539276",
"0.53538376",
"0.53356093",
"0.533301",
"0.53261685",
"0.5322824",
"0.53192335",
"0.5311788",
"0.5289581",
"0.5263795",
"0.52579796",
"0.5225568",
"0.5210043",
"0.51940435",
"0.5160105",
"0.5133451",
"0.5132941",
"0.5100411",
"0.5077325",
"0.50749147",
"0.5060064",
"0.50494814",
"0.5047289",
"0.50457937",
"0.50414467",
"0.50264513",
"0.5023986",
"0.5021089",
"0.50064814",
"0.50041294",
"0.49674532",
"0.4963921",
"0.49621406",
"0.49286783",
"0.49117914",
"0.49110106",
"0.49066526",
"0.48850226",
"0.48733556",
"0.48702246",
"0.48594317",
"0.48574612",
"0.48214778",
"0.48200813",
"0.4818774",
"0.48139367",
"0.48027372",
"0.48025215",
"0.4776747",
"0.47755572",
"0.4762807",
"0.47597545",
"0.47595882",
"0.47560588",
"0.47503397",
"0.47502726",
"0.4745952",
"0.4744739",
"0.4743617",
"0.4743514",
"0.47417882",
"0.473255",
"0.47316757",
"0.47304446",
"0.4729899",
"0.47278446",
"0.47196153",
"0.47162712",
"0.47159696",
"0.47078684",
"0.4702399",
"0.4700218",
"0.46967667",
"0.46884063",
"0.4688167",
"0.46873203",
"0.4686951",
"0.46859223",
"0.46802166",
"0.46783924",
"0.4676905",
"0.46739975"
] |
0.6551938
|
2
|
Insert a row after another row, optionally with animation
|
public native void insertRowBefore(int index, TableViewRow row, TableViewAnimation animation) /*-{
var jso = this.@com.emitrom.ti4j.core.client.ProxyObject::getJsObj()();
jso
.insertRowBefore(
index,
row.@com.emitrom.ti4j.core.client.ProxyObject::getJsObj()(),
animation.@com.emitrom.ti4j.core.client.ProxyObject::getJsObj()());
}-*/;
|
{
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
}
|
[
"public native void insertRowAfter(int index, TableViewRow row, TableViewAnimation animation) /*-{\n\t\tvar jso = this.@com.emitrom.ti4j.core.client.ProxyObject::getJsObj()();\n\t\tjso\n\t\t\t\t.insertRowAfter(\n\t\t\t\t\t\tindex,\n\t\t\t\t\t\trow.@com.emitrom.ti4j.core.client.ProxyObject::getJsObj()(),\n\t\t\t\t\t\tanimation.@com.emitrom.ti4j.core.client.ProxyObject::getJsObj()());\n }-*/;",
"@Kroll.method\n\tpublic void insertRowAfter(int index, Object rowObj, @Kroll.argument(optional = true) KrollDict animation)\n\t{\n\t\tfinal TableViewRowProxy existingRow = getRowByIndex(index);\n\n\t\tif (existingRow != null) {\n\t\t\tfinal TiViewProxy parent = existingRow.getParent();\n\n\t\t\tif (parent != null) {\n\t\t\t\tif (parent instanceof TableViewSectionProxy) {\n\t\t\t\t\tfinal TableViewSectionProxy section = (TableViewSectionProxy) parent;\n\t\t\t\t\tfinal TableViewRowProxy row = processRow(rowObj);\n\n\t\t\t\t\tif (row == null) {\n\t\t\t\t\t\treturn;\n\t\t\t\t\t}\n\n\t\t\t\t\t// Row is in section, modify section rows.\n\t\t\t\t\tsection.add(existingRow.getIndexInSection() + 1, row);\n\n\t\t\t\t\t// Notify TableView of update.\n\t\t\t\t\tupdate();\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}",
"@Override\n protected void moveToNextRow(){\n incrementRow();\n resetXPos();\n if(getRow()%2 == 1){\n incrementYPos(getHeight()+getHeight());\n }\n resetCol();\n setPointDirection();\n }",
"@Kroll.method\n\tpublic void insertRowBefore(int index, Object rowObj, @Kroll.argument(optional = true) KrollDict animation)\n\t{\n\t\tfinal TableViewRowProxy existingRow = getRowByIndex(index);\n\n\t\tif (existingRow != null) {\n\t\t\tfinal TiViewProxy parent = existingRow.getParent();\n\n\t\t\tif (parent != null) {\n\t\t\t\tif (parent instanceof TableViewSectionProxy) {\n\t\t\t\t\tfinal TableViewSectionProxy section = (TableViewSectionProxy) parent;\n\t\t\t\t\tfinal TableViewRowProxy row = processRow(rowObj);\n\n\t\t\t\t\tif (row == null) {\n\t\t\t\t\t\treturn;\n\t\t\t\t\t}\n\n\t\t\t\t\t// Row is in section, modify section rows.\n\t\t\t\t\tsection.add(existingRow.getIndexInSection(), row);\n\n\t\t\t\t\t// Notify TableView of update.\n\t\t\t\t\tupdate();\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}",
"private void addRow() {\n ArrayList<EscapeBlock> row = new ArrayList<>();\n grid.add(row);\n \n for (int j = 0; j < gridWidth; j++) {\n EscapeBlock block = new EscapeBlock(j, gridHeight);\n block.setLocation(margin + j * (Block.length+1) ,\n margin + topMargin + gridHeight * (Block.length+1)); \n \n this.add(block); // add to the JPanel \n row.add(block); // and to the row\n }\n \n gridHeight++;\n }",
"private void addRow() {\n\t\t\n\t\tArrayList<Invader> lastRow = enemyArray.get(enemyArray.size() - 1);\n\t\tArrayList<Invader> newRow = new ArrayList<Invader>();\n\t\t\t\n\t\tfor (int i = 0; i < 10; i++) {\n\t\t\tnewRow.add(new Invader(\n\t\t\t\t\tlastRow.get(i).getX(),\n\t\t\t\t\tlastRow.get(i).getY() + 40,\n\t\t\t\t\tPLAYER_WIDTH,\n\t\t\t\t\tPLAYER_WIDTH,\n\t\t\t\t\t2));\n\t\t}\n\t\t\n\t\tenemyArray.add(newRow);\n\t}",
"public void addRow( int before ) {\n\t\tint size = (rows+1) * cols;\n\t\tfloat[] x = new float[size];\n\t\tfloat[] y = new float[size];\n\n\t\trows++;\n\t\tint i = 0;\n\t\tint j = 0;\n\t\tfor (int row = 0; row < rows; row++) {\n\t\t\tfor (int col = 0; col < cols; col++) {\n\t\t\t\tint k = j+col;\n\t\t\t\tint l = i+col;\n\t\t\t\tif ( row == before ) {\n\t\t\t\t\tx[k] = (xGrid[l]+xGrid[k])/2;\n\t\t\t\t\ty[k] = (yGrid[l]+yGrid[k])/2;\n\t\t\t\t} else {\n\t\t\t\t\tx[k] = xGrid[l];\n\t\t\t\t\ty[k] = yGrid[l];\n\t\t\t\t}\n\t\t\t}\n\t\t\tif ( row != before-1 )\n\t\t\t\ti += cols;\n\t\t\tj += cols;\n\t\t}\n\t\txGrid = x;\n\t\tyGrid = y;\n\t}",
"public void absMoveToLastRowAt(int index) {\n int lastIndex = getModel().getRowCount() - 1;\n if ((index < 0) || (index >= lastIndex)) {\n return;\n }\n\n Vector[] va = getAllRowsData();\n\n Vector vTemp = va[index];\n for (int i = index; i < lastIndex; ++i) {\n va[i] = va[i + 1];\n }\n va[lastIndex] = vTemp;\n\n setRows(va);\n }",
"public static void rowPlus() {\n\t\tnRow++;\n\t\tbuildBoard();\n\t\tfor (int c = 0; c < nCol; c++)\n\t\t\tboard[c][nRow - 1] = pItem.getItem(rnd[c][nRow - 1] = random.nextDouble());\n\t\tRightPanel.updateTextBoardInfo();\n\t}",
"public void moveRowRelative(int rows) throws SQLException {\n/* 327 */ notSupported();\n/* */ }",
"public Node insertAfter(Node node);",
"public void absIncrementRowAt(int index) {\n int lastIndex = getModel().getRowCount() - 1;\n if ((index < 0) || (index >= lastIndex)) {\n return;\n }\n\n Vector[] va = getAllRowsData();\n\n Vector vTemp = va[index];\n va[index] = va[index + 1];\n va[index + 1] = vTemp;\n\n setRows(va);\n }",
"@Kroll.method\n\tpublic void insertSectionAfter(int index, Object sectionObj,\n\t\t\t\t\t\t\t\t @Kroll.argument(optional = true) KrollDict animation)\n\t{\n\t\tfinal TableViewSectionProxy section = processSection(sectionObj);\n\n\t\tif (index > -1 && index <= this.sections.size()) {\n\t\t\tsection.setParent(this);\n\t\t\tthis.sections.add(index + 1, section);\n\n\t\t\t// Notify TableView of update.\n\t\t\tupdate();\n\t\t}\n\t}",
"public void incrementRow() {\n setRowAndColumn(row + 1, column);\n }",
"Position<T> addAfter(Position<T> p, T data) throws IllegalStateException;",
"public void shiftRows(int[][] matrix) {\r\n\t\t//initialize and show header\r\n\t\tinitializeAnimalHeader();\r\n\t\tlang.nextStep();\r\n\t\t//initialize and show description\r\n\t\tinitializeDescription();\r\n\t\tlang.nextStep();\r\n\t\t//hide description, initialize and show all elements relevant for the computation\r\n\t\thideDescription();\r\n\t\tinitialzieAnimalMatrix(matrix);\r\n\t\tinitializeAnimalShiftRowSourceCode();\r\n\t\tinitializeAnimalShiftLeftSourceCode();\r\n\t\tinitializeAnimalRowText();\r\n\t\tinitializeAnimalIText();\r\n\t\tinititalzeAnimalMatrixCounter();\r\n\t\t//some source code highlighting to show which java code\r\n\t\t//is equivalent to the current state of the animation\r\n\t\tshiftRowSc.highlight(0);\r\n\t\tshiftRowSc.highlight(4);\r\n\t\tlang.nextStep();\r\n\t\tshiftRowSc.unhighlight(0);\r\n\t\tshiftRowSc.unhighlight(4);\r\n\t\tshiftRowSc.highlight(1);\r\n\t\tshiftRowSc.highlight(3);\r\n\t\t//initialize element that shows current state of loop variable\r\n\t\trowText.setText(\"row = 0\", new TicksTiming(0), new TicksTiming(0));\r\n\t\trowText.show();\r\n\t\thighlightText(rowText);\r\n\t\tseparatorLine.show();\r\n\t\tfor (int row = 0; row < matrix.length; row++) {\r\n\t\t\tlang.nextStep();\r\n\t\t\t//some source code highlighting to show which java code\r\n\t\t\t//is equivalent to the current state of the animation\r\n\t\t\tshiftRowSc.unhighlight(1);\r\n\t\t\tshiftRowSc.unhighlight(3);\r\n\t\t\tshiftRowSc.highlight(2);\r\n\t\t\tunhighlightText(rowText);\r\n\t\t\tlang.nextStep();\r\n\t\t\t//call shifts for each row in. first execute the java code then generate\r\n\t\t\t//the equivalent animal code\r\n\t\t\tshiftLeft(matrix, row);\r\n\t\t\tshiftLeftAnimal(row);\r\n\t\t\t//some source code highlighting to show which java code\r\n\t\t\t//is equivalent to the current state of the animation\r\n\t\t\tshiftRowSc.unhighlight(2);\r\n\t\t\tshiftRowSc.highlight(1);\r\n\t\t\tshiftRowSc.highlight(3);\r\n\t\t\trowText.setText(\"row = \" + (row + 1), new TicksTiming(0),\r\n\t\t\t\t\tnew TicksTiming(0));\r\n\t\t\thighlightText(rowText);\r\n\t\t}\r\n\t\tlang.nextStep();\r\n\t\tshiftRowSc.unhighlight(1);\r\n\t\tshiftRowSc.unhighlight(3);\r\n\t\trowText.hide();\r\n\t\tunhighlightText(rowText);\r\n\t\tseparatorLine.hide();\r\n\t\tlang.nextStep();\r\n\t\t//show final slide hide irrelevant computation elements\r\n\t\thideComputation();\r\n\t\tinitializeFinalSlide();\r\n\t}",
"@Kroll.method\n\tpublic void appendRow(Object rows, @Kroll.argument(optional = true) KrollDict animation)\n\t{\n\t\tfinal List<TableViewRowProxy> rowList = new ArrayList<>();\n\n\t\tif (rows instanceof Object[]) {\n\n\t\t\t// Handle array of rows.\n\t\t\tfor (Object rowObj : (Object[]) rows) {\n\t\t\t\tfinal TableViewRowProxy row = processRow(rowObj);\n\n\t\t\t\tif (row != null) {\n\t\t\t\t\trowList.add(row);\n\t\t\t\t}\n\t\t\t}\n\t\t} else {\n\t\t\tfinal TableViewRowProxy row = processRow(rows);\n\n\t\t\t// Handle single row.\n\t\t\tif (row != null) {\n\t\t\t\trowList.add(row);\n\t\t\t}\n\t\t}\n\t\tif (rowList.size() == 0) {\n\t\t\treturn;\n\t\t}\n\n\t\t// Prevent updating rows during iteration.\n\t\tshouldUpdate = false;\n\n\t\t// Append rows to last section.\n\t\tfor (TableViewRowProxy row : rowList) {\n\n\t\t\t// Create section if one does not exist.\n\t\t\t// Or create new section if `headerTitle` is specified.\n\t\t\tif (this.sections.size() == 0\n\t\t\t\t|| row.hasPropertyAndNotNull(TiC.PROPERTY_HEADER)\n\t\t\t\t|| row.hasPropertyAndNotNull(TiC.PROPERTY_HEADER_TITLE)\n\t\t\t) {\n\t\t\t\tfinal TableViewSectionProxy section = new TableViewSectionProxy();\n\n\t\t\t\t// Set `headerTitle` of section from row.\n\t\t\t\tsection.setProperty(TiC.PROPERTY_HEADER_TITLE,\n\t\t\t\t\trow.getProperties().optString(TiC.PROPERTY_HEADER_TITLE,\n\t\t\t\t\t\trow.getProperties().getString(TiC.PROPERTY_HEADER)));\n\n\t\t\t\tsection.setParent(this);\n\t\t\t\tthis.sections.add(section);\n\t\t\t}\n\n\t\t\t// Obtain last section.\n\t\t\tfinal TableViewSectionProxy section = this.sections.get(this.sections.size() - 1);\n\n\t\t\t// Override footer of section.\n\t\t\tsection.setProperty(TiC.PROPERTY_FOOTER_TITLE,\n\t\t\t\trow.getProperties().optString(TiC.PROPERTY_FOOTER_TITLE,\n\t\t\t\t\trow.getProperties().getString(TiC.PROPERTY_FOOTER)));\n\n\t\t\t// Add row to section.\n\t\t\tsection.add(row);\n\t\t}\n\n\t\t// Allow updating rows after iteration.\n\t\tshouldUpdate = true;\n\t\tupdate();\n\t}",
"public void moveDownRow(int row)throws IndexOutOfBoundsException{\r\n if (row < (data.size()-1)){ \r\n CoverFooterItemType tmp_element = (CoverFooterItemType)data.get(row);\r\n data.set(row, data.get((row+1)));\r\n data.set((row+1), tmp_element);\r\n fireTableRowsUpdated(row, row+1);\r\n }\r\n }",
"public void insertAtEnd(Employee e) {\n\t}",
"private void addNewLine(String timeAndDate, int steps) {\n\n String stepsString = Integer.toString(steps);\n\n TableRow newRow = new TableRow(this);\n\n // Create the Left hand side\n TextView left = new TextView(this);\n left.setText(timeAndDate);\n left.setGravity(Gravity.START);\n left.setPadding(10,5, 10,5);\n left.setTextSize(15);\n\n // Create the right hand side\n TextView right = new TextView(this);\n right.setText(stepsString);\n right.setGravity(Gravity.END);\n right.setPadding(10,5,10,5);\n right.setTextSize(15);\n\n // Add the TextView Components to the row\n newRow.addView(left);\n newRow.addView(right);\n\n // Add row to the TableLayout\n table.addView(newRow,new TableLayout.LayoutParams(TableLayout.LayoutParams.WRAP_CONTENT,\n TableLayout.LayoutParams.WRAP_CONTENT));\n\n // Create Line to separate rows and add to end of the new row\n View line = new View(this);\n line.setLayoutParams(new TableRow.LayoutParams(TableRow.LayoutParams.MATCH_PARENT,1));\n line.setBackgroundColor(Color.BLACK);\n table.addView(line);\n\n // Scroll to the newly added row\n scrollTo(newRow);\n }",
"void hackInsertWidget(Widget w, int beforeIndex) {\n panel.insert(w, beforeIndex);\n }",
"public void moveToInsertRow() throws SQLException\n {\n m_rs.moveToInsertRow();\n }",
"private void advanceRow(){\n\t\tfaceBackwards();\n\t\twhile(frontIsClear()){\n\t\t\tmove();\n\t\t}\n\t\tturnRight();\n\t\tif(frontIsClear()){\n\t\t\tmove();\n\t\t\tturnRight();\n\t\t}\n\t}",
"private void addLastValueToTable(){\n\t\t//System.out.println(theModelColumn.size()-1);\n\t\tsetValueAt(theModelColumn.get(theModelColumn.size()-1).getX(), theModelColumn.size()-1, 0);\n\t\tsetValueAt(theModelColumn.get(theModelColumn.size()-1).getY(), theModelColumn.size()-1, 1);\n\t\tsetValueAt(theModelColumn.get(theModelColumn.size()-1).getWidth(), theModelColumn.size()-1, 2);\n\t\tsetValueAt(theModelColumn.get(theModelColumn.size()-1).getHeight(), theModelColumn.size()-1, 3);\n\t}",
"public void moveUpRow(int row)throws IndexOutOfBoundsException{\r\n if (row >= 1){\r\n CoverFooterItemType tmp_element = (CoverFooterItemType)data.get(row);\r\n data.set(row, data.get((row-1)));\r\n data.set((row-1), tmp_element);\r\n fireTableRowsUpdated(row-1, row);\r\n }\r\n }",
"TimelineMeta insert(TimelineMeta meta);",
"public void absInsertRowAt(Vector row, int index) {\n if (row == null) {\n row = new Vector(getModel().getColumnCount());\n }\n ((DefaultTableModel) getModel()).insertRow(index, row);\n }",
"public abstract void rowsInserted(int firstRow, int endRow);",
"public void absMoveToFirstRowAt(int index) {\n if ((index <= 0) || (index >= getModel().getRowCount())) {\n return;\n }\n\n Vector[] va = getAllRowsData();\n\n Vector vTemp = va[index];\n\n // Move the rows above the index row down one.\n System.arraycopy(va, 0, va, 1, index);\n\n va[0] = vTemp;\n\n //_printTableRow(0, va[0]);\n setRows(va);\n }",
"private void shiftLeftAnimal(int row) {\r\n\t\t//some source code and matrix highlighting to show which java code\r\n\t\t//is equivalent to the current state of the animation\r\n\t\tmainMatrix.highlightCellColumnRange(row, 0, 3, new TicksTiming(0), new TicksTiming(0));\r\n\t\tshiftLeftSc.highlight(0);\r\n\t\tshiftLeftSc.highlight(9);\r\n\t\tlang.nextStep();\r\n\t\tshiftLeftSc.unhighlight(0);\r\n\t\tshiftLeftSc.unhighlight(9);\r\n\t\tshiftLeftSc.highlight(1);\r\n\t\tshiftLeftSc.highlight(7);\r\n\t\t//initialize element that shows current state of loop variable\r\n\t\tiText.setText(\"i = 0\", new TicksTiming(0), new TicksTiming(0));\r\n\t\tiText.show();\r\n\t\thighlightText(iText);\r\n\t\t//loop for shifts\r\n\t\tfor (int i = 0; i < row; i++) {\r\n\t\t\tlang.nextStep();\r\n\t\t\t//some source code and matrix highlighting to show which java code\r\n\t\t\t//is equivalent to the current state of the animation\r\n\t\t\tshiftLeftSc.unhighlight(1);\r\n\t\t\tshiftLeftSc.unhighlight(7);\r\n\t\t\tshiftLeftSc.highlight(2);\r\n\t\t\tunhighlightText(iText);\r\n\t\t\ttmpText.show();\r\n\t\t\ttmpMatrix.show();\r\n\t\t\t\r\n\t\t\t//add lines to swap values through the matrix. This is where the action happens!\r\n\t\t\t//increment counter\r\n\t\t\tcounter.accessInc(1);\r\n\t\t\tcounter.assignmentsInc(1);\r\n\t\t\tlang.addLine(\"swapGridValues \\\"mainMatrix[\" + row + \"][0]\\\" and \\\"tmpMatrix[0][0]\\\" refresh after 0 ticks within 100 ticks\");\r\n\t\t\tlang.nextStep();\r\n\t\t\t//increment counter\r\n\t\t\tcounter.accessInc(1);\r\n\t\t\tcounter.assignmentsInc(1);\r\n\t\t\tshiftLeftSc.unhighlight(2);\r\n\t\t\tshiftLeftSc.highlight(3);\r\n\t\t\tlang.addLine(\"swapGridValues \\\"mainMatrix[\" + row + \"][0]\\\" and \\\"mainMatrix[\" + row + \"][1]\\\" refresh after 0 ticks within 100 ticks\");\r\n\t\t\tlang.nextStep();\r\n\t\t\t//increment counter\r\n\t\t\tcounter.accessInc(1);\r\n\t\t\tcounter.assignmentsInc(1);\r\n\t\t\tshiftLeftSc.unhighlight(3);\r\n\t\t\tshiftLeftSc.highlight(4);\r\n\t\t\tlang.addLine(\"swapGridValues \\\"mainMatrix[\" + row + \"][1]\\\" and \\\"mainMatrix[\" + row + \"][2]\\\" refresh after 0 ticks within 100 ticks\");\r\n\t\t\tlang.nextStep();\r\n\t\t\t//increment counter\r\n\t\t\tcounter.accessInc(1);\r\n\t\t\tcounter.assignmentsInc(1);\r\n\t\t\tshiftLeftSc.unhighlight(4);\r\n\t\t\tshiftLeftSc.highlight(5);\r\n\t\t\tlang.addLine(\"swapGridValues \\\"mainMatrix[\" + row + \"][2]\\\" and \\\"mainMatrix[\" + row + \"][3]\\\" refresh after 0 ticks within 100 ticks\");\r\n\t\t\tlang.nextStep();\r\n\t\t\t//increment counter\r\n\t\t\tcounter.accessInc(1);\r\n\t\t\tcounter.assignmentsInc(1);\r\n\t\t\tshiftLeftSc.unhighlight(5);\r\n\t\t\tshiftLeftSc.highlight(6);\r\n\t\t\tlang.addLine(\"swapGridValues \\\"mainMatrix[\" + row + \"][3]\\\" and \\\"tmpMatrix[0][0]\\\" refresh after 0 ticks within 100 ticks\");\r\n\r\n\t\t\tlang.nextStep();\r\n\t\t\ttmpText.hide();\r\n\t\t\ttmpMatrix.hide();\r\n\t\t\t//some source code and matrix highlighting to show which java code\r\n\t\t\t//is equivalent to the current state of the animation\r\n\t\t\tshiftLeftSc.highlight(1);\r\n\t\t\tshiftLeftSc.highlight(7);\r\n\t\t\tshiftLeftSc.unhighlight(6);\r\n\t\t\tiText.setText(\"i = \" + (i + 1), new TicksTiming(0), new TicksTiming(0));\r\n\t\t\thighlightText(iText);\r\n\t\t}\r\n\t\tlang.nextStep();\r\n\t\t//some source code and matrix highlighting to show which java code\r\n\t\t//is equivalent to the current state of the animation\r\n\t\tshiftLeftSc.unhighlight(0);\r\n\t\tshiftLeftSc.unhighlight(9);\r\n\t\tshiftLeftSc.unhighlight(1);\r\n\t\tshiftLeftSc.unhighlight(7);\r\n\t\tshiftLeftSc.highlight(8);\r\n\t\tunhighlightText(iText);\r\n\t\tiText.hide();\r\n\t\tlang.nextStep();\r\n\t\tshiftLeftSc.unhighlight(8);\r\n\t\tmainMatrix.unhighlightCellColumnRange(row, 0, 3, new TicksTiming(0), new TicksTiming(0));\r\n\t}",
"public void btnInsertColumn() {\n\t\t\n\t\tboolean contains = musicApp.insertNewTimeBlock();\n\t\tif(contains) {\n\t\t\tlblErrorMsg.setText(\"The track contains work you don't currently have. Please refresh before inserting sound.\");\n\t\t} else {\n\t\t\tmusicApp.updateViews();\n\t\t\tupdatePositionChoice();\n\t\t}\n\t}",
"@Override\n\t\t\t\tpublic void rowsInserted(int firstRow, int endRow) {\n\n\t\t\t\t}",
"public void moveUp()\n\t{\n\t\trow++;\n\t}",
"Position<T> after(Position<T> p) throws IllegalStateException;",
"public void moveDownRows(int[] rows)throws IndexOutOfBoundsException{\r\n if (rows.length > 0){\r\n CoverFooterItemType tmp_element;\r\n //no moveup if i'm selecting the first elemento in the table\r\n if (rows[rows.length-1] < (data.size()-1)){\r\n tmp_element = (CoverFooterItemType)data.get(rows[rows.length-1]+1);\r\n for (int i=(rows.length-1); i>=0; i--){ \r\n if (rows[rows.length-1] < (data.size()-1)){\r\n data.set(rows[i]+1, data.get(rows[i]));\r\n }\r\n }\r\n data.set(rows[0], tmp_element);\r\n }\r\n if (rows[rows.length-1] < (data.size()-1)){\r\n fireTableRowsUpdated(rows[0], rows[rows.length-1]+1);\r\n }\r\n }\r\n }",
"void addAfter(T target, T element);",
"public void insertAfter(SequiturSymbol toInsert){\n join(toInsert,n);\n join(this,toInsert);\n }",
"public void newRow();",
"public void moveUpRows(int[] rows)throws IndexOutOfBoundsException{\r\n if (rows.length > 0){\r\n CoverFooterItemType tmp_element;\r\n //no moveup if i'm selecting the first elemento in the table\r\n if (rows[0] > 0){\r\n tmp_element = (CoverFooterItemType)data.get(rows[0]-1);\r\n for (int i=0; i<rows.length; i++){ \r\n if (rows[i] > 0){\r\n data.set(rows[i]-1, data.get(rows[i]));\r\n }\r\n }\r\n data.set(rows[rows.length-1], tmp_element);\r\n }\r\n if (rows[0] >= 1){\r\n fireTableRowsUpdated(rows[0]-1, rows[rows.length-1]);\r\n }\r\n }\r\n }",
"void insert(int column, String color);",
"public static native Element insertAfter(Element elem, DomConfig config)/*-{\r\n\t\tvar configJS = config.@com.ait.toolkit.sencha.shared.client.dom.DomConfig::getJsObject()();\r\n\t\treturn $wnd.Ext.DomHelper.insertAfter(parent, configJS);\r\n\t}-*/;",
"public void addRow(Spedizione spedizione){\n spedizioni.add(spedizione);\n fireTableChanged(new TableModelEvent(this));\n }",
"protected void moveRow (int row)\r\n {\r\n int move = 0;\r\n \r\n if (row < _currentRow)\r\n { move = _currentRow - row; }\r\n \r\n else if (row > _currentRow)\r\n { move = row - _currentRow; }\r\n \r\n _currentRow = row;\r\n }",
"public void addTileAtTheEnd(Tile tile);",
"public native void appendRow(List<TableViewRow> rows, TableViewAnimation animation) /*-{\n\t\tvar jso = this.@com.emitrom.ti4j.core.client.ProxyObject::getJsObj()();\n\t\tjso\n\t\t\t\t.appendRow(\n\t\t\t\t\t\t@com.emitrom.ti4j.mobile.client.ui.TableViewRow::fromList(Ljava/util/List;)(rows),\n\t\t\t\t\t\tanimation.@com.emitrom.ti4j.core.client.ProxyObject::getJsObj()());\n }-*/;",
"void addRowsLock();",
"protected void addRow(TextButton buttonToAdd)\n {\n table.add(buttonToAdd).width(centre/3.0f);\n table.row();\n }",
"public void insertAfter(Object item) {\n this.next = new SListNode(item, next);\n }",
"public void addRow() {\n tableModel.insertRow(this.getRowCount(), new String[]{});\n this.setModel(tableModel);\n\n }",
"@Override\n\tpublic void addRow() {\n\t\tif(this.numCols == 0){\n\t\t\tthis.numCols++;\n\t\t}\n\t\tthis.numRows++;\n\t}",
"private void insertData(String[] line) throws Exception {\r\n Activity newActivity = getActivity(line);\r\n if (importInputForm.getTaskBox().isSelected()) {\r\n panel.getMainTable().importActivity(newActivity);\r\n panel.getMainTable().insertRow(newActivity);\r\n } else if (importInputForm.getSubtaskBox().isSelected() && panel.getMainTable().getModel().getRowCount() != 0) {\r\n newActivity.setParentId(panel.getMainTable().getActivityIdFromSelectedRow());\r\n panel.getSubTable().importActivity(newActivity);\r\n panel.getSubTable().insertRow(newActivity);\r\n // adjust the parent task\r\n panel.getMainTable().addPomsToSelectedRow(newActivity);\r\n }\r\n }",
"@Test\n\tpublic void addNodeAfterGiveNode() {\n\t\tSystem.out.println(\"Given a node as prev_node, insert a new node after the given node \");\n\t\tdll.push(4);\n\t\tdll.push(2);\n\t\tdll.push(1);\n\t\tdll.InsertAfter(dll.head.next, 3);\n\t\tdll.print();\n\t}",
"Position<T> addBefore(Position<T> p, T data) throws IllegalStateException;",
"@Test\n public void shouldMovePostingCellToEnd() throws Exception {\n adapter.onUpdate(testPosts);\n View view = adapter.getView(OLD_DATE_SEPARATOR, null, null);\n OnItemLongClickListener listener = adapter.new ItemLongClickListener();\n listener.onItemLongClick(null, view, OLD_DATE_SEPARATOR, adapter.getItemId(OLD_DATE_SEPARATOR));\n\n // Check if the posting cell was moved.\n assertThat(adapter.getCount(), equalTo(NUM_CELLS));\n View postView = adapter.getView(OLD_DATE_SEPARATOR + 1, null, null);\n assertThat(postView.findViewById(R.id.postButton), notNullValue());\n\n // Check if the posting cell was moved after posting.\n adapter.onActivityResult(0, Activity.RESULT_OK, null);\n assertThat(adapter.getCount(), equalTo(NUM_CELLS));\n postView = adapter.getView(FORM_CELL, null, null);\n assertThat(postView.findViewById(R.id.postButton), notNullValue());\n }",
"public void insertAtBack(L insertItem){\n\t\tListNode node = new ListNode(insertItem);\n\t\tif(isEmpty()) //firstNode and lastNode refer to same Object\n\t\tfirstNode = lastNode = node;\n\t\telse{ //lastNode's nextNode refers to new node\n\t\t\tlastNode.nextNode = node;\n\t\t\tlastNode = node;\n\t\t\t//you can replace the two previous lines with this line: lastNode = lastNode.nextNode = new ListNode( insertItem );\n\t\t}\n\t}",
"private void addTableRow(String[] cols){\n final TableRow tr = (TableRow) inflater.inflate(R.layout.word_table_row, tableLayout, false);\n tr.setClickable(true);\n final TableRow tr1 = (TableRow) inflater.inflate(R.layout.word_table_row1, tableLayout, false);\n //tr1.setClickable(true);\n final TextView posView = (TextView)tr.findViewById(R.id.wordPos);\n final TextView descriptionView = (TextView)tr.findViewById(R.id.wordDescription);\n final TextView glossView = (TextView) tr1.findViewById(R.id.wordGloss);\n final TextView glossView1 = (TextView) tr1.findViewById(R.id.wordGloss1);\n\n // set the background color to indicate if the row was selected\n View.OnClickListener clickListener = new View.OnClickListener() {\n public void onClick(View v) {\n Drawable background = posView.getBackground();\n int backColor = ContextCompat.getColor(context, R.color.row_background);\n if ((background instanceof ColorDrawable)) {\n int currentBackColor = ((ColorDrawable) background).getColor();\n if (currentBackColor == rowSelectColor)\n backColor = rowBackColor;\n //else if (currentBackColor == rowHighlightColor)\n // backColor = rowHighlightColor;\n else\n backColor = rowSelectColor;\n }\n posView.setBackgroundColor(backColor);\n descriptionView.setBackgroundColor(backColor);\n glossView.setBackgroundColor(backColor);\n tr.setBackgroundColor(backColor);\n tr1.setBackgroundColor(backColor);\n }\n };\n\n tr.setOnClickListener(clickListener);\n tr1.setOnClickListener(clickListener);\n\n // set the background color and text of the table row\n int backColor = rowBackColor;\n posView.setText(fromHtml(cols[0])); posView.setBackgroundColor(backColor);\n descriptionView.setText(fromHtml(cols[1])); descriptionView.setBackgroundColor(backColor);\n glossView.setText(fromHtml(cols[2])); glossView.setBackgroundColor(backColor);\n glossView1.setText(cols[3]);\n rows.add(tr); // save the collection of rows\n rows.add(tr1);\n tableLayout.addView(tr);\n tableLayout.addView(tr1);\n }",
"public void moveRight() {\n this.position.addColumn(1);\n }",
"public void insertAfter(Card newCard, Card oldCard)\n\t{\n\t\tint index = cards.indexOf(oldCard);\n\t\t\n\t\t// If it's found, add new card\n\t\tif(index >= 0) {\n\t\t\t\n\t\t\taddCard(index + 1, newCard);\n\t\t\t\n\t\t\t// Remove and re-add all cards\n\t\t\tsyncCardsWithViews();\n\t\t\t\n\t\t}\n\t\t\n\t}",
"private static void assembleRosterTable(){\n for (int i = 0; i < 10; i++) {\n rosterTable.insertRow(i);\n }\n }",
"void testDrawRow(Tester t) {\r\n initData();\r\n t.checkExpect(this.game2.indexHelp(0, 0).drawRow(2),\r\n new BesideImage(this.game2.indexHelp(0, 0).drawCell(2),\r\n this.game2.indexHelp(0, 0).right.drawRow(2)));\r\n\r\n t.checkExpect(this.game3.indexHelp(0, 0).drawRow(3),\r\n new BesideImage(this.game3.indexHelp(0, 0).drawCell(3),\r\n this.game3.indexHelp(0, 0).right.drawRow(3)));\r\n\r\n t.checkExpect(this.game5.indexHelp(0, 0).drawRow(4),\r\n new BesideImage(this.game5.indexHelp(0, 0).drawCell(4),\r\n this.game5.indexHelp(0, 0).right.drawRow(4)));\r\n t.checkExpect(this.game2.indexHelp(-1, -1).drawRow(3), new EmptyImage());\r\n }",
"public void addAfter(MovieNode target, Object item){\n MovieNode insert = new MovieNode(item);\n insert.next = target.next;\n target.next = insert;\n size++;\n }",
"public void insertReorderBarrier() {\n\t\t\n\t}",
"public void insertAfterCursor(String s) {\n if(this.isEmpty())\n {\n lines.addFirst(s);\n }\n else\n lines.addAfter(new PositionObject<>(lines.get(cursor)), s);\n cursor++;\n }",
"public void decrementRow() {\n setRowAndColumn(Math.max(row - 1, 0), column);\n }",
"public void addTileOnBeginning(Tile tile);",
"private void addColumn() {\n for (int j = 0; j < gridHeight; j++) {\n EscapeBlock block = new EscapeBlock(gridWidth,j);\n block.setLocation(margin + gridWidth * (Block.length+1) ,\n margin + topMargin + j * (Block.length+1)); \n this.add(block);\n grid.get(j).add(block);\n }\n gridWidth++;\n }",
"@Override\n\t\tpublic void insertar() {\n\t\t\tutilitario.getTablaisFocus().insertar();\n\n\t\t}",
"private void forward() {\n index++;\n column++;\n if(column == linecount + 1) {\n line++;\n column = 0;\n linecount = content.getColumnCount(line);\n }\n }",
"public void enterEmpsInInsertMode(){\n EmployeesViewImpl emps=(EmployeesViewImpl)this.getEmployeesView1();\n \n emps.executeEmptyRowSet(); // executeEmpty RowSet in order not to fetch Data.\n \n Row newRow=emps.createRow();\n \n emps.insertRow(newRow);\n \n emps.setCurrentRow(newRow);\n \n }",
"@Test void addNextRow() {\n\t\tcheckAddNextRow(false,5,4);\n\n\t\t// X X X X\n\t\t// X X X X X\n\t\tcheckAddNextRow(true,4,5);\n\n\t\t// X\n\t\t// x\n\t\tcheckAddNextRow(false,1,1);\n\n\n\n\t\t// X\n\t\t// x\n\t\tcheckAddNextRow(true,1,1);\n\t}",
"public static native Element insertAfter(Element elem, Element sibling)/*-{\r\n\t\treturn $wnd.Ext.DomHelper.insertAfter(elem, sibling);\r\n\t}-*/;",
"void moveNext()\n\t{\n\t\tif (cursor != null) \n\t\t{\n\t\t\tif (cursor == back) \n\t\t\t{\n\t\t\t\tcursor = null;\n index = -1; //added cause i was failing the test scripts and forgot to manage the indices \n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\tcursor = cursor.next; //moves cursor toward back of the list\n index++; //added cause i was failing to the test scripts and forgot to manage the indicies\n\t\t\t}\n\t\t}\n\t}",
"@Kroll.method\n\tpublic void insertSectionBefore(int index, Object sectionObj,\n\t\t\t\t\t\t\t\t\t@Kroll.argument(optional = true) KrollDict animation)\n\t{\n\t\tfinal TableViewSectionProxy section = processSection(sectionObj);\n\n\t\tif (index > -1 && index <= this.sections.size()) {\n\t\t\tsection.setParent(this);\n\t\t\tthis.sections.add(index, section);\n\n\t\t\t// Notify TableView of update.\n\t\t\tupdate();\n\t\t}\n\t}",
"private void selectTableRow () {\n int selectedRow = itemTable.getSelectedRow();\n if (selectedRow >= 0 && selectedRow < clubEventList.size()) {\n boolean modOK = modIfChanged();\n if (modOK) {\n position = clubEventList.positionUsingListIndex (selectedRow);\n positionAndDisplay();\n }\n }\n }",
"public void addNewRow(Vector row) throws IllegalStateException{\r\n if(flagAddStatusRow){\r\n row.add(numberOfcolumns, new Integer(IS_INSERTED)); //Set status for row is add new\r\n }else{\r\n row.setElementAt(new Integer(IS_NO_CHANGE), numberOfcolumns);\r\n }\r\n data.add(row);\r\n }",
"public void insert() {\r\n\t\tinitFinish = false;\r\n\t\twhile (isEmpty()) {\r\n\t\t\tfor (int i = 0; i < size; i++) {\r\n\t\t\t\tfor (int j = 0; j < size; j++) {\r\n\t\t\t\t\tif (candyBoard[i][j] == null||!(candyBoard[i][j] instanceof RegularCandy)) {\r\n\t\t\t\t\t\tcandyBoard[i][j] = candyRandom();\r\n\t\t\t\t\t\tcandyBoard[i][j].setCoord(i, j);\r\n\t\t\t\t\t\tactiveCandies.add(candyBoard[i][j]);\r\n\t\t\t\t\t}\r\n\t\t\t\t}// for j\r\n\t\t\t}// for i\r\n\t\t\tfor (Candy candy : activeCandies) {\r\n\t\t\t\tif (move(candy, candy)) {\r\n\t\t\t\t\tincreaseMulty();\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}// while\r\n\t\tactiveCandies.removeAllElements();\r\n\t\tinitFinish = true;\r\n\t}",
"private void moveTileItemToOther(int i) {\n if (this.mTiles.size() > this.mSpanCount * 2) {\n ((SystemUIStat) Dependency.get(SystemUIStat.class)).handleControlCenterEvent(new QuickTilesRemovedEvent(this.mTiles.get(i).spec));\n this.mQSControlCustomizer.addInTileAdapter(this.mTiles.get(i), false);\n this.mTiles.remove(i);\n notifyItemRemoved(i);\n saveSpecs(this.mHost, false);\n }\n }",
"private void deleteAdjacentLines(int delta) {\n int y = cursor.getY();\n int upToLine = clampY(y + delta);\n startPatch();\n List<String> removedLines = file.removeLineRange(y, upToLine);\n register.setContents(new TextFragment(Visual.Mode.LINE, false, removedLines));\n file.breakPatch();\n // The cursor is placed on the line following the deleted lines, having\n // the effect that deleting up moves the cursor up.\n int moveBackToLine = clampY(Math.min(upToLine, y));\n cursor.moveTo(moveBackToLine, 0);\n }",
"void coreInsertSiblingsBefore(CoreDocumentFragment fragment) throws HierarchyException, NodeMigrationException, DeferredBuildingException;",
"public Node insertBefore(Node node);",
"public abstract Position<E> insertRightSibling(Position<E> p, E e);",
"public void absDecrementRowAt(int index) {\n if ((index <= 0) || (index >= getModel().getRowCount())) {\n return;\n }\n\n Vector[] va = getAllRowsData();\n\n Vector vTemp = va[index - 1];\n va[index - 1] = va[index];\n va[index] = vTemp;\n\n setRows(va);\n }",
"public JsStatement insertAfter(String expression)\n\t{\n\t\tchain(ManipulatingHelper.insertAfter(expression));\n\t\treturn this;\n\t}",
"public void insertAfter(ListNode next){\n ListNode cur = this.next;\n this.next = next;\n next.next = cur;\n }",
"@Override\n public void addLayerAfter(BoardLayerView layer, BoardLayerView after) {\n this.layers.add(this.layers.indexOf(after) + 1, layer);\n }",
"public void MoveNext()\r\n \t{\r\n\r\n\t try{\r\n\t\t if(!rsTution.next())rsTution.last();\r\n\t\t Display();\r\n\r\n\r\n\t }catch(SQLException sqle)\r\n\t {System.out.println(\"Move Next Error:\"+sqle);}\r\n \t}",
"public void insertAtBack(T insertItem) {\n\t\tNode<T> node = new Node<T>(insertItem);\n\t\t\n\t\tif (isEmpty()) // firstNode and lastNode refer to same Object\n\t\t\tfirstNode = lastNode = node;\n\t\telse { // lastNode's nextNode refers to new node\n\t\t\tlastNode.nextNode = node;\n\t\t\tlastNode = node;\n\t\t\t// you can replace the two previous lines with this line: lastNode =\n\t\t\t// lastNode.nextNode = new ListNode( insertItem );\n\t\t}\n\t\tsize++;\n\t}",
"private void addRowToGrid(GridPane targetGrid, int rowIndex, String leftText, String rightText) {\n Label leftLabel = ViewGeneratorUtil.constructLabel(leftText, ViewStyleUtil.STYLE_TEXT_4);\n Label rightLabel = ViewGeneratorUtil.constructLabel(rightText, ViewStyleUtil.STYLE_TEXT_4);\n rightLabel.setWrapText(true);\n targetGrid.addRow(rowIndex, leftLabel, rightLabel);\n }",
"private void fillEvenRow() {\n\t\tif(beepersPresent()) {\n\t\t\tturnLeft();\n\t\t\tmove();\n\t\t\tturnLeft();\n\t\t} else {\n\t\t\tturnLeft();\n\t\t\tmove();\n\t\t\tturnLeft();\n\t\t\tputBeeper();\n\t\t}\n\t\tputEveryOtherBeeper();\n\t}",
"public void insert(int index, String fragment);",
"private void fillOddRow() {\n\t\tif(beepersPresent()) {\n\t\t\tturnRight();\n\t\t\tmove();\n\t\t\tturnRight();\n\t\t} else {\n\t\t\tturnRight();\n\t\t\tmove();\n\t\t\tturnRight();\n\t\t\tputBeeper();\n\t\t}\n\t\tputEveryOtherBeeper();\n\t}",
"@Override\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\taddRow();\n\t\t\t}",
"LinkedEntries.LinkNode addAfter(NodeEntry cne, int index, LinkedEntries.LinkNode insertAfter) {\n LinkedEntries.LinkNode newNode;\n if (insertAfter == null) {\n // insert at the beginning\n newNode = new LinkedEntries.LinkNode(cne, index);\n addNode(newNode, getHeader());\n } else if (insertAfter.getNextLinkNode() == null) {\n newNode = add(cne, index);\n } else {\n newNode = new LinkedEntries.LinkNode(cne, index);\n addNode(newNode, insertAfter.getNextLinkNode());\n }\n return newNode;\n }",
"public void moveToCurrentRow() throws SQLException\n {\n m_rs.moveToCurrentRow();\n }",
"Row createRow();",
"public RNode insertAfter(int item, int position) {\n if (position >= 0 && position < length() ) {\n\t if (position == 0) {\n\t\tnext = new RNode(item, next);\n\t\treturn this; \n\t } else {\n\t\tnext = next.insertAfter(item, position - 1);\n\t\treturn this;\n\t }\n\t}\n\telse throw new RuntimeException(\"precondition violated\");\n }",
"void insertView(ViewFrame view);",
"private void addAnotherBatch(int position){\n \t\tif(position%provide.getBatchSize() == 2*provide.getBatchSize()/3\n \t\t\t\t&& position/provide.getBatchSize() == provide.getItemCache().getNextPage()-1){\n \t\t\tprovide.fillItemCache();\n \t\t}\n \t}",
"public void insertAfter(T element) {\n setNext( new LLNode<T>(element, getNext()));\n }",
"public final void collapsePlaceHolderCells(final int row){\n\t\tint currentRow = row;\n\t\tint tableSize = table.size();\n\t\twhile (currentRow < (tableSize - 1)){\n\t\t\tRow rowObj = table.get(currentRow);\n\t\t\tRow replacementRow = new Row<T>();\n\t\t\tint columns = rowObj.asList().size();\n\t\t\tfor (int i = 0; i < columns; ++i){\n\t\t\t\tCell cell = rowObj.get(i);\n\t\t\t\tif ((cell != null) && cell.isPlaceholder()){\n\t\t\t\t\treplacementRow.add(table.get(currentRow + 1).get(i));\n\t\t\t\t\ttable.get(currentRow + 1).insert(i, new Cell<T>());\n\t\t\t\t}else{\n\t\t\t\t\treplacementRow.add(table.get(currentRow).get(i));\n\t\t\t\t}\n\t\t\t}\n\t\t\ttable.set(currentRow, replacementRow);\n\t\t\t++currentRow;\n\t\t}\n\n\t}"
] |
[
"0.7147486",
"0.6675446",
"0.6167619",
"0.581313",
"0.57099575",
"0.56395185",
"0.55946237",
"0.55322033",
"0.5530597",
"0.54999906",
"0.5499793",
"0.5428751",
"0.5414961",
"0.54007167",
"0.5360196",
"0.5279908",
"0.5265713",
"0.5254661",
"0.52346486",
"0.52248114",
"0.5216134",
"0.5202806",
"0.5171631",
"0.5155036",
"0.5138425",
"0.5133651",
"0.50800884",
"0.5073215",
"0.5068235",
"0.5045821",
"0.5011594",
"0.498689",
"0.49849498",
"0.49634102",
"0.4961923",
"0.49242434",
"0.49134755",
"0.4898113",
"0.48951426",
"0.48931128",
"0.4890711",
"0.48776716",
"0.48517126",
"0.484429",
"0.48338738",
"0.483079",
"0.4825509",
"0.4798996",
"0.47827026",
"0.47813863",
"0.47710574",
"0.47646204",
"0.475267",
"0.47512308",
"0.4745715",
"0.47429556",
"0.47399023",
"0.47393644",
"0.47380388",
"0.47368762",
"0.473644",
"0.47321853",
"0.4727071",
"0.47224376",
"0.47219968",
"0.47147188",
"0.47126964",
"0.46987528",
"0.46941876",
"0.4694039",
"0.46918675",
"0.4690489",
"0.46885946",
"0.4677151",
"0.46729887",
"0.4664429",
"0.46546558",
"0.46541077",
"0.46530214",
"0.46503443",
"0.4648824",
"0.46466836",
"0.46421918",
"0.46378252",
"0.46343508",
"0.46343037",
"0.46308815",
"0.46288142",
"0.46269903",
"0.46163648",
"0.46139508",
"0.461097",
"0.46086898",
"0.46070513",
"0.4604112",
"0.46024755",
"0.4600987",
"0.45977017",
"0.45969957",
"0.45963317"
] |
0.6108551
|
3
|
Scroll to a specific row index and ensure that that row is on screen
|
public native void scrollToIndex(int index, TableViewAnimation animation) /*-{
var jso = this.@com.emitrom.ti4j.core.client.ProxyObject::getJsObj()();
jso
.scrollToIndex(
index,
animation.@com.emitrom.ti4j.core.client.ProxyObject::getJsObj()());
}-*/;
|
{
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
}
|
[
"private Point scrollToRow(JTree tree, int row)\n\t{\n\t\tPoint p = scrollToRow(tree, row, new JTreeLocation()).ii;\n\t\twaitForIdle();\n\t\treturn p;\n\t}",
"private void scrollToVisibleCell(Number newIndex, Number oldIndex) {\n if (key && newIndex != null && oldIndex != null) {\n double posFinalOffset = 0, heightLastRow = 0;\n for (int j = getRow(0).getIndex(); j < newIndex.intValue(); ++j) {\n heightLastRow = getRowHeight(j);\n posFinalOffset += heightLastRow;\n }\n final double fixedHeight = getFixedRowHeight();\n if (fixedHeight > posFinalOffset) {\n flow.scrollTo(newIndex.intValue());\n } else if (fixedHeight > posFinalOffset - heightLastRow) {\n flow.scrollPixels(posFinalOffset - heightLastRow - fixedHeight);\n }\n }\n }",
"public void scrollToTop()\n {\n ensureIndexIsVisible(0);\n }",
"private void scrollToPosition() {\n String name;\n String description;\n for (Item item : itemList) {\n name = item.getName().toLowerCase();\n description = item.getDescription().toLowerCase();\n if (name.contains(searchQuery) || description.contains(searchQuery)){\n layoutManager.scrollToPositionWithOffset(item.getId(), 0);\n break;\n }\n }\n }",
"void scroll(int scrollTop);",
"public void selectAndScrollTo(URN urn) {\n if(table == null) {\n initialize();\n }\n table.selectAndScrollTo(urn);\n }",
"public void autoscroll(Point pt) {\n\t\t// Figure out which row we're on.\n\t\tint nRow = getRowForLocation(pt.x, pt.y);\n\n\t\t// If we are not on a row then ignore this autoscroll request\n\t\tif (nRow < 0)\n\t\t\treturn;\n\n\t\tRectangle raOuter = getBounds();\n\t\t// Now decide if the row is at the top of the screen or at the\n\t\t// bottom. We do this to make the previous row (or the next\n\t\t// row) visible as appropriate. If we're at the absolute top or\n\t\t// bottom, just return the first or last row respectively.\n\n\t\tnRow = (pt.y + raOuter.y <= AUTOSCROLL_MARGIN) // Is row at top of\n\t\t// screen?\n\t\t? (nRow <= 0 ? 0 : nRow - 1) // Yes, scroll up one row\n\t\t\t\t: (nRow < getRowCount() - 1 ? nRow + 1 : nRow); // No, scroll\n\t\t// down one row\n\n\t\tscrollRowToVisible(nRow);\n\t}",
"private void goToInputtedRow() {\n if (mGoToEditText.getText() != null && !mGoToEditText.getText().toString().isEmpty()) {\n int listPosition = Integer.parseInt(mGoToEditText.getText().toString()) - 1;\n\n if (listPosition <= mAdapter.getCount()) {\n mAdapter.setSelectedListItem(listPosition);\n mAdapter.notifyDataSetChanged();\n mPiListView.setSelection(listPosition);\n } else {\n Toast toast = Toast.makeText(getApplicationContext(), String.format(getString(R.string.only_d_rows_available_message), mAdapter.getCount()), Toast.LENGTH_SHORT);\n toast.show();\n }\n }\n }",
"private void selectTableRow () {\n int selectedRow = itemTable.getSelectedRow();\n if (selectedRow >= 0 && selectedRow < clubEventList.size()) {\n boolean modOK = modIfChanged();\n if (modOK) {\n position = clubEventList.positionUsingListIndex (selectedRow);\n positionAndDisplay();\n }\n }\n }",
"private void scrollToPosition() {\n mPhotosListView.addOnLayoutChangeListener(new View.OnLayoutChangeListener() {\n @Override\n public void onLayoutChange(View v,\n int left,\n int top,\n int right,\n int bottom,\n int oldLeft,\n int oldTop,\n int oldRight,\n int oldBottom) {\n mPhotosListView.removeOnLayoutChangeListener(this);\n final RecyclerView.LayoutManager layoutManager = mPhotosListView.getLayoutManager();\n View viewAtPosition = layoutManager.findViewByPosition(MainActivity.currentPosition);\n // Scroll to position if the view for the current position is null (not currently part of\n // layout manager children), or it's not completely visible.\n if (viewAtPosition == null || layoutManager\n .isViewPartiallyVisible(viewAtPosition, false, true)) {\n mPhotosListView.post(() -> layoutManager.scrollToPosition(MainActivity.currentPosition));\n }\n }\n });\n }",
"B scrollToSelectedItem(boolean scrollToSelectedItem);",
"@Kroll.method\n\tpublic void selectRow(int index)\n\t{\n\t\tscrollToIndex(index, null);\n\n\t\tfinal TableViewRowProxy row = getRowByIndex(index);\n\n\t\tif (row != null) {\n\t\t\tfinal TiTableView tableView = getTableView();\n\n\t\t\tif (tableView != null) {\n\t\t\t\tfinal Runnable action = () -> {\n\t\t\t\t\tfinal SelectionTracker tracker = tableView.getTracker();\n\t\t\t\t\tfinal TiUIView rowView = row.peekView();\n\t\t\t\t\tfinal boolean visible = rowView != null && rowView.getNativeView().isShown();\n\n\t\t\t\t\tif (!visible) {\n\t\t\t\t\t\tscrollToIndex(index, null);\n\t\t\t\t\t}\n\t\t\t\t\tif (tracker != null) {\n\t\t\t\t\t\ttracker.select(row);\n\t\t\t\t\t}\n\t\t\t\t};\n\n\t\t\t\t// This is a workaround for when `EDITING` mode is set, as it recreates the TableView.\n\t\t\t\t// We need to listen for when it has updated before testing visibility/scrolling.\n\t\t\t\tif (!tableView.getHasLaidOutChildren()) {\n\t\t\t\t\ttableView.addOnLayoutChangeListener(new View.OnLayoutChangeListener()\n\t\t\t\t\t{\n\t\t\t\t\t\t@Override\n\t\t\t\t\t\tpublic void onLayoutChange(View view, int i, int i1, int i2, int i3, int i4, int i5, int i6,\n\t\t\t\t\t\t\t\t\t\t\t\t int i7)\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\taction.run();\n\t\t\t\t\t\t\ttableView.removeOnLayoutChangeListener(this);\n\t\t\t\t\t\t}\n\t\t\t\t\t});\n\t\t\t\t} else {\n\t\t\t\t\taction.run();\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}",
"public void absMoveToFirstRowAt(int index) {\n if ((index <= 0) || (index >= getModel().getRowCount())) {\n return;\n }\n\n Vector[] va = getAllRowsData();\n\n Vector vTemp = va[index];\n\n // Move the rows above the index row down one.\n System.arraycopy(va, 0, va, 1, index);\n\n va[0] = vTemp;\n\n //_printTableRow(0, va[0]);\n setRows(va);\n }",
"@Kroll.method\n\tpublic void scrollToIndex(int index, @Kroll.argument(optional = true) KrollDict animation)\n\t{\n\t\tfinal TiTableView tableView = getTableView();\n\t\tfinal boolean animated = animation == null || animation.optBoolean(TiC.PROPERTY_ANIMATED, true);\n\t\tfinal int position = animation != null ? animation.optInt(TiC.PROPERTY_POSITION, 0) : 0;\n\t\tfinal RecyclerView.SmoothScroller smoothScrollerToTop =\n\t\t\tnew LinearSmoothScroller(TiApplication.getAppCurrentActivity())\n\t\t\t{\n\t\t\t\t@Override\n\t\t\t\tprotected int getVerticalSnapPreference()\n\t\t\t\t{ return LinearSmoothScroller.SNAP_TO_START; }\n\t\t\t};\n\n\t\tif (tableView != null) {\n\t\t\tfinal RecyclerView recyclerView = tableView.getRecyclerView();\n\n\t\t\tif (recyclerView != null) {\n\t\t\t\tfinal TableViewRowProxy row = getRowByIndex(index);\n\n\t\t\t\tif (row != null) {\n\t\t\t\t\tfinal int rowAdapterIndex = tableView.getAdapterIndex(index);\n\t\t\t\t\tfinal Runnable action = () -> {\n\t\t\t\t\t\tif (animated) {\n\t\t\t\t\t\t\tif (position == ListViewScrollPositionModule.TOP) {\n\t\t\t\t\t\t\t\tsmoothScrollerToTop.setTargetPosition(rowAdapterIndex);\n\t\t\t\t\t\t\t\trecyclerView.getLayoutManager().startSmoothScroll(smoothScrollerToTop);\n\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\trecyclerView.smoothScrollToPosition(rowAdapterIndex);\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\tif (position == ListViewScrollPositionModule.TOP) {\n\t\t\t\t\t\t\t\t((LinearLayoutManager) recyclerView.getLayoutManager())\n\t\t\t\t\t\t\t\t\t.scrollToPositionWithOffset(rowAdapterIndex, 0);\n\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\trecyclerView.scrollToPosition(rowAdapterIndex);\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t};\n\n\t\t\t\t\t// This is a workaround for when `EDITING` mode is set, as it recreates the TableView.\n\t\t\t\t\t// We need to listen for when it has updated before scrolling.\n\t\t\t\t\tif (!tableView.getHasLaidOutChildren()) {\n\t\t\t\t\t\ttableView.addOnLayoutChangeListener(new View.OnLayoutChangeListener()\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\t@Override\n\t\t\t\t\t\t\tpublic void onLayoutChange(View view, int i, int i1, int i2, int i3, int i4, int i5, int i6,\n\t\t\t\t\t\t\t\t\t\t\t\t\t int i7)\n\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\taction.run();\n\t\t\t\t\t\t\t\ttableView.removeOnLayoutChangeListener(this);\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t});\n\t\t\t\t\t} else {\n\t\t\t\t\t\taction.run();\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}",
"protected void scrollToPosition(int position){\n recyclerView.scrollToPosition(position);\n }",
"public void scrollToBottom()\n {\n ensureIndexIsVisible(getModel().getSize() - 1);\n }",
"public void focusAtRow(int index) {\n getSelectionModel().setSelectionInterval(index, index);\n }",
"private void scrollTo(final View view) {\n\n new Handler().post(new Runnable() {\n @Override\n public void run() {\n scroll.smoothScrollTo(0, view.getBottom());\n }\n });\n }",
"@FXML\n private void handleFilteredListPanelScrollDown() {\n filteredTaskListPanel.scrollToNext();\n }",
"@Listen(\"onClick = #scroll\")\n\tpublic void scrollIntoView() {\n\t\ttreeModel.setOpenObjects(treeModel.getRoot().getChildren());\n\t\tTreeitem[] items = tree.getItems().toArray(new Treeitem[0]);\n\t\tClients.scrollIntoView(items[items.length - 1]); //last item is /WEB-INF\n\t}",
"@Override\r\n\tpublic void onScroll(AbsListView view, int firstVisibleItem,\r\n\t\t\tint visibleItemCount, int totalItemCount) {\n\r\n\t\tint offset = lastIndex - firstVisibleItem;\r\n\r\n\t\tif (offset < 0 || firstVisibleItem == 0) {\r\n\t\t\t// 证明现在listView往上移动\r\n\t\t\tif (quickTols != null) {\r\n\r\n\t\t\t\tquickTols.setVisibility(View.INVISIBLE);\r\n\t\t\t}\r\n\t\t} else if (offset > 0) {\r\n\t\t\tif (quickTols != null) {\r\n\t\t\t\tquickTols.setVisibility(View.VISIBLE);\r\n\r\n\t\t\t}\r\n\r\n\t\t}\r\n\r\n\t\tlastIndex = firstVisibleItem;\r\n\t}",
"@Override\r\n public void scrollToPosition(int position) {\r\n super.scrollToPosition(transformInnerPositionIfNeed(position));\r\n }",
"@Override\n public boolean scrolled(int amount) {\n return false;\n }",
"@Override\n public boolean scrolled(int amount) {\n return false;\n }",
"@Override\n public boolean scrolled(int amount) {\n return false;\n }",
"@Override\n public boolean scrolled(int amount) {\n return false;\n }",
"private void sendScroll() {\n\t\tfinal Handler handler = new Handler();\n\t\tnew Thread(new Runnable() {\n\t\t\t@Override\n\t\t\tpublic void run() {\n\t\t\t\twhile (mTopIndex <= mFinalIndex) {\n\t\t\t\t\ttry {\n\t\t\t\t\t\tThread.sleep(100);\n\t\t\t\t\t} catch (InterruptedException e) {\n\n\t\t\t\t\t}\n\t\t\t\t\thandler.post(new Runnable() {\n\t\t\t\t\t\t@Override\n\t\t\t\t\t\tpublic void run() {\n\t\t\t\t\t\t\tmTopIndex += 0.1;\n\t\t\t\t\t\t\tscrollView.scrollBy(0, (int) mTopIndex);\n\t\t\t\t\t\t\tif (mTopIndex >= mFinalIndex) {\n\t\t\t\t\t\t\t\tmTopIndex = 0;\n\t\t\t\t\t\t\t\tscrollView.fullScroll(ScrollView.FOCUS_UP);\n\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t\t// Check if scroll completed or not\n\t\t\t\t\t\t\tif (mFirstScroll && (mPrevY == scrollView.getScrollY())) {\n\t\t\t\t\t\t\t\tmFinalIndex = mTopIndex + 5;\n\t\t\t\t\t\t\t\tmFirstScroll = false;\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\tmPrevY = scrollView.getScrollY();\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}).start();\n\t}",
"int getRowIndex();",
"@Override\n public boolean scrolled(int arg0) {\n return false;\n }",
"@Override\n public void tableChanged(final TableModelEvent e) {\n SwingUtilities.invokeLater(new Runnable() {\n @Override\n public void run() {\n int viewRow = jTableImportMonitor.convertRowIndexToView(e.getFirstRow());\n jTableImportMonitor.scrollRectToVisible(jTableImportMonitor.getCellRect(viewRow, 0, true)); \n }\n });\n }",
"@Override\n public boolean scrolled(final int amount) {\n return false;\n }",
"@Test\n public void ScrollToView() {\n driver.scrollTo(\"Views\");\n // Click on Views.\n driver.findElement(By.name(\"Views\")).click();\n }",
"public void scrolltoPosition(int position)\r\n {\r\n mRecyclerView.scrollToPosition(position);\r\n }",
"@Override\n public void scrollToPosition(int position) {\n smoothScrollToPosition(position);\n }",
"@Override\n\t\t\tpublic boolean scrolled(int amount) {\n\t\t\t\treturn false;\n\t\t\t}",
"@Override\n\t\t\tpublic boolean scrolled(int amount) {\n\t\t\t\treturn false;\n\t\t\t}",
"public abstract void scroll(long ms);",
"private void advance(final ResultSet rs, final RowSelection selection)\n \t\t\tthrows SQLException {\n \n-\t\tfinal int firstRow = getFirstRow( selection );\n+\t\tfinal int firstRow = LimitHelper.getFirstRow( selection );\n \t\tif ( firstRow != 0 ) {\n \t\t\tif ( getFactory().getSettings().isScrollableResultSetsEnabled() ) {\n \t\t\t\t// we can go straight to the first required row\n \t\t\t\trs.absolute( firstRow );\n \t\t\t}\n \t\t\telse {\n \t\t\t\t// we need to step through the rows one row at a time (slow)\n \t\t\t\tfor ( int m = 0; m < firstRow; m++ ) rs.next();\n \t\t\t}\n \t\t}\n \t}",
"@FXML\n private void handleMainListPanelScrollDown() {\n mainTaskListPanel.scrollToNext();\n }",
"@Test\n\t public void scrollAndClick() throws InterruptedException\n\t {\n\t\t \n\t\t productpage = new ProductPage(driver);\n\t\t productpage.clickOnSomePrompt();\n\t\t int num = productpage.numberOfItemsDisplayed();\n\t\t log.info(\"number of items\" +num);\n\t\t productdetails = productpage.clickOnLastItem();\n\t\t boolean status = productdetails.isProductDEtailsPageDisplayed();\n\t\t\tAssertionHelper.updateTestStatus(status);\n\t\t\tTestBaseRunner.result = TestBaseRunner.passOrFail(status);\n\t\t\tExcelReadWrtite.updateResult(\"testData.xlsx\", \"TestScripts\", \"scrollAndClick\", result);\n\t }",
"public void scrollTo(int index) {\n\n this.getWrappedControl().scrollTo(index);\n }",
"@Test\n public void scrollListTest() {\n\n onView(withId(R.id.rv_list)).perform(RecyclerViewActions.actionOnItemAtPosition(MainActivity.mListSize, scrollTo()));\n }",
"public void scrollToPosition(int position){\n\t\tif(position < 0 || position >= mAdapter.getCount()) throw new IndexOutOfBoundsException(\"Position must be in bounds of adapter values count\");\n\t\t\n\t\treset();\n\t\trefillInternal(position-1, position);\n\t\tinvalidate();\n\t}",
"@Override\r\n\tpublic boolean scrolled(int amount) {\n\t\treturn false;\r\n\t}",
"@Override\n\tpublic boolean scrolled(int arg0) {\n\t\treturn false;\n\t}",
"@Override\n\tpublic boolean scrolled(int arg0) {\n\t\treturn false;\n\t}",
"public void setSelection( final R toElement, final boolean needScrollTo )\r\n {\r\n if( toElement == null )\r\n {\r\n clearSelection();\r\n }\r\n else\r\n { // find the element\r\n final ListSelectionModel selectionModel = jTable.getSelectionModel();\r\n final int count = getRowCount();\r\n for( int rowIndex = 0; rowIndex < count; rowIndex++ )\r\n {\r\n final R row = provideRow( rowIndex );\r\n if( row.equals( toElement ) )\r\n {\r\n final int xlatedRowIndex = jTable.convertRowIndexToView( rowIndex );\r\n selectionModel.setSelectionInterval( xlatedRowIndex, xlatedRowIndex ); // for arbitrary multi use .clearSelection() & .addSelectionInterval()\r\n\r\n if( needScrollTo == true )\r\n {\r\n jTable.scrollRectToVisible( jTable.getCellRect( xlatedRowIndex, 0, true ) );\r\n }\r\n break; // for\r\n }\r\n }\r\n }\r\n }",
"protected boolean scroll(int amount) {\n\t// Does nothing\n\treturn false;\n}",
"private static void scrollToElement(JEditorPane editorPane, HTMLDocument.Iterator elementIterator) {\n\t\ttry {\n\t\t\tRectangle rectangle = editorPane.modelToView(elementIterator.getStartOffset());\n\t\t\tif (rectangle == null) {\n\t\t\t\treturn;\n\t\t\t}\n\t\t\t// the view is visible, scroll it to the\n\t\t\t// center of the current visible area.\n\t\t\tRectangle visibleRectangle = editorPane.getVisibleRect();\n\t\t\t// r.y -= (vis.height / 2);\n\t\t\trectangle.height = visibleRectangle.height;\n\t\t\teditorPane.scrollRectToVisible(rectangle);\n\t\t} catch (BadLocationException e) {\n\t\t\tlog.error(e.getMessage());\n\t\t}\n\t}",
"void scrollToFinishActivity();",
"void setScrollPosition(int x, int y);",
"public native void scrollToIndex(int index) /*-{\n\t\tvar jso = this.@com.emitrom.ti4j.core.client.ProxyObject::getJsObj()();\n\t\tjso.scrollToIndex(index);\n }-*/;",
"private TableViewRowProxy getRowByIndex(int index)\n\t{\n\t\tfor (TableViewSectionProxy section : this.sections) {\n\t\t\tfor (TableViewRowProxy row : section.rows) {\n\t\t\t\tif (row.index == index) {\n\t\t\t\t\treturn row;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\treturn null;\n\t}",
"void scrollIntoView(final UIDL uidl) {\n if (uidl.hasAttribute(\"scrollTo\")) {\n Scheduler.get().scheduleDeferred(new Command() {\n public void execute() {\n final Paintable paintable = uidl.getPaintableAttribute(\n \"scrollTo\", connection);\n ((Widget) paintable).getElement().scrollIntoView();\n }\n });\n }\n }",
"@FXML\n private void handleFilteredListPanelScrollToFirst() {\n filteredTaskListPanel.scrollToFirst();\n }",
"public int getPositionRow(){return this.positionRow;}",
"@Test\n public void scrollToItem_checkItsText() {\n onView(ViewMatchers.withId(R.id.recycler_view_recipes_main))\n .perform(RecyclerViewActions.scrollToPosition(ITEM_TO_BE_CHECKED));\n\n // Match the text in an item below the fold and check that it's displayed.\n onView(allOf(isDisplayed(), withText(recipes.get(ITEM_TO_BE_CHECKED).getName())))\n .check(matches(isDisplayed()));\n }",
"@FXML\n private void handleFilteredListPanelScrollUp() {\n filteredTaskListPanel.scrollToPrevious();\n }",
"@Override\n protected void moveToNextRow(){\n incrementRow();\n resetXPos();\n if(getRow()%2 == 1){\n incrementYPos(getHeight()+getHeight());\n }\n resetCol();\n setPointDirection();\n }",
"int atRow();",
"public int getStartRow();",
"@Override\n\tpublic boolean scrolled(int amount)\n\t{\n\t\treturn false;\n\t}",
"public void scrollToAnElementToBeVisible(String relativepathToElement){\n JavascriptExecutor executor = driver;\n executor.executeScript(\"target.frontMostApp().mainWindow().scrollViews()[0].\"+ relativepathToElement +\".scrollToVisible();\");\n }",
"public void setPositionRow(int value){this.positionRow = value;}",
"public boolean scrollElementIntoView(WebElement element) {\n \tboolean res = true;\n try { \n ((JavascriptExecutor) driver).executeScript(\"arguments[0].scrollIntoView();\", element);\n Thread.sleep(1000);\n }catch(Exception ex){\n \tres = false;\n }\n return res;\n }",
"@Override\n\tpublic boolean scrolled(int amount) {\n\t\treturn false;\n\t}",
"@Override\n\tpublic boolean scrolled(int amount) {\n\t\treturn false;\n\t}",
"@Override\n\tpublic boolean scrolled(int amount) {\n\t\treturn false;\n\t}",
"@Override\n\tpublic boolean scrolled(int amount) {\n\t\treturn false;\n\t}",
"@Override\n\tpublic boolean scrolled(int amount) {\n\t\treturn false;\n\t}",
"@Override\n\tpublic boolean scrolled(int amount) {\n\t\treturn false;\n\t}",
"@Override\n\tpublic boolean scrolled(int amount) {\n\t\treturn false;\n\t}",
"@Override\n\tpublic boolean scrolled(int amount) {\n\t\treturn false;\n\t}",
"@Override\n\tpublic boolean scrolled(int amount) {\n\t\treturn false;\n\t}",
"@Override\n\tpublic boolean scrolled(int amount) {\n\t\treturn false;\n\t}",
"@Override\n\tpublic boolean scrolled(int amount) {\n\t\treturn false;\n\t}",
"@Override\n\tpublic boolean scrolled(int amount) {\n\t\treturn false;\n\t}",
"public abstract int findRowForWindow(int y);",
"@Override\r\n public void setRowIndex(int rowIndex) {\r\n if (rowIndex == -1 || getPageSize() == 0) {\r\n super.setRowIndex(-1);\r\n }\r\n else {\r\n super.setRowIndex(rowIndex % getPageSize());\r\n } \r\n }",
"public abstract boolean scroll(Direction direction);",
"public void snapToPage() {\n View findSnapView = this.mPagerSnapHelper.findSnapView(this.mLayoutManager);\n if (findSnapView != null) {\n int[] calculateDistanceToFinalSnap = this.mPagerSnapHelper.calculateDistanceToFinalSnap(this.mLayoutManager, findSnapView);\n if (calculateDistanceToFinalSnap[0] != 0 || calculateDistanceToFinalSnap[1] != 0) {\n this.mRecyclerView.smoothScrollBy(calculateDistanceToFinalSnap[0], calculateDistanceToFinalSnap[1]);\n }\n }\n }",
"public final boolean containsRow(int index) {\n /**\n * When scrolling with mouse wheel, some row are present but will not be\n * lay out. Thus we only consider the row with children as really\n * available.\n */\n for (Object obj : getFlow().getCells()) {\n if (((TableRow2) obj).getIndex() == index && !((TableRow2) obj).getChildrenUnmodifiable().isEmpty())\n return true;\n }\n return false;\n }",
"private void loadScrollState() {\n AppExecutors.getInstance().mainThread().execute(() ->\r\n mScrollViewFinal.scrollTo(0, mActivityPreferences\r\n .getInt(getScrollType(mIsRedWine), 0)));\r\n }",
"public void absIncrementRowAt(int index) {\n int lastIndex = getModel().getRowCount() - 1;\n if ((index < 0) || (index >= lastIndex)) {\n return;\n }\n\n Vector[] va = getAllRowsData();\n\n Vector vTemp = va[index];\n va[index] = va[index + 1];\n va[index + 1] = vTemp;\n\n setRows(va);\n }",
"public void scrollBy(){\r\n\t\tJavascriptExecutor je = (JavascriptExecutor)Global.driver;\r\n\t\tje.executeScript(\"Window.scrollBy(0,200)\",\"\");\r\n\t}",
"public void jumpToNextLine() {\n int currentLineNo = getCurrentLineByCursor();\n if (currentLineNo == textBuffer.getMaxLine()-1) {\n textBuffer.setCurToTail();\n return;\n }\n int curX = round(cursor.getX());\n textBuffer.setCurToTargetNo(currentLineNo+1);\n lineJumpHelper(curX);\n }",
"@Test\n public void scrollIntoView() throws InterruptedException {\n/*\nTask:\ngo to http://carettahotel.com/\nverify the text \"Recent Blog\" is on the page\nScroll to that element\n */\n driver.get(\"http://carettahotel.com/\");\n\n // we have to scroll otherwise it fails\n // scroll to the element by using javascript executor\n\n WebElement recentBlog = driver.findElement(By.xpath(\"//*[.='Recent Blog']\"));\n\n // 1. create javascript executor\n // ((JavascriptExecutor) driver).executeScript(\"arguments[0].scrollIntoView(true);\", recentBlog);\n JavascriptExecutor executor = (JavascriptExecutor) driver;\n executor.executeScript(\"arguments[0].scrollIntoView(true)\", recentBlog);\n\n\n\n //Wait a little so that the page scrolls down. We can use also explictlyWait\n Thread.sleep(3000);\n boolean isRecentBlogDisplayed = recentBlog.isDisplayed();\n Assert.assertTrue(isRecentBlogDisplayed);\n\n\n }",
"public int getRowIndex(int listIndex)\n {\n int row = getRow(listIndex); //Determines which row wall is in.\n return listIndex-(row*21); //Uses the walls row to calculate the walls index in that row. \n }",
"@FXML\n private void handleMainListPanelScrollUp() {\n mainTaskListPanel.scrollToPrevious();\n }",
"void scrollLeft(int scrollLeft);",
"private void updateScrollPosition() {\n int oldTop = scrollTop;\n int oldLeft = scrollLeft;\n scrollTop = DOM.getElementPropertyInt(getElement(), \"scrollTop\");\n scrollLeft = DOM.getElementPropertyInt(getElement(), \"scrollLeft\");\n if (connection != null && !rendering) {\n if (oldTop != scrollTop) {\n connection.updateVariable(id, \"scrollTop\", scrollTop, false);\n }\n if (oldLeft != scrollLeft) {\n connection.updateVariable(id, \"scrollLeft\", scrollLeft, false);\n }\n }\n }",
"public interface ScrollToPositionListener {\n\n void scrollToPosition(int position, boolean enableScroll, boolean lastVisible);\n}",
"private int rowFinder(Board board) {\n\t\tRandom myRandom = new Random();\n\t\twhile(true) {\n\t\t\tint row = myRandom.nextInt(board.getNumberOfRows()) + 1; /* random.nextInt(max - min + 1) + min,\n\t\t\trandom row with out 0 */\n\t\t\tif (this.isRowHasUnmarkedStick(row, board)) {\n\t\t\t\treturn row;\n\t\t\t}\n\t\t}\n\t}",
"public void setCurrentRow(int rowNumber) throws SQLException {\n/* 163 */ notSupported();\n/* */ }",
"@Override\n public void onRowLongClicked(int position) {\n }",
"protected void scrollTo(WebElement element) {\n getSeleniumHelper().executeJavascript(\"arguments[0].scrollIntoView(true);\", element);\n if (waitAfterScroll > 0) {\n waitMilliSeconds(waitAfterScroll);\n }\n }",
"private void moveLineOn() {\n getScroller().startScroll(getOffsetX(),getOffsetY(),0,getLineHeight(),0);\n }",
"private void advanceRow(){\n\t\tfaceBackwards();\n\t\twhile(frontIsClear()){\n\t\t\tmove();\n\t\t}\n\t\tturnRight();\n\t\tif(frontIsClear()){\n\t\t\tmove();\n\t\t\tturnRight();\n\t\t}\n\t}",
"private int jumpCursor() {\n if (cc == columns) {\n if (cl + 1 == lines)\n cl = 0;\n else\n ++cl;\n\n cc = 0;\n }\n\n return cc++;\n }",
"public void scrollTo(String targetId) {\n clientRpc.scrollTo(targetId);\n }",
"@SuppressWarnings(\"unused\")\n public void scrollRectToVisible() {\n }"
] |
[
"0.73125035",
"0.69883084",
"0.64903754",
"0.6478993",
"0.64485204",
"0.6433946",
"0.6373719",
"0.62979406",
"0.6240981",
"0.6215499",
"0.61484087",
"0.6147012",
"0.610786",
"0.5993445",
"0.59766895",
"0.59085286",
"0.58853376",
"0.5804596",
"0.5793429",
"0.5773142",
"0.57154673",
"0.57134616",
"0.57093716",
"0.57093716",
"0.57093716",
"0.57093716",
"0.5701634",
"0.56871593",
"0.5678611",
"0.5673901",
"0.56663835",
"0.56541735",
"0.56505764",
"0.5646176",
"0.56409836",
"0.56409836",
"0.56299376",
"0.56263846",
"0.5619128",
"0.56181633",
"0.5617152",
"0.5610173",
"0.5606441",
"0.5599853",
"0.5592212",
"0.5592212",
"0.5577423",
"0.5566531",
"0.55618197",
"0.5549454",
"0.55484545",
"0.5545582",
"0.5542153",
"0.55376726",
"0.5529624",
"0.5498104",
"0.5483521",
"0.5482773",
"0.547944",
"0.5474134",
"0.54704505",
"0.5453578",
"0.54506296",
"0.54457325",
"0.5425337",
"0.5421105",
"0.5421105",
"0.5421105",
"0.5421105",
"0.5421105",
"0.5421105",
"0.5421105",
"0.5421105",
"0.5421105",
"0.5421105",
"0.5421105",
"0.5421105",
"0.5398023",
"0.53954124",
"0.5380875",
"0.537979",
"0.5373561",
"0.5364277",
"0.5353935",
"0.53450906",
"0.53338295",
"0.5328702",
"0.53219736",
"0.53005725",
"0.5299186",
"0.52986234",
"0.52968645",
"0.5292458",
"0.5289364",
"0.5285875",
"0.5284502",
"0.52816653",
"0.5274024",
"0.52709764",
"0.52623653",
"0.52530766"
] |
0.0
|
-1
|
Scroll to a specific row index and ensure that that row is on screen
|
public native void scrollToIndex(int index) /*-{
var jso = this.@com.emitrom.ti4j.core.client.ProxyObject::getJsObj()();
jso.scrollToIndex(index);
}-*/;
|
{
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
}
|
[
"private Point scrollToRow(JTree tree, int row)\n\t{\n\t\tPoint p = scrollToRow(tree, row, new JTreeLocation()).ii;\n\t\twaitForIdle();\n\t\treturn p;\n\t}",
"private void scrollToVisibleCell(Number newIndex, Number oldIndex) {\n if (key && newIndex != null && oldIndex != null) {\n double posFinalOffset = 0, heightLastRow = 0;\n for (int j = getRow(0).getIndex(); j < newIndex.intValue(); ++j) {\n heightLastRow = getRowHeight(j);\n posFinalOffset += heightLastRow;\n }\n final double fixedHeight = getFixedRowHeight();\n if (fixedHeight > posFinalOffset) {\n flow.scrollTo(newIndex.intValue());\n } else if (fixedHeight > posFinalOffset - heightLastRow) {\n flow.scrollPixels(posFinalOffset - heightLastRow - fixedHeight);\n }\n }\n }",
"public void scrollToTop()\n {\n ensureIndexIsVisible(0);\n }",
"private void scrollToPosition() {\n String name;\n String description;\n for (Item item : itemList) {\n name = item.getName().toLowerCase();\n description = item.getDescription().toLowerCase();\n if (name.contains(searchQuery) || description.contains(searchQuery)){\n layoutManager.scrollToPositionWithOffset(item.getId(), 0);\n break;\n }\n }\n }",
"void scroll(int scrollTop);",
"public void selectAndScrollTo(URN urn) {\n if(table == null) {\n initialize();\n }\n table.selectAndScrollTo(urn);\n }",
"public void autoscroll(Point pt) {\n\t\t// Figure out which row we're on.\n\t\tint nRow = getRowForLocation(pt.x, pt.y);\n\n\t\t// If we are not on a row then ignore this autoscroll request\n\t\tif (nRow < 0)\n\t\t\treturn;\n\n\t\tRectangle raOuter = getBounds();\n\t\t// Now decide if the row is at the top of the screen or at the\n\t\t// bottom. We do this to make the previous row (or the next\n\t\t// row) visible as appropriate. If we're at the absolute top or\n\t\t// bottom, just return the first or last row respectively.\n\n\t\tnRow = (pt.y + raOuter.y <= AUTOSCROLL_MARGIN) // Is row at top of\n\t\t// screen?\n\t\t? (nRow <= 0 ? 0 : nRow - 1) // Yes, scroll up one row\n\t\t\t\t: (nRow < getRowCount() - 1 ? nRow + 1 : nRow); // No, scroll\n\t\t// down one row\n\n\t\tscrollRowToVisible(nRow);\n\t}",
"private void goToInputtedRow() {\n if (mGoToEditText.getText() != null && !mGoToEditText.getText().toString().isEmpty()) {\n int listPosition = Integer.parseInt(mGoToEditText.getText().toString()) - 1;\n\n if (listPosition <= mAdapter.getCount()) {\n mAdapter.setSelectedListItem(listPosition);\n mAdapter.notifyDataSetChanged();\n mPiListView.setSelection(listPosition);\n } else {\n Toast toast = Toast.makeText(getApplicationContext(), String.format(getString(R.string.only_d_rows_available_message), mAdapter.getCount()), Toast.LENGTH_SHORT);\n toast.show();\n }\n }\n }",
"private void selectTableRow () {\n int selectedRow = itemTable.getSelectedRow();\n if (selectedRow >= 0 && selectedRow < clubEventList.size()) {\n boolean modOK = modIfChanged();\n if (modOK) {\n position = clubEventList.positionUsingListIndex (selectedRow);\n positionAndDisplay();\n }\n }\n }",
"private void scrollToPosition() {\n mPhotosListView.addOnLayoutChangeListener(new View.OnLayoutChangeListener() {\n @Override\n public void onLayoutChange(View v,\n int left,\n int top,\n int right,\n int bottom,\n int oldLeft,\n int oldTop,\n int oldRight,\n int oldBottom) {\n mPhotosListView.removeOnLayoutChangeListener(this);\n final RecyclerView.LayoutManager layoutManager = mPhotosListView.getLayoutManager();\n View viewAtPosition = layoutManager.findViewByPosition(MainActivity.currentPosition);\n // Scroll to position if the view for the current position is null (not currently part of\n // layout manager children), or it's not completely visible.\n if (viewAtPosition == null || layoutManager\n .isViewPartiallyVisible(viewAtPosition, false, true)) {\n mPhotosListView.post(() -> layoutManager.scrollToPosition(MainActivity.currentPosition));\n }\n }\n });\n }",
"B scrollToSelectedItem(boolean scrollToSelectedItem);",
"@Kroll.method\n\tpublic void selectRow(int index)\n\t{\n\t\tscrollToIndex(index, null);\n\n\t\tfinal TableViewRowProxy row = getRowByIndex(index);\n\n\t\tif (row != null) {\n\t\t\tfinal TiTableView tableView = getTableView();\n\n\t\t\tif (tableView != null) {\n\t\t\t\tfinal Runnable action = () -> {\n\t\t\t\t\tfinal SelectionTracker tracker = tableView.getTracker();\n\t\t\t\t\tfinal TiUIView rowView = row.peekView();\n\t\t\t\t\tfinal boolean visible = rowView != null && rowView.getNativeView().isShown();\n\n\t\t\t\t\tif (!visible) {\n\t\t\t\t\t\tscrollToIndex(index, null);\n\t\t\t\t\t}\n\t\t\t\t\tif (tracker != null) {\n\t\t\t\t\t\ttracker.select(row);\n\t\t\t\t\t}\n\t\t\t\t};\n\n\t\t\t\t// This is a workaround for when `EDITING` mode is set, as it recreates the TableView.\n\t\t\t\t// We need to listen for when it has updated before testing visibility/scrolling.\n\t\t\t\tif (!tableView.getHasLaidOutChildren()) {\n\t\t\t\t\ttableView.addOnLayoutChangeListener(new View.OnLayoutChangeListener()\n\t\t\t\t\t{\n\t\t\t\t\t\t@Override\n\t\t\t\t\t\tpublic void onLayoutChange(View view, int i, int i1, int i2, int i3, int i4, int i5, int i6,\n\t\t\t\t\t\t\t\t\t\t\t\t int i7)\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\taction.run();\n\t\t\t\t\t\t\ttableView.removeOnLayoutChangeListener(this);\n\t\t\t\t\t\t}\n\t\t\t\t\t});\n\t\t\t\t} else {\n\t\t\t\t\taction.run();\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}",
"public void absMoveToFirstRowAt(int index) {\n if ((index <= 0) || (index >= getModel().getRowCount())) {\n return;\n }\n\n Vector[] va = getAllRowsData();\n\n Vector vTemp = va[index];\n\n // Move the rows above the index row down one.\n System.arraycopy(va, 0, va, 1, index);\n\n va[0] = vTemp;\n\n //_printTableRow(0, va[0]);\n setRows(va);\n }",
"@Kroll.method\n\tpublic void scrollToIndex(int index, @Kroll.argument(optional = true) KrollDict animation)\n\t{\n\t\tfinal TiTableView tableView = getTableView();\n\t\tfinal boolean animated = animation == null || animation.optBoolean(TiC.PROPERTY_ANIMATED, true);\n\t\tfinal int position = animation != null ? animation.optInt(TiC.PROPERTY_POSITION, 0) : 0;\n\t\tfinal RecyclerView.SmoothScroller smoothScrollerToTop =\n\t\t\tnew LinearSmoothScroller(TiApplication.getAppCurrentActivity())\n\t\t\t{\n\t\t\t\t@Override\n\t\t\t\tprotected int getVerticalSnapPreference()\n\t\t\t\t{ return LinearSmoothScroller.SNAP_TO_START; }\n\t\t\t};\n\n\t\tif (tableView != null) {\n\t\t\tfinal RecyclerView recyclerView = tableView.getRecyclerView();\n\n\t\t\tif (recyclerView != null) {\n\t\t\t\tfinal TableViewRowProxy row = getRowByIndex(index);\n\n\t\t\t\tif (row != null) {\n\t\t\t\t\tfinal int rowAdapterIndex = tableView.getAdapterIndex(index);\n\t\t\t\t\tfinal Runnable action = () -> {\n\t\t\t\t\t\tif (animated) {\n\t\t\t\t\t\t\tif (position == ListViewScrollPositionModule.TOP) {\n\t\t\t\t\t\t\t\tsmoothScrollerToTop.setTargetPosition(rowAdapterIndex);\n\t\t\t\t\t\t\t\trecyclerView.getLayoutManager().startSmoothScroll(smoothScrollerToTop);\n\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\trecyclerView.smoothScrollToPosition(rowAdapterIndex);\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\tif (position == ListViewScrollPositionModule.TOP) {\n\t\t\t\t\t\t\t\t((LinearLayoutManager) recyclerView.getLayoutManager())\n\t\t\t\t\t\t\t\t\t.scrollToPositionWithOffset(rowAdapterIndex, 0);\n\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\trecyclerView.scrollToPosition(rowAdapterIndex);\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t};\n\n\t\t\t\t\t// This is a workaround for when `EDITING` mode is set, as it recreates the TableView.\n\t\t\t\t\t// We need to listen for when it has updated before scrolling.\n\t\t\t\t\tif (!tableView.getHasLaidOutChildren()) {\n\t\t\t\t\t\ttableView.addOnLayoutChangeListener(new View.OnLayoutChangeListener()\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\t@Override\n\t\t\t\t\t\t\tpublic void onLayoutChange(View view, int i, int i1, int i2, int i3, int i4, int i5, int i6,\n\t\t\t\t\t\t\t\t\t\t\t\t\t int i7)\n\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\taction.run();\n\t\t\t\t\t\t\t\ttableView.removeOnLayoutChangeListener(this);\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t});\n\t\t\t\t\t} else {\n\t\t\t\t\t\taction.run();\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}",
"protected void scrollToPosition(int position){\n recyclerView.scrollToPosition(position);\n }",
"public void scrollToBottom()\n {\n ensureIndexIsVisible(getModel().getSize() - 1);\n }",
"public void focusAtRow(int index) {\n getSelectionModel().setSelectionInterval(index, index);\n }",
"private void scrollTo(final View view) {\n\n new Handler().post(new Runnable() {\n @Override\n public void run() {\n scroll.smoothScrollTo(0, view.getBottom());\n }\n });\n }",
"@FXML\n private void handleFilteredListPanelScrollDown() {\n filteredTaskListPanel.scrollToNext();\n }",
"@Listen(\"onClick = #scroll\")\n\tpublic void scrollIntoView() {\n\t\ttreeModel.setOpenObjects(treeModel.getRoot().getChildren());\n\t\tTreeitem[] items = tree.getItems().toArray(new Treeitem[0]);\n\t\tClients.scrollIntoView(items[items.length - 1]); //last item is /WEB-INF\n\t}",
"@Override\r\n\tpublic void onScroll(AbsListView view, int firstVisibleItem,\r\n\t\t\tint visibleItemCount, int totalItemCount) {\n\r\n\t\tint offset = lastIndex - firstVisibleItem;\r\n\r\n\t\tif (offset < 0 || firstVisibleItem == 0) {\r\n\t\t\t// 证明现在listView往上移动\r\n\t\t\tif (quickTols != null) {\r\n\r\n\t\t\t\tquickTols.setVisibility(View.INVISIBLE);\r\n\t\t\t}\r\n\t\t} else if (offset > 0) {\r\n\t\t\tif (quickTols != null) {\r\n\t\t\t\tquickTols.setVisibility(View.VISIBLE);\r\n\r\n\t\t\t}\r\n\r\n\t\t}\r\n\r\n\t\tlastIndex = firstVisibleItem;\r\n\t}",
"@Override\r\n public void scrollToPosition(int position) {\r\n super.scrollToPosition(transformInnerPositionIfNeed(position));\r\n }",
"@Override\n public boolean scrolled(int amount) {\n return false;\n }",
"@Override\n public boolean scrolled(int amount) {\n return false;\n }",
"@Override\n public boolean scrolled(int amount) {\n return false;\n }",
"@Override\n public boolean scrolled(int amount) {\n return false;\n }",
"private void sendScroll() {\n\t\tfinal Handler handler = new Handler();\n\t\tnew Thread(new Runnable() {\n\t\t\t@Override\n\t\t\tpublic void run() {\n\t\t\t\twhile (mTopIndex <= mFinalIndex) {\n\t\t\t\t\ttry {\n\t\t\t\t\t\tThread.sleep(100);\n\t\t\t\t\t} catch (InterruptedException e) {\n\n\t\t\t\t\t}\n\t\t\t\t\thandler.post(new Runnable() {\n\t\t\t\t\t\t@Override\n\t\t\t\t\t\tpublic void run() {\n\t\t\t\t\t\t\tmTopIndex += 0.1;\n\t\t\t\t\t\t\tscrollView.scrollBy(0, (int) mTopIndex);\n\t\t\t\t\t\t\tif (mTopIndex >= mFinalIndex) {\n\t\t\t\t\t\t\t\tmTopIndex = 0;\n\t\t\t\t\t\t\t\tscrollView.fullScroll(ScrollView.FOCUS_UP);\n\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t\t// Check if scroll completed or not\n\t\t\t\t\t\t\tif (mFirstScroll && (mPrevY == scrollView.getScrollY())) {\n\t\t\t\t\t\t\t\tmFinalIndex = mTopIndex + 5;\n\t\t\t\t\t\t\t\tmFirstScroll = false;\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\tmPrevY = scrollView.getScrollY();\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}).start();\n\t}",
"int getRowIndex();",
"@Override\n public boolean scrolled(int arg0) {\n return false;\n }",
"@Override\n public void tableChanged(final TableModelEvent e) {\n SwingUtilities.invokeLater(new Runnable() {\n @Override\n public void run() {\n int viewRow = jTableImportMonitor.convertRowIndexToView(e.getFirstRow());\n jTableImportMonitor.scrollRectToVisible(jTableImportMonitor.getCellRect(viewRow, 0, true)); \n }\n });\n }",
"@Override\n public boolean scrolled(final int amount) {\n return false;\n }",
"@Test\n public void ScrollToView() {\n driver.scrollTo(\"Views\");\n // Click on Views.\n driver.findElement(By.name(\"Views\")).click();\n }",
"public void scrolltoPosition(int position)\r\n {\r\n mRecyclerView.scrollToPosition(position);\r\n }",
"@Override\n public void scrollToPosition(int position) {\n smoothScrollToPosition(position);\n }",
"@Override\n\t\t\tpublic boolean scrolled(int amount) {\n\t\t\t\treturn false;\n\t\t\t}",
"@Override\n\t\t\tpublic boolean scrolled(int amount) {\n\t\t\t\treturn false;\n\t\t\t}",
"public abstract void scroll(long ms);",
"private void advance(final ResultSet rs, final RowSelection selection)\n \t\t\tthrows SQLException {\n \n-\t\tfinal int firstRow = getFirstRow( selection );\n+\t\tfinal int firstRow = LimitHelper.getFirstRow( selection );\n \t\tif ( firstRow != 0 ) {\n \t\t\tif ( getFactory().getSettings().isScrollableResultSetsEnabled() ) {\n \t\t\t\t// we can go straight to the first required row\n \t\t\t\trs.absolute( firstRow );\n \t\t\t}\n \t\t\telse {\n \t\t\t\t// we need to step through the rows one row at a time (slow)\n \t\t\t\tfor ( int m = 0; m < firstRow; m++ ) rs.next();\n \t\t\t}\n \t\t}\n \t}",
"@FXML\n private void handleMainListPanelScrollDown() {\n mainTaskListPanel.scrollToNext();\n }",
"@Test\n\t public void scrollAndClick() throws InterruptedException\n\t {\n\t\t \n\t\t productpage = new ProductPage(driver);\n\t\t productpage.clickOnSomePrompt();\n\t\t int num = productpage.numberOfItemsDisplayed();\n\t\t log.info(\"number of items\" +num);\n\t\t productdetails = productpage.clickOnLastItem();\n\t\t boolean status = productdetails.isProductDEtailsPageDisplayed();\n\t\t\tAssertionHelper.updateTestStatus(status);\n\t\t\tTestBaseRunner.result = TestBaseRunner.passOrFail(status);\n\t\t\tExcelReadWrtite.updateResult(\"testData.xlsx\", \"TestScripts\", \"scrollAndClick\", result);\n\t }",
"public void scrollTo(int index) {\n\n this.getWrappedControl().scrollTo(index);\n }",
"@Test\n public void scrollListTest() {\n\n onView(withId(R.id.rv_list)).perform(RecyclerViewActions.actionOnItemAtPosition(MainActivity.mListSize, scrollTo()));\n }",
"public void scrollToPosition(int position){\n\t\tif(position < 0 || position >= mAdapter.getCount()) throw new IndexOutOfBoundsException(\"Position must be in bounds of adapter values count\");\n\t\t\n\t\treset();\n\t\trefillInternal(position-1, position);\n\t\tinvalidate();\n\t}",
"@Override\r\n\tpublic boolean scrolled(int amount) {\n\t\treturn false;\r\n\t}",
"@Override\n\tpublic boolean scrolled(int arg0) {\n\t\treturn false;\n\t}",
"@Override\n\tpublic boolean scrolled(int arg0) {\n\t\treturn false;\n\t}",
"public void setSelection( final R toElement, final boolean needScrollTo )\r\n {\r\n if( toElement == null )\r\n {\r\n clearSelection();\r\n }\r\n else\r\n { // find the element\r\n final ListSelectionModel selectionModel = jTable.getSelectionModel();\r\n final int count = getRowCount();\r\n for( int rowIndex = 0; rowIndex < count; rowIndex++ )\r\n {\r\n final R row = provideRow( rowIndex );\r\n if( row.equals( toElement ) )\r\n {\r\n final int xlatedRowIndex = jTable.convertRowIndexToView( rowIndex );\r\n selectionModel.setSelectionInterval( xlatedRowIndex, xlatedRowIndex ); // for arbitrary multi use .clearSelection() & .addSelectionInterval()\r\n\r\n if( needScrollTo == true )\r\n {\r\n jTable.scrollRectToVisible( jTable.getCellRect( xlatedRowIndex, 0, true ) );\r\n }\r\n break; // for\r\n }\r\n }\r\n }\r\n }",
"protected boolean scroll(int amount) {\n\t// Does nothing\n\treturn false;\n}",
"private static void scrollToElement(JEditorPane editorPane, HTMLDocument.Iterator elementIterator) {\n\t\ttry {\n\t\t\tRectangle rectangle = editorPane.modelToView(elementIterator.getStartOffset());\n\t\t\tif (rectangle == null) {\n\t\t\t\treturn;\n\t\t\t}\n\t\t\t// the view is visible, scroll it to the\n\t\t\t// center of the current visible area.\n\t\t\tRectangle visibleRectangle = editorPane.getVisibleRect();\n\t\t\t// r.y -= (vis.height / 2);\n\t\t\trectangle.height = visibleRectangle.height;\n\t\t\teditorPane.scrollRectToVisible(rectangle);\n\t\t} catch (BadLocationException e) {\n\t\t\tlog.error(e.getMessage());\n\t\t}\n\t}",
"void scrollToFinishActivity();",
"void setScrollPosition(int x, int y);",
"private TableViewRowProxy getRowByIndex(int index)\n\t{\n\t\tfor (TableViewSectionProxy section : this.sections) {\n\t\t\tfor (TableViewRowProxy row : section.rows) {\n\t\t\t\tif (row.index == index) {\n\t\t\t\t\treturn row;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\treturn null;\n\t}",
"void scrollIntoView(final UIDL uidl) {\n if (uidl.hasAttribute(\"scrollTo\")) {\n Scheduler.get().scheduleDeferred(new Command() {\n public void execute() {\n final Paintable paintable = uidl.getPaintableAttribute(\n \"scrollTo\", connection);\n ((Widget) paintable).getElement().scrollIntoView();\n }\n });\n }\n }",
"@FXML\n private void handleFilteredListPanelScrollToFirst() {\n filteredTaskListPanel.scrollToFirst();\n }",
"public int getPositionRow(){return this.positionRow;}",
"@Test\n public void scrollToItem_checkItsText() {\n onView(ViewMatchers.withId(R.id.recycler_view_recipes_main))\n .perform(RecyclerViewActions.scrollToPosition(ITEM_TO_BE_CHECKED));\n\n // Match the text in an item below the fold and check that it's displayed.\n onView(allOf(isDisplayed(), withText(recipes.get(ITEM_TO_BE_CHECKED).getName())))\n .check(matches(isDisplayed()));\n }",
"@FXML\n private void handleFilteredListPanelScrollUp() {\n filteredTaskListPanel.scrollToPrevious();\n }",
"@Override\n protected void moveToNextRow(){\n incrementRow();\n resetXPos();\n if(getRow()%2 == 1){\n incrementYPos(getHeight()+getHeight());\n }\n resetCol();\n setPointDirection();\n }",
"int atRow();",
"public int getStartRow();",
"@Override\n\tpublic boolean scrolled(int amount)\n\t{\n\t\treturn false;\n\t}",
"public void scrollToAnElementToBeVisible(String relativepathToElement){\n JavascriptExecutor executor = driver;\n executor.executeScript(\"target.frontMostApp().mainWindow().scrollViews()[0].\"+ relativepathToElement +\".scrollToVisible();\");\n }",
"public void setPositionRow(int value){this.positionRow = value;}",
"public boolean scrollElementIntoView(WebElement element) {\n \tboolean res = true;\n try { \n ((JavascriptExecutor) driver).executeScript(\"arguments[0].scrollIntoView();\", element);\n Thread.sleep(1000);\n }catch(Exception ex){\n \tres = false;\n }\n return res;\n }",
"@Override\n\tpublic boolean scrolled(int amount) {\n\t\treturn false;\n\t}",
"@Override\n\tpublic boolean scrolled(int amount) {\n\t\treturn false;\n\t}",
"@Override\n\tpublic boolean scrolled(int amount) {\n\t\treturn false;\n\t}",
"@Override\n\tpublic boolean scrolled(int amount) {\n\t\treturn false;\n\t}",
"@Override\n\tpublic boolean scrolled(int amount) {\n\t\treturn false;\n\t}",
"@Override\n\tpublic boolean scrolled(int amount) {\n\t\treturn false;\n\t}",
"@Override\n\tpublic boolean scrolled(int amount) {\n\t\treturn false;\n\t}",
"@Override\n\tpublic boolean scrolled(int amount) {\n\t\treturn false;\n\t}",
"@Override\n\tpublic boolean scrolled(int amount) {\n\t\treturn false;\n\t}",
"@Override\n\tpublic boolean scrolled(int amount) {\n\t\treturn false;\n\t}",
"@Override\n\tpublic boolean scrolled(int amount) {\n\t\treturn false;\n\t}",
"@Override\n\tpublic boolean scrolled(int amount) {\n\t\treturn false;\n\t}",
"public abstract int findRowForWindow(int y);",
"@Override\r\n public void setRowIndex(int rowIndex) {\r\n if (rowIndex == -1 || getPageSize() == 0) {\r\n super.setRowIndex(-1);\r\n }\r\n else {\r\n super.setRowIndex(rowIndex % getPageSize());\r\n } \r\n }",
"public abstract boolean scroll(Direction direction);",
"public void snapToPage() {\n View findSnapView = this.mPagerSnapHelper.findSnapView(this.mLayoutManager);\n if (findSnapView != null) {\n int[] calculateDistanceToFinalSnap = this.mPagerSnapHelper.calculateDistanceToFinalSnap(this.mLayoutManager, findSnapView);\n if (calculateDistanceToFinalSnap[0] != 0 || calculateDistanceToFinalSnap[1] != 0) {\n this.mRecyclerView.smoothScrollBy(calculateDistanceToFinalSnap[0], calculateDistanceToFinalSnap[1]);\n }\n }\n }",
"public final boolean containsRow(int index) {\n /**\n * When scrolling with mouse wheel, some row are present but will not be\n * lay out. Thus we only consider the row with children as really\n * available.\n */\n for (Object obj : getFlow().getCells()) {\n if (((TableRow2) obj).getIndex() == index && !((TableRow2) obj).getChildrenUnmodifiable().isEmpty())\n return true;\n }\n return false;\n }",
"private void loadScrollState() {\n AppExecutors.getInstance().mainThread().execute(() ->\r\n mScrollViewFinal.scrollTo(0, mActivityPreferences\r\n .getInt(getScrollType(mIsRedWine), 0)));\r\n }",
"public void absIncrementRowAt(int index) {\n int lastIndex = getModel().getRowCount() - 1;\n if ((index < 0) || (index >= lastIndex)) {\n return;\n }\n\n Vector[] va = getAllRowsData();\n\n Vector vTemp = va[index];\n va[index] = va[index + 1];\n va[index + 1] = vTemp;\n\n setRows(va);\n }",
"public void scrollBy(){\r\n\t\tJavascriptExecutor je = (JavascriptExecutor)Global.driver;\r\n\t\tje.executeScript(\"Window.scrollBy(0,200)\",\"\");\r\n\t}",
"public void jumpToNextLine() {\n int currentLineNo = getCurrentLineByCursor();\n if (currentLineNo == textBuffer.getMaxLine()-1) {\n textBuffer.setCurToTail();\n return;\n }\n int curX = round(cursor.getX());\n textBuffer.setCurToTargetNo(currentLineNo+1);\n lineJumpHelper(curX);\n }",
"@Test\n public void scrollIntoView() throws InterruptedException {\n/*\nTask:\ngo to http://carettahotel.com/\nverify the text \"Recent Blog\" is on the page\nScroll to that element\n */\n driver.get(\"http://carettahotel.com/\");\n\n // we have to scroll otherwise it fails\n // scroll to the element by using javascript executor\n\n WebElement recentBlog = driver.findElement(By.xpath(\"//*[.='Recent Blog']\"));\n\n // 1. create javascript executor\n // ((JavascriptExecutor) driver).executeScript(\"arguments[0].scrollIntoView(true);\", recentBlog);\n JavascriptExecutor executor = (JavascriptExecutor) driver;\n executor.executeScript(\"arguments[0].scrollIntoView(true)\", recentBlog);\n\n\n\n //Wait a little so that the page scrolls down. We can use also explictlyWait\n Thread.sleep(3000);\n boolean isRecentBlogDisplayed = recentBlog.isDisplayed();\n Assert.assertTrue(isRecentBlogDisplayed);\n\n\n }",
"public int getRowIndex(int listIndex)\n {\n int row = getRow(listIndex); //Determines which row wall is in.\n return listIndex-(row*21); //Uses the walls row to calculate the walls index in that row. \n }",
"@FXML\n private void handleMainListPanelScrollUp() {\n mainTaskListPanel.scrollToPrevious();\n }",
"void scrollLeft(int scrollLeft);",
"private void updateScrollPosition() {\n int oldTop = scrollTop;\n int oldLeft = scrollLeft;\n scrollTop = DOM.getElementPropertyInt(getElement(), \"scrollTop\");\n scrollLeft = DOM.getElementPropertyInt(getElement(), \"scrollLeft\");\n if (connection != null && !rendering) {\n if (oldTop != scrollTop) {\n connection.updateVariable(id, \"scrollTop\", scrollTop, false);\n }\n if (oldLeft != scrollLeft) {\n connection.updateVariable(id, \"scrollLeft\", scrollLeft, false);\n }\n }\n }",
"public interface ScrollToPositionListener {\n\n void scrollToPosition(int position, boolean enableScroll, boolean lastVisible);\n}",
"private int rowFinder(Board board) {\n\t\tRandom myRandom = new Random();\n\t\twhile(true) {\n\t\t\tint row = myRandom.nextInt(board.getNumberOfRows()) + 1; /* random.nextInt(max - min + 1) + min,\n\t\t\trandom row with out 0 */\n\t\t\tif (this.isRowHasUnmarkedStick(row, board)) {\n\t\t\t\treturn row;\n\t\t\t}\n\t\t}\n\t}",
"public void setCurrentRow(int rowNumber) throws SQLException {\n/* 163 */ notSupported();\n/* */ }",
"@Override\n public void onRowLongClicked(int position) {\n }",
"protected void scrollTo(WebElement element) {\n getSeleniumHelper().executeJavascript(\"arguments[0].scrollIntoView(true);\", element);\n if (waitAfterScroll > 0) {\n waitMilliSeconds(waitAfterScroll);\n }\n }",
"private void moveLineOn() {\n getScroller().startScroll(getOffsetX(),getOffsetY(),0,getLineHeight(),0);\n }",
"private void advanceRow(){\n\t\tfaceBackwards();\n\t\twhile(frontIsClear()){\n\t\t\tmove();\n\t\t}\n\t\tturnRight();\n\t\tif(frontIsClear()){\n\t\t\tmove();\n\t\t\tturnRight();\n\t\t}\n\t}",
"private int jumpCursor() {\n if (cc == columns) {\n if (cl + 1 == lines)\n cl = 0;\n else\n ++cl;\n\n cc = 0;\n }\n\n return cc++;\n }",
"public void scrollTo(String targetId) {\n clientRpc.scrollTo(targetId);\n }",
"@SuppressWarnings(\"unused\")\n public void scrollRectToVisible() {\n }"
] |
[
"0.73125035",
"0.69883084",
"0.64903754",
"0.6478993",
"0.64485204",
"0.6433946",
"0.6373719",
"0.62979406",
"0.6240981",
"0.6215499",
"0.61484087",
"0.6147012",
"0.610786",
"0.5993445",
"0.59766895",
"0.59085286",
"0.58853376",
"0.5804596",
"0.5793429",
"0.5773142",
"0.57154673",
"0.57134616",
"0.57093716",
"0.57093716",
"0.57093716",
"0.57093716",
"0.5701634",
"0.56871593",
"0.5678611",
"0.5673901",
"0.56663835",
"0.56541735",
"0.56505764",
"0.5646176",
"0.56409836",
"0.56409836",
"0.56299376",
"0.56263846",
"0.5619128",
"0.56181633",
"0.5617152",
"0.5610173",
"0.5606441",
"0.5599853",
"0.5592212",
"0.5592212",
"0.5577423",
"0.5566531",
"0.55618197",
"0.5549454",
"0.55484545",
"0.5542153",
"0.55376726",
"0.5529624",
"0.5498104",
"0.5483521",
"0.5482773",
"0.547944",
"0.5474134",
"0.54704505",
"0.5453578",
"0.54506296",
"0.54457325",
"0.5425337",
"0.5421105",
"0.5421105",
"0.5421105",
"0.5421105",
"0.5421105",
"0.5421105",
"0.5421105",
"0.5421105",
"0.5421105",
"0.5421105",
"0.5421105",
"0.5421105",
"0.5398023",
"0.53954124",
"0.5380875",
"0.537979",
"0.5373561",
"0.5364277",
"0.5353935",
"0.53450906",
"0.53338295",
"0.5328702",
"0.53219736",
"0.53005725",
"0.5299186",
"0.52986234",
"0.52968645",
"0.5292458",
"0.5289364",
"0.5285875",
"0.5284502",
"0.52816653",
"0.5274024",
"0.52709764",
"0.52623653",
"0.52530766"
] |
0.5545582
|
51
|
Scroll the table to a specific top position where 0 is the topmost y position in the table view
|
public native void scrollToTop(double top, TableViewAnimation animation) /*-{
var jso = this.@com.emitrom.ti4j.core.client.ProxyObject::getJsObj()();
jso
.scrollToTop(
top,
animation.@com.emitrom.ti4j.core.client.ProxyObject::getJsObj()());
}-*/;
|
{
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
}
|
[
"public void scrollToTop()\n {\n ensureIndexIsVisible(0);\n }",
"public void syncTableTop() {\n\t\tsetVerticalScrollPosition(rowHeader.getTop());\n\t}",
"void scroll(int scrollTop);",
"void setScrollTop(int scrollTop);",
"public void selectAndScrollTo(URN urn) {\n if(table == null) {\n initialize();\n }\n table.selectAndScrollTo(urn);\n }",
"int getScrollTop();",
"public void scrollTop(int offset) {\n clientRpc.scrollTop(offset);\n }",
"@Override\n\tpublic final void setScrollTop(int top) {\n\t\tDOMImpl.impl.setScrollTop(documentFor(), top);\n\t}",
"private void scrollToVisibleCell(Number newIndex, Number oldIndex) {\n if (key && newIndex != null && oldIndex != null) {\n double posFinalOffset = 0, heightLastRow = 0;\n for (int j = getRow(0).getIndex(); j < newIndex.intValue(); ++j) {\n heightLastRow = getRowHeight(j);\n posFinalOffset += heightLastRow;\n }\n final double fixedHeight = getFixedRowHeight();\n if (fixedHeight > posFinalOffset) {\n flow.scrollTo(newIndex.intValue());\n } else if (fixedHeight > posFinalOffset - heightLastRow) {\n flow.scrollPixels(posFinalOffset - heightLastRow - fixedHeight);\n }\n }\n }",
"public void autoscroll(Point pt) {\n\t\t// Figure out which row we're on.\n\t\tint nRow = getRowForLocation(pt.x, pt.y);\n\n\t\t// If we are not on a row then ignore this autoscroll request\n\t\tif (nRow < 0)\n\t\t\treturn;\n\n\t\tRectangle raOuter = getBounds();\n\t\t// Now decide if the row is at the top of the screen or at the\n\t\t// bottom. We do this to make the previous row (or the next\n\t\t// row) visible as appropriate. If we're at the absolute top or\n\t\t// bottom, just return the first or last row respectively.\n\n\t\tnRow = (pt.y + raOuter.y <= AUTOSCROLL_MARGIN) // Is row at top of\n\t\t// screen?\n\t\t? (nRow <= 0 ? 0 : nRow - 1) // Yes, scroll up one row\n\t\t\t\t: (nRow < getRowCount() - 1 ? nRow + 1 : nRow); // No, scroll\n\t\t// down one row\n\n\t\tscrollRowToVisible(nRow);\n\t}",
"@Kroll.method\n\tpublic void scrollToTop(int index, @Kroll.argument(optional = true) KrollDict animation)\n\t{\n\t\tscrollToIndex(index, animation);\n\t}",
"public void scrollToBottom()\n {\n ensureIndexIsVisible(getModel().getSize() - 1);\n }",
"private void scrollTo(final View view) {\n\n new Handler().post(new Runnable() {\n @Override\n public void run() {\n scroll.smoothScrollTo(0, view.getBottom());\n }\n });\n }",
"public void absMoveToFirstRowAt(int index) {\n if ((index <= 0) || (index >= getModel().getRowCount())) {\n return;\n }\n\n Vector[] va = getAllRowsData();\n\n Vector vTemp = va[index];\n\n // Move the rows above the index row down one.\n System.arraycopy(va, 0, va, 1, index);\n\n va[0] = vTemp;\n\n //_printTableRow(0, va[0]);\n setRows(va);\n }",
"private Point scrollToRow(JTree tree, int row)\n\t{\n\t\tPoint p = scrollToRow(tree, row, new JTreeLocation()).ii;\n\t\twaitForIdle();\n\t\treturn p;\n\t}",
"public void scrollToYPos(int y) {\n verticalScroll = y;\n repaint();\n }",
"@Override\n\tpublic String selectTableList(int top) {\n\t\treturn \"select sqltext,pointid,type from history_table_view where rownum <= \"+top+\" order by id desc\";\n\t}",
"private void scrollToPosition() {\n String name;\n String description;\n for (Item item : itemList) {\n name = item.getName().toLowerCase();\n description = item.getDescription().toLowerCase();\n if (name.contains(searchQuery) || description.contains(searchQuery)){\n layoutManager.scrollToPositionWithOffset(item.getId(), 0);\n break;\n }\n }\n }",
"public void scrollDown(long coordinatedFromTop) {\n JavaScriptExecutor javaScriptExecutor = new JavaScriptExecutor();\n javaScriptExecutor.executeScript(\"scroll(0, \" + coordinatedFromTop + \");\");\n }",
"void setScrollPosition(int x, int y);",
"@Override\n public void onAbsoluteScrollChange(int i) {\n if (i > 0) {\n mHeader.setY(-i);\n }\n }",
"@DISPID(-2147417103)\n @PropGet\n int offsetTop();",
"private void selectTableRow () {\n int selectedRow = itemTable.getSelectedRow();\n if (selectedRow >= 0 && selectedRow < clubEventList.size()) {\n boolean modOK = modIfChanged();\n if (modOK) {\n position = clubEventList.positionUsingListIndex (selectedRow);\n positionAndDisplay();\n }\n }\n }",
"private Position nextPositionBottomToTop(Position pos) {\n return (pos.getRowNum() == 0\n ? new Position(nRows - 1, pos.getColNum())\n : new Position(pos.getRowNum() - 1, pos.getColNum()));\n }",
"@Kroll.method\n\tpublic void scrollToIndex(int index, @Kroll.argument(optional = true) KrollDict animation)\n\t{\n\t\tfinal TiTableView tableView = getTableView();\n\t\tfinal boolean animated = animation == null || animation.optBoolean(TiC.PROPERTY_ANIMATED, true);\n\t\tfinal int position = animation != null ? animation.optInt(TiC.PROPERTY_POSITION, 0) : 0;\n\t\tfinal RecyclerView.SmoothScroller smoothScrollerToTop =\n\t\t\tnew LinearSmoothScroller(TiApplication.getAppCurrentActivity())\n\t\t\t{\n\t\t\t\t@Override\n\t\t\t\tprotected int getVerticalSnapPreference()\n\t\t\t\t{ return LinearSmoothScroller.SNAP_TO_START; }\n\t\t\t};\n\n\t\tif (tableView != null) {\n\t\t\tfinal RecyclerView recyclerView = tableView.getRecyclerView();\n\n\t\t\tif (recyclerView != null) {\n\t\t\t\tfinal TableViewRowProxy row = getRowByIndex(index);\n\n\t\t\t\tif (row != null) {\n\t\t\t\t\tfinal int rowAdapterIndex = tableView.getAdapterIndex(index);\n\t\t\t\t\tfinal Runnable action = () -> {\n\t\t\t\t\t\tif (animated) {\n\t\t\t\t\t\t\tif (position == ListViewScrollPositionModule.TOP) {\n\t\t\t\t\t\t\t\tsmoothScrollerToTop.setTargetPosition(rowAdapterIndex);\n\t\t\t\t\t\t\t\trecyclerView.getLayoutManager().startSmoothScroll(smoothScrollerToTop);\n\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\trecyclerView.smoothScrollToPosition(rowAdapterIndex);\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\tif (position == ListViewScrollPositionModule.TOP) {\n\t\t\t\t\t\t\t\t((LinearLayoutManager) recyclerView.getLayoutManager())\n\t\t\t\t\t\t\t\t\t.scrollToPositionWithOffset(rowAdapterIndex, 0);\n\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\trecyclerView.scrollToPosition(rowAdapterIndex);\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t};\n\n\t\t\t\t\t// This is a workaround for when `EDITING` mode is set, as it recreates the TableView.\n\t\t\t\t\t// We need to listen for when it has updated before scrolling.\n\t\t\t\t\tif (!tableView.getHasLaidOutChildren()) {\n\t\t\t\t\t\ttableView.addOnLayoutChangeListener(new View.OnLayoutChangeListener()\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\t@Override\n\t\t\t\t\t\t\tpublic void onLayoutChange(View view, int i, int i1, int i2, int i3, int i4, int i5, int i6,\n\t\t\t\t\t\t\t\t\t\t\t\t\t int i7)\n\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\taction.run();\n\t\t\t\t\t\t\t\ttableView.removeOnLayoutChangeListener(this);\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t});\n\t\t\t\t\t} else {\n\t\t\t\t\t\taction.run();\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}",
"public void setYTop(int top) {\n this.yTop = top;\n }",
"public void setSelectionToTop() {\n // Clear out the views (but don't clear out the layout records or recycler because the data\n // has not changed)\n removeAllViews();\n\n // Reset to top of grid\n resetStateForGridTop();\n\n // Start populating again\n populate();\n }",
"public void scrollTo(String targetId) {\n clientRpc.scrollTo(targetId);\n }",
"public MobileElement scrollTo(String arg0)\n\t\t\t\t{\n\t\t\t\t\treturn null;\n\t\t\t\t}",
"private Position nextPositionTopToBottom(Position pos) {\n return (pos.getRowNum() == nRows - 1\n ? new Position(0, pos.getColNum())\n : new Position(pos.getRowNum() + 1, pos.getColNum()));\n }",
"public void scrollUp(long coordinatedFromTop) {\n JavaScriptExecutor javaScriptExecutor = new JavaScriptExecutor();\n javaScriptExecutor.executeScript(\"scroll(0, \" + (-coordinatedFromTop) + \");\");\n }",
"private void scrollToPosition() {\n mPhotosListView.addOnLayoutChangeListener(new View.OnLayoutChangeListener() {\n @Override\n public void onLayoutChange(View v,\n int left,\n int top,\n int right,\n int bottom,\n int oldLeft,\n int oldTop,\n int oldRight,\n int oldBottom) {\n mPhotosListView.removeOnLayoutChangeListener(this);\n final RecyclerView.LayoutManager layoutManager = mPhotosListView.getLayoutManager();\n View viewAtPosition = layoutManager.findViewByPosition(MainActivity.currentPosition);\n // Scroll to position if the view for the current position is null (not currently part of\n // layout manager children), or it's not completely visible.\n if (viewAtPosition == null || layoutManager\n .isViewPartiallyVisible(viewAtPosition, false, true)) {\n mPhotosListView.post(() -> layoutManager.scrollToPosition(MainActivity.currentPosition));\n }\n }\n });\n }",
"public void scrollDown() {\n JavaScriptExecutor javaScriptExecutor = new JavaScriptExecutor();\n Long value = (Long) javaScriptExecutor.executeScript(\"return window.pageYOffset;\");\n javaScriptExecutor.executeScript(\"scroll(0, \" + (value + 1000) + \");\");\n }",
"public void scrollBy(){\r\n\t\tJavascriptExecutor je = (JavascriptExecutor)Global.driver;\r\n\t\tje.executeScript(\"Window.scrollBy(0,200)\",\"\");\r\n\t}",
"private int getTopItemScrollY() {\n //make sure listView and first item in listView is not null, else return 0\n if (mListView == null || mListView.getChildAt(0) == null) return 0;\n\n //get first item in listView\n View topChild = mListView.getChildAt(0);\n\n //return top position of view item\n return topChild.getTop();\n }",
"public void tableStarted(int position) {\r\n }",
"public void setSelectedToTop(JTable tab) {\n\t\t//DefaultTableModel model = (DefaultTableModel) tab.getModel();\n\t\t\n\t\tint[] selected= tab.getSelectedRows();\n\t\tList<Integer> slist=Arrays.stream(selected).boxed().collect(Collectors.toList());\n\t\tList<String> newVals = new ArrayList<>();\n\t\t// bring matched values at top\n\t\tString temp;\n\t\tint total_matches = 0;\n\t\tfor (int c = 0; c < tab.getRowCount(); c++) {\n\t\t\ttemp=\"\";\n\t\t\tfor(int j=0;j<tab.getColumnCount();j++) {\n\t\t\t\ttemp += tab.getValueAt(c, j).toString()+\"::-::\";\t\n\t\t\t}\n\t\t\tif (slist.contains(c)) {\n\t\t\t\tnewVals.add(\"\\t:::\" + temp);\n\t\t\t} else {\n\t\t\t\tnewVals.add(\"~:::\" + temp);\n\t\t\t}\n\t\t}\n\n\t\tjava.util.Collections.sort(newVals);\n\t\t// JOptionPane.showMessageDialog(null, newVals.toString());\n\t\tTableModel model=tab.getModel();\n\t\t//model.setRowCount(0);\n\t\t\n\n\t\tfor (int i = 0; i < newVals.size(); i++) {\n\t\t\tVector<String> v = new Vector<>();\n\t\t\ttemp=newVals.get(i).split(\":::\")[1];\n\t\t\tString[] tempL=temp.split(\"::-::\");\n\t\t\t//dont ad last value as it will be empty because of delimiter at the end\n\t\t\tfor(int j=0;j<tempL.length-1;j++) {\n\t\t\t\tv.add(tempL[j]);\t\n\t\t\t\ttab.getModel().setValueAt(tempL[j], i, j);\n\t\t\t}\n\t\t\t\n\t\t\t//tab.addRow(v);\n\n\t\t}\n\t\tif (total_matches > 0) {\n\t\t\ttab.setRowSelectionInterval(0, selected.length-1);\n\t\t}\n\t}",
"@Test\n public void ScrollToView() {\n driver.scrollTo(\"Views\");\n // Click on Views.\n driver.findElement(By.name(\"Views\")).click();\n }",
"private void positionTableInScene() {\n setIdentityM(modelMatrix, 0);\n rotateM(modelMatrix, 0, -90f, 1f, 0f, 0f);\n multiplyMM(modelViewProjectionMatrix, 0, viewProjectionMatrix,\n 0, modelMatrix, 0);\n }",
"private void scrollToBottom() {\n UiDevice uiDevice = UiDevice.getInstance(InstrumentationRegistry.getInstrumentation());\n int deviceHeight = uiDevice.getDisplayHeight();\n\n int statusBarHeight = statusBarHeight();\n int navigationBarHeight = navigationBarHeight();\n\n int padding = 20;\n int swipeSteps = 5;\n int viewPortBottom = deviceHeight - statusBarHeight - navigationBarHeight;\n int fromY = deviceHeight - navigationBarHeight - padding;\n int toY = statusBarHeight + padding;\n int delta = fromY - toY;\n while (viewPortBottom < scaleAbsoluteCoordinateToViewCoordinate(TEST_PAGE_HEIGHT)) {\n uiDevice.swipe(50, fromY, 50, toY, swipeSteps);\n viewPortBottom += delta;\n }\n // Repeat an addition time to avoid flakiness.\n uiDevice.swipe(50, fromY, 50, toY, swipeSteps);\n }",
"void scrollIntoView(final UIDL uidl) {\n if (uidl.hasAttribute(\"scrollTo\")) {\n Scheduler.get().scheduleDeferred(new Command() {\n public void execute() {\n final Paintable paintable = uidl.getPaintableAttribute(\n \"scrollTo\", connection);\n ((Widget) paintable).getElement().scrollIntoView();\n }\n });\n }\n }",
"public static void scrollDown() {\n WebElement bottomButton = Browser.driver.findElement(CHANGE_CURRENCY_BOTTOM_BUTTON);\n JavascriptExecutor jse = (JavascriptExecutor)Browser.driver;\n jse.executeScript(\"arguments[0].scrollIntoView(true)\", bottomButton);\n }",
"@Override\n\tpublic final int getScrollTop() {\n\t\treturn DOMImpl.impl.getScrollTop(documentFor());\n\t}",
"public void scrollPageDown(){\r\n \r\n if (driver instanceof JavascriptExecutor) \r\n ((JavascriptExecutor) driver).executeScript(\"window.scrollTo(0,6000)\");\r\n }",
"public void onScroll(State state, int positionY);",
"@Override\r\n\tpublic void onScroll(AbsListView view, int firstVisibleItem,\r\n\t\t\tint visibleItemCount, int totalItemCount) {\n\r\n\t\tint offset = lastIndex - firstVisibleItem;\r\n\r\n\t\tif (offset < 0 || firstVisibleItem == 0) {\r\n\t\t\t// 证明现在listView往上移动\r\n\t\t\tif (quickTols != null) {\r\n\r\n\t\t\t\tquickTols.setVisibility(View.INVISIBLE);\r\n\t\t\t}\r\n\t\t} else if (offset > 0) {\r\n\t\t\tif (quickTols != null) {\r\n\t\t\t\tquickTols.setVisibility(View.VISIBLE);\r\n\r\n\t\t\t}\r\n\r\n\t\t}\r\n\r\n\t\tlastIndex = firstVisibleItem;\r\n\t}",
"public void setTop() {\n reset(State.TOP);\n }",
"@Override\n public void tableChanged(final TableModelEvent e) {\n SwingUtilities.invokeLater(new Runnable() {\n @Override\n public void run() {\n int viewRow = jTableImportMonitor.convertRowIndexToView(e.getFirstRow());\n jTableImportMonitor.scrollRectToVisible(jTableImportMonitor.getCellRect(viewRow, 0, true)); \n }\n });\n }",
"@FXML\n private void handleFilteredListPanelScrollUp() {\n filteredTaskListPanel.scrollToPrevious();\n }",
"B scrollToSelectedItem(boolean scrollToSelectedItem);",
"public void scrollUp() {\n JavaScriptExecutor javaScriptExecutor = new JavaScriptExecutor();\n Long value = (Long) javaScriptExecutor.executeScript(\"return window.pageYOffset;\");\n javaScriptExecutor.executeScript(\"scroll(0, \" + (value - 1000) + \");\");\n }",
"public void setFirstItemOffset(int offset){\n\t\tscrollTo(offset, 0);\n\t}",
"public abstract void scroll(long ms);",
"@FXML\n private void handleMainListPanelScrollUp() {\n mainTaskListPanel.scrollToPrevious();\n }",
"private void positionTableInScene()\n\t{\n\t\tMatrix.setIdentityM(mModelMatrix, 0);\n\t\tMatrix.rotateM(mModelMatrix, 0, -90f, 1f, 0f, 0f);\n\t\tMatrix.multiplyMM(mModelViewProjectionMatrix, 0, mViewProjectionMatrix, 0, mModelMatrix, 0);\n\t}",
"public void scrollUp() {\n JavascriptExecutor jse = (JavascriptExecutor)driver;\n jse.executeScript(\"window.scrollBy(0, -500)\", new Object[]{\"\"});\n }",
"int getScrollOffsetY();",
"protected void scrollToBottom() {\r\n\t\tContainer parent = this.getParent();\r\n\t\tif (parent instanceof JViewport) {\r\n\t\t\t((JViewport) parent).setViewPosition(new Point(0, this.getHeight()));\r\n\t\t}\r\n\t}",
"public void autoscroll(Point p) {\r\n \t\tBasicGraphUI.autoscroll(graph, p);\r\n \t}",
"@Override\r\n public void scrollToPosition(int position) {\r\n super.scrollToPosition(transformInnerPositionIfNeed(position));\r\n }",
"private void updateScrollPosition() {\n int oldTop = scrollTop;\n int oldLeft = scrollLeft;\n scrollTop = DOM.getElementPropertyInt(getElement(), \"scrollTop\");\n scrollLeft = DOM.getElementPropertyInt(getElement(), \"scrollLeft\");\n if (connection != null && !rendering) {\n if (oldTop != scrollTop) {\n connection.updateVariable(id, \"scrollTop\", scrollTop, false);\n }\n if (oldLeft != scrollLeft) {\n connection.updateVariable(id, \"scrollLeft\", scrollLeft, false);\n }\n }\n }",
"public MobileElement scrollToExact(String arg0)\n\t\t\t\t{\n\t\t\t\t\treturn null;\n\t\t\t\t}",
"public String scrollVertically(String object, String data) {\n try {\n\n Thread.sleep(1000);\n int d = Integer.parseInt(data);\n ((JavascriptExecutor) driver).executeScript(\"window.scrollBy(0,\" + d + \")\", \"\");\n return Constants.KEYWORD_PASS;\n } catch (Exception e) {\n e.printStackTrace();\n return Constants.KEYWORD_FAIL + e.getMessage();\n }\n }",
"@FXML\n private void handleFilteredListPanelScrollDown() {\n filteredTaskListPanel.scrollToNext();\n }",
"@Override\n public boolean scrolled(int arg0) {\n return false;\n }",
"public int getScrollPosition(){\n\t\treturn mFirstItemPosition;\n\t}",
"@FXML\n private void handleFilteredListPanelScrollToFirst() {\n filteredTaskListPanel.scrollToFirst();\n }",
"@Override\n public void scrollToPosition(int position) {\n smoothScrollToPosition(position);\n }",
"@Listen(\"onClick = #scroll\")\n\tpublic void scrollIntoView() {\n\t\ttreeModel.setOpenObjects(treeModel.getRoot().getChildren());\n\t\tTreeitem[] items = tree.getItems().toArray(new Treeitem[0]);\n\t\tClients.scrollIntoView(items[items.length - 1]); //last item is /WEB-INF\n\t}",
"public void jsScroll(By locator) {\n int elementLocation = find(locator).getLocation().getY();\n JavascriptExecutor js = (JavascriptExecutor) driver;\n js.executeScript(\"window.scrollTo(0,\" + elementLocation + \")\");\n }",
"public void scrollDown() {\n try {\n Robot robot = new Robot();\n robot.keyPress(KeyEvent.VK_PAGE_DOWN);\n robot.keyRelease(KeyEvent.VK_PAGE_DOWN);\n } catch(Exception e) {\n // do nothing\n }\n\n }",
"public void scrolltoPosition(int position)\r\n {\r\n mRecyclerView.scrollToPosition(position);\r\n }",
"public static void scrollCellVisible(JTable table, int row, int col) {\n if (!(table.getParent() instanceof JViewport))\n return;\n\n JViewport viewport = (JViewport)table.getParent();\n\n // This rectangle is relative to the table where the\n // northwest corner of cell (0,0) is always (0,0).\n Rectangle rect = table.getCellRect(row, col, true);\n\n // The location of the viewport relative to the table\n Point pt = viewport.getViewPosition();\n\n // Translate the cell location so that it is relative\n // to the view, assuming the northwest corner of the\n // view is (0,0)\n rect.setLocation(rect.x-pt.x, rect.y-pt.y);\n\n // Scroll the area into view\n viewport.scrollRectToVisible(rect);\n }",
"public void setTop(Integer top) {\n this.top = top;\n }",
"public static void abaixaTela(int valorY){\n\t\tjs.executeScript(\"window.scrollBy(0,\"+valorY+\")\", \"\");\n\t}",
"public void smoothScrollTo(int i, int i2) {\n smoothScrollTo(i, i2, 0);\n }",
"@Override\n public void onScroll(AbsListView view, int firstVisibleItem, int visibleItemCount, int totalItemCount) {\n if (mListSchedule.getFirstVisiblePosition() == 0) {\n View firstChild = mListSchedule.getChildAt(0);\n int topY = 0;\n if (firstChild != null) {\n topY = firstChild.getTop();\n }\n int heroTopY = stickyViewSpacer.getTop();\n pager.setY(Math.max(0, heroTopY + topY));\n /* Set the image to scroll half of the amount that of ListView */\n status_bar.setY(topY * 0.5f);\n\n\n }\n }",
"protected void scrollToPosition(int position){\n recyclerView.scrollToPosition(position);\n }",
"public void scrollBottom(int offset) {\n clientRpc.scrollBottom(offset);\n }",
"public void moveDownRows(int[] rows)throws IndexOutOfBoundsException{\r\n if (rows.length > 0){\r\n CoverFooterItemType tmp_element;\r\n //no moveup if i'm selecting the first elemento in the table\r\n if (rows[rows.length-1] < (data.size()-1)){\r\n tmp_element = (CoverFooterItemType)data.get(rows[rows.length-1]+1);\r\n for (int i=(rows.length-1); i>=0; i--){ \r\n if (rows[rows.length-1] < (data.size()-1)){\r\n data.set(rows[i]+1, data.get(rows[i]));\r\n }\r\n }\r\n data.set(rows[0], tmp_element);\r\n }\r\n if (rows[rows.length-1] < (data.size()-1)){\r\n fireTableRowsUpdated(rows[0], rows[rows.length-1]+1);\r\n }\r\n }\r\n }",
"@FXML\n private void handleMainListPanelScrollDown() {\n mainTaskListPanel.scrollToNext();\n }",
"private Cell get_top_cell(int row, int col) {\n return get_cell(--row, col);\n }",
"private void selectLastUsed() {\n // Set the initial selection of the table:\n if (initSelection != null) {\n boolean found = false;\n for (int i = 0; i < table.getRowCount(); i++) {\n if (tableModel.getElementAt(i).getFile().getPath().\n equals(initSelection)) {\n table.setRowSelectionInterval(i, i);\n found = true;\n break;\n }\n }\n if (!found && (table.getRowCount() > 0)) {\n table.setRowSelectionInterval(0, 0);\n }\n }\n else {\n if (table.getRowCount() > 0) {\n table.setRowSelectionInterval(0, 0);\n }\n }\n }",
"public int getYTop() {\n return yTop;\n }",
"@Override\n protected void onResume() {\n super.onResume();\n scrollMyListViewToBottom();\n }",
"public ScrollToFront(IMusicModel model, IGuiView gui) {\n this.model = model;\n this.gui = gui;\n }",
"@Override\n\tpublic boolean scrolled(int arg0) {\n\t\treturn false;\n\t}",
"@Override\n\tpublic boolean scrolled(int arg0) {\n\t\treturn false;\n\t}",
"void seekToFirst();",
"public int getTopY() {\n\t\treturn 0;\r\n\t}",
"public interface ScrollToPositionListener {\n\n void scrollToPosition(int position, boolean enableScroll, boolean lastVisible);\n}",
"public void scrollTo(String place) {\n WebElement element = getElement(place);\n if (place != null) {\n scrollTo(element);\n }\n }",
"@Test\n public void scrollIntoView() throws InterruptedException {\n/*\nTask:\ngo to http://carettahotel.com/\nverify the text \"Recent Blog\" is on the page\nScroll to that element\n */\n driver.get(\"http://carettahotel.com/\");\n\n // we have to scroll otherwise it fails\n // scroll to the element by using javascript executor\n\n WebElement recentBlog = driver.findElement(By.xpath(\"//*[.='Recent Blog']\"));\n\n // 1. create javascript executor\n // ((JavascriptExecutor) driver).executeScript(\"arguments[0].scrollIntoView(true);\", recentBlog);\n JavascriptExecutor executor = (JavascriptExecutor) driver;\n executor.executeScript(\"arguments[0].scrollIntoView(true)\", recentBlog);\n\n\n\n //Wait a little so that the page scrolls down. We can use also explictlyWait\n Thread.sleep(3000);\n boolean isRecentBlogDisplayed = recentBlog.isDisplayed();\n Assert.assertTrue(isRecentBlogDisplayed);\n\n\n }",
"private void sendScroll() {\n\t\tfinal Handler handler = new Handler();\n\t\tnew Thread(new Runnable() {\n\t\t\t@Override\n\t\t\tpublic void run() {\n\t\t\t\twhile (mTopIndex <= mFinalIndex) {\n\t\t\t\t\ttry {\n\t\t\t\t\t\tThread.sleep(100);\n\t\t\t\t\t} catch (InterruptedException e) {\n\n\t\t\t\t\t}\n\t\t\t\t\thandler.post(new Runnable() {\n\t\t\t\t\t\t@Override\n\t\t\t\t\t\tpublic void run() {\n\t\t\t\t\t\t\tmTopIndex += 0.1;\n\t\t\t\t\t\t\tscrollView.scrollBy(0, (int) mTopIndex);\n\t\t\t\t\t\t\tif (mTopIndex >= mFinalIndex) {\n\t\t\t\t\t\t\t\tmTopIndex = 0;\n\t\t\t\t\t\t\t\tscrollView.fullScroll(ScrollView.FOCUS_UP);\n\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t\t// Check if scroll completed or not\n\t\t\t\t\t\t\tif (mFirstScroll && (mPrevY == scrollView.getScrollY())) {\n\t\t\t\t\t\t\t\tmFinalIndex = mTopIndex + 5;\n\t\t\t\t\t\t\t\tmFirstScroll = false;\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\tmPrevY = scrollView.getScrollY();\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}).start();\n\t}",
"private boolean isOnTableY(int y) {\r\n return y >= 0 && y <= table.getHeight();\r\n }",
"private static void scrollToElement(JEditorPane editorPane, HTMLDocument.Iterator elementIterator) {\n\t\ttry {\n\t\t\tRectangle rectangle = editorPane.modelToView(elementIterator.getStartOffset());\n\t\t\tif (rectangle == null) {\n\t\t\t\treturn;\n\t\t\t}\n\t\t\t// the view is visible, scroll it to the\n\t\t\t// center of the current visible area.\n\t\t\tRectangle visibleRectangle = editorPane.getVisibleRect();\n\t\t\t// r.y -= (vis.height / 2);\n\t\t\trectangle.height = visibleRectangle.height;\n\t\t\teditorPane.scrollRectToVisible(rectangle);\n\t\t} catch (BadLocationException e) {\n\t\t\tlog.error(e.getMessage());\n\t\t}\n\t}",
"@Override\n public void onScroll(AbsListView view, int firstVisibleItem, int visibleItemCount, int totalItemCount) {\n //if there are no items in list, end method\n if(totalItemCount == 0) return;\n\n //if there are items in list, check if first visible item in list has changed\n if (isSameRow(firstVisibleItem)) {\n //if same, check top position of first visible item to see if scroll threshold is met\n int newScrollY = getTopItemScrollY();\n\n //check if scroll threshold is met\n boolean isSignificantDelta = Math.abs(mLastScrollY - newScrollY) > mScrollThreshold;\n\n //if change is significant\n if (isSignificantDelta) {\n //check scroll direction\n if (mLastScrollY > newScrollY) {\n //scroll up event\n onScrollUp();\n } else {\n //scroll down event\n onScrollDown();\n }\n }\n\n //set last scroll top position\n mLastScrollY = newScrollY;\n } else {\n //first visible item in list has changed, check change direction\n if (firstVisibleItem > mPreviousFirstVisibleItem) {\n //first visible item is greater, scroll up event\n onScrollUp();\n } else {\n //first visible item is less, scroll down event\n onScrollDown();\n }\n\n //save top position of first visible item\n mLastScrollY = getTopItemScrollY();\n\n //save item position of first visible item\n mPreviousFirstVisibleItem = firstVisibleItem;\n }\n }",
"public void setSelection( final R toElement, final boolean needScrollTo )\r\n {\r\n if( toElement == null )\r\n {\r\n clearSelection();\r\n }\r\n else\r\n { // find the element\r\n final ListSelectionModel selectionModel = jTable.getSelectionModel();\r\n final int count = getRowCount();\r\n for( int rowIndex = 0; rowIndex < count; rowIndex++ )\r\n {\r\n final R row = provideRow( rowIndex );\r\n if( row.equals( toElement ) )\r\n {\r\n final int xlatedRowIndex = jTable.convertRowIndexToView( rowIndex );\r\n selectionModel.setSelectionInterval( xlatedRowIndex, xlatedRowIndex ); // for arbitrary multi use .clearSelection() & .addSelectionInterval()\r\n\r\n if( needScrollTo == true )\r\n {\r\n jTable.scrollRectToVisible( jTable.getCellRect( xlatedRowIndex, 0, true ) );\r\n }\r\n break; // for\r\n }\r\n }\r\n }\r\n }",
"public void scrollToPosition(int position){\n\t\tif(position < 0 || position >= mAdapter.getCount()) throw new IndexOutOfBoundsException(\"Position must be in bounds of adapter values count\");\n\t\t\n\t\treset();\n\t\trefillInternal(position-1, position);\n\t\tinvalidate();\n\t}",
"@Override\n public void onScroll(AbsListView view, int firstVisibleItem, int visibleItemCount, int totalItemCount) {\n total_item = totalItemCount;\n if (total_pos != totalItemCount) {\n if (cur_position == 0) {\n /* If cur_position = 0, means is the first page, using cur_position to store\n the difference of total item num and the current item num */\n cur_position = totalItemCount - total_pos;\n } else {\n /*!=1 means after send msg not jump to cur_position = 1\n (total_item - total_pos) means if there are less items in the last page, listview should scroll to there */\n if ((total_item - total_pos) < cur_position && (total_item - total_pos) != 1) {\n cur_position = total_item - total_pos;\n }\n listView.setSelection(cur_position);\n total_pos = totalItemCount;\n }\n }\n\n if (firstVisibleItem == 0) {\n View firstVisibleItemView = listView.getChildAt(0);\n if (firstVisibleItemView != null && firstVisibleItemView.getTop() == 0) {\n Log.d(\"ListView\", \"##### 滚动到顶部 #####\");\n //if scrolling to the top of a page, page ++\n if (mPageNum < total_page) {\n mPageNum++;\n new ChatAsyncTask().execute();\n Toast.makeText(ChatActivity.this, \"Loading\",\n Toast.LENGTH_SHORT).show();\n\n } else {\n Toast.makeText(ChatActivity.this, \"Nothing More!!!\",\n Toast.LENGTH_SHORT).show();\n }\n }\n }\n }"
] |
[
"0.7437644",
"0.7361914",
"0.66083014",
"0.65853804",
"0.6237566",
"0.6228134",
"0.5980053",
"0.59542435",
"0.59486187",
"0.5928532",
"0.58925766",
"0.58044064",
"0.5748489",
"0.5671451",
"0.567114",
"0.5655113",
"0.55658484",
"0.55142343",
"0.54849595",
"0.5478502",
"0.54662573",
"0.5454329",
"0.5442573",
"0.5442278",
"0.5431671",
"0.5429126",
"0.54279333",
"0.5388578",
"0.53799134",
"0.53654826",
"0.53540593",
"0.5352837",
"0.5351484",
"0.5334514",
"0.5282713",
"0.5280831",
"0.52670354",
"0.52298915",
"0.52293634",
"0.52257603",
"0.52195066",
"0.52135056",
"0.52125925",
"0.5172807",
"0.51718146",
"0.517153",
"0.5162756",
"0.51576465",
"0.51444864",
"0.51317143",
"0.51186526",
"0.5109736",
"0.5099193",
"0.5098662",
"0.50893044",
"0.5082798",
"0.5071331",
"0.50621045",
"0.505916",
"0.5051391",
"0.5049433",
"0.50430924",
"0.5025147",
"0.5017158",
"0.5014453",
"0.50061315",
"0.49985737",
"0.49970514",
"0.49952108",
"0.4991876",
"0.49766278",
"0.49707973",
"0.49605224",
"0.49498624",
"0.49429697",
"0.49384803",
"0.49337476",
"0.4922589",
"0.491605",
"0.49135023",
"0.49105987",
"0.49098617",
"0.49033022",
"0.4896867",
"0.48953122",
"0.48760512",
"0.48526263",
"0.48526263",
"0.48498073",
"0.48333922",
"0.48250204",
"0.48157293",
"0.481228",
"0.48003152",
"0.4799788",
"0.47994027",
"0.4793324",
"0.47932732",
"0.47931537",
"0.47921312"
] |
0.70309854
|
2
|
Programmatically select a row
|
public native void selectRow(int row) /*-{
var jso = this.@com.emitrom.ti4j.core.client.ProxyObject::getJsObj()();
jso.selectRow(row);
}-*/;
|
{
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
}
|
[
"private void selectTableRow () {\n int selectedRow = itemTable.getSelectedRow();\n if (selectedRow >= 0 && selectedRow < clubEventList.size()) {\n boolean modOK = modIfChanged();\n if (modOK) {\n position = clubEventList.positionUsingListIndex (selectedRow);\n positionAndDisplay();\n }\n }\n }",
"protected void select() {\n\t\tcleanValues();\n\t\tint row = m_table.getSelectedRow();\n\t\tboolean enabled = row != -1;\n\t\tif (enabled)\n\t\t{\n\t\t\tInteger ID = m_table.getSelectedRowKey();\n\t\t\tif (ID != null)\n\t\t\t{\n\t\t\t\tm_C_Order_ID = ID.intValue();\n\t\t\t}\n\t\t}\n\t\tlog.info(\"ID=\" + m_C_Order_ID); \n\t}",
"@Kroll.method\n\tpublic void selectRow(int index)\n\t{\n\t\tscrollToIndex(index, null);\n\n\t\tfinal TableViewRowProxy row = getRowByIndex(index);\n\n\t\tif (row != null) {\n\t\t\tfinal TiTableView tableView = getTableView();\n\n\t\t\tif (tableView != null) {\n\t\t\t\tfinal Runnable action = () -> {\n\t\t\t\t\tfinal SelectionTracker tracker = tableView.getTracker();\n\t\t\t\t\tfinal TiUIView rowView = row.peekView();\n\t\t\t\t\tfinal boolean visible = rowView != null && rowView.getNativeView().isShown();\n\n\t\t\t\t\tif (!visible) {\n\t\t\t\t\t\tscrollToIndex(index, null);\n\t\t\t\t\t}\n\t\t\t\t\tif (tracker != null) {\n\t\t\t\t\t\ttracker.select(row);\n\t\t\t\t\t}\n\t\t\t\t};\n\n\t\t\t\t// This is a workaround for when `EDITING` mode is set, as it recreates the TableView.\n\t\t\t\t// We need to listen for when it has updated before testing visibility/scrolling.\n\t\t\t\tif (!tableView.getHasLaidOutChildren()) {\n\t\t\t\t\ttableView.addOnLayoutChangeListener(new View.OnLayoutChangeListener()\n\t\t\t\t\t{\n\t\t\t\t\t\t@Override\n\t\t\t\t\t\tpublic void onLayoutChange(View view, int i, int i1, int i2, int i3, int i4, int i5, int i6,\n\t\t\t\t\t\t\t\t\t\t\t\t int i7)\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\taction.run();\n\t\t\t\t\t\t\ttableView.removeOnLayoutChangeListener(this);\n\t\t\t\t\t\t}\n\t\t\t\t\t});\n\t\t\t\t} else {\n\t\t\t\t\taction.run();\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}",
"@Override\n public void mousePressed(MouseEvent e) {\n if (e.getButton() == MouseEvent.BUTTON3) {\n int rowUnderMouse = getTable().rowAtPoint(e.getPoint());\n// if (rowUnderMouse != -1 && !getTable().isRowSelected(rowUnderMouse)) {\n// selected = rowUnderMouse;\n// }\n selected = rowUnderMouse;\n }\n }",
"private void select(int row, int column) {\n \n if (recordList != null && entryForm != null) {\n currentColumn = column;\n if (currentRow != row) {\n currentRow = row;\n recordList.setSelectedIndex(row);\n }\n recordForm.setFocusAt(column);\n }\n \n }",
"public void fireTableRowSelected(Object source, int iRowIndex, int iSelectionType);",
"public void widgetSelected(SelectionEvent e) {\n table.setSelection(new TableItem[]{cursor.getRow()});\n }",
"protected void selectCell( int row, int column )\n {\n validateCell( row, column );\n if ( row < 0 || column < 0 )\n {\n return;\n }\n\n final int r = row;\n final int c = column;\n SwingUtilities.invokeLater(\n new Runnable()\n {\n @Override\n public void run()\n {\n treeTable.changeSelection( r, c, false, false );\n }\n } );\n }",
"@Override\r\n\tpublic void mousePressed(MouseEvent e) {\r\n\t\tJTable table = (JTable) e.getSource();\r\n\t\tthis.selectedRow = table.getSelectedRow();\r\n\t}",
"private void selectedRowInvoice(){\r\n //numOrdenInv = tb_factura.getSelectionModel().getSelectedIndex();\r\n }",
"private WebElement chooseFirstRow() {\n return getRowsFromTable().get(0);\n\n }",
"public void setSelectedRow(String s) {\n\t\tuRow = s;\n\t}",
"@Override\r\n\tprotected void doSingleClick(int row) {\n\t\t\r\n\t}",
"@Override\n\t\t\tpublic void onEvent(RowFocusEvent event) {\n\t\t\t\tgrid.select(event.getItemId());\n\n\t\t\t}",
"public native void selectCell(String ID) /*-{\r\n var self = this.@com.smartgwt.client.widgets.BaseWidget::getOrCreateJsObj()();\r\n self.selectCell(cell);\r\n }-*/;",
"private IssuePost getSingleSelectedRow() {\n ListSelectionModel selectionModel = table.getSelectionModel();\n int selectedIndex = selectionModel.getLeadSelectionIndex();\n if (selectedIndex != NOT_SELECTED) {\n return table.getRowData(selectedIndex);\n }\n return null;\n }",
"public int getSelectedRow()\n {\n \treturn this.getSelectedIndex();\n }",
"protected abstract void rowSelectedCriterionTable(EvCriterion<Ev, CriterionShortIdentifier> item, Cell cell, ClickEvent event);",
"void select(int index) throws InvalidValueException;",
"public native void selectCell(Record cell) /*-{\r\n var self = this.@com.smartgwt.client.widgets.BaseWidget::getOrCreateJsObj()();\r\n self.selectCell(cell.@com.smartgwt.client.data.Record::getJsObj()());\r\n }-*/;",
"private void selectAndPickARow(Card card, Player player) {\n\n int selectedRow = 1;\n\n pickARow(card, firstRow, player);\n }",
"private void selectDetailWithMouse() {\n int selectedRowIndex=jt.convertRowIndexToModel(jt.getSelectedRow());\n String[] choices={\"Update Row\",\"Delete\",\"Cancel\"};\n int option=JOptionPane.showOptionDialog(rootPane, \"Product ID: \"+jtModel.getValueAt(selectedRowIndex, 0).toString()+\"\\n\"+\"Product Name: \"+jtModel.getValueAt(selectedRowIndex,1), \"View Data\", WIDTH, HEIGHT,null , choices, NORMAL);\n if(option==0)\n {\n tfPaintId.setText(jtModel.getValueAt(selectedRowIndex,0).toString());\n tfName.setText(jtModel.getValueAt(selectedRowIndex, 1).toString());\n tfPrice.setText(jtModel.getValueAt(selectedRowIndex, 2).toString());\n tfColor.setText(jtModel.getValueAt(selectedRowIndex, 3).toString());\n tfQuantity.setText(jtModel.getValueAt(selectedRowIndex, 8).toString());\n rwCombo.setSelectedItem(jtModel.getValueAt(selectedRowIndex, 4));\n typeCombo.setSelectedItem(jtModel.getValueAt(selectedRowIndex, 6));\n bCombo.setSelectedItem(jtModel.getValueAt(selectedRowIndex, 5));\n switch(jtModel.getValueAt(selectedRowIndex, 7).toString()) {\n case \"High\":\n high.setSelected(true);\n break;\n case \"Mild\":\n mild.setSelected(true);\n break;\n case \"Medium\":\n medium.setSelected(true);\n break;\n }\n }\n else if(option==1)\n {\n jtModel.removeRow(selectedRowIndex);\n JOptionPane.showMessageDialog(rootPane,\" Detail successfully deleted\");\n }\n else \n {\n \n } \n }",
"public Posto select(int rowSelected) {\n return postos.get(rowSelected);\n }",
"@Override\n\t\t\t\t\tpublic void onClick(View v) {\n\t\t\t\t\t\tTableRow tr1=(TableRow)v;\n\t\t\t\t\t\tTextView tv1= (TextView)tr1.getChildAt(0);\n\t\t\t\t\t\tString a = tv1.getText().toString();\n\t\t\t\t\t\t//tr1.setBackgroundColor(Color.BLACK);\n\t\t\t\t\t\tfirstname_et.setText(a);\n\t\t\t\t\t\tToast.makeText(getApplicationContext(),tv1.getText().toString()+\" Selected\",Toast.LENGTH_LONG).show();\n\t\t\t\t\t}",
"@Override\n\t\t\t\t\tpublic void onClick(View v) {\n\t\t\t\t\t\tString row= diveRow.get(position);\n\t\t\t\t\t\tIntent i = new Intent(\"android.intent.action.VIEWSELECTEDDIVE\");\n\t\t\t\t\t\tBundle extras = new Bundle();\n\t\t\t\t\t\textras.putString(\"row\", row);\n\t\t\t\t\t\ti.putExtras(extras);\n\t\t\t\t\t\tstartActivityForResult(i, 0);\n\t\t\t\t\t\t//Toast.makeText(getBaseContext(), \"Row selected: \"+ row, Toast.LENGTH_LONG).show();\n\t\t\t\t\t\t//cursor.close();\n\t\t\t\t\t\t//dataBaseCursor.close();\n\t\t\t\t\t\tfinish();//free resources\n\t\t\t\t\t\t\n\t\t\t\t\t}",
"@FXML \n public void handleSelected() throws Exception{\n \n TablePosition pos = (TablePosition) table.getSelectionModel().getSelectedCells().get(0);\n int index = pos.getRow();\n String selected = table.getItems().get(index).toString();\n String sn = selected.substring(0, selected.indexOf(\",\"));\n String cc =selected.substring(selected.indexOf(\",\")+1, selected.length());\n \n StudentMarkClick.Activate(sn, cc, lastclicked);\n //switch to detail view\n content.getChildren().clear();\n content.getChildren().add(FXMLLoader.load(getClass().getResource(\"viewMarks.fxml\")));\n \n //selected = selected.substring(1, selected.indexOf(\",\")); //only get username\n System.out.println(sn+\"|\"+cc); \n \n }",
"public void getRow(MouseEvent e) {\n\t\tconn = MySqlConnection.ConnectDb();\n\t\tindex = tableTransactions.getSelectionModel().getSelectedIndex();\n\n\t\tif (index <= -1)\n\t\t\treturn;\n\n\t\ttxt_transactionID.setText(col_transactionID.getCellData(index).toString());\n\t\ttxt_date.setPromptText(col_date.getCellData(index).toString());\n\t\ttxt_description.setText(col_description.getCellData(index).toString());\n\t\ttxt_category.setPromptText(col_category.getCellData(index).toString());\n\t\ttxt_amount.setText(col_amount.getCellData(index).toString());\n\t}",
"@Override\n public void widgetDefaultSelected(SelectionEvent e) {\n\t\t\t\ttable.setSelection(new TableItem[] {tcursor.getRow()});\n\t\t\t}",
"public void select()\n {\n super.select();\n SwingUtilities.invokeLater(() -> _sqlPanel.getSQLEntryPanel().requestFocus());\n }",
"private void selectSurfaceEntity(Tile tile) {\r\n\t\tint i = 0;\r\n\t\tfor (TileEntry te : surfaceTableModel.rows) {\r\n\t\t\tif (te.tile == tile) {\r\n\t\t\t\tint idx = surfaceTable.convertRowIndexToView(i);\r\n\t\t\t\tsurfaceTable.getSelectionModel().addSelectionInterval(idx, idx);\r\n\t\t\t\tsurfaceTable.scrollRectToVisible(surfaceTable.getCellRect(idx, 0, true));\r\n\t\t\t}\r\n\t\t\ti++;\r\n\t\t}\t\t\r\n\t}",
"private void selectLastUsed() {\n // Set the initial selection of the table:\n if (initSelection != null) {\n boolean found = false;\n for (int i = 0; i < table.getRowCount(); i++) {\n if (tableModel.getElementAt(i).getFile().getPath().\n equals(initSelection)) {\n table.setRowSelectionInterval(i, i);\n found = true;\n break;\n }\n }\n if (!found && (table.getRowCount() > 0)) {\n table.setRowSelectionInterval(0, 0);\n }\n }\n else {\n if (table.getRowCount() > 0) {\n table.setRowSelectionInterval(0, 0);\n }\n }\n }",
"private void jTable1MouseClicked(java.awt.event.MouseEvent evt) {\n int indexrow=jTable1.getSelectedRow();\n DefaultTableModel model = (DefaultTableModel)jTable1.getModel();\n id=model.getValueAt(indexrow,0).toString();\n txt_id.setText(model.getValueAt(indexrow,0).toString());\n txt_class.setText(model.getValueAt(indexrow,1).toString());\n txt_section.setText(model.getValueAt(indexrow, 2).toString());\n }",
"public void focusAtRow(int index) {\n getSelectionModel().setSelectionInterval(index, index);\n }",
"@Override\n public void focusGained(FocusEvent fe) {\n if (!table.getSelectionModel().isSelectionEmpty()) \n Order.selectedBookingIDRow = (int) table.getValueAt(table.getSelectedRow(), 0);\n }",
"@Override\n\t\t\tpublic void onClick(View v) {\n\t\t\t\tTableRow selected=null;\n\t\t\t\tfor(int i=0;i<table.getChildCount() && selected==null;i++){\n\t\t\t\t\tTableRow row = (TableRow)table.getChildAt(i);\n\t\t\t\t\tif(row.isSelected()){\n\t\t\t\t\t\tselected=row;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\tif(selected==null){\n\t\t\t\t\t//Creamos un toast para avisar\n\t\t\t\t\tResources res = getResources();\n\t\t\t\t\tString text = String.format(res.getString(R.string.selectBill));\n\t\t\t\t\tToast msg = Toast.makeText(getBaseContext(),text, Toast.LENGTH_LONG);\n\t\t\t\t\tmsg.show();\n\t\t\t\t}\n\t\t\t\telse{\n\t\t\t\t\tTextView idFactura = (TextView) selected.getChildAt(1);\n\t\t\t\t\tTextView nameClient = (TextView) selected.getChildAt(0);\n\t\t\t\t\t\n\t\t\t\t\tGlobalStatic data = (GlobalStatic) getApplicationContext();\n\t\t\t\t\t\n\t\t\t\t\tdata.cliente = data.getCliente((String)nameClient.getText());\n\t\t\t\t\tdata.factura = data.getFacturasId(data.cliente, Integer.parseInt((String)idFactura.getText()));\n\n\t\t\t\t\tIntent intent = new Intent(DiarySelection.this,BillForm.class);\n\t\t\t\t\tstartActivity(intent);\n\t\t\t\t}\n\t\t\t}",
"@Override\n\tpublic void onClick(View arg0) {\n\t\tthis.flatCalendar.selectCell(this);\t\t\n\t}",
"@FXML\n private void rowSelected() {\n if (coachesTable.getSelectionModel().getSelectedItem() != null) {\n removeButton.setDisable(false);\n }\n }",
"@Override\n public void onRowClicked(int position) {\n }",
"public void widgetSelected(SelectionEvent e) {\n Control oldEditor = editor.getEditor();\n \n TableItem item = (TableItem) e.item;\n if (item == null) {\n return;\n }\n \n if (oldEditor != null) {\n oldEditor.dispose(); // FIX the focus\n }\n // Identify the selected row\n \n // The control that will be the editor must be a child of the\n // Table\n final Text textNewEditor = new Text(table, SWT.NONE);\n \n textNewEditor.setText(item.getText(EDITABLECOLUMN));\n textNewEditor.addModifyListener(new ModifyListener() {\n public void modifyText(ModifyEvent me) {\n Text text = (Text) editor.getEditor();\n editor.getItem()\n .setText(EDITABLECOLUMN, text.getText());\n }\n });\n \n /*\n * TODO FIX the focus\n */\n textNewEditor.selectAll();\n // newEditor.setFocus();\n editor.setEditor(textNewEditor, item, EDITABLECOLUMN);\n }",
"@Override\n\t\t\tpublic void onClick(View v) {\n\t\t\t\tTableRow selected=null;\n\t\t\t\tfor(int i=0;i<table.getChildCount() && selected==null;i++){\n\t\t\t\t\tTableRow row = (TableRow)table.getChildAt(i);\n\t\t\t\t\tif(row.isSelected()){\n\t\t\t\t\t\tselected=row;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\t//Si no se ha seleccionado ninguna columna\n\t\t\t\tif(selected==null){\n\t\t\t\t\t//Creamos un toast para avisar\n\t\t\t\t\tResources res = getResources();\n\t\t\t\t\tString text = String.format(res.getString(R.string.selectBill));\n\t\t\t\t\tToast msg = Toast.makeText(getBaseContext(),text, Toast.LENGTH_LONG);\n\t\t\t\t\tmsg.show();\n\t\t\t\t}\n\n\t\t\t\telse{\n\t\t\t\t\t//Obtenemos los datos necesarios para\n\t\t\t\t\t//Localizar la factura a imprimir\n\t\t\t\t\tTextView idFactura = (TextView) selected.getChildAt(1);\n\t\t\t\t\tTextView nameClient = (TextView) selected.getChildAt(0);\n\t\t\t\t\t\n\t\t\t\t\tGlobalStatic data = (GlobalStatic) getApplicationContext();\n\t\t\t\t\tdata.cliente = data.getCliente((String)nameClient.getText());\n\t\t\t\t\tdata.factura = data.getFacturasId(data.cliente, Integer.parseInt((String)idFactura.getText()));\n\t\t\t\t\t//Creamos el pdf y lo imprimimos\n\t\t\t\t\ttry {\n\t\t\t\t\t\tdata.crearFacturaDiaria(data);\n\t\t\t\t\t} catch (Exception e) {\n\t\t\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\t\t\te.printStackTrace();\n\t\t\t\t\t}\n\t\t\t\t\t//Creamos un toast para avisar\n\t\t\t\t\tResources res = getResources();\n\t\t\t\t\tString text = String.format(res.getString(R.string.printing));\n\t\t\t\t\tToast msg = Toast.makeText(getBaseContext(),text, Toast.LENGTH_LONG);\n\t\t\t\t\tmsg.show();\n\t\t\t\t\n\t\t\t\t}\n\t\t\t}",
"public CellSelection getSelectCell() {\n return selection;\n }",
"void setRowSelection(int index, String value) {\r\n int val;\r\n try {\r\n val = ( (Integer) nameToIndexMap.get(value)).intValue();\r\n }\r\n catch (Exception e) {\r\n return;\r\n }\r\n ySelections[index] = val;\r\n\r\n // now, for all the plots in this row, update the objectives\r\n for (int i = 0; i < 2; i++) {\r\n plots[index][i].setObjectives(xSelections[i], val);\r\n /////////////////////////////////\r\n plots[index][i].redraw();\r\n /////////////////////////////////\r\n }\r\n fireTableDataChanged();\r\n }",
"public R getSingleSelection()\r\n {\r\n final ListSelectionModel lsm = jTable.getSelectionModel();\r\n if( lsm.isSelectionEmpty() == false )\r\n {\r\n final int row = lsm.getLeadSelectionIndex(); // or use .getJTable().getSelectedRow() for single or lsm.isSelectedIndex() for multiple selection\r\n if( row != Util.INVALID_INDEX )\r\n {\r\n final int xlatedRow = jTable.convertRowIndexToModel( row ); // has to be done with auto-sorter\r\n return provideRow( xlatedRow );\r\n }\r\n }\r\n\r\n return null;\r\n }",
"@Override\n\tpublic void mouseClicked(MouseEvent arg0) {\n\t\tint rowSelected = table1.getSelectedRow();\n\n\t\ttxtMa.setText((String) table1.getValueAt(rowSelected, 0));\n\t\ttxtTen.setText((String) table1.getValueAt(rowSelected, 1));\n\t\ttxtTuoi.setText((String) table1.getValueAt(rowSelected, 2));\n\t\ttxtSdt.setText((String) table1.getValueAt(rowSelected, 3));\n\t\ttxtDiaChi.setText((String) table1.getValueAt(rowSelected, 4));\n\t\ttxtEmail.setText((String) table1.getValueAt(rowSelected, 5));\n\t}",
"@Override\n\t\t\tpublic void onClick(View v) {\n\t\t\t\tTableRow selected=null;\n\t\t\t\tfor(int i=0;i<table.getChildCount() && selected==null;i++){\n\t\t\t\t\tTableRow row = (TableRow)table.getChildAt(i);\n\t\t\t\t\tif(row.isSelected()){\n\t\t\t\t\t\tselected=row;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\tif(selected==null){\n\t\t\t\t\t//Creamos un toast para avisar\n\t\t\t\t\tResources res = getResources();\n\t\t\t\t\tString text = String.format(res.getString(R.string.selectBill));\n\t\t\t\t\tToast msg = Toast.makeText(getBaseContext(),text, Toast.LENGTH_LONG);\n\t\t\t\t\tmsg.show();\n\t\t\t\t}\n\t\t\t\telse{\n\t\t\t\t\tTextView idFactura = (TextView) selected.getChildAt(1);\n\t\t\t\t\tTextView nameClient = (TextView) selected.getChildAt(0);\n\t\t\t\t\t\n\t\t\t\t\tGlobalStatic data = (GlobalStatic) getApplicationContext();\n\t\t\t\t\t\n\t\t\t\t\tdata.cliente = data.getCliente((String)nameClient.getText());\n\t\t\t\t\tdata.factura = data.getFacturasId(data.cliente, Integer.parseInt((String)idFactura.getText()));\n\t\t\t\t\t\n\t\t\t\t\tdata.db.removeBill(data);\n\t\t\t\t\tdata.cliente.removeFactura(data.factura);\n\t\t\t\t\t\n\t\t\t\t\t\n\t\t\t\t\ttable.removeView(selected);\n\t\t\t\t}\n\t\t\t\n\t\t\t}",
"private void setTableSingleSelection() {\n stuffTable.setSelectionMode( ListSelectionModel.SINGLE_SELECTION );\n employeeTable.setSelectionMode( ListSelectionModel.SINGLE_SELECTION );\n sellerTable.setSelectionMode( ListSelectionModel.SINGLE_SELECTION );\n salesmanTable.setSelectionMode( ListSelectionModel.SINGLE_SELECTION );\n customerTable.setSelectionMode( ListSelectionModel.SINGLE_SELECTION );\n commisionerTable.setSelectionMode( ListSelectionModel.SINGLE_SELECTION );\n WarehouseTB.setSelectionMode( ListSelectionModel.SINGLE_SELECTION );\n ContainerTB.setSelectionMode( ListSelectionModel.SINGLE_SELECTION );\n ProducerTable.setSelectionMode( ListSelectionModel.SINGLE_SELECTION );\n SaleTable.setSelectionMode( ListSelectionModel.SINGLE_SELECTION );\n PurchaseTable.setSelectionMode( ListSelectionModel.SINGLE_SELECTION );\n SalaryTable.setSelectionMode( ListSelectionModel.SINGLE_SELECTION );\n IncomeTable.setSelectionMode( ListSelectionModel.SINGLE_SELECTION );\n OutcomeTable.setSelectionMode( ListSelectionModel.SINGLE_SELECTION );\n DebtTable.setSelectionMode( ListSelectionModel.SINGLE_SELECTION );\n CreditTable.setSelectionMode( ListSelectionModel.SINGLE_SELECTION );\n }",
"@Override\n\t\t\t\tpublic void onClick(View v) {\n\t\t\t\t\tTableLayout table = (TableLayout) v.getParent();\n\t\t\t\t\t\n\t\t\t\t\tfor(int i=0;i<table.getChildCount();i++){\n\t\t\t\t\t\tTableRow row = (TableRow) table.getChildAt(i);\n\t\t\t\t\t\trow.setSelected(false);\n\t\t\t\t\t}\n\n\t\t\t\t\tTableRow row = (TableRow) v;\n\t\t\t\t\trow.setSelected(true);\n\t\t\t\t}",
"public void selectAt(MouseEvent e) {\r\n \t\tactivateSelect();\r\n \t\tmouseListner.mousePressed(e);\r\n \t}",
"protected abstract void select();",
"public boolean selected(int row){\n if (root == null) {\n compile();\n }\n return root.eval(row);\n }",
"private void onSelectPatient() {\n\t\tint selectedRowIndex = tablePatients.getSelectedRow();\n\n\t\tif (selectedRowIndex < 0) {\n\t\t\t// No row has been selected\n\t\t\tbuttonRemovePatient.setEnabled(false);\n\t\t\tbuttonViewPatient.setEnabled(false);\n\t\t} else {\n\t\t\t// A row has been selected\n\t\t\tbuttonRemovePatient.setEnabled(true);\n\t\t\tbuttonViewPatient.setEnabled(true);\n\t\t}\n\t}",
"public void mouseClicked(MouseEvent arg0){\n int r = table.getSelectedRow();\r\n if(r>=0){ \r\n// deletebtnButton.setEnabled(true);\r\n deletebtn.setEnabled(true); \r\n\r\n //Fetching records from Table on Fields\r\n idField.setText(\"\"+table.getModel().getValueAt(r,0));\r\n \t}\r\n }",
"private void recordTableMouseClicked(MouseEvent e) {\n\n //fetching the index from jtable\n DefaultTableModel df=(DefaultTableModel) recordTable.getModel();\n int index=recordTable.getSelectedRow();\n txtCustNo.setText(df.getValueAt(index,0).toString());\n txtCustName.setText(df.getValueAt(index,1).toString());\n txtCustDeposit.setText(df.getValueAt(index,2).toString());\n txtYears.setText(df.getValueAt(index,3).toString());\n cboSavings.setSelectedItem(df.getValueAt(index,4).toString());\n }",
"public int getSelectedLayer ()\n {\n return _table.getSelectedRow();\n }",
"private void table1MouseClicked(MouseEvent e) {\n\t\tint selC = table1.getSelectedColumn();\n\t\tint selR = table1.getSelectedRow();\n\t\tSystem.out.println(\" selC \" + selC + \" selR \" + selR);\n\t\t// System.out.println(modelKnow.getValueAt(selR, selC));\n\t}",
"private void jTable1MouseClicked(java.awt.event.MouseEvent evt) {\n DefaultTableModel model = (DefaultTableModel)jTable1.getModel();\n // get the selected row index\n int selectedRowIndex = jTable1.getSelectedRow();\n // set the selected row data into jtextfields\n ID_USER =Integer.parseInt(model.getValueAt(selectedRowIndex, 0).toString()) ; \n CL_USER =model.getValueAt(selectedRowIndex, 1).toString(); \n\n }",
"public void select();",
"public Combustivel select(int rowSelected) {\n return combs.get(rowSelected);\n }",
"@Override\n public org.pm4j.core.pm.PmTable.RowSelectMode getRowSelectMode() {\n return RowSelectMode.SINGLE;\n }",
"@Override\n public void onClick(Row row) {\n }",
"private void selectedRowGuide(){\r\n xy log_guide_rel_inv = tb_guias.getSelectionModel().getSelectedItem(); \r\n loadTables(log_guide_rel_inv.getGuias());\r\n loadCarga(log_guide_rel_inv.getGuias());\r\n \r\n List<Fxp_Archguid_gfc> data = Ln.getList_log_Archguid_gfc(Ln.getInstance().find_Archguid_gfc(log_guide_rel_inv.getGuias()));\r\n\r\n tp_factura.setText(\r\n \"Relación de Guia / Facturas / Clientes \" + \r\n \" - \" + \r\n data.size() + \" / \" + \r\n data.get(0).getNumfact() + \" / \" + \r\n data.get(0).getNumclie());\r\n\r\n tp_factura.setExpanded(true);\r\n \r\n }",
"public int getRow() {\n // YOUR CODE HERE\n return this.row;\n }",
"public void setSelectedLayer (int layer)\n {\n _table.setRowSelectionInterval(layer, layer);\n // and scroll the selected row to be visible\n int rowHeight = _table.getRowHeight();\n _table.scrollRectToVisible(new Rectangle(0, rowHeight * layer, 1, rowHeight));\n }",
"public void select() {}",
"@Override\n public Collection<T_ROW_ELEMENT_PM> getSelectedRows() {\n return null;\n }",
"private void selectLine(JComboBox combob)\n\t{\n\t\tint i = table.getSelectedRow();\n\t\ttxtiname.setText(table.getValueAt(i, 0).toString());\n\t\ttxticode.setText(table.getValueAt(i, 1).toString());\n\t\ttxtstock.setText(table.getValueAt(i, 2).toString());\n\t\ttxtprice.setText(table.getValueAt(i, 3).toString());\n\t\t\n\t\tString sec=table.getValueAt(i, 4).toString();\n\t\t\n\t\tcombob.setSelectedItem(sec.equals(\"Kitchen Essentials\")? sec: sec.equals(\"Fashion Store\")? sec: sec.equals(\"Kids Section\")? sec: sec.equals(\"Electronics\")? sec: \"Hardware\");\n\t}",
"@Override\n public void actionPerformed(ActionEvent e) {\n int row = table.convertRowIndexToModel( table.getEditingRow() );\n }",
"protected abstract void doSelection() throws IOException;",
"public Table select(int teableSeq) throws Exception {\n\t\treturn tableDao.select(teableSeq);\r\n\t}",
"protected void memberRowSelected(int row) {\r\n\t\tdisplayValidityReport();\r\n\t\tsetMemberActionsEnabled(true);\r\n\t}",
"Object getSelection();",
"private void tblSachMouseClicked(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_tblSachMouseClicked\n int row = tblSach.getSelectedRow();\n txbMaSach.setText(tblSach.getValueAt(row, 0).toString());\n txbTenSach.setText(tblSach.getValueAt(row, 1).toString());\n cbTheLoai.setSelectedItem(tblSach.getValueAt(row, 2));\n tbxTacGia.setText(tblSach.getValueAt(row, 3).toString());\n txbSoLuong.setText(tblSach.getValueAt(row, 5).toString());\n txbGia.setText(tblSach.getValueAt(row, 4).toString());\n cbxNXB.setSelectedItem(tblSach.getValueAt(row, 6));\n controlTxb(false);\n }",
"@Override\n public void mouseClicked(MouseEvent e) {\n int rowSelected = tblPesanan.getSelectedRow();\n Pesanan pesanan = items.get(rowSelected);\n listener.onSelectedRow(pesanan, PesananGridFrame.class.getSimpleName());\n dispose();\n }",
"public House getRow(int selectedRow) throws NoRowSelectedException {\n\t\tif (selectedRow >= this.housesArray.length || selectedRow < 0) {\n\t\t\tthrow new NoRowSelectedException();\n\t\t} else {\n\t\t\treturn housesArray[selectedRow];\n\t\t}\n\t}",
"public void select(Object obj, boolean selectionFlag);",
"@Override\n\t\t\tpublic void mouseClicked(MouseEvent arg0) {\n\t\t\t\tint selectedRow = table.getSelectedRow();//获得选中行的索引\n\t\t\t\tif(selectedRow!= -1) //是否存在选中行\n\t\t\t {\n\t\t\t Object oa = tableModel.getValueAt(selectedRow, 0);\n\t\t\t Object ob = tableModel.getValueAt(selectedRow, 1);\n\t\t\t comboBox_1.setSelectedItem(oa.toString());\n\t\t\t textField2.setText(ob.toString());\n\t\t\t }\n\t\t\t else{\n\t\t\t textField2.setText(\"\");\n\t\t\t }\n\t\t\t}",
"PaasCustomAutomationRecord selectByPrimaryKey(Integer id);",
"public void select ();",
"int atRow();",
"public void newRow();",
"int getRowId();",
"int getRowId();",
"int getRowId();",
"int getRowId();",
"int getRowId();",
"AdminTab selectByPrimaryKey(String id);",
"public int getRow(){\r\n // return statement\r\n return row;\r\n }",
"@Override\n\t\t\tpublic void focusGained(FocusEvent e) {\n\t\t\t\tint index = table.getSelectedRow();\n\t\t\t\t\n\t\t\t\tif (index >= 0 && index < table.getRowCount()) {\n\t\t\t\t\t\n\t\t\t\t\t Server ServerConnection;\n\t\t String courseID = (String) table.getValueAt(index, 0);\n\t\t\t\t\t\ttry {\n\t\t\t\t\t\t\tServerConnection = new Server();\n\t\t\t\t\t\t\tString query = \"select * from course_attend where StudentID ='\" + ClientID + \"' and courseID ='\"+courseID+\"'\";\n\t\t\t \t\tResultSet data = ServerConnection.ExecuteQuery(query);\n\t\t\t \t\tif (data.next()) {\n\t\t\t \t\t\tscoreTable.setValue((String)table.getValueAt(index, 1), data.getString(\"practice_point\"), data.getString(\"theory_point\"), data.getString(\"overall\"), data.getString(\"pass_status\"));\n\t\t\t \t\t}\n\t\t\t\t\t\t} catch (SQLException e1) {\n\t\t\t\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\t\t\t\te1.printStackTrace();\n\t\t\t\t\n\t\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}",
"private void MenuBlockStartActionPerformed(java.awt.event.ActionEvent evt) {\n BlockStart = this.jTable1.getSelectedRow();\n }",
"AfterServiceSheet selectByPrimaryKey(Long id);",
"public abstract ETreeTableRecord<T> getSelectedRecord();",
"@Override\n\tpublic void select() {\n\t}",
"@Override public void mouseClicked( final MouseEvent e )\r\n {\n if( e.isPopupTrigger() == true || e.getButton() == MouseEvent.BUTTON3 )\r\n { // mouse listener only added if row class supports JPopupMenuProvidable\r\n final JTable table = getJTable();\r\n final int row = table.rowAtPoint( e.getPoint() ); // did test, view->model xlation not needed\r\n if( row > -1 ) table.setRowSelectionInterval( row, row );\r\n\r\n final R rowObject = getSingleSelection();\r\n if( rowObject != null )\r\n {\r\n final JPopupMenu jpm = ((JPopupMenuProvidable)rowObject).provideJPopupMenu();\r\n if( jpm != null )\r\n {\r\n jpm.show( table, e.getX(), e.getY() );\r\n }\r\n }\r\n // else in table but below rows, i.e. no-man's land\r\n }\r\n }",
"Abum selectByPrimaryKey(String id);",
"void doSelectBuilding() {\r\n\t\tint idx = buildingTable.getSelectedRow();\r\n\t\tif (idx >= 0) {\r\n\t\t\tidx = buildingTable.convertRowIndexToModel(idx);\r\n\t\t\tTileEntry tileEntry = buildingTableModel.rows.get(idx);\r\n\t\t\tpreview.setImage(tileEntry.previewTile);\r\n\t\t\trenderer.placementRectangle.width = tileEntry.tile.width + 2;\r\n\t\t\trenderer.placementRectangle.height = tileEntry.tile.height + 2;\r\n\t\t\tsurfaceTable.getSelectionModel().clearSelection();\r\n\t\t\tcurrentBaseTile = null;\r\n\t\t\tcurrentBuildingType = tileEntry.buildingType;\r\n\t\t\tcurrentBuildingRace = tileEntry.surface;\r\n\t\t}\r\n\t}",
"int getRowIndex();",
"private long getSelectedIndex() {\r\n if (selection != null && selection.getKeys().hasNext()) {\r\n return new Long((Integer) selection.getKeys().next());\r\n } else {\r\n return selectedRowId;\r\n }\r\n }",
"public void setSelection (int index) {\r\n\tcheckWidget();\r\n\tsetSelection (index, false);\r\n}",
"@Override\n\t\t\t\tpublic void mouseClicked(MouseEvent arg0) {\n\t\t\t\t\t\n\t\t\t\t\ttableTransactions.setSelectionForeground(Color.WHITE);\n\t\t\t\t}",
"public void setSelectedCell(Coord c) {\n this.selected = c;\n }"
] |
[
"0.73245454",
"0.71396035",
"0.7129284",
"0.7098055",
"0.7079501",
"0.6979927",
"0.68824005",
"0.68678397",
"0.6822098",
"0.6744708",
"0.6680245",
"0.6601359",
"0.654547",
"0.65180475",
"0.64909077",
"0.64781606",
"0.6471274",
"0.6469061",
"0.64662296",
"0.6439329",
"0.6387602",
"0.6361972",
"0.6350712",
"0.63502693",
"0.6341682",
"0.6329252",
"0.6316566",
"0.6265494",
"0.62637943",
"0.6260375",
"0.6251983",
"0.6243434",
"0.62119246",
"0.6206827",
"0.62027425",
"0.61946493",
"0.61892205",
"0.6176401",
"0.6172631",
"0.6154436",
"0.61473954",
"0.6138117",
"0.6136112",
"0.61182326",
"0.61162657",
"0.6114237",
"0.6080373",
"0.60741544",
"0.607104",
"0.6068807",
"0.6067075",
"0.6062171",
"0.60553426",
"0.6027513",
"0.6024125",
"0.6002068",
"0.5977485",
"0.5953975",
"0.5951172",
"0.5941789",
"0.59327763",
"0.59065396",
"0.59058774",
"0.5901163",
"0.587908",
"0.5867072",
"0.5862696",
"0.58447695",
"0.584121",
"0.5840904",
"0.5835493",
"0.58330125",
"0.5832177",
"0.5831218",
"0.58294594",
"0.5823938",
"0.5821547",
"0.5820074",
"0.5816714",
"0.58159614",
"0.58159465",
"0.58159465",
"0.58159465",
"0.58159465",
"0.58159465",
"0.5807824",
"0.58058256",
"0.5797703",
"0.57976866",
"0.57940596",
"0.5793645",
"0.57921124",
"0.5789244",
"0.57846755",
"0.5783661",
"0.5773677",
"0.5764891",
"0.5763607",
"0.57576984",
"0.57500786"
] |
0.7828633
|
0
|
Sets this tableview's content insets. A table view is essentially a scroll view that contains a set of static row views that represents the content. Thus, the setContentInsets method facilitates a margin, or inset, distance between the content and the container scroll view. Typically used with the headerPullView property.
|
public native void setContentInsets(TableViewEdgeInsets value) /*-{
var jso = this.@com.emitrom.ti4j.core.client.ProxyObject::getJsObj()();
jso
.setContentInsets(value.@com.emitrom.ti4j.core.client.ProxyObject::getJsObj()());
}-*/;
|
{
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
}
|
[
"public native void setContentInsets(TableViewEdgeInsets value, Animation animation) /*-{\n\t\tvar jso = this.@com.emitrom.ti4j.core.client.ProxyObject::getJsObj()();\n\t\tjso\n\t\t\t\t.setContentInsets(\n\t\t\t\t\t\tvalue.@com.emitrom.ti4j.core.client.ProxyObject::getJsObj()(),\n\t\t\t\t\t\tanimation.@com.emitrom.ti4j.core.client.ProxyObject::getJsObj()());\n }-*/;",
"public native void setContentInsets(TableViewEdgeInsets value, boolean animate) /*-{\n\t\tvar jso = this.@com.emitrom.ti4j.core.client.ProxyObject::getJsObj()();\n\t\tjso.setContentInsets(\n\t\t\t\tvalue.@com.emitrom.ti4j.core.client.ProxyObject::getJsObj()(),\n\t\t\t\t{\n\t\t\t\t\tanimated : animate\n\t\t\t\t});\n }-*/;",
"protected void setInsets(Insets insets) {\n\t\tthis.insets = insets;\n\t}",
"public Insets getInsets() {\n \n // adjust predicted view size to account for scrollbars\n \n // This accounts for the 2 pixels from the edge of the viewport\n // to the edge of the scrollview on qt-emb-2.3.2.\n\tInsets insets = new Insets(2, 2, 2, 2);\n\n // 6347067.\n // TCK: ScrollPane test failed when waiting time is added after the validate().\n // Fixed 6228838: Resizing the panel cause wrong scroll bar range\n // on zaurus, which, in turn, fixed the viewport size problem in\n // CDC 1.1 linux-x86. But zaurus still has a problem which is shown when\n // running the PP-TCK interactive ComponetTests where two tests will have\n // both scroll bars on and in these two tests, you can see that the\n // bottom of the \"Yes\" \"No\" buttons are chopped off.\n //\n // The getInsets() call is modified to calculate whether scrollbars are on\n // in order to return the correct insets. In particular,\n //\n // Given that the hScrollbarHeight and vScrollbarWidth are known, which\n // is true in the Qt port case:\n //\n // hScrollbarOn is a function of scrollpane dim, child dim, as well as\n // vScrollbarOn in the boundary case where the horizontal scrollbar could\n // be needed if the vertical scrollbar needs to be present and the extra\n // width due to the vertical scrollbar just makes the horizontal\n // scrollbar necessary!\n\n ScrollPane sp = (ScrollPane)target;\n Dimension d = sp.size();\n Component c = getScrollChild();\n Dimension cd;\n if (c != null) {\n cd = c.size();\n } else {\n cd = new Dimension(0, 0);\n }\n\n if (scrollbarDisplayPolicy == ScrollPane.SCROLLBARS_ALWAYS) {\n insets.right += vScrollbarWidth;\n insets.bottom += hScrollbarHeight;\n } else if (scrollbarDisplayPolicy == ScrollPane.SCROLLBARS_AS_NEEDED) {\n if (d.width - insets.left*2 < cd.width) {\n // Hbar is necessary.\n insets.bottom += hScrollbarHeight;\n if (d.height - insets.top - insets.bottom < cd.height) {\n insets.right += vScrollbarWidth;\n }\n } else if (d.width - insets.left*2 - cd.width >= vScrollbarWidth) {\n // We're very sure that hbar will not be on.\n if (d.height - insets.top*2 < cd.height) {\n insets.right += vScrollbarWidth;\n }\n } else {\n // Borderline case so we need to check vbar first.\n if (d.height - insets.top*2 < cd.height) {\n insets.right += vScrollbarWidth;\n if (d.width - insets.left - insets.right < cd.width) {\n // Hbar is needed after all!\n insets.bottom += hScrollbarHeight;\n }\n }\n }\n } \n // 6347067.\n\n\treturn insets;\n }",
"public void setBorderInsets(int top, int left, int bottom, int right) {\r\n this.borderInsets = new Insets(top, left, bottom, right);\r\n }",
"public Insets getInsets();",
"public void setEdgeInsets(Insets edgeInsets)\n\t{\n\t\tthis.edgeInsets = edgeInsets;\n\t}",
"@Override\r\n public Insets getInsets() {\r\n // forward\r\n return isExpanded() || collapsedInsets==null ? super.getInsets() : collapsedInsets;\r\n }",
"public ViewInsets getInsets() {\n return null;\n }",
"@Override\r\n public WindowInsets onApplyWindowInsets(View v, WindowInsets insets) {\n final boolean round = insets.isRound();\r\n int rowMargin = res.getDimensionPixelOffset(R.dimen.page_row_margin);\r\n int colMargin = res.getDimensionPixelOffset(round ?\r\n R.dimen.page_column_margin_round : R.dimen.page_column_margin);\r\n pager.setPageMargins(rowMargin, colMargin);\r\n\r\n // GridViewPager relies on insets to properly handle\r\n // layout for round displays. They must be explicitly\r\n // applied since this listener has taken them over.\r\n pager.onApplyWindowInsets(insets);\r\n return insets;\r\n }",
"public void setDragInsets(Insets dragInsets)\n\t{\n\t\tthis.dragInsets = dragInsets;\n\t}",
"@Override\n public WindowInsets onApplyWindowInsets(View v, WindowInsets insets) {\n final boolean round = insets.isRound();\n int rowMargin = res.getDimensionPixelOffset(R.dimen.page_row_margin);\n int colMargin = res.getDimensionPixelOffset(round ?\n R.dimen.page_column_margin_round : R.dimen.page_column_margin);\n pager.setPageMargins(rowMargin, colMargin);\n\n // GridViewPager relies on insets to properly handle\n // layout for round displays. They must be explicitly\n // applied since this listener has taken them over.\n pager.onApplyWindowInsets(insets);\n return insets;\n }",
"public Insets getAutoscrollInsets() {\n\t\tRectangle raOuter = getBounds();\n\t\tRectangle raInner = getParent().getBounds();\n\t\treturn new Insets(raInner.y - raOuter.y + AUTOSCROLL_MARGIN, raInner.x\n\t\t\t\t- raOuter.x + AUTOSCROLL_MARGIN, raOuter.height\n\t\t\t\t- raInner.height - raInner.y + raOuter.y + AUTOSCROLL_MARGIN,\n\t\t\t\traOuter.width - raInner.width - raInner.x + raOuter.x\n\t\t\t\t\t\t+ AUTOSCROLL_MARGIN);\n\t}",
"public static void setMargin(Node child, Insets value) {\n FlowPane.setMargin(child, value);\n }",
"Insets calculateInsets ()\n {\n\treturn new Insets (topBorder + menuBarHeight, leftBorder, bottomBorder, rightBorder);\n }",
"public Insets getBorderInsets(Component c, Insets insets) {\n insets.set(calcInset(Side.TOP),\n calcInset(Side.LEFT),\n calcInset(Side.BOTTOM),\n calcInset(Side.RIGHT));\n return insets;\n }",
"void setHeaderMargin(double headermargin);",
"private void setContainerMargins(int margin) {\n ((RelativeLayout.LayoutParams) mContainer.getLayoutParams()).setMargins(\n margin,\n margin + (mLegend.getMeasuredHeight() - mBackground.getBorder_width()) / 2,\n margin,\n margin + (mLegend.getMeasuredHeight() - mBackground.getBorder_width()) / 2);\n }",
"public Insets getInsets() {\n\t\t\tint k = ringOpacities.length;\n\t\t\treturn new Insets(k, k, k, k);\n\t\t}",
"public Insets getEdgeInsets()\n\t{\n\t\treturn edgeInsets;\n\t}",
"private void setHeaderTopMargin(int topMargin) {\n mHeaderParams.topMargin = topMargin;\n mHeaderView.setLayoutParams(mHeaderParams);\n invalidate();\n }",
"private void setMarginLayout(View view, int x, int y) {\n MarginLayoutParams margin = new MarginLayoutParams(view.getLayoutParams());\n margin.setMargins(x, y, 0, 0);\n LayoutParams layoutParams = new LayoutParams(margin);\n view.setLayoutParams(layoutParams);\n }",
"protected void resetInsetsDeltas() {\n super.resetInsetsDeltas();\n menuBarHeightDelta = 0;\n }",
"@BindingAdapter({\"layout_marginTop\"})\n public static void setmarginTop(View view, int marginTop) {\n\n ViewGroup.MarginLayoutParams marginParams = (ViewGroup.MarginLayoutParams) view.getLayoutParams();\n\n marginParams.setMargins(marginParams.leftMargin,\n Math.round(marginTop * view.getContext().getResources().getDisplayMetrics().density),\n marginParams.rightMargin,\n marginParams.bottomMargin);\n }",
"public GriddedPanel(Insets insets) {\n super(new GridBagLayout());\n constraints = new GridBagConstraints();\n constraints.anchor = GridBagConstraints.WEST;\n constraints.insets = insets;\n }",
"public Insets getDragInsets()\n\t{\n\t\treturn dragInsets;\n\t}",
"public void setCellpadding(java.lang.String cellpadding)\n {\n synchronized (monitor())\n {\n check_orphaned();\n org.apache.xmlbeans.SimpleValue target = null;\n target = (org.apache.xmlbeans.SimpleValue)get_store().find_attribute_user(CELLPADDING$30);\n if (target == null)\n {\n target = (org.apache.xmlbeans.SimpleValue)get_store().add_attribute_user(CELLPADDING$30);\n }\n target.setStringValue(cellpadding);\n }\n }",
"public void xsetCellpadding(org.apache.xmlbeans.XmlString cellpadding)\n {\n synchronized (monitor())\n {\n check_orphaned();\n org.apache.xmlbeans.XmlString target = null;\n target = (org.apache.xmlbeans.XmlString)get_store().find_attribute_user(CELLPADDING$30);\n if (target == null)\n {\n target = (org.apache.xmlbeans.XmlString)get_store().add_attribute_user(CELLPADDING$30);\n }\n target.set(cellpadding);\n }\n }",
"public void setItemMargin(final int marginPixels) {\n final boolean needsPopulate = marginPixels != mItemMargin;\n mItemMargin = marginPixels;\n if (needsPopulate) {\n populate();\n }\n }",
"void setMargin(float horizontalMargin, float verticalMargin) {\n mTn.mHorizontalMargin = horizontalMargin;\n mTn.mVerticalMargin = verticalMargin;\n }",
"public WmDisplayCutout inset(int insetLeft, int insetTop, int insetRight, int insetBottom) {\n DisplayCutout newInner = mInner.inset(insetLeft, insetTop, insetRight, insetBottom);\n\n if (mInner == newInner) {\n return this;\n }\n\n Size frame = mFrameSize == null ? null : new Size(\n mFrameSize.getWidth() - insetLeft - insetRight,\n mFrameSize.getHeight() - insetTop - insetBottom);\n\n return new WmDisplayCutout(newInner, frame);\n }",
"public Insets getBorderInsets(Component c) {\n return new Insets(m_h, m_w, m_h, m_w);\n }",
"private void initMargins() {\n // Margin Left\n JPanel marginLeft = new JPanel(new BorderLayout());\n marginLeft.setBackground(Resources.getLogoColor());\n marginLeft.setMinimumSize(new Dimension(10, 400));\n marginLeft.setPreferredSize(new Dimension(10, 400));\n getContentPane().add(marginLeft, BorderLayout.WEST);\n // Margin Right\n JPanel marginRight = new JPanel(new BorderLayout());\n marginRight.setBackground(Resources.getLogoColor());\n marginRight.setMinimumSize(new Dimension(10, 400));\n marginRight.setPreferredSize(new Dimension(10, 400));\n getContentPane().add(marginRight, BorderLayout.EAST);\n }",
"public void setCellInsetWidth(double insetWidth) {\n cellInsetWidth = insetWidth;\n mainView.setFrame(new CGRect(insetWidth, mainView.getFrame().getOrigin().getY(), mainView.getFrame().getSize()\n .getWidth()\n - 2 * insetWidth, mainView.getFrame().getSize().getHeight()));\n horizontalTextSpace = getHorizontalTextSpaceForInsetWidth(insetWidth);\n setNeedsDisplay();\n }",
"public void setItemMargin(int margin) {\n mLayoutManager.setItemMargin(margin);\n requestLayout();\n }",
"@Override\n public WindowInsets onApplyWindowInsets(View v, WindowInsets insets) {\n insets = topFrameLayout.onApplyWindowInsets(insets);\n\n FrameLayout.LayoutParams params =\n (FrameLayout.LayoutParams) mapFrameLayout.getLayoutParams();\n\n // Add Wearable insets to FrameLayout container holding map as margins\n params.setMargins(\n insets.getSystemWindowInsetLeft(),\n insets.getSystemWindowInsetTop(),\n insets.getSystemWindowInsetRight(),\n insets.getSystemWindowInsetBottom());\n mapFrameLayout.setLayoutParams(params);\n\n return insets;\n }",
"public void setPadding(float left, float top, float right, float bottom) {\n\t\tfor(Node node : selected_nodes) {\n\t\t\tnode.setPadding(left, top, right, bottom);\n\t\t}\n\t}",
"public boolean shouldInsetWidgets() {\n Rect widgetPadding = inv.defaultWidgetPadding;\n\n // Check all sides to ensure that the widget won't overlap into another cell, or into\n // status bar.\n return workspaceTopPadding > widgetPadding.top\n && cellLayoutBorderSpacePx.x > widgetPadding.left\n && cellLayoutBorderSpacePx.y > widgetPadding.top\n && cellLayoutBorderSpacePx.x > widgetPadding.right\n && cellLayoutBorderSpacePx.y > widgetPadding.bottom;\n }",
"@Test\n public void testColumnControlInitialUpdateInsetsUIResource() {\n ColumnControlButton control = new ColumnControlButton(new JXTable());\n // PENDING JW: why not same? insets can be shared - or not?\n // probably setMargin interferes - is doing some things ... \n assertEquals(\"columnControl must have margin from ui\", \n UIManager.getInsets(ColumnControlButton.COLUMN_CONTROL_BUTTON_MARGIN_KEY),\n control.getMargin());\n }",
"@BeforeClass\n public static void setUpOnce() {\n sPreviousNewInsetsMode = ViewRootImpl.sNewInsetsMode;\n // To let the insets provider control the insets visibility, the insets mode has to be\n // NEW_INSETS_MODE_FULL.\n ViewRootImpl.sNewInsetsMode = NEW_INSETS_MODE_FULL;\n }",
"public InsetsStateController getInsetsStateController() {\n return this.mInsetsStateController;\n }",
"void setFooterMargin(double footermargin);",
"public void setCellspacing(java.lang.String cellspacing)\n {\n synchronized (monitor())\n {\n check_orphaned();\n org.apache.xmlbeans.SimpleValue target = null;\n target = (org.apache.xmlbeans.SimpleValue)get_store().find_attribute_user(CELLSPACING$28);\n if (target == null)\n {\n target = (org.apache.xmlbeans.SimpleValue)get_store().add_attribute_user(CELLSPACING$28);\n }\n target.setStringValue(cellspacing);\n }\n }",
"public void setMarginTop( int marginTop )\n {\n this.marginTop = marginTop;\n }",
"public int calculateBottomKeyboardInset(WindowInsets windowInsets) {\r\n if (((double) windowInsets.getSystemWindowInsetBottom()) < ((double) getRootView().getHeight()) * 0.18d) {\r\n return 0;\r\n }\r\n return windowInsets.getSystemWindowInsetBottom();\r\n }",
"public void setMargin(int margin) {\n mMarginPx = margin;\n }",
"public void setSpacing ( int spacing ) {\n\t\tthis.treeNodeLayout.setSpacing ( spacing );\n\t}",
"protected void setBordersFromCell() {\n borderBefore = cell.borderBefore.copy();\n if (rowSpanIndex > 0) {\n borderBefore.normal = BorderSpecification.getDefaultBorder();\n }\n borderAfter = cell.borderAfter.copy();\n if (!isLastGridUnitRowSpan()) {\n borderAfter.normal = BorderSpecification.getDefaultBorder();\n }\n if (colSpanIndex == 0) {\n borderStart = cell.borderStart;\n } else {\n borderStart = BorderSpecification.getDefaultBorder();\n }\n if (isLastGridUnitColSpan()) {\n borderEnd = cell.borderEnd;\n } else {\n borderEnd = BorderSpecification.getDefaultBorder();\n }\n }",
"public void xsetCellspacing(org.apache.xmlbeans.XmlString cellspacing)\n {\n synchronized (monitor())\n {\n check_orphaned();\n org.apache.xmlbeans.XmlString target = null;\n target = (org.apache.xmlbeans.XmlString)get_store().find_attribute_user(CELLSPACING$28);\n if (target == null)\n {\n target = (org.apache.xmlbeans.XmlString)get_store().add_attribute_user(CELLSPACING$28);\n }\n target.set(cellspacing);\n }\n }",
"public static void adjustCardViewMargins(View cardView) {\n ViewGroup.MarginLayoutParams params = (ViewGroup.MarginLayoutParams) cardView.getLayoutParams();\n params.topMargin -= cardView.getPaddingTop();\n params.leftMargin -= cardView.getPaddingLeft();\n params.rightMargin -= cardView.getPaddingRight();\n cardView.setLayoutParams(params);\n }",
"public ScrollPaneBorder()\n {\n super(new Insets(6, 6, 8, 6)//5,4,6,4\n , __Icon9Factory__.getInstance().getScrollPaneBorderBg());\n }",
"abstract void setHeaderPadding(boolean headerPadding);",
"public void setCmargins(String cmargins) {\n\t\tthrow new UnsupportedOperationException(\"readonly\");\n\t}",
"public void setContent(Control content) {\n if (content == null)\n throw new NullPointerException(\"content is null\");\n checkWidget();\n if (this.content != null && !this.content.isDisposed()) {\n this.content.removeListener(SWT.Resize, contentListener);\n this.content.setBounds(new Rectangle(-200, -200, 0, 0)); // ??? ;)\n }\n //\t\tcontent.setParent(composite);\n this.content = content;\n //\t\t\tif (vBar != null) {\n //\t\t\t\tvBar.setMaximum(0);\n //\t\t\t\tvBar.setThumb(0);\n //\t\t\t\tvBar.setSelection(0);\n //\t\t\t}\n //\t\t\tif (hBar != null) {\n //\t\t\t\thBar.setMaximum(0);\n //\t\t\t\thBar.setThumb(0);\n //\t\t\t\thBar.setSelection(0);\n //\t\t\t}\n content.setLocation(0, 0);\n layout(false);\n this.content.addListener(SWT.Resize, contentListener);\n \n }",
"public @NonNull Builder setMinMargins(@NonNull Margins margins) {\n if (margins == null) {\n throw new IllegalArgumentException(\"margins cannot be null\");\n }\n mPrototype.mMinMargins = margins;\n return this;\n }",
"@Generated\n @Selector(\"setContentOffset:\")\n void setContentOffset(@ByValue CGPoint value);",
"public void setMargin(float margin) throws IOException\n\t{\n\t\tif ((__io__pointersize == 8)) {\n\t\t\t__io__block.writeFloat(__io__address + 28, margin);\n\t\t} else {\n\t\t\t__io__block.writeFloat(__io__address + 28, margin);\n\t\t}\n\t}",
"private int adjustInsetForScale(int inset, float dipScale) {\n return (int) Math.ceil(inset / dipScale);\n }",
"public void setHorizontalMargin(int margin) {\n mLayoutManager.setHorizontalMargin(margin);\n requestLayout();\n }",
"@Override\n public Configurable hasMargins(boolean hasMargins) {\n if (!hasMargins) {\n setListMargins(0, 0, 0, 0);\n }\n return this;\n }",
"private void setContentItems(java.util.Vector contentItems)\r\n\t{\r\n\t\tthis.contentItems = contentItems;\r\n\t}",
"public static Insets getMargin(Node child) {\n return FlowPane.getMargin(child);\n }",
"public void setTableNumber(int margin) {\r\n\t\ttableNumber += margin;\r\n\t}",
"public void setView(View view, int viewSpacingLeft, int viewSpacingTop, int viewSpacingRight,\n int viewSpacingBottom) {\n mView = view;\n mViewSpacingSpecified = true;\n mViewSpacingLeft = viewSpacingLeft;\n mViewSpacingTop = viewSpacingTop;\n mViewSpacingRight = viewSpacingRight;\n mViewSpacingBottom = viewSpacingBottom;\n }",
"public void setVerticalMargin(int margin) {\n mLayoutManager.setVerticalMargin(margin);\n requestLayout();\n }",
"public ScreenPt getWcsMargins() { return new ScreenPt(wcsMarginX,wcsMarginY); }",
"public void getViewSelectedOffsets(View view, int[] offsets) {\n mLayoutManager.getViewSelectedOffsets(view, offsets);\n }",
"double getHeaderMargin();",
"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 }",
"public Builder settlementDateOffset(DaysAdjustment settlementDateOffset) {\n JodaBeanUtils.notNull(settlementDateOffset, \"settlementDateOffset\");\n this.settlementDateOffset = settlementDateOffset;\n return this;\n }",
"public final void cpq() {\n AppMethodBeat.m2504i(37040);\n LayoutParams layoutParams = this.contentView.getLayoutParams();\n if (layoutParams instanceof MarginLayoutParams) {\n ((MarginLayoutParams) layoutParams).setMargins((int) this.qZo.qWS, (int) this.qZo.qWQ, (int) this.qZo.qWT, (int) this.qZo.qWR);\n }\n this.contentView.setLayoutParams(layoutParams);\n AppMethodBeat.m2505o(37040);\n }",
"public void setSpacingInInches(@NonNull Integer spacingInInches) {\n this.spacingInInches = spacingInInches;\n }",
"private int minTopMargin() {\n return -(mHeaderHeight + mFooterHeight);\n }",
"public static Insets getScreenInsets(){\n \tPoint p = new Point();\n\t\tGraphicsConfiguration graphicsConfiguration = null;\n\t\tfor (GraphicsDevice gd : GraphicsEnvironment\n\t\t\t\t.getLocalGraphicsEnvironment().getScreenDevices()) {\n\t\t\tif (gd.getDefaultConfiguration().getBounds().contains(p)) {\n\t\t\t\tgraphicsConfiguration = gd.getDefaultConfiguration();\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\t\tInsets screenInsets = Toolkit.getDefaultToolkit().getScreenInsets(\n\t\t\t\tgraphicsConfiguration);\n\t\treturn screenInsets;\n }",
"public @NonNull Margins getMinMargins() {\n return mMinMargins;\n }",
"public void setRowSpacing(float s) {\n mController.setRowSpacing(s);\n }",
"public Token setOffsets(Map<OffsetType,Offset> offsets) {\n this.offsets = offsets;\n return this;\n }",
"public void setMarginFraction(double marginFraction) {\n if(marginFraction >= 0.5d) {\n throw new IllegalArgumentException(\"The margin fraction must be less than 0.5\");\n }\n this.marginFraction = marginFraction;\n }",
"private void setScrollOffsetX(int value) {\n bitField0_ |= 0x00000010;\n scrollOffsetX_ = value;\n }",
"protected void setCornerControls(ObservableList<Node> content) {\n this.cornerControlsProperty().setValue(content);\n }",
"public void setOffset(double xOffset, double yOffset) {\n this.xOffset = xOffset;\n this.yOffset = yOffset;\n }",
"public void setCaretPosition(LikeBoxCountViewCaretPosition caretPosition) {\n this.caretPosition = caretPosition;\n\n // Since the presence of a caret will move that edge closer to the text, let's add\n // some padding (equal to caretHeight) in that same direction\n switch (caretPosition) {\n case LEFT:\n setAdditionalTextPadding(additionalTextPadding, 0, 0, 0);\n break;\n case TOP:\n setAdditionalTextPadding(0, additionalTextPadding, 0, 0);\n break;\n case RIGHT:\n setAdditionalTextPadding(0, 0, additionalTextPadding, 0);\n break;\n case BOTTOM:\n setAdditionalTextPadding(0, 0, 0, additionalTextPadding);\n break;\n }\n\n }",
"private void setScrollBars() {\n int totHeight = jEditorPane1.getSize().height;\n int value = jEditorPane2.getSize().height;\n if (value > totHeight) totHeight = value;\n int totWidth = jEditorPane1.getSize().width;\n value = jEditorPane2.getSize().width;\n if (value > totWidth) totWidth = value;\n int viewHeight = jViewport1.getExtentSize().height;\n int viewWidth = jViewport1.getExtentSize().width;\n //D.deb(\"totHeight = \"+totHeight+\", totWidth = \"+totWidth); // NOI18N\n //D.deb(\"viewHeight = \"+viewHeight+\", viewWidth = \"+viewWidth); // NOI18N\n jScrollBar1.setValues(0, viewWidth, 0, totWidth);\n jScrollBar1.setBlockIncrement(viewWidth);\n jScrollBar2.setValues(0, viewWidth, 0, totWidth);\n jScrollBar2.setBlockIncrement(viewWidth);\n jScrollBar3.setValues(0, viewHeight, 0, totHeight);\n jScrollBar3.setBlockIncrement(viewHeight);\n boolean visibleScroll = jScrollBar1.isVisible();\n //D.deb(\"jScrollBar1.isVisible() = \"+visibleScroll); // NOI18N\n if (visibleScroll != viewWidth < totWidth && editorPanel.isShowing()) {\n //D.deb(\"jScrollBar1 setting visibility = \"+!visibleScroll); // NOI18N\n jScrollBar1.setVisible(!visibleScroll);\n jScrollBar2.setVisible(!visibleScroll);\n validate();\n //editorPanel.repaint();\n //jScrollBar1.repaint();\n //jScrollBar2.repaint();\n }\n visibleScroll = jScrollBar3.isVisible();\n //D.deb(\"jScrollBar3.isVisible() = \"+visibleScroll); // NOI18N\n if (visibleScroll != viewHeight < totHeight && editorPanel.isShowing()) {\n //D.deb(\"jScrollBar3 setting visibility = \"+!visibleScroll); // NOI18N\n jScrollBar3.setVisible(!visibleScroll);\n validate();\n //editorPanel.repaint();\n //jScrollBar3.repaint();\n }\n }",
"public java.awt.Insets getBorderInsets(java.awt.Component c) {\n // TODO codavaj!!\n return null;\n }",
"public void setDividerMargin(float dividerMargin) {\n if(dividerMargin < 0){\n throw new IllegalArgumentException(\"margin can not be under zero\");\n }\n this.mDividerMargin = dividerMargin;\n invalidate();\n }",
"public static void setBackgroundAndKeepPadding(View view, Drawable backgroundDrawable) {\n int top = view.getPaddingTop();\n int left = view.getPaddingLeft();\n int right = view.getPaddingRight();\n int bottom = view.getPaddingBottom();\n\n setBackgroundCompat(view, backgroundDrawable);\n view.setPadding(left, top, right, bottom);\n }",
"private static void addMarginTopToContentChild(View mContentChild, int statusBarHeight) {\n if (mContentChild == null) {\n return;\n }\n if (!TAG_MARGIN_ADDED.equals(mContentChild.getTag())) {\n FrameLayout.LayoutParams lp = (FrameLayout.LayoutParams) mContentChild.getLayoutParams();\n lp.topMargin += statusBarHeight;\n mContentChild.setLayoutParams(lp);\n mContentChild.setTag(TAG_MARGIN_ADDED);\n }\n }",
"public static void setCaretPos(DataObject dataObject, int offset) {\n if (dataObject == null) {\n return;\n }\n\n OpenCookie openCookie = dataObject.getCookie(OpenCookie.class);\n openCookie.open();\n if (offset != -1) {\n EditorCookie ec = dataObject.getCookie(EditorCookie.class);\n JEditorPane[] panes = ec.getOpenedPanes();\n if (panes.length > 0) {\n JEditorPane pane = panes[0];\n pane.setCaretPosition(offset);\n return;\n }\n }\n }",
"public void setItemAlignmentOffsetWithPadding(boolean withPadding) {\n mLayoutManager.setItemAlignmentOffsetWithPadding(withPadding);\n requestLayout();\n }",
"private void setupPadding()\n\t{\n\t\tContext context = getContext();\n\t\tResources res = context.getResources();\n\t\tint main = (int) res.getDimension(R.dimen.sp_main);\n\t\tthis.mPadding[0] = main;\n\t\tthis.mPadding[1] = main;\n\t\tthis.mPadding[2] = 0;\n\t\tthis.mPadding[3] = main;\n\t}",
"public void setMargins(View v, double l, double t, double r, double b) {\n if (v.getLayoutParams() instanceof ViewGroup.MarginLayoutParams) {\n ViewGroup.MarginLayoutParams p = (ViewGroup.MarginLayoutParams) v\n .getLayoutParams();\n final float scale = this.getResources().getDisplayMetrics().density;\n int lpx = (int) ((appsingleton.devicewidth) * l);\n int tpx = (int) ((appsingleton.deviceheight) * t);\n int rpx = (int) ((appsingleton.devicewidth) * r);\n int bpx = (int) ((appsingleton.deviceheight) * b);\n p.setMargins(lpx, tpx, rpx, bpx);\n v.requestLayout();\n }\n }",
"public void setInnerBorder(int left, int right, int top, int bottom) {\n GtkEntryOverride.setInnerBorder(this, left, right, top, bottom);\n }",
"private void setTableHeight() {\n coachesTable.prefHeightProperty().bind(coachesTable.fixedCellSizeProperty().\n multiply(Bindings.size(coachesTable.getItems())).add(20).add(15)); //margin + header height\n }",
"public 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 }",
"public NinePatchBorder(Insets insets, NinePatch np)\r\n\t{\r\n\t\tthis.insets = insets;\r\n\t\tthis.np = np;\r\n\t}",
"public void putBorder( final short borderTop, final XSSFColor topBorderColor,\n final short borderBottom, final XSSFColor bottomBorderColor,\n final short borderLeft, final XSSFColor leftBorderColor,\n final short borderRight, final XSSFColor rightBorderColor,\n int[] rowIndices, int[] colIndices )\n {\n modifyCellStyle(rowIndices, colIndices, new CellStyleModifier() {\n public void modify( CellStyle style ) {\n if ( style instanceof XSSFCellStyle ) {\n XSSFCellStyle xssfStyle = (XSSFCellStyle)style;\n if ( borderTop != CellStyle.BORDER_NONE ) {\n xssfStyle.setBorderTop( borderTop );\n xssfStyle.setTopBorderColor( topBorderColor );\n }\n if ( borderBottom != CellStyle.BORDER_NONE ) {\n xssfStyle.setBorderBottom( borderBottom );\n xssfStyle.setBottomBorderColor( bottomBorderColor );\n }\n if ( borderLeft != CellStyle.BORDER_NONE ) {\n xssfStyle.setBorderLeft( borderLeft );\n xssfStyle.setLeftBorderColor( leftBorderColor );\n }\n if ( borderRight != CellStyle.BORDER_NONE ) {\n xssfStyle.setBorderRight( borderRight );\n xssfStyle.setRightBorderColor( rightBorderColor );\n }\n } \n else throw new RuntimeException( \n \t\t\"Current cell style doesn't support XSSF colors\");\n }\n } );\n }",
"public void setOffset(int xOffset, int yOffset) {\n\t\tthis.xOffset = xOffset;\n\t\tthis.yOffset = yOffset;\n\t}",
"public void setMarginLeft( int marginLeft )\n {\n this.marginLeft = marginLeft;\n }",
"@Test\n public void testSetOffsetDateTime() throws SQLException {\n List<String> zoneIdsToTest = getZoneIdsToTest();\n List<TimeZone> storeZones = new ArrayList<TimeZone>();\n for (String zoneId : zoneIdsToTest) {\n storeZones.add(TimeZone.getTimeZone(zoneId));\n }\n List<String> datesToTest = getDatesToTest();\n\n for (TimeZone timeZone : storeZones) {\n ZoneId zoneId = timeZone.toZoneId();\n for (String date : datesToTest) {\n LocalDateTime localDateTime = LocalDateTime.parse(date);\n String expected = date.replace('T', ' ');\n offsetTimestamps(zoneId, localDateTime, expected, storeZones);\n }\n }\n }",
"public WmDisplayCutout computeSafeInsets(int width, int height) {\n return computeSafeInsets(mInner, width, height);\n }"
] |
[
"0.7241777",
"0.69630873",
"0.65624255",
"0.57023257",
"0.5641003",
"0.52710485",
"0.51617926",
"0.50991553",
"0.50948983",
"0.5080075",
"0.5071037",
"0.5055277",
"0.5032835",
"0.50236934",
"0.48530716",
"0.4795786",
"0.47743955",
"0.4744278",
"0.47238728",
"0.46911916",
"0.46781665",
"0.45727876",
"0.45001566",
"0.4495122",
"0.4427129",
"0.4406907",
"0.4373889",
"0.43711486",
"0.43426502",
"0.43260998",
"0.4313798",
"0.42768595",
"0.4201348",
"0.4192078",
"0.41812086",
"0.41244343",
"0.4107906",
"0.4082948",
"0.40658095",
"0.40579286",
"0.4010375",
"0.40072924",
"0.3991348",
"0.39716575",
"0.39683095",
"0.39390072",
"0.3905537",
"0.38912436",
"0.38371482",
"0.3807187",
"0.3776268",
"0.37677935",
"0.37631673",
"0.37264866",
"0.37138498",
"0.3706469",
"0.37025034",
"0.36712858",
"0.3649809",
"0.3635043",
"0.36021128",
"0.35821953",
"0.35783237",
"0.3567983",
"0.3564718",
"0.35631844",
"0.35344112",
"0.35180497",
"0.34985828",
"0.34950966",
"0.34825188",
"0.34775916",
"0.34603044",
"0.34571832",
"0.34565806",
"0.3453011",
"0.34391963",
"0.34384358",
"0.3437334",
"0.3434926",
"0.3430628",
"0.34267738",
"0.3420206",
"0.34195903",
"0.34087554",
"0.34076443",
"0.34020856",
"0.33971038",
"0.33924925",
"0.3392032",
"0.33859056",
"0.33706343",
"0.33603612",
"0.33509153",
"0.33434922",
"0.3336323",
"0.33354375",
"0.33322716",
"0.33289248",
"0.3324428"
] |
0.7366183
|
0
|
Sets this tableview's content insets. A table view is essentially a scroll view that contains a set of static row views that represents the content. Thus, the setContentInsets method facilitates a margin, or inset, distance between the content and the container scroll view. Typically used with the headerPullView property.
|
public native void setContentInsets(TableViewEdgeInsets value, boolean animate) /*-{
var jso = this.@com.emitrom.ti4j.core.client.ProxyObject::getJsObj()();
jso.setContentInsets(
value.@com.emitrom.ti4j.core.client.ProxyObject::getJsObj()(),
{
animated : animate
});
}-*/;
|
{
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
}
|
[
"public native void setContentInsets(TableViewEdgeInsets value) /*-{\n\t\tvar jso = this.@com.emitrom.ti4j.core.client.ProxyObject::getJsObj()();\n\t\tjso\n\t\t\t\t.setContentInsets(value.@com.emitrom.ti4j.core.client.ProxyObject::getJsObj()());\n }-*/;",
"public native void setContentInsets(TableViewEdgeInsets value, Animation animation) /*-{\n\t\tvar jso = this.@com.emitrom.ti4j.core.client.ProxyObject::getJsObj()();\n\t\tjso\n\t\t\t\t.setContentInsets(\n\t\t\t\t\t\tvalue.@com.emitrom.ti4j.core.client.ProxyObject::getJsObj()(),\n\t\t\t\t\t\tanimation.@com.emitrom.ti4j.core.client.ProxyObject::getJsObj()());\n }-*/;",
"protected void setInsets(Insets insets) {\n\t\tthis.insets = insets;\n\t}",
"public Insets getInsets() {\n \n // adjust predicted view size to account for scrollbars\n \n // This accounts for the 2 pixels from the edge of the viewport\n // to the edge of the scrollview on qt-emb-2.3.2.\n\tInsets insets = new Insets(2, 2, 2, 2);\n\n // 6347067.\n // TCK: ScrollPane test failed when waiting time is added after the validate().\n // Fixed 6228838: Resizing the panel cause wrong scroll bar range\n // on zaurus, which, in turn, fixed the viewport size problem in\n // CDC 1.1 linux-x86. But zaurus still has a problem which is shown when\n // running the PP-TCK interactive ComponetTests where two tests will have\n // both scroll bars on and in these two tests, you can see that the\n // bottom of the \"Yes\" \"No\" buttons are chopped off.\n //\n // The getInsets() call is modified to calculate whether scrollbars are on\n // in order to return the correct insets. In particular,\n //\n // Given that the hScrollbarHeight and vScrollbarWidth are known, which\n // is true in the Qt port case:\n //\n // hScrollbarOn is a function of scrollpane dim, child dim, as well as\n // vScrollbarOn in the boundary case where the horizontal scrollbar could\n // be needed if the vertical scrollbar needs to be present and the extra\n // width due to the vertical scrollbar just makes the horizontal\n // scrollbar necessary!\n\n ScrollPane sp = (ScrollPane)target;\n Dimension d = sp.size();\n Component c = getScrollChild();\n Dimension cd;\n if (c != null) {\n cd = c.size();\n } else {\n cd = new Dimension(0, 0);\n }\n\n if (scrollbarDisplayPolicy == ScrollPane.SCROLLBARS_ALWAYS) {\n insets.right += vScrollbarWidth;\n insets.bottom += hScrollbarHeight;\n } else if (scrollbarDisplayPolicy == ScrollPane.SCROLLBARS_AS_NEEDED) {\n if (d.width - insets.left*2 < cd.width) {\n // Hbar is necessary.\n insets.bottom += hScrollbarHeight;\n if (d.height - insets.top - insets.bottom < cd.height) {\n insets.right += vScrollbarWidth;\n }\n } else if (d.width - insets.left*2 - cd.width >= vScrollbarWidth) {\n // We're very sure that hbar will not be on.\n if (d.height - insets.top*2 < cd.height) {\n insets.right += vScrollbarWidth;\n }\n } else {\n // Borderline case so we need to check vbar first.\n if (d.height - insets.top*2 < cd.height) {\n insets.right += vScrollbarWidth;\n if (d.width - insets.left - insets.right < cd.width) {\n // Hbar is needed after all!\n insets.bottom += hScrollbarHeight;\n }\n }\n }\n } \n // 6347067.\n\n\treturn insets;\n }",
"public void setBorderInsets(int top, int left, int bottom, int right) {\r\n this.borderInsets = new Insets(top, left, bottom, right);\r\n }",
"public Insets getInsets();",
"public void setEdgeInsets(Insets edgeInsets)\n\t{\n\t\tthis.edgeInsets = edgeInsets;\n\t}",
"@Override\r\n public Insets getInsets() {\r\n // forward\r\n return isExpanded() || collapsedInsets==null ? super.getInsets() : collapsedInsets;\r\n }",
"public ViewInsets getInsets() {\n return null;\n }",
"@Override\r\n public WindowInsets onApplyWindowInsets(View v, WindowInsets insets) {\n final boolean round = insets.isRound();\r\n int rowMargin = res.getDimensionPixelOffset(R.dimen.page_row_margin);\r\n int colMargin = res.getDimensionPixelOffset(round ?\r\n R.dimen.page_column_margin_round : R.dimen.page_column_margin);\r\n pager.setPageMargins(rowMargin, colMargin);\r\n\r\n // GridViewPager relies on insets to properly handle\r\n // layout for round displays. They must be explicitly\r\n // applied since this listener has taken them over.\r\n pager.onApplyWindowInsets(insets);\r\n return insets;\r\n }",
"public void setDragInsets(Insets dragInsets)\n\t{\n\t\tthis.dragInsets = dragInsets;\n\t}",
"@Override\n public WindowInsets onApplyWindowInsets(View v, WindowInsets insets) {\n final boolean round = insets.isRound();\n int rowMargin = res.getDimensionPixelOffset(R.dimen.page_row_margin);\n int colMargin = res.getDimensionPixelOffset(round ?\n R.dimen.page_column_margin_round : R.dimen.page_column_margin);\n pager.setPageMargins(rowMargin, colMargin);\n\n // GridViewPager relies on insets to properly handle\n // layout for round displays. They must be explicitly\n // applied since this listener has taken them over.\n pager.onApplyWindowInsets(insets);\n return insets;\n }",
"public Insets getAutoscrollInsets() {\n\t\tRectangle raOuter = getBounds();\n\t\tRectangle raInner = getParent().getBounds();\n\t\treturn new Insets(raInner.y - raOuter.y + AUTOSCROLL_MARGIN, raInner.x\n\t\t\t\t- raOuter.x + AUTOSCROLL_MARGIN, raOuter.height\n\t\t\t\t- raInner.height - raInner.y + raOuter.y + AUTOSCROLL_MARGIN,\n\t\t\t\traOuter.width - raInner.width - raInner.x + raOuter.x\n\t\t\t\t\t\t+ AUTOSCROLL_MARGIN);\n\t}",
"public static void setMargin(Node child, Insets value) {\n FlowPane.setMargin(child, value);\n }",
"Insets calculateInsets ()\n {\n\treturn new Insets (topBorder + menuBarHeight, leftBorder, bottomBorder, rightBorder);\n }",
"public Insets getBorderInsets(Component c, Insets insets) {\n insets.set(calcInset(Side.TOP),\n calcInset(Side.LEFT),\n calcInset(Side.BOTTOM),\n calcInset(Side.RIGHT));\n return insets;\n }",
"void setHeaderMargin(double headermargin);",
"private void setContainerMargins(int margin) {\n ((RelativeLayout.LayoutParams) mContainer.getLayoutParams()).setMargins(\n margin,\n margin + (mLegend.getMeasuredHeight() - mBackground.getBorder_width()) / 2,\n margin,\n margin + (mLegend.getMeasuredHeight() - mBackground.getBorder_width()) / 2);\n }",
"public Insets getInsets() {\n\t\t\tint k = ringOpacities.length;\n\t\t\treturn new Insets(k, k, k, k);\n\t\t}",
"public Insets getEdgeInsets()\n\t{\n\t\treturn edgeInsets;\n\t}",
"private void setHeaderTopMargin(int topMargin) {\n mHeaderParams.topMargin = topMargin;\n mHeaderView.setLayoutParams(mHeaderParams);\n invalidate();\n }",
"private void setMarginLayout(View view, int x, int y) {\n MarginLayoutParams margin = new MarginLayoutParams(view.getLayoutParams());\n margin.setMargins(x, y, 0, 0);\n LayoutParams layoutParams = new LayoutParams(margin);\n view.setLayoutParams(layoutParams);\n }",
"protected void resetInsetsDeltas() {\n super.resetInsetsDeltas();\n menuBarHeightDelta = 0;\n }",
"@BindingAdapter({\"layout_marginTop\"})\n public static void setmarginTop(View view, int marginTop) {\n\n ViewGroup.MarginLayoutParams marginParams = (ViewGroup.MarginLayoutParams) view.getLayoutParams();\n\n marginParams.setMargins(marginParams.leftMargin,\n Math.round(marginTop * view.getContext().getResources().getDisplayMetrics().density),\n marginParams.rightMargin,\n marginParams.bottomMargin);\n }",
"public GriddedPanel(Insets insets) {\n super(new GridBagLayout());\n constraints = new GridBagConstraints();\n constraints.anchor = GridBagConstraints.WEST;\n constraints.insets = insets;\n }",
"public Insets getDragInsets()\n\t{\n\t\treturn dragInsets;\n\t}",
"public void setCellpadding(java.lang.String cellpadding)\n {\n synchronized (monitor())\n {\n check_orphaned();\n org.apache.xmlbeans.SimpleValue target = null;\n target = (org.apache.xmlbeans.SimpleValue)get_store().find_attribute_user(CELLPADDING$30);\n if (target == null)\n {\n target = (org.apache.xmlbeans.SimpleValue)get_store().add_attribute_user(CELLPADDING$30);\n }\n target.setStringValue(cellpadding);\n }\n }",
"public void xsetCellpadding(org.apache.xmlbeans.XmlString cellpadding)\n {\n synchronized (monitor())\n {\n check_orphaned();\n org.apache.xmlbeans.XmlString target = null;\n target = (org.apache.xmlbeans.XmlString)get_store().find_attribute_user(CELLPADDING$30);\n if (target == null)\n {\n target = (org.apache.xmlbeans.XmlString)get_store().add_attribute_user(CELLPADDING$30);\n }\n target.set(cellpadding);\n }\n }",
"public void setItemMargin(final int marginPixels) {\n final boolean needsPopulate = marginPixels != mItemMargin;\n mItemMargin = marginPixels;\n if (needsPopulate) {\n populate();\n }\n }",
"void setMargin(float horizontalMargin, float verticalMargin) {\n mTn.mHorizontalMargin = horizontalMargin;\n mTn.mVerticalMargin = verticalMargin;\n }",
"public WmDisplayCutout inset(int insetLeft, int insetTop, int insetRight, int insetBottom) {\n DisplayCutout newInner = mInner.inset(insetLeft, insetTop, insetRight, insetBottom);\n\n if (mInner == newInner) {\n return this;\n }\n\n Size frame = mFrameSize == null ? null : new Size(\n mFrameSize.getWidth() - insetLeft - insetRight,\n mFrameSize.getHeight() - insetTop - insetBottom);\n\n return new WmDisplayCutout(newInner, frame);\n }",
"public Insets getBorderInsets(Component c) {\n return new Insets(m_h, m_w, m_h, m_w);\n }",
"private void initMargins() {\n // Margin Left\n JPanel marginLeft = new JPanel(new BorderLayout());\n marginLeft.setBackground(Resources.getLogoColor());\n marginLeft.setMinimumSize(new Dimension(10, 400));\n marginLeft.setPreferredSize(new Dimension(10, 400));\n getContentPane().add(marginLeft, BorderLayout.WEST);\n // Margin Right\n JPanel marginRight = new JPanel(new BorderLayout());\n marginRight.setBackground(Resources.getLogoColor());\n marginRight.setMinimumSize(new Dimension(10, 400));\n marginRight.setPreferredSize(new Dimension(10, 400));\n getContentPane().add(marginRight, BorderLayout.EAST);\n }",
"public void setCellInsetWidth(double insetWidth) {\n cellInsetWidth = insetWidth;\n mainView.setFrame(new CGRect(insetWidth, mainView.getFrame().getOrigin().getY(), mainView.getFrame().getSize()\n .getWidth()\n - 2 * insetWidth, mainView.getFrame().getSize().getHeight()));\n horizontalTextSpace = getHorizontalTextSpaceForInsetWidth(insetWidth);\n setNeedsDisplay();\n }",
"public void setItemMargin(int margin) {\n mLayoutManager.setItemMargin(margin);\n requestLayout();\n }",
"@Override\n public WindowInsets onApplyWindowInsets(View v, WindowInsets insets) {\n insets = topFrameLayout.onApplyWindowInsets(insets);\n\n FrameLayout.LayoutParams params =\n (FrameLayout.LayoutParams) mapFrameLayout.getLayoutParams();\n\n // Add Wearable insets to FrameLayout container holding map as margins\n params.setMargins(\n insets.getSystemWindowInsetLeft(),\n insets.getSystemWindowInsetTop(),\n insets.getSystemWindowInsetRight(),\n insets.getSystemWindowInsetBottom());\n mapFrameLayout.setLayoutParams(params);\n\n return insets;\n }",
"public void setPadding(float left, float top, float right, float bottom) {\n\t\tfor(Node node : selected_nodes) {\n\t\t\tnode.setPadding(left, top, right, bottom);\n\t\t}\n\t}",
"public boolean shouldInsetWidgets() {\n Rect widgetPadding = inv.defaultWidgetPadding;\n\n // Check all sides to ensure that the widget won't overlap into another cell, or into\n // status bar.\n return workspaceTopPadding > widgetPadding.top\n && cellLayoutBorderSpacePx.x > widgetPadding.left\n && cellLayoutBorderSpacePx.y > widgetPadding.top\n && cellLayoutBorderSpacePx.x > widgetPadding.right\n && cellLayoutBorderSpacePx.y > widgetPadding.bottom;\n }",
"@Test\n public void testColumnControlInitialUpdateInsetsUIResource() {\n ColumnControlButton control = new ColumnControlButton(new JXTable());\n // PENDING JW: why not same? insets can be shared - or not?\n // probably setMargin interferes - is doing some things ... \n assertEquals(\"columnControl must have margin from ui\", \n UIManager.getInsets(ColumnControlButton.COLUMN_CONTROL_BUTTON_MARGIN_KEY),\n control.getMargin());\n }",
"@BeforeClass\n public static void setUpOnce() {\n sPreviousNewInsetsMode = ViewRootImpl.sNewInsetsMode;\n // To let the insets provider control the insets visibility, the insets mode has to be\n // NEW_INSETS_MODE_FULL.\n ViewRootImpl.sNewInsetsMode = NEW_INSETS_MODE_FULL;\n }",
"public InsetsStateController getInsetsStateController() {\n return this.mInsetsStateController;\n }",
"void setFooterMargin(double footermargin);",
"public void setCellspacing(java.lang.String cellspacing)\n {\n synchronized (monitor())\n {\n check_orphaned();\n org.apache.xmlbeans.SimpleValue target = null;\n target = (org.apache.xmlbeans.SimpleValue)get_store().find_attribute_user(CELLSPACING$28);\n if (target == null)\n {\n target = (org.apache.xmlbeans.SimpleValue)get_store().add_attribute_user(CELLSPACING$28);\n }\n target.setStringValue(cellspacing);\n }\n }",
"public int calculateBottomKeyboardInset(WindowInsets windowInsets) {\r\n if (((double) windowInsets.getSystemWindowInsetBottom()) < ((double) getRootView().getHeight()) * 0.18d) {\r\n return 0;\r\n }\r\n return windowInsets.getSystemWindowInsetBottom();\r\n }",
"public void setMarginTop( int marginTop )\n {\n this.marginTop = marginTop;\n }",
"public void setMargin(int margin) {\n mMarginPx = margin;\n }",
"public void setSpacing ( int spacing ) {\n\t\tthis.treeNodeLayout.setSpacing ( spacing );\n\t}",
"protected void setBordersFromCell() {\n borderBefore = cell.borderBefore.copy();\n if (rowSpanIndex > 0) {\n borderBefore.normal = BorderSpecification.getDefaultBorder();\n }\n borderAfter = cell.borderAfter.copy();\n if (!isLastGridUnitRowSpan()) {\n borderAfter.normal = BorderSpecification.getDefaultBorder();\n }\n if (colSpanIndex == 0) {\n borderStart = cell.borderStart;\n } else {\n borderStart = BorderSpecification.getDefaultBorder();\n }\n if (isLastGridUnitColSpan()) {\n borderEnd = cell.borderEnd;\n } else {\n borderEnd = BorderSpecification.getDefaultBorder();\n }\n }",
"public void xsetCellspacing(org.apache.xmlbeans.XmlString cellspacing)\n {\n synchronized (monitor())\n {\n check_orphaned();\n org.apache.xmlbeans.XmlString target = null;\n target = (org.apache.xmlbeans.XmlString)get_store().find_attribute_user(CELLSPACING$28);\n if (target == null)\n {\n target = (org.apache.xmlbeans.XmlString)get_store().add_attribute_user(CELLSPACING$28);\n }\n target.set(cellspacing);\n }\n }",
"public static void adjustCardViewMargins(View cardView) {\n ViewGroup.MarginLayoutParams params = (ViewGroup.MarginLayoutParams) cardView.getLayoutParams();\n params.topMargin -= cardView.getPaddingTop();\n params.leftMargin -= cardView.getPaddingLeft();\n params.rightMargin -= cardView.getPaddingRight();\n cardView.setLayoutParams(params);\n }",
"public ScrollPaneBorder()\n {\n super(new Insets(6, 6, 8, 6)//5,4,6,4\n , __Icon9Factory__.getInstance().getScrollPaneBorderBg());\n }",
"abstract void setHeaderPadding(boolean headerPadding);",
"public void setCmargins(String cmargins) {\n\t\tthrow new UnsupportedOperationException(\"readonly\");\n\t}",
"public void setContent(Control content) {\n if (content == null)\n throw new NullPointerException(\"content is null\");\n checkWidget();\n if (this.content != null && !this.content.isDisposed()) {\n this.content.removeListener(SWT.Resize, contentListener);\n this.content.setBounds(new Rectangle(-200, -200, 0, 0)); // ??? ;)\n }\n //\t\tcontent.setParent(composite);\n this.content = content;\n //\t\t\tif (vBar != null) {\n //\t\t\t\tvBar.setMaximum(0);\n //\t\t\t\tvBar.setThumb(0);\n //\t\t\t\tvBar.setSelection(0);\n //\t\t\t}\n //\t\t\tif (hBar != null) {\n //\t\t\t\thBar.setMaximum(0);\n //\t\t\t\thBar.setThumb(0);\n //\t\t\t\thBar.setSelection(0);\n //\t\t\t}\n content.setLocation(0, 0);\n layout(false);\n this.content.addListener(SWT.Resize, contentListener);\n \n }",
"public @NonNull Builder setMinMargins(@NonNull Margins margins) {\n if (margins == null) {\n throw new IllegalArgumentException(\"margins cannot be null\");\n }\n mPrototype.mMinMargins = margins;\n return this;\n }",
"@Generated\n @Selector(\"setContentOffset:\")\n void setContentOffset(@ByValue CGPoint value);",
"public void setMargin(float margin) throws IOException\n\t{\n\t\tif ((__io__pointersize == 8)) {\n\t\t\t__io__block.writeFloat(__io__address + 28, margin);\n\t\t} else {\n\t\t\t__io__block.writeFloat(__io__address + 28, margin);\n\t\t}\n\t}",
"private int adjustInsetForScale(int inset, float dipScale) {\n return (int) Math.ceil(inset / dipScale);\n }",
"public void setHorizontalMargin(int margin) {\n mLayoutManager.setHorizontalMargin(margin);\n requestLayout();\n }",
"@Override\n public Configurable hasMargins(boolean hasMargins) {\n if (!hasMargins) {\n setListMargins(0, 0, 0, 0);\n }\n return this;\n }",
"private void setContentItems(java.util.Vector contentItems)\r\n\t{\r\n\t\tthis.contentItems = contentItems;\r\n\t}",
"public static Insets getMargin(Node child) {\n return FlowPane.getMargin(child);\n }",
"public void setTableNumber(int margin) {\r\n\t\ttableNumber += margin;\r\n\t}",
"public void setView(View view, int viewSpacingLeft, int viewSpacingTop, int viewSpacingRight,\n int viewSpacingBottom) {\n mView = view;\n mViewSpacingSpecified = true;\n mViewSpacingLeft = viewSpacingLeft;\n mViewSpacingTop = viewSpacingTop;\n mViewSpacingRight = viewSpacingRight;\n mViewSpacingBottom = viewSpacingBottom;\n }",
"public void setVerticalMargin(int margin) {\n mLayoutManager.setVerticalMargin(margin);\n requestLayout();\n }",
"public ScreenPt getWcsMargins() { return new ScreenPt(wcsMarginX,wcsMarginY); }",
"public void getViewSelectedOffsets(View view, int[] offsets) {\n mLayoutManager.getViewSelectedOffsets(view, offsets);\n }",
"double getHeaderMargin();",
"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 }",
"public Builder settlementDateOffset(DaysAdjustment settlementDateOffset) {\n JodaBeanUtils.notNull(settlementDateOffset, \"settlementDateOffset\");\n this.settlementDateOffset = settlementDateOffset;\n return this;\n }",
"public final void cpq() {\n AppMethodBeat.m2504i(37040);\n LayoutParams layoutParams = this.contentView.getLayoutParams();\n if (layoutParams instanceof MarginLayoutParams) {\n ((MarginLayoutParams) layoutParams).setMargins((int) this.qZo.qWS, (int) this.qZo.qWQ, (int) this.qZo.qWT, (int) this.qZo.qWR);\n }\n this.contentView.setLayoutParams(layoutParams);\n AppMethodBeat.m2505o(37040);\n }",
"public void setSpacingInInches(@NonNull Integer spacingInInches) {\n this.spacingInInches = spacingInInches;\n }",
"private int minTopMargin() {\n return -(mHeaderHeight + mFooterHeight);\n }",
"public static Insets getScreenInsets(){\n \tPoint p = new Point();\n\t\tGraphicsConfiguration graphicsConfiguration = null;\n\t\tfor (GraphicsDevice gd : GraphicsEnvironment\n\t\t\t\t.getLocalGraphicsEnvironment().getScreenDevices()) {\n\t\t\tif (gd.getDefaultConfiguration().getBounds().contains(p)) {\n\t\t\t\tgraphicsConfiguration = gd.getDefaultConfiguration();\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\t\tInsets screenInsets = Toolkit.getDefaultToolkit().getScreenInsets(\n\t\t\t\tgraphicsConfiguration);\n\t\treturn screenInsets;\n }",
"public @NonNull Margins getMinMargins() {\n return mMinMargins;\n }",
"public void setRowSpacing(float s) {\n mController.setRowSpacing(s);\n }",
"public Token setOffsets(Map<OffsetType,Offset> offsets) {\n this.offsets = offsets;\n return this;\n }",
"public void setMarginFraction(double marginFraction) {\n if(marginFraction >= 0.5d) {\n throw new IllegalArgumentException(\"The margin fraction must be less than 0.5\");\n }\n this.marginFraction = marginFraction;\n }",
"private void setScrollOffsetX(int value) {\n bitField0_ |= 0x00000010;\n scrollOffsetX_ = value;\n }",
"protected void setCornerControls(ObservableList<Node> content) {\n this.cornerControlsProperty().setValue(content);\n }",
"public void setOffset(double xOffset, double yOffset) {\n this.xOffset = xOffset;\n this.yOffset = yOffset;\n }",
"public void setCaretPosition(LikeBoxCountViewCaretPosition caretPosition) {\n this.caretPosition = caretPosition;\n\n // Since the presence of a caret will move that edge closer to the text, let's add\n // some padding (equal to caretHeight) in that same direction\n switch (caretPosition) {\n case LEFT:\n setAdditionalTextPadding(additionalTextPadding, 0, 0, 0);\n break;\n case TOP:\n setAdditionalTextPadding(0, additionalTextPadding, 0, 0);\n break;\n case RIGHT:\n setAdditionalTextPadding(0, 0, additionalTextPadding, 0);\n break;\n case BOTTOM:\n setAdditionalTextPadding(0, 0, 0, additionalTextPadding);\n break;\n }\n\n }",
"public java.awt.Insets getBorderInsets(java.awt.Component c) {\n // TODO codavaj!!\n return null;\n }",
"private void setScrollBars() {\n int totHeight = jEditorPane1.getSize().height;\n int value = jEditorPane2.getSize().height;\n if (value > totHeight) totHeight = value;\n int totWidth = jEditorPane1.getSize().width;\n value = jEditorPane2.getSize().width;\n if (value > totWidth) totWidth = value;\n int viewHeight = jViewport1.getExtentSize().height;\n int viewWidth = jViewport1.getExtentSize().width;\n //D.deb(\"totHeight = \"+totHeight+\", totWidth = \"+totWidth); // NOI18N\n //D.deb(\"viewHeight = \"+viewHeight+\", viewWidth = \"+viewWidth); // NOI18N\n jScrollBar1.setValues(0, viewWidth, 0, totWidth);\n jScrollBar1.setBlockIncrement(viewWidth);\n jScrollBar2.setValues(0, viewWidth, 0, totWidth);\n jScrollBar2.setBlockIncrement(viewWidth);\n jScrollBar3.setValues(0, viewHeight, 0, totHeight);\n jScrollBar3.setBlockIncrement(viewHeight);\n boolean visibleScroll = jScrollBar1.isVisible();\n //D.deb(\"jScrollBar1.isVisible() = \"+visibleScroll); // NOI18N\n if (visibleScroll != viewWidth < totWidth && editorPanel.isShowing()) {\n //D.deb(\"jScrollBar1 setting visibility = \"+!visibleScroll); // NOI18N\n jScrollBar1.setVisible(!visibleScroll);\n jScrollBar2.setVisible(!visibleScroll);\n validate();\n //editorPanel.repaint();\n //jScrollBar1.repaint();\n //jScrollBar2.repaint();\n }\n visibleScroll = jScrollBar3.isVisible();\n //D.deb(\"jScrollBar3.isVisible() = \"+visibleScroll); // NOI18N\n if (visibleScroll != viewHeight < totHeight && editorPanel.isShowing()) {\n //D.deb(\"jScrollBar3 setting visibility = \"+!visibleScroll); // NOI18N\n jScrollBar3.setVisible(!visibleScroll);\n validate();\n //editorPanel.repaint();\n //jScrollBar3.repaint();\n }\n }",
"public void setDividerMargin(float dividerMargin) {\n if(dividerMargin < 0){\n throw new IllegalArgumentException(\"margin can not be under zero\");\n }\n this.mDividerMargin = dividerMargin;\n invalidate();\n }",
"public static void setBackgroundAndKeepPadding(View view, Drawable backgroundDrawable) {\n int top = view.getPaddingTop();\n int left = view.getPaddingLeft();\n int right = view.getPaddingRight();\n int bottom = view.getPaddingBottom();\n\n setBackgroundCompat(view, backgroundDrawable);\n view.setPadding(left, top, right, bottom);\n }",
"private static void addMarginTopToContentChild(View mContentChild, int statusBarHeight) {\n if (mContentChild == null) {\n return;\n }\n if (!TAG_MARGIN_ADDED.equals(mContentChild.getTag())) {\n FrameLayout.LayoutParams lp = (FrameLayout.LayoutParams) mContentChild.getLayoutParams();\n lp.topMargin += statusBarHeight;\n mContentChild.setLayoutParams(lp);\n mContentChild.setTag(TAG_MARGIN_ADDED);\n }\n }",
"public static void setCaretPos(DataObject dataObject, int offset) {\n if (dataObject == null) {\n return;\n }\n\n OpenCookie openCookie = dataObject.getCookie(OpenCookie.class);\n openCookie.open();\n if (offset != -1) {\n EditorCookie ec = dataObject.getCookie(EditorCookie.class);\n JEditorPane[] panes = ec.getOpenedPanes();\n if (panes.length > 0) {\n JEditorPane pane = panes[0];\n pane.setCaretPosition(offset);\n return;\n }\n }\n }",
"public void setItemAlignmentOffsetWithPadding(boolean withPadding) {\n mLayoutManager.setItemAlignmentOffsetWithPadding(withPadding);\n requestLayout();\n }",
"private void setupPadding()\n\t{\n\t\tContext context = getContext();\n\t\tResources res = context.getResources();\n\t\tint main = (int) res.getDimension(R.dimen.sp_main);\n\t\tthis.mPadding[0] = main;\n\t\tthis.mPadding[1] = main;\n\t\tthis.mPadding[2] = 0;\n\t\tthis.mPadding[3] = main;\n\t}",
"public void setMargins(View v, double l, double t, double r, double b) {\n if (v.getLayoutParams() instanceof ViewGroup.MarginLayoutParams) {\n ViewGroup.MarginLayoutParams p = (ViewGroup.MarginLayoutParams) v\n .getLayoutParams();\n final float scale = this.getResources().getDisplayMetrics().density;\n int lpx = (int) ((appsingleton.devicewidth) * l);\n int tpx = (int) ((appsingleton.deviceheight) * t);\n int rpx = (int) ((appsingleton.devicewidth) * r);\n int bpx = (int) ((appsingleton.deviceheight) * b);\n p.setMargins(lpx, tpx, rpx, bpx);\n v.requestLayout();\n }\n }",
"public void setInnerBorder(int left, int right, int top, int bottom) {\n GtkEntryOverride.setInnerBorder(this, left, right, top, bottom);\n }",
"private void setTableHeight() {\n coachesTable.prefHeightProperty().bind(coachesTable.fixedCellSizeProperty().\n multiply(Bindings.size(coachesTable.getItems())).add(20).add(15)); //margin + header height\n }",
"public 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 }",
"public NinePatchBorder(Insets insets, NinePatch np)\r\n\t{\r\n\t\tthis.insets = insets;\r\n\t\tthis.np = np;\r\n\t}",
"public void putBorder( final short borderTop, final XSSFColor topBorderColor,\n final short borderBottom, final XSSFColor bottomBorderColor,\n final short borderLeft, final XSSFColor leftBorderColor,\n final short borderRight, final XSSFColor rightBorderColor,\n int[] rowIndices, int[] colIndices )\n {\n modifyCellStyle(rowIndices, colIndices, new CellStyleModifier() {\n public void modify( CellStyle style ) {\n if ( style instanceof XSSFCellStyle ) {\n XSSFCellStyle xssfStyle = (XSSFCellStyle)style;\n if ( borderTop != CellStyle.BORDER_NONE ) {\n xssfStyle.setBorderTop( borderTop );\n xssfStyle.setTopBorderColor( topBorderColor );\n }\n if ( borderBottom != CellStyle.BORDER_NONE ) {\n xssfStyle.setBorderBottom( borderBottom );\n xssfStyle.setBottomBorderColor( bottomBorderColor );\n }\n if ( borderLeft != CellStyle.BORDER_NONE ) {\n xssfStyle.setBorderLeft( borderLeft );\n xssfStyle.setLeftBorderColor( leftBorderColor );\n }\n if ( borderRight != CellStyle.BORDER_NONE ) {\n xssfStyle.setBorderRight( borderRight );\n xssfStyle.setRightBorderColor( rightBorderColor );\n }\n } \n else throw new RuntimeException( \n \t\t\"Current cell style doesn't support XSSF colors\");\n }\n } );\n }",
"public void setOffset(int xOffset, int yOffset) {\n\t\tthis.xOffset = xOffset;\n\t\tthis.yOffset = yOffset;\n\t}",
"public void setMarginLeft( int marginLeft )\n {\n this.marginLeft = marginLeft;\n }",
"@Test\n public void testSetOffsetDateTime() throws SQLException {\n List<String> zoneIdsToTest = getZoneIdsToTest();\n List<TimeZone> storeZones = new ArrayList<TimeZone>();\n for (String zoneId : zoneIdsToTest) {\n storeZones.add(TimeZone.getTimeZone(zoneId));\n }\n List<String> datesToTest = getDatesToTest();\n\n for (TimeZone timeZone : storeZones) {\n ZoneId zoneId = timeZone.toZoneId();\n for (String date : datesToTest) {\n LocalDateTime localDateTime = LocalDateTime.parse(date);\n String expected = date.replace('T', ' ');\n offsetTimestamps(zoneId, localDateTime, expected, storeZones);\n }\n }\n }",
"public WmDisplayCutout computeSafeInsets(int width, int height) {\n return computeSafeInsets(mInner, width, height);\n }"
] |
[
"0.736842",
"0.72435945",
"0.6563402",
"0.57028306",
"0.56418645",
"0.5271829",
"0.51636297",
"0.5100106",
"0.509638",
"0.50811875",
"0.5073096",
"0.5056547",
"0.50334775",
"0.50243074",
"0.48541045",
"0.47992578",
"0.47729024",
"0.47436544",
"0.47238216",
"0.46917176",
"0.4676812",
"0.4573065",
"0.45009452",
"0.4494643",
"0.4428036",
"0.44079015",
"0.43728888",
"0.43702605",
"0.43414772",
"0.43256357",
"0.4314575",
"0.42790526",
"0.42007396",
"0.41923815",
"0.4179917",
"0.41263112",
"0.41069007",
"0.4084757",
"0.4066508",
"0.40575814",
"0.40113613",
"0.40067187",
"0.39921266",
"0.3970923",
"0.39702356",
"0.3937121",
"0.39074087",
"0.3890739",
"0.38379106",
"0.38067102",
"0.37764367",
"0.3765846",
"0.37638393",
"0.37252933",
"0.3713048",
"0.37053093",
"0.37011227",
"0.36708924",
"0.36482543",
"0.3634093",
"0.36014867",
"0.35826367",
"0.35785478",
"0.35687903",
"0.3563963",
"0.3563716",
"0.35340697",
"0.35171503",
"0.34976858",
"0.34947154",
"0.34802753",
"0.34785983",
"0.34595522",
"0.34578678",
"0.34557903",
"0.34545052",
"0.34398225",
"0.34378982",
"0.34362566",
"0.3432447",
"0.34303877",
"0.34250066",
"0.34218937",
"0.34208688",
"0.34079516",
"0.34064552",
"0.34016982",
"0.339711",
"0.33914965",
"0.3391331",
"0.33858782",
"0.3370838",
"0.33611888",
"0.33508825",
"0.3343874",
"0.33370003",
"0.33352548",
"0.33305308",
"0.332952",
"0.33268273"
] |
0.69646263
|
2
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.